ManageNode.pl
Use the ManageNode.pl perl script to set the status of one or more unmanaged devices back to managed state following a period of maintenance.
Description
You can set the status of one or more unmanaged devices back to managed state following a period of maintenance.
This is useful when a device is in unmanaged state and you want to set it to managed state again to receive alerts that are not tagged unmanaged and are used for root cause analysis.
Running the script
To run the script, use a command line similar to the following:$NCHOME/precision/bin/ncp_perl $NCHOME/precision/bin/ManageNode.pl -domain NCOMS -user root -pwd fruit -verbose -file mynodes.txt$NCHOME/precision/bin/ncp_perl $NCHOME/precision/bin/ManageNode.pl -domain NCOMS -user root -pwd fruit -verbose neptune.ibm.com 192.168.0.6Command-line options
The following table describes the command-line options for the script.
| Command-line option | Description |
|---|---|
| -domain DomainName | Mandatory; the name of the domain where the unmanaged node resides. |
| -file FileName | Optional; file containing the list of nodes to be set to managed state. Add
one IP address or host name per line in the file. Note: You must provide the names of the nodes
either in a file or by entering them in the command line, as described in host
below. |
| host | Optional; the name of the node to be set to managed state. You can specify any number of nodes this way, separated by spaces. The information entered for a node can be either the IP address or the host name. If you do not provide a host name, then the -file option must be used. |
| -noMainNodeLookup | Optional; switch that enables both interfaces and main nodes to placed into
managed status. Use this option together with the -file option.Note: If you do not
specify the -noMainNodeLookup option, then the script only places main nodes into
managed state. Where an interface is specified in the file, the script will look up the main node
and place that main node into managed status. |
| -pwd password | Mandatory; the password for the database user. |
| -user username | Mandatory; the name of the database user. |
| -verbose | Optional; provides more information on the screen. |