Searching the Help
To search for information in the Help, type a word or phrase in the Search box. When you enter a group of words, OR is inferred. You can use Boolean operators to refine your search.
Results returned are case insensitive. However, results ranking takes case into account and assigns higher scores to case matches. Therefore, a search for "cats" followed by a search for "Cats" would return the same number of Help topics, but the order in which the topics are listed would be different.
Search for | Example | Results |
---|---|---|
A single word | cat
|
Topics that contain the word "cat". You will also find its grammatical variations, such as "cats". |
A phrase. You can specify that the search results contain a specific phrase. |
"cat food" (quotation marks) |
Topics that contain the literal phrase "cat food" and all its grammatical variations. Without the quotation marks, the query is equivalent to specifying an OR operator, which finds topics with one of the individual words instead of the phrase. |
Search for | Operator | Example |
---|---|---|
Two or more words in the same topic |
|
|
Either word in a topic |
|
|
Topics that do not contain a specific word or phrase |
|
|
Topics that contain one string and do not contain another | ^ (caret) |
cat ^ mouse
|
A combination of search types | ( ) parentheses |
|
Name
nnmgnmattrcfg.sh — Add or remove replicated custom attribute(s) for nodes, interfaces, cards, and chassis from regional to global NNMi.
SYNOPSIS
nnmgnmattrcfg.sh
-add <attrName
[-file <filename
>]> |
-remove <attrName
[-file <filename
>]> |
-list |
[-u <username
> -p <password
>]
[-jndiHost <hostName
> Default: localhost]
[-jndiPort <port
> Default: 1099]
DESCRIPTION
nnmgnmattrcfg.sh
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.
Parameters
nnmgnmattrcfg.sh
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.
-p <
password
>-
Supply the NNMi administrator password to run the script.
-jndiHost <
serverName
>-
The server JNDI host; default is
localhost
. -jndiPort <
port
>-
The server JNDI port; default is
1099
.
EXAMPLES
nnmgnmattrcfg.sh -add myAttr
-
Added the custom attribute
myAttr
. nnmgnmattrcfg.sh -remove myAttr
-
Removes the customer attribute
myAttr
nnmgnmattrcfg.sh -add -file myFile
-
Reads the attributes specified in the
myFile
file and attempts to add them.
Diagnostics
nnmgnmattrcfg.sh
returns the following exit codes:
0
-
Operation was successful.
1
-
An error occured; see error message for details.
NOTES
The admin must know the correct name of the custom attribute created in the regional system. The attributes are case sensitive. There is no validation done when adding the custom attribute that the attribute exist in the regional system.
We welcome your comments!
To open the configured email client on this computer, open an email window.
Otherwise, copy the information below to a web mail client, and send this email to network-management-doc-feedback@hpe.com.
Help Topic ID:
Product:
Topic Title:
Feedback: