The xtshutdown Command
The xtshutdown command executes a series of commands locally on the boot node and service nodes to shut down the system in an orderly fashion. The sequence of shutdown steps and the nodes on which to execute them are defined by the system administrator in the /etc/opt/cray/xtshutdown/xtshutdown.conf file or in the file specified by the environment variable XTSHUTDOWN_CONF.
Root user privileges are required to run xtshutdown. Passwordless ssh must be enabled for the root user from the boot node to all service nodes.
The xtshutdown command uses pdsh to invoke commands on the selected service nodes (i.e., boot node, SDB node, a class of nodes, or a single host). A system administrator can define functions to execute when the system is shut down. Place these functions in the /etc/opt/cray/init-service/xt_shutdown_local file or the file defined by the XTSHUTDOWN_LOCAL environment variable.