04-05-2021 04:15 AM
Hello,
Does anybody know the OID that tells whether the interfaces on a switch are configured as switchport mode dot1q-tunnel for catalyst switches 29/35 etc.?
04-05-2021 06:24 AM
try below OID :
04-05-2021 07:06 AM
2: notTrunking - in this OID will indicate access port, but will not make it clear that this port is dot1q-tunnel.
interface GigabitEthernet0/1
switchport access vlan 123
switchport mode dot1q-tunnel
04-05-2021 07:42 AM
Look at the same URL you see access port if you walk SNMPWALk you see results.
04-05-2021 10:49 AM
Switch does not response to this OID, and an CISCO-L2-TUNNEL-CONFIG-MIB too.
C3560G_TV-2#show inventory
NAME: "1", DESCR: "WS-C3560G-24TS"
PID: WS-C3560G-24TS-E , VID: V06, SN: xxx
C3560G_TV-2#show dot1q-tunnel
dot1q-tunnel mode LAN Port(s)
-----------------------------
Gi0/1
snmpwalk -v2c -Cc -c xxx x.x.x.x 1.3.6.1.4.1.9.9.46.1.6.1.1.29
SNMPv2-SMI::enterprises.9.9.46.1.6.1.1.29 = No Such Object available on this agent at this OID
04-05-2021 10:59 AM
Can you post show version
04-05-2021 11:04 AM
C3560G_TV-2#show version
Cisco IOS Software, C3560 Software (C3560-IPSERVICES-M), Version 12.2(50)SE5, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2010 by Cisco Systems, Inc.
Compiled Tue 28-Sep-10 13:21 by prod_rel_team
Image text-base: 0x01000000, data-base: 0x02B00000
ROM: Bootstrap program is C3560 boot loader
BOOTLDR: C3560 Boot Loader (C3560-HBOOT-M) Version 12.2(44r)SE8, RELEASE SOFTWARE (fc1)
C3560G_TV-2 uptime is 2 days, 6 hours, 31 minutes
System returned to ROM by power-on
System image file is "flash:c3560-ipservices-mz.122-50.SE5/c3560-ipservices-mz.122-50.SE5.bin"
04-05-2021 11:10 AM
what happens when you do SNMP walk root level?
http://www.circitor.fr/Mibs/Html/S/SNMPv2-SMI.php#Integer32
04-05-2021 11:23 AM
switch replied ~ 31k lines
04-05-2021 11:41 AM - edited 04-05-2021 11:41 AM
you can use grep to grep what you looking.
snmpwalk -v2c -Cc -c xxx x.x.x.x | grep trunk
04-05-2021 12:03 PM
only port channels in answear
snmpwalk -v2c -Cc -c xxx x.x.x.x 1.3 | grep trunk
IF-MIB::ifAlias.5001 = STRING: trunk
IF-MIB::ifAlias.5002 = STRING: trunk2
SNMPv2-SMI::enterprises.9.2.2.1.1.28.5001 = STRING: "trunk"
SNMPv2-SMI::enterprises.9.2.2.1.1.28.5002 = STRING: "trunk2"
snmpwalk -v2c -Cc -c xxx x.x.x.x 1.3 | grep 10101 - in attach
10101 - gi0/1 - dot1q-tunnel
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide