Jay,
Here's a simple script that graphs ifInOctets and ifOutOctets on a device:
#! /usr/bin/ksh
###########
# graph - script to start the NetView grapher for link util.
# usage: graph node instance
###########
# set line specifications for xnmgraph command
# ifInOctets
mibOID1=.1.3.6.1.2.1.2.2.1.10
# ifOutOctets
mibOID2=.1.3.6.1.2.1.2.2.1.16
mibLabel=
instanceRE=$2
instMatchOID=
instMatchRE=
instLabelOID=
instLabelTrunc=';'
# use mult-0.01 to convert to percentage
# mult=0.01
node=$1
displaywidth="1h"
poll="1m"
# start xnmgraph
# display graph on local console
# export DISPLAY=:0.0
/usr/OV/bin/xnmgraph -mib \
"$mibOID1:$mibLabel:$instanceRE:$instMatchOID: \
instMatchRE:$instLabelOID:$instLabelTrunc:$mult:$node, \
$mibOID2:$mibLabel:$instanceRE:$instMatchOID: \
instMatchRE:$instLabelOID:$instLabelTrunc:$mult:$node" \
-title "Interface Utilization for $node" \
-displayWidth $displaywidth \
-poll $poll \
-lineWidth 3 \
-geometry 600x450+150+110
Joel Gerber - I/T Networking Professional - USAA Information Technology Co.
- San Antonio, TX
* (210)913-4231 * mailto:Joel.Gerber@USAA.com "
http://www.usaa.com
-----Original Message-----
From: Pinkos, Jay [SMTP:jpinkos@bostongas.com]
Sent: Friday, September 22, 2000 11:14
To: 'nv-l@tkg.com'
Subject: [NV-L] Xnmgraph
Hi,
This may be a real simple one, but I am stumped...
>From a CLI using xnmgraph how can I graph more than one line of data?
Thanks,
Jay Pinkos
jpinkos@bostongas.com
PS - Can you please CC me individually on the reply as I don't get a chance
to check the list all the time. Thanks
|