Tivoli Hot Tips

Goto the Tivoli Home Page

This page contains Tivoli-related tips that are so Hot to handle we had to put them on their own page..!!

If you have any Tivoli tips that you would like to see added to this page please feel free to email me.

Cheat Sheet of Some Tivoli and Unix Commands

Contributed By: Chris Klunder
Here, courtesy of Chris Klunder is a cheat sheet of some Tivoli and Unix commands:

ADMINISTRATIVE COMMANDS:
"vdisp -hiq" shows the status of the oservs

"tmstat" shows the transactions going on

"odstat -cv" shows processes and pids

"odadmin shutdown all" shuts down all oservs

"odadmin start (Dispatcher number)" starts an oserv. Dispatcher number is found with the "odadmin odlist" command

"wepmgr ping" checking to see if Endpoint Manager is running

"wepmgr start" starting the Endpoint Manager

"wepmgr stop" stopping the Endpoint Manager

"wlookup -r PolicyRegion -a" lists all policy regions on the TMR

"wep ls -g servername-gateway" lists all endpoints assigned to the specified gateway

"wep ls -g servername-gateway|wc -l" lists number of endpoints on the servername gateway

DISTRIBUTED MONITORING COMMANDS:

"wlseng -zld servername" lists monitors and last stats loaded on that server. -z (endpoint) -d (disabled)

"wstopeng -z servername" stops the DM engine on specified server

"wclreng servername" clears the DM engine on the specified machine

"wrunprb -z "*" "*" "*" servername" runs the monitors on the specified server. -z (endpoint)

ENDPOINT COMMANDS:
"wadminep (endpoint) reexec_lcfd" restarts endpoint on specified machine

"wadminep (endpoint) view_file /usr/local/some.txt" views the specified file on the specified endpoint

"wadminep (endpoint) reboot_system" reboots a system by endpoint

"lcfd start" to start unix endpoint as "root". Make sure DM is not running

"wdelep (endpoint)" deletes endpoint off of the TMR

"wrminvnode (endpoint)" removes the inventory data off of the TMR

SOFTWARE DISTRIBUTION COMMANDS:
"wrpt -L" checking to see if any filepacks or autopacks are running

"wrpt -A -k (dist number)" kill a distribution. (number located at beginning of wrpt -L output.)

UNIX COMMANDS:
"df -k" gets all unix filesystem space information

"df ." gets current filesystem space information

"pwd" gives you the present working directory

"env" gives your current environment setup

VI editor is a text editor. To use it, just type "vi filename". To exit out of VI, type ":q" to quit, ":wq" to write and quit or ":q!" to quit without saving changes.

Aliases and paths are setup in the .profile file in your startup directory. (usually /home/username) To get there from anywhere, just type "cd" and hit enter.

"chmod ### (filename)" changes the access rights for a file or directory. The first # is for creator/owner, the second # is for the group and the third # is for everyone else. 1 is execute, 2 is write, 3 is write/execute, 4 is read, 5 is read/execute, 6 is read/write and 7 is read/write/execute.
 

Cloning an Administrator

Contributed By: Cliff Hobbs [MVP SMS]
So you've gone to all of that trouble to setup your Tivoli Administrator account just the way you want it, but wouldn't it be handy if you could copy this to use as the basis for other users?

Well now you can with the aid of the "
wcloneadmin.pl" script developed by Jim Cheviron which you can download from here. Once you've downloaded the file you'll need to place the "tivoli.pl" file in the following directory:

/opt/Tivoli/bin/aix4-r1/contrib/lib/perl
 

New and Improved WINSTLCF

Contributed By: Paul Claridge
Paul has spent a considerable amount of time enhancing the 'out-of-the-box' winstlcf script such as tidying up Perl, fixing bugs, providing clearer messages, added functionality, etc. but without modifying any of the clever bits of the original.

You can download Paul's version (winstlcf37) from here but please remember the following points:

  • Backup your original winstlcf first
  • Test the new version on your test network before using it on any production/live boxes
  • Use of this script like all of the content on this site is covered by the site disclaimer
     

Running the CLI From a Remote Machine

Contributed By: Cliff Hobbs [MVP SMS], Gareth Smith
Wouldn't it be handy if you could run the Tivoli Command Line Interface (CLI) from a remote desktop machine rather than just the TMR itself?

Well you could:

  • Use the "RCMD" utility from the NT Resource Kit
  • Or use Telnet
  • Or make the machine in question a Managed Node but you then run into problems with licensing and installing additional software just to get access to the "setup_env.cmd".

But here courtesy of Gareth Smith is the best way of achieving this, which I've tested and written up below:

  1. First you need to install TRIP from the Framework CD (run "setup.exe" from the "Trip" subdirectory
     
  2. You'll also need a copy of "REXEC.EXE" which you can find on the NT/ Windows 2000 CD in the "I386" directory (you'll need to expand the "REXEC.EX_" file on CD using the "EXPAND REXEC.EX_ REXEC.EXE" command and then move the "REXEC.EXE" file into your path statement somewhere).
     
  3. You then need to run the following command line:

    rexec <ManagedNode name> -l <Admin ID on ManagedNode> sh -c cmd

    So if for example I want to run the CLI on my TMR called "TIVTMR" using the ID of "Admin" I'd run the following command:

    rexec TIVTMR -l Admin sh -c cmd
     
  4. You'll then get a prompt to enter the password:

    Password (<ManagedNode>:):

    Enter the password and press [RETURN]

    The command prompt will then change to the remote machine (but you're not given any obvious indication that you're now running a command prompt on a remote machine).
     
  5. From the remote command line goto the "WINNT\System32\drivers\etc\Tivoli" directory and run the "setup_env.cmd" file to initialise the Tivoli environment then away you go.
     
  6. Once you've finished with the remote command line type "exit" and press [RETURN] to close the remote connection.

You could setup a shortcut on your desktop with the following command line to automatically open the CLI on the Managed Node used previously in this example (the first prompt you'll see is the "Password (<ManagedNode>:):" prompt):

cmd /k C:\WINNT\rexec.exe TIVTMR -l Admin sh -c cmd

Stopping/ Starting Tivoli NT Services

Contributed By: Cliff Hobbs [MVP SMS]
Did you know that you can not only stop/start the Tivoli Services on an NT box by using the "net stop/ start <service name>" commands from the command line but you can also use the short names from the Registry (stored in "HKLM\System\CurrentControlSet\Services"), as shown in the table below:

Service Long Name (Control Panel | Services) Short Name (Registry)
Endpoint Tivoli Endpoint lcfd
Oserv Tivoli Object Dispatcher oserv
Trip Tivoli Remote Execution Service trip

So for example, if you want to stop the oserv service, you can either use Control Panel | Services or from the command line use the:

net stop "Tivoli Object Dispatcher"

command (complete with "" around the service name as it contains spaces) or the:

net stop oserv

command.
 

Troubleshooting Tivoli on NT

Contributed By: Cliff Hobbs [MVP SMS]
THE Golden Rule for Troubleshooting Tivoli on NT - make sure that a copy of "KBDUS.DLL" is on the Endpoint in the "C:\WINNT\System32" directory.
 

© FAQShop.com 2003 - 2005

Goto the Tivoli Home Page

Email the Author