Administer > Integrate NNMi Elsewhere with URLs > Pass Environment Attributes

Pass Environment Attributes

Note See Configure Launch Actions for information about adding menu items to the NNMi console menus.

You can send any number of Environment Attributes (envattrs) when launching NNMi from another website or program. You can use getEnvAttr to retrieve the current envattrs name=value pairs and pass them back:

${getEnvAttr(<applicationAttrName>)}

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

http://<yourServerName>:<portNumber>/<application>?<yourURLparameter1>= ${getEnvAttr(<applicationAttrName1>)}&<yourURLparameter2>= ${getEnvAttr(<applicationAttrName2>)}

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

For example, the following Full URL provides an Action within the NNMi console that returns the user to exactly the same place within your company website where the user was before launching NNMi:

http://<myHost>/<myApplication>?com.my.sessionId= ${getEnvAttr(com.my.sessionId)}&com.my.objectName= $getEnvAttr(com.my.objectName)}

The Full URL entry could result in the following URL:

http://<myHost>/<myApplication>com.my.sessionId=123&com.my.objectName=node25

Note If the Environment Attribute that you request in your Action does not exist for the selected view or form, the resulting URL passes an empty string.