AddNode.pl

Use the AddNode.pl Perl script to add devices to your network topology.

Description

You might want to add a device to your network topology if you know it has been added since the last discovery.

Running the script

To run the script, use a command line similar to the following:
$NCHOME/precision/bin/ncp_perl $NCHOME/precision/bin/AddNode.pl -domain NCOMS -latency 10000 -debug 4 -verbose 192.168.10.8
$NCHOME/precision/bin/ncp_perl $NCHOME/precision/bin/AddNode.pl -domain NCOMS -file mynodes.txt

Command-line options

The following table describes the command-line options for the AddNode.pl script.

Table 1. AddNode.pl command-line options
Command-line option Description
-domain DomainName Mandatory; the name of the domain you want to add the node to.
-latency MessageLatency Optional; the maximum time in milliseconds to wait between attempts to send a message. This is needed for busy networks.
-debug DebugLevel Optional; the level of detail the debugging output provides. Values are 1 to 4, where 4 represents the most detailed output.
-file FileName Optional; file containing the list of nodes to be added to the network topology. 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.
-verbose Optional; provides more information on the screen.
host Optional; the name of the node to be added. You can add 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.