Blog Entry
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[3][ "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.
enjoy
Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).
It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.
Related Articles
- Novell Operations Center – Copy selected item to Clipboard
- Novell Operations Center Scripting – rexec right-click Operation
- NetIQ Operations Center: How to Copy Alarm(s) To Clipboard
- Client Side Scripting tips in Novell Operations Center operators console
- NetIQ (Novell) Operations Center - Element Navigation / Selection Javascript Example
User Comments
- tisenberg's blog
- Be the first to comment! To leave a comment you need to Login or Register
- 2812 reads


0