(Click to open topic with navigation)
Synopsis
mnodectl -m attr{=|-=}val nodeexp
mnodectl -q [cat|diag|profile|wiki] nodeexp
Overview
Change specified attributes for a given node expression.
Access
By default, this command can be run by any Moab Administrator.
Format
-m - Modify | |
---|---|
Format |
<ATTR>{=|-=}<VAL> and -=, in this case, clears the attribute; it does not decrement the attribute's value. Changing OS and POWER require a Moab Adaptive Computing Suite license and a provisioning resource manager. |
Description | Modify the state or attribute of specified node(s) |
Example |
> mnodectl -m features=fastio,highmem node1 > mnodectl -m gevent=cpufail:'cpu02 has failed w/ec:0317' node1 > mnodectl -m gmetric=temp:131.2 node1 > mnodectl -m message='cpufailure:cpu02 has failed w/ec:0317' node1 > mnodectl -m OS=RHAS30 node1 > mnodectl -m power=off node1 > mnodectl -m state=idle node1 > mnodectl -m variable=IP=10.10.10.100,Location=R1S2 node1 |
-q - Query | |
---|---|
Format | {cat | diag | profile | wiki} |
Description |
Query node categories or node profile information (see ENABLEPROFILING for nodes). The diag and profile options must use --xml. |
Example |
> mnodectl -q cat ALL node categorization stats from Mon Jul 10 00:00:00 to Mon Jul 10 15:30:00 Node: moab Categories: busy: 96.88% idle: 3.12% Node: maka Categories: busy: 96.88% idle: 3.12% Node: pau Categories: busy: 96.88% idle: 3.12% Node: maowu Categories: busy: 96.88% down-hw: 3.12% Cluster Summary: busy: 96.88% down-hw: 0.78% idle: 2.34% > mnodectl -v -q profile ... > mnodectl -q wiki <ALL> GLOBAL STATE=Idle PARTITION=SHARED n0 STATE=Idle PARTITION=base APROC=4 CPROC=4 RM=base NODEACCESSPOLICY=SHARED n1 STATE=Idle PARTITION=base APROC=4 CPROC=4 RM=base NODEACCESSPOLICY=SHARED n2 STATE=Idle PARTITION=base APROC=4 CPROC=4 RM=base NODEACCESSPOLICY=SHARED n3 STATE=Idle PARTITION=base APROC=4 CPROC=4 RM=base NODEACCESSPOLICY=SHARED n4 STATE=Idle PARTITION=base APROC=4 CPROC=4 RM=base NODEACCESSPOLICY=SHARED n5 STATE=Idle PARTITION=base APROC=4 CPROC=4 RM=base NODEACCESSPOLICY=SHARED n6 STATE=Idle PARTITION=base APROC=4 CPROC=4 RM=base NODEACCESSPOLICY=SHARED n7 STATE=Idle PARTITION=base APROC=4 CPROC=4 RM=base NODEACCESSPOLICY=SHARED n8 STATE=Idle PARTITION=base APROC=4 CPROC=4 RM=base NODEACCESSPOLICY=SHARED n9 STATE=Idle PARTITION=base APROC=4 CPROC=4 RM=base NODEACCESSPOLICY=SHARED Query a node with the output displayed in a WIKI string. |
Parameters
GEVENT | |
---|---|
Format | <EVENT>:<MESSAGE> |
Description | Creates a generic event on the node to which Moab may respond (see Enabling Generic Events). |
Example |
mnodectl -m gevent=powerfail:'power has failed' node1 |
GMETRIC | |
---|---|
Format | <ATTR>:<VALUE> |
Description | Sets the value for a generic metric on the node (see Enabling Generic Metrics). When a gmetric set in Moab conflicts with what the resource manager reports, Moab uses the set gmetric until the next time the resource manager reports a different number. |
Example |
mnodectl -m gmetric=temp:120 node1 |
MESSAGE | |
---|---|
Format | '<MESSAGE>' |
Description | Sets a message to be displayed on the node. |
Example |
mnodectl -m message='powerfailure: power has failed' node1 |
OS | |
---|---|
Format | <STRING> |
Description | Operating System (see Resource Provisioning). |
Example |
mnodectl node1 -m OS=RHELAS30 |
STATE | |
---|---|
Format | {drained|idle} |
Description |
Remove (drained) or add (idle) a node from scheduling. |
Example |
mnodectl node1 -m state=drained Moab ignores node1 when scheduling. |
VARIABLE | |
---|---|
Format | <name>[=<value>],<name>[=<value>]... |
Description | Set a list of variables for a node. |
Example |
> mnodectl node1 -m variable=IP=10.10.10.100,Location=R1S2 |
Related topics