(Click to open topic with navigation)
(PBS MOM Control)
5.484.1 Synopsis
momctl -c { <JOBID> | all }
momctl -C
momctl -d { <INTEGER> | <JOBID> }
momctl -f <FILE>
momctl -h <HOST>[,<HOST>]...
momctl -l
momctl -p <PORT_NUMBER>
momctl -q <ATTRIBUTE>
momctl -r { <FILE> | LOCAL:<FILE> }
momctl -s
momctl -u
5.484.2 Overview
The momctl command allows remote shutdown, reconfiguration, diagnostics, and querying of the pbs_mom daemon.
5.484.3 Format
-c — Clear | |
---|---|
Format | { <JOBID> | all } |
Default | --- |
Description | Makes the MOM unaware of the job's existence. It does not clean up any processes associated with the job. |
Example |
momctl -c 2 -h node1 |
-C — Cycle | |
---|---|
Format | --- |
Default | --- |
Description | Cycle pbs_mom (force the MOM to send a status update to pbs_server). |
Example |
momctl -C -h node1 Cycle pbs_mom on node1. |
-d — Diagnose | |
---|---|
Format | { <INTEGER> | <JOBID> } |
Default | 0 |
Description |
Diagnose MOM(s). (For more details, see Diagnose detail below.) |
Example |
momctl -d 2 -h node1 Print level 2 and lower diagnostic information for the MOM on node1. |
-q — Query | |
---|---|
Format | <ATTRIBUTE> |
Default | --- |
Description | Query or set <ATTRIBUTE>, where <ATTRIBUTE> is a property listed by pbsnodes -a (see Query attributes for a list of attributes). |
Example |
momctl -q physmem Print the amount of physmem on localhost. momctl -h node2 -q loglevel=7 Change the current MOM logging on node2 to level 7. |
-s — Shutdown | |
---|---|
Format | --- |
Default | --- |
Description | Have the MOM shut itself down gracefully (this includes reporting to server so that pbsnodes marks the node down). |
Example |
momctl -s Shut down the pbs_mom process on localhost. |
-u — Update | |
---|---|
Format | --- |
Default | --- |
Description | Update the hardware configuration on pbs_server with a layout from the MOM. |
Example |
momctl -u Update pbs_server hardware configuration. |
Attribute | Description |
---|---|
arch | node hardware architecture |
availmem | available RAM |
loadave | 1 minute load average |
ncpus | number of CPUs available on the system |
netload | total number of bytes transferred over all network interfaces |
nsessions | number of sessions active |
nusers | number of users active |
physmem | configured RAM |
sessions | list of active sessions |
totmem | configured RAM plus configured swap |
Level | Description |
---|---|
0 |
Display the following information:
|
1 |
All information for level 0 plus the following:
|
2 |
All information from level 1 plus the following:
|
3 |
All information from level 2 plus the following:
|
Example 5-230: MOM diagnostics
momctl -d 1 Host: nsrc/nsrc.fllcl.com Server: 10.10.10.113 Version: torque_1.1.0p4 HomeDirectory: /usr/spool/PBS/mom_priv ConfigVersion: 147 MOM active: 7390 seconds Last Msg From Server: 7389 seconds (CLUSTER_ADDRS) Server Update Interval: 20 seconds Server Update Interval: 20 seconds Init Msgs Received: 0 hellos/1 cluster-addrs Init Msgs Sent: 1 hellos LOGLEVEL: 0 (use SIGUSR1/SIGUSR2 to adjust) Prolog Alarm Time: 300 seconds Trusted Client List: 12.14.213.113,127.0.0.1 JobList: NONE diagnostics complete
Example 5-231: System shutdown
> momctl -s -f /opt/clusterhostfile shutdown request successful on node001 shutdown request successful on node002 shutdown request successful on node003 shutdown request successful on node004 shutdown request successful on node005 shutdown request successful on node006