nv-l
[Top] [All Lists]

RE: [nv-l] Inventory

To: <nv-l@lists.us.ibm.com>
Subject: RE: [nv-l] Inventory
From: "Erdey, Raymond M" <Raymond.M.Erdey@erac.com>
Date: Fri, 7 Nov 2003 11:55:04 -0600
Delivery-date: Fri, 07 Nov 2003 18:05:30 +0000
Envelope-to: nv-l-archive@lists.skills-1st.co.uk
Reply-to: nv-l@lists.us.ibm.com
Sender: owner-nv-l@lists.us.ibm.com
Thread-index: AcOlPXZ637wkLmXzRZe6buU7uKBzgAAGQYogAABrg+A=
Thread-topic: [nv-l] Inventory
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@erac.com
web: http://www.geocities.com/rerdey/


-----Original Message-----
From: reamd@Nationwide.com [mailto:reamd@Nationwide.com]
Sent: Friday, November 07, 2003 8:43 AM
To: nv-l@lists.tivoli.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@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>
  • RE: [nv-l] Inventory, Erdey, Raymond M <=

Archive operated by Skills 1st Ltd

See also: The NetView Web