Have you needed to right-click on a server within the java console and launch a URL to an internal website and pass information about the selected element as parms on the URL, well, here you go.
// first var is for the google website, replace that with the website you need to access
var site = “http://www.google.com”
// second var is the required items on the URL to issue the search
var search = “/search?q=”
// third var is how to pass the name of the element that is selected
var parm = element.name
// combine them all together into one string to represent the URL
var searchString = site + search + parm
// Launch the browser with the URL we just built
applet.getAppletContext().showDocument( new java.net.URL( searchString ), ‘googling’ )
There are several use cases, but the idea is the same. If you have an internal knowledgebase of error codes, or procedures, or a help desk ticket and the element or alarm has details (ie: ticket ID, error code) that you can leverage to build a URL to go directly to the webpage, this is the idea of how to do it.
Create the right click under Administration/Server/Operations. It will need to be a clientscript operation (you want the browser to come up on the client workstation, not the server). It can be an element operation, an alarm operation or both. I provided the element operation example, other contexts may/will require updates to the scirpt.
Hint, for alarm operations, the object you want to access is “alarms”, it is an array, so: alarms[ “TicketID” ]. Essentially, when the operation starts, via try/catch blocks, grab the data from the element or alarm then process the rest of the script.
Disclaimer: As with everything else at NetIQ Cool Solutions, this content is definitely not supported by NetIQ, so Customer Support will not be able to help you if it has any adverse effect on your environment. It just worked for at least one person, and perhaps it will be useful for you too. Be sure to test in a non-production environment.