nv-l

Re: [nv-l] Menu Creation

2004-01-09 03:02:51
Subject: Re: [nv-l] Menu Creation
From: "Oliver Bruchhaeuser" <oliver.bruchhaeuser AT de.ibm DOT com>
To: nv-l AT lists.us.ibm DOT com
Date: Fri, 9 Jan 2004 08:56:04 +0100
A1:
Read about it in the NetView Programmers Reference:
      Chapter 3. Creating and Using the Application Registration File
            Adding Your Application to an Object Menu

A2:
Read about it in the NetView 7.1.3 (or 7.1.4) Release Notes:
      Web Console Enhancements
            Customizing the Web Console Menu

A3:
You can only pass the "Selection Name" to a command you call from the menu.
But you can call your own script and do something like:
      IpAddress=`\usr\ov\bin\nvgethost <Selection Name> | /usr/bin/awk
'{print $3}' | /bin/sed s/,//g`
before calling the web browser.

Hope this helps.

Kind regards

Oliver


|---------+---------------------------->
|         |           Meyos Yemveng    |
|         |           <yemveng AT yahoo DOT ca|
|         |           >                |
|         |           Sent by:         |
|         |           owner-nv-l@lists.|
|         |           us.ibm.com       |
|         |                            |
|         |                            |
|         |           07.01.2004 20:52 |
|         |           Please respond to|
|         |           nv-l             |
|         |                            |
|---------+---------------------------->
  
>------------------------------------------------------------------------------------------------------------------|
  |                                                                             
                                     |
  |       To:       netview Tivoli <nv-l AT lists.us.ibm DOT com>               
                                            |
  |       cc:                                                                   
                                     |
  |       Subject:  [nv-l] Menu Creation                                        
                                     |
  |                                                                             
                                     |
  |                                                                             
                                     |
  
>------------------------------------------------------------------------------------------------------------------|



Hi Folks,
I have added a new menu to invoke a web page from a selected device on the
Map, to which I am passing the IP Address (or hostname) of the selected
device as an argument.

Fact-1- I have Managed to have that Menu from the MenuBar "Monitor" ==>
"Events" ==> "MyMenuSelection"

Q1: How do I make that new menu "MyMenuSelection" available when right
clicking on the selected device?

Q2: How do I make that new menu "MyMenuSelection" available on the Web
Console

Q3: How Can I extract the IP Address of the selected device instead of the
selection name (to be used as argument to my command)

Cheers,


Thank You,
Meyos
"ALLEZ LES LIONS INDOMPTABLES"



Post your free ad now! Yahoo! Canada Personals