View and Temporarily Set Node Attributes
About the xtprocadmin command.
Use the xtprocadmin command to view current node attributes. The xtprocadmin -A option lists all attributes of selected nodes. The xtprocadmin -a attr1,attr2 option lists selected attributes of selected nodes.
An administrator can use the xtprocadmin -a attr=value command to temporarily set certain site-specific attributes. Using the xtprocadmin -a attr=value command to set certain site-specific attributes is not persistent across reboots. Attribute settings that are intended to be persistent across reboots (such as labels) must be specified in the attr.defaults file.
apbridge daemon on the boot node in order for ALPS to detect changes that the xtprocadmin command has made to the SDB. Restarting the other ALPS components (for example, on the SDB node or on the login node if they are separate nodes) is not necessary. To restart apbridge, log into the boot node as root and execute the following command:boot# /etc/init.d/alps restart
For example, the following command creates a new label1 attribute value for the compute node whose NID is 350. The xtprocadmin command must be executed by root from a service node and the SDB must be running:
boot# xtprocadmin -n 350 -a label1=eedept
Connected
NID (HEX) NODENAME TYPE LABEL1
350 0x15e c1-0c1s0n0 compute eedeptThen restart the apbridge daemon on the boot node in order for ALPS to detect changes that the xtprocadmin command has made to the SDB.
boot# /etc/init.d/alps restart