Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Perl Misc (http://www.velocityreviews.com/forums/f67-perl-misc.html)
-   -   Perl and SNMP => List All interface ? (http://www.velocityreviews.com/forums/t911432-perl-and-snmp-list-all-interface.html)

Mag 09-23-2009 07:18 AM

Perl and SNMP => List All interface ?
 
Hi

anyone have a sample of perl script that list all
interface available on a cisco router in SNMP ?

because use .1.3.5.xxx it's not best ..

In sample:


../test.pl -H IP_Router -C sent :

Interface 1 :: Ethernet0/0
Interface 2 :: GigabitEthernet0/0
Interface 3 :: FastEthernet1/0
Interface 4 :: GigabitEthernet2/0
Interface 6 :: Null0
Interface 8 :: GigabitEthernet2/0.4
Interface 9 :: GigabitEthernet2/0.500
Interface 10 :: GigabitEthernet2/0.1051
Interface 18 :: Loopback1
Interface 19 :: GigabitEthernet0/0-mpls layer
Interface 20 :: GigabitEthernet2/0.1055
Interface 21 :: GigabitEthernet2/0.1056

and if i want know all information (in/out/packet), i can get
it in start with specify "Interface 20"

thanks for your help


All times are GMT. The time now is 11:42 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.