momctl
Synopsis
momctl -c { <JOBID> | all }
momctl -C
momctl -d { <INTEGER> | <JOBID> }
momctl -f <FILE>
momctl -h <HOST>[,<HOST>]...
momctl -p <PORT_NUMBER>
momctl -q <ATTRIBUTE>
momctl -r { <FILE> | LOCAL:<FILE> }
momctl -s
Overview
The momctl command allows remote shutdown, reconfiguration, diagnostics, and querying of the pbs_mom daemon.
Format
| Name |
Format |
Default |
Description |
Example |
| Clear
| { <JOBID> | all }
| ---
| Clear stale job information
|
"momctl -h node1 -c 15406"
|
| Cycle
| ---
| ---
| Cycle pbs_mom(s)
|
"momctl -h node1 -C"
Cycle pbs_mom on node1
|
| Diagnose
| { <INTEGER> | <JOBID> }
| 0
| Diagnose mom(s)
See the Diagnose Detail table below for more information.
|
"momctl -h node1 -d 2"
(Print level 2 and lower diagnose information for the mom on node1)
|
| Host File
| <FILE>
| ---
| A file contain only comma or whitespace (i.e., " ", "\t", or "\n") delimited hostnames
|
"momctl -f hosts.txt -d"
(Print diagnose information for the moms running on the hosts specified in hosts.txt)
|
| Host List
| <HOST>[,<HOST>]...
| localhost
| A comma separated list of hosts
|
"momctl -h node1,node2,node3 -d"
(Print diagnose information for the moms running on node1, node2 and node3)
|
| Port
| <PORT_NUMBER>
| TORQUE's default port number
| The port number for the specified mom(s)
|
"momctl -p 5455 -h node1 -d"
(Request diagnose information over port 5455 on node1)
|
| Query
| <ATTRIBUTE>
| ---
| Query <ATTRIBUTE> on specified mom (where <ATTRIBUTE> is a property listed by pbsnodes -a)
|
"momctl -q physmem"
(Print the amount of physmem on localhost)
|
| Reconfigure
| { <FILE> | LOCAL:<FILE> }
| ---
| Reconfigure mom(s) with remote or local config file, <FILE>
|
"momctl -r /home/user1/new.config -h node1"
(Reconfigure mom on node1 with /home/user1/new.config on node1)
|
| Shutdown
|
| ---
| Shutdown pbs_mom
|
"momctl -s"
(Terminates pbs_mom process on localhost)
|
Query Attributes
- 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
Diagnose Detail
| Level |
Description |
| 0 |
Display the following information:
- Local hostname
- Expected server hostname
- Execution version
- MOM home directory
- MOM config file version (if specified)
- Duration MOM has been executing
- Duration since last request from pbs_server daemon
- Duration since last request to pbs_server daemon
- RM failure messages (if any)
- Log verbosity level
- Local job list
|
| 1 |
All information for level 0 plus the following:
- Interval between updates sent to server
- Number of initialization messages sent to pbs_server daemon
- Number of initialization messages received from pbs_server daemon
- Prolog/epilog alarm time
- List of trusted clients
|
| 2 |
All information from level 1 plus the following:
|
Example 1: MOM Diagnostics
Example 2: System Shutdown
|