nnmgnmattrcfg.ovpl — Add or remove replicated custom attribute(s) for nodes, interfaces, cards, and chassis from regional to global NNMi.
nnmgnmattrcfg.ovpl
-add <attrName
[-file <filename
>]> |
-remove <attrName
[-file <filename
>]> |
-list |
[-u <username
> -p <password
>]
[-jndiHost <hostName
> Default: localhost]
[-jndiPort <port
> Default: 1099]
nnmgnmattrcfg.ovpl
adds or removes
replicated custom attributes for nodes, interfaces, cards, and chassis.
By default, custom attributes are not replicated from regional NNMi system
to global NNMi system. In this case, admins can add or remove the custom
attribute on the global system using this tool.
The -list option lists all the configured custom attributes.
The -add option accepts the name of a custom attribute. The custom attribute that needs to be replicated from regional system to global NNMi.
The -remove option accepts the name of a custom attribute. The custom attribute that needs to be remove from the replication from regional system to global NNMi.
The -file option accepts a file with a single entry specified per line. This option must be used with -add or -remove option. Each line has the following format:
CustomAttributeName #
(optional comment to help identify the attribute, if desired)
Where:
CustomAttributeName
= the attribute name of the node, interface, card, or chassis you wish to replicate.
Comments can be deliminated with a #
character.
nnmgnmattrcfg.ovpl
supports the following options:
-add <attrName
>
The custom attribute of the node, interface, card, or chassis to add.
-remove <attrName
>
The name of the custom attribute to remove.
-file <fileName
>
Specify a text file to read the attributes from. Must be used with -add or -remove option
-u <username
>
Supply the NNMi administrator username to run the script. This script requires
the NNMi administrator username unless you use an nnm.properties
file.
See the nnm.properties.4
reference page for more information.
-p <password
>
Supply the NNMi administrator password to run the script. This script requires
the NNMi administrator password unless you use an nnm.properties
file.
See the nnm.properties.4
reference page for more information.
-jndiHost <serverName
>
The server JNDI host; default is
localhost
.
-jndiPort <port
>
The server JNDI port; default is 1099
.
nnmgnmattrcfg.ovpl -add myAttr
Added the custom attributemyAttr
.
nnmgnmattrcfg.ovpl -remove myAttr
Removes the customer attribute myAttr
nnmgnmattrcfg.ovpl -add -file myFile
Reads the attributes specified in the myFile
file
and attempts to add them.
nnmgnmattrcfg.ovpl
returns the following exit codes:
0
Operation was successful.
1
An error occured; see error message for details.