RE: [nv-l] Inventory
2003-11-07 13:05:30
Try the following KSH script that list a wide range of Cisco devices. Feel
free to use just the OIDs that you are interested in...
====================Cut Here====================
#!/bin/ksh
if [ -x /usr/bin/awk ]
then
typeset -rs AWK="/usr/bin/awk"
else
typeset -rs AWK="awk"
fi
if [ -x /usr/OV/bin/nvUtil ]
then
typeset -rs NVUTIL="/usr/OV/bin/nvUtil"
else
typeset -rs NVUTIL="nvUtil"
fi
typeset -rs strNodeList=$( ${NVUTIL} e "((('SNMP
sysObjectID'~'1\.3\.6\.1\.4\.1\.9\.1')
|| ('vendor'='cisco Systems')
|| ('SNMP sysObjectID'~'1\.3\.6\.1\.4\.1\.9\.5')
|| ('SNMP sysObjectID'~'1\.3\.6\.1\.4\.1\.2467\.4\.4'))
&& (('isNode'=True)
&& (!('IP Status'='Unmanaged'))))" "%Selection Name%" )
for strNode in ${strNodeList}
do
print "\n\nDevice: ${strNode}"
${NVUTIL} e "(('Selection Name'~'${strNode}')
&& ('isInterface'=True))" "%IP Address% %Selection Name%" \
| ${AWK} '{ printf("\t%s\n",$0) }'
done
====================Cut Here====================
Raymond Erdey
System Administrator
Network Management System Administration
Email: raymond.m.erdey AT erac DOT com
web: http://www.geocities.com/rerdey/
-----Original Message-----
From: reamd AT Nationwide DOT com [mailto:reamd AT Nationwide DOT com]
Sent: Friday, November 07, 2003 8:43 AM
To: nv-l AT lists.tivoli DOT com
Subject: [nv-l] Inventory
Hi All,
Can someone give me a command that would list all cisco routers
and there interfaces that are on netview. Thanks, Dave
Netview 7.1.3
AIX 5.1
---------------------------------------------------------------------
To unsubscribe, e-mail: nv-l-unsubscribe AT lists.tivoli DOT com
For additional commands, e-mail: nv-l-help AT lists.tivoli DOT 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> |
- RE: [nv-l] Inventory,
Erdey, Raymond M <=
|
|
|