[Top] [All Lists]

RE: [nv-l] NetView Custom Script

To: nv-l@lists.us.ibm.com
Subject: RE: [nv-l] NetView Custom Script
From: alejandro.gabay@reuters.com
Date: Tue, 23 Nov 2004 14:14:24 -0300
Delivery-date: Tue, 23 Nov 2004 17:16:51 +0000
Envelope-to: nv-l-archive@lists.skills-1st.co.uk
Reply-to: nv-l@lists.us.ibm.com
Sender: owner-nv-l@lists.us.ibm.com
James, Federico:
Your explanations were clear, helpfull and sharp.

Thank you very much for your help.

B. Regards
Alejandro Gabay

                      James Shanks                                              
                      <jshanks@us.ibm.c        To: nv-l@lists.us.ibm.com        
                      om>                      cc:                              
                      Sent by:                 Subject:  RE: [nv-l] NetView 
Custom Script                                              
                      us.ibm.com               Header:                          
             Internal Use Only                         
                      23/11/2004 13:39                                          
                      Please respond to                                         

Let me amplify what Federico has said.

Basically you don't pass anything in.  Actions driven from the NetView GUI are 
either parameter independent or they work by having the operator select a node 
from the map first.  The selected object is passed in the form of a selection 
name $OVselection1.  Now it is up to the command or application you have 
specified to do the rest.

  If the application is already written and requires command line input, then 
you have to launch it with a script.  The operator is going to select the node 
he wants the wants to run the application on from the map.  You specify in the 
registration file what attributes the node must have to be selected.   You then 
have access to the selection name via $OVselection1.  With this you launch a 
script that  queries the NetView databases using ovobjprint,  or ovtopodump, or 
whatever else is needed, for the attributes you want  and the script passes 
those to your pre-written application.

The alternative is to rewrite the application to do the work the script does 
before it does the real operation you want.

I'd look at  other examples of things we ship in /usr/OV/registration to see 
how it's done.  There is a general discussion in the NetView Programmer's 
Guide, but its hard to follow unless you look at a lot of examples.

James Shanks
Level 3 Support  for Tivoli NetView for UNIX and Windows
Tivoli Software / IBM Software Group

James Shanks
Level 3 Support  for Tivoli NetView for UNIX and Windows
Tivoli Software / IBM Software Group

        Visit our Internet site at http://www.reuters.com

Get closer to the financial markets with Reuters Messaging - for more
information and to register, visit http://www.reuters.com/messaging

Any views expressed in this message are those of  the  individual
sender,  except  where  the sender specifically states them to be
the views of Reuters Ltd.

<Prev in Thread] Current Thread [Next in Thread>

Archive operated by Skills 1st Ltd

See also: The NetView Web