[mrtg] Re: URGENT project

Michael Marziani michaelm at kw.com
Fri Feb 8 21:03:20 MET 2002


Something like:

#!/usr/bin/perl
#
# try.pl
#
for( $i=1; $i<255; $i++ ) {
    print "192.168.0.$i: ";
    print `snmpwalk 192.168.0.$i public system.sysUpTime`;
}


This assumes you have snmpwalk in your path.  Redirect output to a file
if you like.  This does the job pretty well.  For something quick and
dirty, no point using anything elegant like an SNMP module.  I never
thought a CCNA/CNE/MCSE would be asking this :)

-Mike


-----Original Message-----
From: Mike Singleton [mailto:MSingle at davita.com] 
Sent: Friday, February 08, 2002 1:30 PM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] URGENT project



I need to scan an entire subnet for every device that responds for
SysUpTime.... is the a qwik perl script that will do this?


===
Mike Singleton CCNA, CNE, MCSE
Network Analyst
(253) 272-1916  x1259
(253) 405-1968 (cellular)
msingle at davita.com

DaVita Inc.


--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi


--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list