snmpwalk -c public <ip> 1.3.6.1.4.1.9.9.68.1.2.2.1.2
positive
You mean it lists the VLANs? Could you copy a couple of lines so I can verify? But NAV should be able to find the VLAN info in that case. Could you give me the output of the following SQL command?
select oidkey from snmpoid join netboxsnmpoid using (snmpoidid) join netbox using(netboxid) where ip='<ip>';
Replace <ip> with the IP of one of your devices.
-- Kristian
Dnia ?roda, 19 stycznia 2005 14:29, Kristian Eide napisa?:
select oidkey from snmpoid join netboxsnmpoid using (snmpoidid) join netbox using(netboxid) where ip='<ip>';
manage-# using(netboxid) where ip='172.16.1.30'; oidkey ------------------------- basePortIfIndex c2900Bandwidth cChassisId cChassisSlots cChassisType cChassisVersion cpu1min cpu5min cSerial dnscheck ifAdminStatus ifAlias ifDescr ifIndex ifInDiscards ifInErrors ifInNUcastPkts ifInOctets ifInUcastPkts ifInUnknownProtos ifLastChange ifMtu ifName ifNumber ifOperStatus ifOutDiscards ifOutErrors ifOutNUcastPkts ifOutOctets ifOutQLen ifOutUcastPkts ifPhysAddress ifPortName ifSpeed ifTrunk ifType ifVlan ifVlansAllowed iosDuplex iosTrunk ipAdEntIfIndex ipAdEntIfNetMask ipNetToMediaPhysAddress macPortEntry mem5minFree mem5minUsed moduleMon sysname sysUpTime typeoid vtpVlanState (51 rows)
-----------------------------
snmpwalk -c public <ip> 1.3.6.1.4.1.9.9.68.1.2.2.1.2
SNMPv2-SMI::enterprises.9.9.68.1.2.2.1.2.2 = INTEGER: 250 SNMPv2-SMI::enterprises.9.9.68.1.2.2.1.2.3 = INTEGER: 2 SNMPv2-SMI::enterprises.9.9.68.1.2.2.1.2.4 = INTEGER: 3 SNMPv2-SMI::enterprises.9.9.68.1.2.2.1.2.5 = INTEGER: 4 SNMPv2-SMI::enterprises.9.9.68.1.2.2.1.2.6 = INTEGER: 5 SNMPv2-SMI::enterprises.9.9.68.1.2.2.1.2.7 = INTEGER: 6 SNMPv2-SMI::enterprises.9.9.68.1.2.2.1.2.8 = INTEGER: 7 SNMPv2-SMI::enterprises.9.9.68.1.2.2.1.2.9 = INTEGER: 8 SNMPv2-SMI::enterprises.9.9.68.1.2.2.1.2.10 = INTEGER: 9 SNMPv2-SMI::enterprises.9.9.68.1.2.2.1.2.11 = INTEGER: 10 SNMPv2-SMI::enterprises.9.9.68.1.2.2.1.2.12 = INTEGER: 11 SNMPv2-SMI::enterprises.9.9.68.1.2.2.1.2.13 = INTEGER: 12 SNMPv2-SMI::enterprises.9.9.68.1.2.2.1.2.14 = INTEGER: 13 SNMPv2-SMI::enterprises.9.9.68.1.2.2.1.2.15 = INTEGER: 14 SNMPv2-SMI::enterprises.9.9.68.1.2.2.1.2.16 = INTEGER: 15 SNMPv2-SMI::enterprises.9.9.68.1.2.2.1.2.17 = INTEGER: 16 SNMPv2-SMI::enterprises.9.9.68.1.2.2.1.2.18 = INTEGER: 17 SNMPv2-SMI::enterprises.9.9.68.1.2.2.1.2.19 = INTEGER: 4 SNMPv2-SMI::enterprises.9.9.68.1.2.2.1.2.20 = INTEGER: 1 SNMPv2-SMI::enterprises.9.9.68.1.2.2.1.2.21 = INTEGER: 1 SNMPv2-SMI::enterprises.9.9.68.1.2.2.1.2.22 = INTEGER: 1 SNMPv2-SMI::enterprises.9.9.68.1.2.2.1.2.23 = INTEGER: 1 SNMPv2-SMI::enterprises.9.9.68.1.2.2.1.2.24 = INTEGER: 1
and this is sh vlan command on that router:
VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------- 1 default active Fa0/19, Fa0/20, Fa0/21, Fa0/22, Fa0/23 2 VLAN0002 active Fa0/2 3 VLAN0003 active Fa0/3 4 VLAN0004 active Fa0/4, Fa0/18 5 VLAN0005 active Fa0/5 6 VLAN0006 active Fa0/6 7 VLAN0007 active Fa0/7 8 VLAN0008 active Fa0/8 9 VLAN0009 active Fa0/9 10 VLAN0010 active Fa0/10 11 VLAN0011 active Fa0/11 12 VLAN0012 active Fa0/12 13 VLAN0013 active Fa0/13 14 VLAN0014 active Fa0/14 15 VLAN0015 active Fa0/15 16 VLAN0016 active Fa0/16 17 VLAN0017 active Fa0/17 20 VLAN0020 active 21 VLAN0021 active 22 VLAN0022 active 23 VLAN0023 active 50 VLAN0050 active 51 VLAN0051 active 100 VLAN0100 active 200 xxx active 201 mrouter active 202 VLAN0202 active 250 MGMT active Fa0/1 334 VLAN0334 active 1002 fddi-default active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default active