Sunday, March 4, 2012

tmadmin - tuxedo administration


                              

tmadmin commands


tmadmin [ -r ] [ -c ] [ -v ]
§If tmadmin is invoked with the -c option, it enters configuration mode
§The -r option instructs tmadmin to enter the bulletin board as a client instead of as the administrator; in other words, it requests read-only access
§The -v option causes tmadmin to display the BEA Tuxedo version number and license number





Frequently used tmadmin commands

help, bbclean, bbstats, pclt, psr, pq, psc
>help – lists commands available in tmadmin console with the option chosen
>bbclean (bbc machine)- bbclean gracefully removes dead servers and restarts them if they are marked as restartable.
>bbstats (bbs) - Prints a summary of bulletin board statistics
            bbs
Current Bulletin Board Status:
Current number of servers
Current number of services: 55
Current number of request queues: 7
Current number of server groups: 1


>printclient (pclt) [-m machine] [-u usrname] [-c cltname]
Prints information for the specified set of client processes. If no arguments, then information on all clients is printed. The -m, -u, and -c options or defaults can be used to restrict the information to any combination of machine, user name, or client name.

pclt

LMID  User Name Client Name  Time Status  Bgn/Cmmt/Abrt
--------------- --------------- --------------- -------- 
appsrv    NT       WSH    0:10:26 IDLE    0/0/0
appsrv    NT       WSH    0:10:26 IDLE    0/0/0
appsrv    NT     tmadmin  0:10:14 IDLE    0/0/0


            bbs
Current Bulletin Board Status:
Current number of servers
Current number of services: 55
Current number of request queues: 7
Current number of server groups: 1


>printserver (psr) [-m machine] [-g groupname] [-i srvid] [-q qaddress]
Print information for application and administrative servers.
psr
Prog Name      Queue Name  Grp Name      ID RqDone Load Done Current Service
---------      ----------  --------      -- ------ --------- ---------------
BBL                         33720                  dhttlg1            0      20560     1028000   (  IDLE )
romNOndem      NOndemQ               CSM              10          0              0         (  IDLE )
csmXChEngine   XChEngineQ         CSM_TMS     6100     0              0         (  IDLE )
GWADM          GwDomainAdv        TUXDOM      5800     0               0        (  IDLE )
ORA_TMS       CSM_TMS_TMS   CSM_TMS    30001    0   


>printserver (psr) [-m machine] [-g groupname] [-i srvid] [-q qaddress]
> v
Verbose now on
> psr
        Group ID: dhttlg1, Server ID: 0
      Machine ID: dhttlg1
      Process ID: 21856, Request Qaddr: 36729329, Reply Qaddr: 36729329
     Server Type: ADMIN
       Prog Name: /usr/local/tux91/bin/BBL
      Queue Name: 33720
         Options: RESTARTABLE
  Max # Restarts: unlimited
 Restart Command: (restartsrv)
    Grace Period: n/a
      Generation: 1, Max message type: 1073741824
   Creation time: Fri Oct 28 03:00:21 2011
         Up time: 169:25:52
   Requests done: 20563
       Load done: 1028150
  Current Status: (  IDLE )    


>printqueue (pq) [qaddress
Prints queue information for all application and administrative servers. The default is to print information about all queues.

pq
Prog Name          Queue Name   # Serve  Wk Queued  # Queued  Ave. Len    Machine
---------      ------------------- ---------  --------  --------    -------
csmXPymXmk     XPymXmkQ           1         0         0                   0.0                dhttlg1
ORA_TMS        CSM_TMS_TMS    3         0         0                   0.0                dhttlg1
BBL                            33720                1         0         0                   0.0                dhttlg1



>printservice (psc) [-m machine] [-g groupname] [-i srvid] [-a { 0|1|2 }] [-q qaddress] [-s service] 
Prints information for application and administrative services. The -a option allows you to select the class of service: -a0 limits the display to application services, -a1 selects application services plus system services that can be called by an application, -a2 selects both of those, plus system services that can be called by the BEA Tuxedo system.
psc
Service Name Routine Name Prog Name  Grp Name  ID    Machine  # Done Status
------------ ------------ ---------  --------  --    -------  ------ ------
csCallLsms00    reboot            romNOndem  CSM       10    dhttlg1              0  AVAIL
csCallLsmsE+   reboot            romNOndem  CSM       10    dhttlg1              0  AVAIL
csRetLSMS00  reboot            romNOndem  CSM       10    dhttlg1              0  AVAIL




No comments:

Post a Comment