nv-l
[Top] [All Lists]

Re: How to send a SNMP reset from Netview using GUI

To: nv-l@lists.tivoli.com
Subject: Re: How to send a SNMP reset from Netview using GUI
From: lclark@us.ibm.com
Date: Fri, 7 Apr 2000 12:10:35 -0400

If you know the name of the variable you need to set, this can be
fairly trivial. The SNMP protocol only has a couple of verbs (get, set,
etc), so I assume that by RESET you mean that you need a way to
programmatically send a SET of a certain variable that causes your
device to do a reset. This is usually in a proprietary mib.

With the appropriate MIB file loaded in Netview, first practice walking
that mib tree and issuing the SET  to the device via the MIB Browser gui.
Provide the correct write community string either in the gui, or in
Netview's
xnmsnmpconf (Options....SNMP). Consider the implications.....

Once you have worked that out, check out the man page for the snmpset
command that comes with Netview.  Try issuing that from the commandline.
You may either provide the community string on the commandline, or let
it default to what Netview knows. Again, consider the implications.

Then try doing it from a shell script.

Then try adding a menu selection to the Netview gui by adding an
Application Registration File in /usr/OV/registration/C so you can run it
for a selected node. For a model to work from, look for something that
uses xnmappmon, which is provided by Netview to give a nice output
window for your commands. Here's a sample of a registration file that
uses xnmappmon  to get you started.

As David says, see the Programmers Guide for details on registration
files. And by all means, consider the implications. You may want to
read Chapter 2, Netview Security, before putting this into production.


Application "Show All Events"
{
    Description {
        "Greps all events for a node",
        "from trapd.log"
    }

    Version "V5R1";

    Copyright {
      "Rinky-Dink....",
            ""
    }

        Command -Shared  "${xnmappmon:-/usr/OV/bin/xnmappmon}";

    MenuBar "Test"
    {
        <83>    "Logged Events"        f.action "showevents";
    }

/*******/

    Action "showevents" {
        SelectionRule isNode && isIP;
        MinSelected 1;
         Command " \
                /usr/OV/bin/xnmappmon   \
                -commandTitle \" All Events \"    \
                -geometry 900x600                    \
                -cmd grep \"$OVwSelection1\" /usr/OV/log/trapd.log* ";
    }
}


Cordially,

Leslie A. Clark
IBM Global Services - Systems Mgmt & Networking
Detroit

---------------------- Forwarded by Leslie Clark/Southfield/IBM on
04/07/2000 11:53 AM ---------------------------

mike.raad@FR.IBM.COM@tkg.com on 04/07/2000 11:03:01 AM

Please respond to IBM NetView Discussion <nv-l@tkg.com>

Sent by:  owner-nv-l@tkg.com


To:   NV-L@UCSBVM.ucsb.edu
cc:
Subject:  [NV-L] How to send a SNMP reset from Netview using GUI





Hello Folks,
I have a requirement from Netview that needs to be met ASAP :
I need to send an SNMP command (Mib 2 or Proprietary or private MIB) like
RESET, or other kind of command that will really do something important on
the target machine.  And I need to do so from a contextual menu on the
object itself, like a router, a RS/6000, or any machine using SNMP. Here is
some background infos :
We have many machines which have their own MIBs (Proprietary or private
MIB), these MIBs have been developped in-house and have commands that could
be sent to the machines from a management station based on a PDP 11 and a
propietary OS running on this PDP 11. We nned to replace this PDP 11 by
Netview For AIX and  we need, in case the target presents a problem or an
alert detected by the Netview daemons to take a corrective and sometimes a
radical action which will RESET or swich off the the machine. And these
actions need to be taken directly by the Help Desk people from the Netview
GUI, and with a point and click action.
Please if anyone has done this or thought about it before let me know.
Some people told me that I need to use other OEM products like : AdventNet
to build my own applet in Java.

Cordialement - Best Regards
Mike Raad
Tel : +33 (0) 2 40 41 44 64 , GSM 0685035546
Systems & Network Management Specialist - TIVOLI
IBM France   (e-mail address : mike.raad@fr.ibm.com)


_________________________________________________________________________

NV-L List information (unsubscribing, policies, posting, digest version,
searchable archives): http://www.tkg.com/nv-l


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

Archive operated by Skills 1st Ltd

See also: The NetView Web