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
nnmtopoquery.sh — Performs select queries on the NNMi topology.
SYNOPSIS
nnmtopoquery.sh findConnectedNeighborInterfacesByNode -node (
<name>
|<uuid>
)
nnmtopoquery.sh findL2ConnectionsByNode -node (
<name>
|<uuid>
)
nnmtopoquery.sh findWebAgentSettingsByNode -node (
<name>
|<uuid>
)
nnmtopoquery.sh listWebAgentSettings
DESCRIPTION
nnmtopoquery.sh
performs queries against the NNMi management server and outputs the result in selectable table format.
Parameters
nnmtopoquery.sh
recognizes the following options.
-h
-
Prints the usage statement.
-node (
<name>
|<uuid>
)-
Specifies the node for queries that accept a node as input. Nodes may be referenced by name, hostname or UUID.
-format (
csv
|list
|text
|xml
)-
Changes the output format. Available output modes are CSV, LIST, TEXT and XML.
-fields
<comma_separated_fields>
-
Selects the output fields in a comma-separated list. If this argument is not provided all fields are shown in the output by default. When this argument is provided fields will be shown in the output in the order specified.
Wildcards such as '*' to match any sequence of characters and '?' to match a single character are available.
-u
<username>
-p<password>
-
Supply the credentials to run the script.
Listing Connected Neighbor Interfaces for a node
Use the findConnectedNeighborInterfacesByNode
query to list all neighbor interfaces connected to a specified node.
The available output fields for this query are: uuid, name, nodeUUID, nodeName, ifIndex, ifAlias, speed, inSpeed, outSpeed, ifDescr, ifName, ifType, physicalAddress and managementMode.
Example:
nnmtopoquery.sh findConnectedNeighborInterfacesByNode -node mynode -fields nodeName,name,physicalAddress,managementMode
Listing Layer 2 Connections for a Node
Use the findL2ConnectionsByNode
query to list all layer 2 connections on a specified node.
The available output fields for this query are: connUUID, connName, connStatus, connStatusTimestamp, localNodeUUID, localNodeName, localIfUUID, localIfIndex, localIfAlias, localIfName, localIfDesc, localIfAddr, remoteNodeUUID, remoteNodeName, remoteIfUUID, remoteIfIndex, remoteIfAlias, remoteIfName, remoteIfDesc and remoteIfAddr.
Example:
nnmtopoquery.sh findL2ConnectionsByNode -node mynode -fields connUUID,connName,localIfIndex,remoteIfIndex
Listing Web Agent Settings of a Node
Use the findWebAgentSettingsByNode
query to list Web Agent settings of a specified node.
The available output fields for this query are: agentUuid, hostName, name, nodeUuid, nodeName, mode, agentEnabled, userName, port, scheme, timeout, lastModifiedBy and lastModified.
Example:
nnmtopoquery.sh findWebAgentSettingsByNode -node mynode -fields agentUuid, hostName, nodeUuid, nodeName, mode, userName
Listing All Web Agent Settings
Use the listWebAgentSettings
query to list all the Web Agent settings.
The available output fields for this query are: agentUuid, hostName, name, nodeUuid, nodeName, mode, agentEnabled, userName, port, scheme, timeout, lastModifiedBy and lastModified.
Example:
nnmtopoquery.sh findWebAgentSettingsByNode -node mynode -fields agentUuid, hostName, nodeUuid, nodeName, mode, userName
RETURN VALUE
nnmtopoquery.sh
exits with the status
0
(zero) if no errors were encountered, 1 otherwise.
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: