Sun is unix too, it should work as is. I've clarified the instructions a
little in the
following append. You will have to do a 'chmod +x CiscoCounts.sh' after
typing this in or cut/pasting it. Get your Solaris admin to help you with
it.
Cordially,
Leslie A. Clark
IBM Global Services - Systems Mgmt & Networking
Detroit
Mike.Walsh@us.ing
.com To: nv-l@lists.tivoli.com
cc:
05/23/2002 03:22 Subject: Re: [nv-l] Cisco
Inventory
PM
Leslie,
In your very ample and complete bag of tricks, would you possibly have a
similar script for use with SUN?
Thanks,
Mike
Mike Walsh
****Please Note - New EMAIL Address mike.walsh@us.ing.com*********
612-342-3118
"Leslie Clark"
<lclark@us.ibm To: nv-l@lists.tivoli.com
.com> cc:
Subject: Re: [nv-l] Cisco
Inventory
05/23/2002
09:10 AM
Dave, if you have the CiscoWorks integration in, so that the extra fields
are set, this will pull a nice little report with counts. You can modify it
to produce the actual nodes.
Make a shell script like this one called CiscoCounts.sh in your local
scripts directory. Change the paths to match your environment.
(contents of CiscoCounts.sh)
#!/bin/ksh
#
# CiscoCounts.sh
#
#
#set -x
DIR=/usr/local/tivoli/scripts
RDIR=/usr/local/tivoli/reports
FORMAT=CiscoCounts.format
REPORT=CiscoCounts.report
echo "Counts of Cisco Device Types as of `date`" > $RDIR/$REPORT
/usr/OV/bin/nvdbformat -f $DIR/$FORMAT | tr -s "\012" >> $RDIR/$REPORT
(end contents of CiscoCounts.sh)
Make a CiscoCounts.format file in the same directory:
(contents of CiscoCounts.format)
###########################################################
SELECTRULE:isCisco=TRUE
SELECTFIELD:1:Selection Name
SELECTFIELD:2:ciscoType
#
GROUPBY:1:ciscoType
SORTBY:1:Selection Name
#
#
GROUPHEADER:${GROUPNAME} : ${NUMMATCH}
# uncomment this line to see the actual device names
#OUTPUT: ${1} ${2}
FOOTER:
FOOTER: Total Cisco Devices: ${NUMMATCH}
Cordially,
Leslie A. Clark
IBM Global Services - Systems Mgmt & Networking
Detroit
reamd@Nationwide.
com To:
nv-l@lists.tivoli.com
cc:
05/23/2002 09:43 Subject: [nv-l] Cisco
Inventory
AM
Hi All,
Can someone tell me how I can poll inventory information out of
my database? I've been asked to provide a list of all cisco devices we
monitor with Netview. I currently have 115000 objects defined in the
database and need to find out how many are cisco.
Thanks, Dave
AIX 4.33
6.0.3
---------------------------------------------------------------------
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)
---------------------------------------------------------------------
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)
---------------------------------------------------------------------
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)
|