Perl and SNMP => List All interface ?
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 ..
../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 12:07 AM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.