Re: Finding what ports on Cat switch are trunks




<pzaloum@xxxxxxxxx> wrote in message
news:1141059831.591024.213770@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have many Catalyst switches that I am polling with SNMP. I am trying
to find what ports are acting as trunks.
On most of the switches it works properly, using
vlanTrunkPortDynamicStatus.
It returns output like:
CISCO-VTP-MIB::vlanTrunkPortDynamicStatus.48 = INTEGER: notTrunking(2)
CISCO-VTP-MIB::vlanTrunkPortDynamicStatus.49 = INTEGER: trunking(1)

etc.
However sometimes it will only return the virtual port doing the
trunking over other physical ports:

CISCO-VTP-MIB::vlanTrunkPortDynamicStatus.27 = INTEGER: trunking(1)
RFC1213-MIB::ifType.27 = INTEGER: propVirtual(53)

I want to know what PHYSICAL ports are running on the bridge over port
"27"

Does anyone have any ideas to help me out?
Thanks
Pat


I do not remember exact MIB, but there are a series of MIBs, which return
the interface (or port) description of the SNMP instance. Try to use
SNMPWALK against that switch, and see what MIB will return the port name for
the instance .27.

Good luck,

Mike
www.ciscoheadsetadapter.com


.



Relevant Pages

  • RE: Network scanning
    ... > be sourced on one port.. ... > plenty of cisco switches that do this anyhow, ... > Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich ... > informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. ...
    (Security-Basics)
  • Re: Port trunking / link aggregation problem
    ... A port trunk always sends packets from a particular source ... A single link is designated for flooding broadcasts and packets ... As a result typical switches allow you to do load balancing based ...
    (comp.dcom.lans.ethernet)
  • Help with the logic of my structure?
    ... I am using snmp to walk a couple of tables on some switches to output a list ... multiple ports and or the same port but with different hosts. ... I also tried replacing the "foreach" with a "while - ... push @pport, "$host-$_"; ...
    (perl.beginners)
  • Re: Duplex/Speed Hardcoding
    ... Have a colleague who insists every port on every switch be hardcoded to ... general app - that they now only hardcode the duplex settings? ... A long while ago we had a pair of non-Cisco switches and if you ...
    (comp.dcom.sys.cisco)
  • RE: Use of Taps for IDS
    ... I had a feeling not all switches behaved in the same way. ... those that mirror from a VLAN before now rather than individual ports, ... >taps, but port mirroring, so I guess it's sorta on topic... ...
    (Focus-IDS)