nv-l
[Top] [All Lists]

RE: [nv-l] xnmgraph question

To: "Dietmar Gaulhofer" <DIETMAR_GAULHOFER@at.ibm.com>, <nv-l@lists.tivoli.com>
Subject: RE: [nv-l] xnmgraph question
From: "Westphal, Raymond W" <Raymond.W.Westphal@erac.com>
Date: Mon, 15 Sep 2003 12:13:49 -0500
Delivered-to: mailing list nv-l@lists.tivoli.com
Delivery-date: Mon, 15 Sep 2003 18:25:33 +0100
Envelope-to: nv-l-archive@lists.skills-1st.co.uk
List-help: <mailto:nv-l-help@lists.tivoli.com>
List-post: <mailto:nv-l@lists.tivoli.com>
List-subscribe: <mailto:nv-l-subscribe@lists.tivoli.com>
List-unsubscribe: <mailto:nv-l-unsubscribe@lists.tivoli.com>
Mailing-list: contact nv-l-help@lists.tivoli.com; run by ezmlm
Thread-index: AcN7jc/uMF79bFfXSo28twWQ2L6XAgAHj4WA
Thread-topic: [nv-l] xnmgraph question
Correct me if I am wrong, but I thought xnmgraph was the application used for 
graphing data (in snmpCollect database). When you use the "Graph Collected 
Data: SNMP ..", NetView opens an xnmgraph window. Then you can "Update Data" 
from the File menu within the xnmgraph window.

Isn't xnmappmon used for Test menu items such as ping, demandpoll, etc.?

Thanks,
Ray Westphal
Enterprise Rent-A-Car



-----Original Message-----
From: Dietmar Gaulhofer [mailto:DIETMAR_GAULHOFER@at.ibm.com] 
Sent: Monday, September 15, 2003 8:32 AM
To: Westphal, Raymond W
Subject: Re: [nv-l] xnmgraph question



xnmappmon -cmd "netstat -a" for example - and the restart works fine here on my 
box



*************************************************************
Dietmar Gaulhofer, IBM Österreich
Systems Engineer
ITS - Integrated Technology Services - Unit Austria
Email: Dietmar_Gaulhofer@at.ibm.com
Tel: +43/1/21145-2756
**************************************************************


"Westphal, Raymond W" <Raymond.W.Westphal@erac.com> on 15.09.2003 15:14:44

To:    <nv-l@lists.tivoli.com>
cc:
Subject:    [nv-l] xnmgraph question


Hello Everyone.

NetView 7.1.3 on AIX 5.2

I wrote a little script to capture the output from a netstat command and output 
to a file in the format xnmgraph would like. The graph works fine but I cannot 
simply select Update Data from the menu. In order to update the data - I have 
to rerun the xnmgraph script. Here are the scripts and
output:

Thanks in advance.
Ray Westphal
Enterprise Rent-A-Car

The script that collects the data:
#!/bin/ksh
#
while true
do
d=`date +%T`
y=`date +%m`.`date +%d`.`date +%y`-
today=`date +"%b %d"`
tot=`/usr/bin/netstat -p ip | awk '/total packets received/ {print $1}'` 
drop=`/usr/bin/netstat -p ip | awk '/packets dropped due to the full socket/ 
{print $1}'` echo "scale=5;$drop / $tot * 100" | bc | read test sleep 10 echo 
"2 0 $y$d $test" >> /tmp/time done

The output:
2 0 09.15.03-07:58:03 18.37500
2 0 09.15.03-07:58:13 18.37100
2 0 09.15.03-07:58:23 18.36300
2 0 09.15.03-07:58:33 18.36000
2 0 09.15.03-07:58:43 18.35900

The xnmgraph script:
#!/bin/ksh
#
day=`date +%m/%d`
exec /usr/OV/bin/xnmgraph < /tmp/time \
   -title "Percent - $day" \
   -lineWidth 1 \
   -units "Percent" \
   -mib "+2:Percent:::::::"
   -displayWidth 4d









---------------------------------------------------------------------
To unsubscribe, e-mail: nv-l-unsubscribe@lists.tivoli.com
For additional commands, e-mail: nv-l-help@lists.tivoli.com

*NOTE*
This is not an Offical Tivoli Support forum. If you need immediate
assistance from Tivoli please call the IBM Tivoli Software Group
help line at 1-800-TIVOLI8(848-6548)


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

Archive operated by Skills 1st Ltd

See also: The NetView Web