[mrtg] Re: cisco 5000 switch . uplink port ?

Knut A. Syed Knut.Syed at nhh.no
Wed Jul 7 11:09:27 MEST 1999


Werner Dundler <Werner.Dundler at austrocontrol.at> writes:

> i figured out the port (3/1) (show port) wich i want to manage.
> then i searched the mib of the switch to get the "real" interface
> number - at this point i failed.  how can i get the "real" interface
> number from 3/1 so that i am able to log the traffic via :
> [port]:public@[ip] with mrtg.

If I understand your question correctly you are looking for the
IfIndex of an interface:

Switch> show port 3/1
Port  Name               Status     Vlan       Level  Duplex Speed Type
----- ------------------ ---------- ---------- ------ ------ ----- ------------
 3/1  AK                 connected  10         normal   half    10 10BaseFL MM

Port  Security Secure-Src-Addr   Last-Src-Addr     Shutdown Trap     IfIndex
----- -------- ----------------- ----------------- -------- -------- -------
 3/1  disabled                                     No       disabled 10     
                                                                     XX
                                                  This is what you need.

Alternatively "show port ifindex" will give you the list:

Switch> show port ifindex

Port   ifIndex
-----  -------
 1/1   3
 1/2   4
 2/1   22
 2/2   23
 2/3   24
 2/4   25
[...]

~kas

--
* To unsubscribe from the mrtg mailing list, send a message with the
  subject: unsubscribe to mrtg-request at list.ee.ethz.ch
* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg


More information about the mrtg mailing list