nv-l
[Top] [All Lists]

Re: Simple agent

To: nv-l@lists.tivoli.com
Subject: Re: Simple agent
From: Ray Schafer <schafer@tkg.com>
Date: Mon, 31 Jan 2000 16:49:03 -0600
Leslie Clark wrote:

> It seems to me that if there is an snmp agent on the target box that knows
> the answer
> to the question you have in mind, you should just use the Agent Policy
> Manager to
> monitor the mib variable. That component of Netview will create an icon and
> manage
> its color as the thresholds are passed and reset, and you also have the
> option of
> storing the values for further reporting. That data can be graphed with
> Netview.
> The APM uses MLM (included free on the Netview CD) which can be installed
> on
> the Netview box itself.

Of course - Leslie is correct this is a much more simple method of doing it.
You can even install the MLM on the NetView box for the demo purpose (disable
trap reception on the MLM!).



> The compaq mib has all sorts of useful information in it. Or is the problem
> that it is
> Dec Alpha?
>
> Cordially,
>
> Leslie A. Clark
> IBM Global Services - Systems Mgmt & Networking
> (248) 552-4968 Voicemail, Fax, Pager
>
> ---------------------- Forwarded by Leslie Clark/Southfield/IBM on
> 01/29/2000 11:15 AM ---------------------------
>
> Steve Stamper <sstamper@FOREMOST.COM>@UCSBVM.UCSB.EDU> on 01/28/2000
> 03:37:53 PM
>
> Please respond to Discussion of IBM NetView and POLYCENTER Manager on
>       NetView <NV-L@UCSBVM.UCSB.EDU>
>
> Sent by:  Discussion of IBM NetView and POLYCENTER Manager on NetView
>       <NV-L@UCSBVM.UCSB.EDU>
>
> To:   NV-L@UCSBVM.UCSB.EDU
> cc:
> Subject:  Re: Simple agent
>
> I've kind of 'dummied' this up a bit to protect the innocent, but it gives
> you an idea of a system I have in place to report in a specific format.
> Run
> it from cron.
>
> =====<SNIP>=====
> #!/bin/ksh
>
> SNMPWALK=/usr/OV/bin/snmpwalk
> WHERE=/usr/local/EOMreports
> SNMPTRAP=/usr/OV/bin/snmptrap
>
> gogetaix()
> {
>     echo "$1  `date`"
>     $SNMPWALK $1 .1.3.6.1.4.1.2.6.4.4 > $$.out
>     if [ $? > 0 ]; then
>         echo "snmpwalk error!"
>     fi
>     grep "FileSystemName" $$.out | cut -f3 -d":"  > $$a.out
>     grep "FileSystemBlock" $$.out | cut -f3 -d":" > $$b.out
>     grep "FileSystemBfree" $$.out | cut -f3 -d":" > $$c.out
>     printf "  %-20s%20s%20s%6s\n" FileSystemName FileSystemBlock
> FileSystemBfree %Used
>     paste $$a.out $$b.out $$c.out | \
>         awk '{printf "  %-20s%20.0f%20.0f%5.0f%%\n", $1, $2,
> $3,(($2-$3)/$2*100)}'
>     rm $$a.out $$b.out $$c.out $$.out
>     echo "\n"
> }
>
> {
> gogetaix system1
> gogetaix system2
> gogetaix system3
> } > $WHERE/AIXreport
>
> $SNMPTRAP $1 "" $1 6 5551212 1 .1.3.6.1.4.1.2.6.1 octetstring "AIX Size
> Report Ready" 2>/dev/null 2>>$LOGFILE
>
> =====<SNIP>=====
>
> Good Luck
> Steve Stamper
> Grand Rapids, MI
>
> ----- Original Message -----
> From: Bob Stamm <Robert_Stamm@RES.RAYTHEON.COM>
> To: <NV-L@UCSBVM.UCSB.EDU>
> Sent: Friday, January 28, 2000 1:22 PM
> Subject: Simple agent
>
> > I am an engineer for Raytheon Co.  Here we build Air Traffic Control
> > Systems and I have
> > installed NetView for a demo of how we might use it for Control and
> > Monitoring of the DEC
> > Alpha Unix boxes (now Compaq Computers) we use to power our ATC
> Controller
> > consoles.
> >
> > What I wonder is if anyone has a sample simple agent (written in C) that
> > can be used by me
> > to query stuff in the MIB and periodically report to NetView a status of
> > some MIB variable.
> > Upon receipt of this event I'd like to change a symbol representing the
> > status of that agent.
> > I'd probably only run the agent on a single workstation since I have to
> put
> > it into an operational
> > ATC installation in Munich and I'm sure I'll have limited access to their
> > equipment.
> >
> > Is there a source of information (sample code) that I can refer to to
> help
> > me put together a
> > quick demo?  The only resources I've got are a demo copy of NetView atnd
> my
> > own wits ...
> > A piece of working samplle code would go a long way to help me pull this
> > off.
> >
> > Bob
> >

--
Ray Schafer                   | schafer@tkg.com
The Kernel Group              | Distributed Systems Management
http://www.tkg.com


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

Archive operated by Skills 1st Ltd

See also: The NetView Web