Benutzer-Werkzeuge

Webseiten-Werkzeuge


omniswitch-os2260-os2360-os2x60-snmpwalk-vlan-und-mac

Ausgabe von VLAN-Zugehörigkeit und MAC-Adressen via SNMPv3

SNMPv3 Konfiguration

-> user snmpv3 password-prompt read-write all sha+aes
Enter Password:  *********
Confirm Password:   *********
   
Thu Oct 27 12:57:31 : AAA Switch-Access INFO message:
+++ User snmpv3 created  by admin.

VLAN Zuordnung

Die zugehörigen MIB Objekte zu einem Kommando lassen sich leicht über die Dokumentation herausfinden!

Herausfinden der OID

-> show snmp object identifier vpaTable
1.3.6.1.4.1.6486.803.1.2.1.3.1.1.2.1

Abfrage via SNMPv3

benny@Bennys-MacBook-Pro OS2260_5.1.43.R02_GA-MIBs % snmpwalk -m ALL -M . -v 3 -a sha -A PASSWORT -x aes -X PASSWORT -u snmpv3 -l authPriv 192.168.2.190 1.3.6.1.4.1.6486.803.1.2.1.3.1.1.2.1
ALCATEL-ENT3-VLAN-MGR-MIB::vpaType.1.1002 = INTEGER: cfgDefault(1)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaType.1.1003 = INTEGER: cfgDefault(1)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaType.1.1004 = INTEGER: cfgDefault(1)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaType.1.1005 = INTEGER: cfgDefault(1)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaType.1.1006 = INTEGER: cfgDefault(1)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaType.1.1007 = INTEGER: cfgDefault(1)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaType.1.1008 = INTEGER: cfgDefault(1)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaType.1.1009 = INTEGER: cfgDefault(1)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaType.1.1010 = INTEGER: cfgDefault(1)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaType.1.1011 = INTEGER: cfgDefault(1)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaType.1.1012 = INTEGER: cfgDefault(1)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaType.10.1012 = INTEGER: qTagged(2)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaType.11.1001 = INTEGER: qTagged(2)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaType.11.1012 = INTEGER: qTagged(2)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaType.12.1001 = INTEGER: qTagged(2)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaType.12.1012 = INTEGER: qTagged(2)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaType.15.1001 = INTEGER: cfgDefault(1)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaType.15.1012 = INTEGER: qTagged(2)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaState.1.1002 = INTEGER: inactive(2)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaState.1.1003 = INTEGER: inactive(2)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaState.1.1004 = INTEGER: inactive(2)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaState.1.1005 = INTEGER: inactive(2)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaState.1.1006 = INTEGER: inactive(2)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaState.1.1007 = INTEGER: inactive(2)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaState.1.1008 = INTEGER: inactive(2)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaState.1.1009 = INTEGER: inactive(2)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaState.1.1010 = INTEGER: inactive(2)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaState.1.1011 = INTEGER: inactive(2)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaState.1.1012 = INTEGER: forwarding(0)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaState.10.1012 = INTEGER: forwarding(0)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaState.11.1001 = INTEGER: inactive(2)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaState.11.1012 = INTEGER: forwarding(0)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaState.12.1001 = INTEGER: inactive(2)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaState.12.1012 = INTEGER: forwarding(0)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaState.15.1001 = INTEGER: inactive(2)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaState.15.1012 = INTEGER: forwarding(0)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaStatus.1.1002 = INTEGER: active(1)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaStatus.1.1003 = INTEGER: active(1)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaStatus.1.1004 = INTEGER: active(1)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaStatus.1.1005 = INTEGER: active(1)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaStatus.1.1006 = INTEGER: active(1)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaStatus.1.1007 = INTEGER: active(1)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaStatus.1.1008 = INTEGER: active(1)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaStatus.1.1009 = INTEGER: active(1)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaStatus.1.1010 = INTEGER: active(1)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaStatus.1.1011 = INTEGER: active(1)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaStatus.1.1012 = INTEGER: active(1)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaStatus.10.1012 = INTEGER: active(1)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaStatus.11.1001 = INTEGER: active(1)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaStatus.11.1012 = INTEGER: active(1)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaStatus.12.1001 = INTEGER: active(1)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaStatus.12.1012 = INTEGER: active(1)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaStatus.15.1001 = INTEGER: active(1)
ALCATEL-ENT3-VLAN-MGR-MIB::vpaStatus.15.1012 = INTEGER: active(1)

MAC-Adressen auf den Ports

Die zugehörigen MIB Objekte zu einem Kommando lassen sich leicht über die Dokumentation herausfinden!

Herausfinden der OID

-> show snmp object identifier alaSlMacAddressGlobalTable
1.3.6.1.4.1.6486.803.1.2.1.8.1.1.8

Abfrage via SNMPv3

Exemplarisch für den Port 1/1/1

Aufbau der Abfrage

1.3.6.1.4.1.6486.803.1.2.1.8.1.1.8.1.7.1.0.1001
                                   | | | | PORT = 1001 = 1/1/1
                                   | | | slLocaleType (default = 0 - für VLAN Domäne)
                                   | | slMacDomain (1 = VLAN)
                                   | slMacAddressGblManagement
                                   SlMacAddressGlobalEntry

Ausgabe ohne Daten aus der MIB

benny@Bennys-MacBook-Pro OS2260_5.1.43.R02_GA-MIBs % snmpwalk -O T -v 3 -a sha -A PASSWORT -x aes -X PASSWORT -u snmpv3 -l authPriv 192.168.2.190 1.3.6.1.4.1.6486.803.1.2.1.8.1.1.8.1.7.1.0.1001
SNMPv2-SMI::enterprises.6486.803.1.2.1.8.1.1.8.1.7.1.0.1001.15.0.220.8.86.113.179.192 = INTEGER: 4

Ausgabe mit -O 0uX und MIB

benny@Bennys-MacBook-Pro OS2260_5.1.43.R02_GA-MIBs % snmpwalk -m ALL -M . -O 0uX -v 3 -a sha -A \$Witch123 -x aes -X \$Witch123 -u snmpv3 -l authPriv 192.168.2.190 1.3.6.1.4.1.6486.803.1.2.1.8.1.1.8.1.7.1.0.1001
enterprises.alcatel.alcatelEnt3BaseMIB.alcatelENT3Management.managementIND1Software.softwareIND1Entities.softentIND1MacAddress.alcatelIND1MacAddressMIB.alcatelIND1MacAddressMIBObjects.alaSlMacAddressGlobalTable.alaSlMacAddressGlobalEntry.slMacAddressGblManagement[vlan][default][1001][15][0][STRING: dc:08:56:71:b3:c0] = INTEGER: learned(4)
omniswitch-os2260-os2360-os2x60-snmpwalk-vlan-und-mac.txt · Zuletzt geändert: 2022/10/27 18:06 von benny