CSM provides a set of commands for managing nodes and node group information. It stores information about nodes and node groups in the CSM database. These definitions are then accessible:
Nodegroups can be either static or dynamic. Static node groups are created by explicitly specifying each node's host name -- the list of nodes in the node group consists of the explicitly specified node host names. Dynamic node groups are created by specifying a selection criteria -- the list of nodes in the node group is determined by applying the selection criteria to the list of nodes in the cluster. The selection criteria is specified by using an SQL-like select string. See the IBM RSCT for Linux: Guide and Reference for more information about the format of the select string.
The persistent node attributes that are used to create the dynamic node group select strings. To determine the persistent attributes, type the following command on the command line:
lsrsrcdef -t -a p IBM.ManagedNode | awk '{print $1}' xargs -n3
The following are some examples of valid select strings and node groups created using those select strings.
To list the names of all the nodes whose Hostname attribute begins with c54:
lsnode -w 'Hostname like 'c54%"
nodegrp -w 'Hostname like 'c54%" (nodegroup_name)
To list all node names with the InstallOSName attribute set to 'Linux':
lsnode -w 'InstallOSName == 'Linux"
nodegrp -w 'InstallOSName == 'Linux" (nodegroup_name)
The following commands are used for managing node and node group information:
For more information about CSM commands, see the man pages or CSM Commands.
CSM provides the following predefined dynamic node groups.
Name | Select String |
---|---|
AllNodes | Hostname like '%' |
ManagedNodes | Mode='Managed' |
PreManagedNodes | Mode='PreManaged' |
LinuxNodes | InstallOSName='Linux' |
RedHatNodes | InstallDistributionName='Redhat' |
RedHat71Nodes | InstallDistributionName='7.1' |
RedHat72Nodes | InstallDistributionName='7.2' |
KickstartNodes | InstallMethod='kickstart' |
NetfinityNodes | PowerMethod='netfinity' |