IBM Books

Administration Guide

chnode Command

Name

chnode - Changes a node definition in the CSM database.

Synopsis

chnode [-a] [-h] [-v | -V] {host | -f file | -N group |-w selectstr} Attr=value [Attr=value ...]

Description

The chnode command changes a managed node definition in the CSM database by setting one or more attribute values. Attribute values can be set in the database for this node definition by specifying attribute/value pairs on the command line in the form Attr=value. If the value is a string that contains spaces or other special characters, the value must be enclosed in quotation marks. The host parameter can be specified by host name or by IP address. If -w selectstr is specified, chnode uses that string in the "where" part of an SQL select statement against the database of nodes and changes the nodes that are matched.

The chnode command can only be run from the management server to change a node definition in the CSM database on the management server.

Note:
The -P option is no longer valid for this command.

Options

-a
Change all the nodes.

-h
Writes the command's usage statement to standard output.

-v | -V
Writes the command's verbose messages to standard output.

-f file
Specifies a file that contains a list of nodes names. If the file name is "-", then the list is read from stdin. The file can contain multiple lines and each line can have one or more node names, separated by spaces and/or commas.

-N group
Changes the nodes that are in the node groups specified. The node group is evaluated by the nodegrp command. Multiple node groups can be separated by commas or spaces (if the list is quoted).

-w selectstr
Changes the nodes that match the "where" part of the select string. It is easiest to put the whole string in double quotation marks, especially if you need to put attribute values in single quotation marks (when they are strings). As a convenience, "*" means all nodes, as if a "where" string were not specified.

Exit Status

1
A combination of options and arguments has been entered that is not valid.

12
Node not found.

13
No nodes matched the specified string.

If an error occurs in the RMC layer, the RMC return code will be returned as the exit status.

Examples

  1. To change the operating system version for websvr in the CSM database, type:
    chnode websvr InstallDistributionVersion='7.2'
    

Files

/opt/csm/bin/chnode
Location of the chnode command

See Also

The definenode, lsnode, nodeattributes, nodegrp, rmnode man pages.

See the rmccli man page for information on attr=value syntax.

See the IBM RSCT for Linux: Guide and Reference for information on selection string syntax.

Author

Bruce Potter - cluster@us.ibm.com


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]