Custom Attributes in Full URLs

There are a variety of methods to limit Launch Actions: Concept Link IconSee Also

Custom Attributes enable an NNMi administrator to add information to the Node object or Interface object. Custom Attributes can also be set by external applications that have been integrated with NNMi.

The Node form: Custom Attributes tab and Incident form: Custom Attributes tab display a table view of any Custom Attributes that have been added to the selected object. See Add a Custom Attribute to One Object.

To determine which group of Custom Attributes are available for a specific Node or Interface, navigate to a Node view or Interface view, select an instance of the object, click the  Open icon and navigate to the Custom Attributes tab. The items listed in the table are the Custom Attributes for that particular node or interface. For example, the following illustration shows a Node form with two Custom Attribute entries.

To pass Custom Attribute data within the Full URL, type (or copy and paste) the exact text string from the Node or Interface form, Custom Attributes tab:

${customAttributes[name=<yourAttrName>].value}

Place the Custom Attribute into a location in the Full URL that enables the result you want:

Note If you copy/paste this URL, remove the spaces that were added for line-ending purposes in the documentation.

http://<serverName>:<portNumber>/<application>?<yourURLparameter1>= ${customAttributes[value= <yourAttrValue>].name}&<yourURLparameter2>= ${customAttributes[name= <yourAttrName>].value}

Note To extend the NNMi environment with additional applications, you must deploy them into a separate web-server or application-server on the same or different physical server from where the NNMi web-server or application-server is installed. See the Network Node Manager Developer Toolkit for more information.

<serverName> = the appropriate fully-qualified domain name

<portNumber> = the appropriate port number

  • Example 1:

    mailto:${customAttributes[name=Admin].value}?subject=URGENT Action Required&body=${customAttributes[name=message].value}&${hostname} router needs attention.

    Resulting URL:

    mailto:JohnDoe@myCompany.com?subject=URGENT Action Required&body=Building-5:Floor-23.&cisco4.myCo.com router needs attention.

  • Example 2: 

    http://myCo.com/emailAdmin.jsp?name= ${hostname}&contact= ${customAttributes[name= Admin].value}&body= ${customAttributes[name=message].value}

    Resulting URL:

    http://myCo.com/emailAdmin.jsp?name= cisco4.myCo.com&contact= johnDoe@myCo.com&body= Building-5:Floor-23

Note If the Custom Attribute that you request in the Full URL does not exist for the selected Node or Interface, the resulting URL passes an empty string.