Perl and SNMP => List All interface ?

Discussion in 'Perl Misc' started by Mag, Sep 23, 2009.

  1. Mag

    Mag Guest

    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
     
    Mag, Sep 23, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mudcat

    What's the best SNMP interface?

    Mudcat, Oct 11, 2005, in forum: Python
    Replies:
    1
    Views:
    335
    Grig Gheorghiu
    Oct 11, 2005
  2. Dirk Van de moortel

    Receiving snmp traps in perl on Win platform?

    Dirk Van de moortel, Jun 2, 2008, in forum: Perl
    Replies:
    1
    Views:
    2,942
    Dirk Van de moortel
    Jun 4, 2008
  3. Shabbir Ahmed

    (snmp code) perl to python

    Shabbir Ahmed, Apr 25, 2010, in forum: Python
    Replies:
    2
    Views:
    483
    John Bokma
    Apr 25, 2010
  4. Wak Karot
    Replies:
    0
    Views:
    247
    Wak Karot
    May 2, 2008
  5. milaus

    SNMP module to query net-snmp

    milaus, Aug 31, 2006, in forum: Perl Misc
    Replies:
    3
    Views:
    477
    Dr.Ruud
    Aug 31, 2006
Loading...

Share This Page