我想用SNMP获取交换机的MAC列表但是我找不到它的MAC列表对应的OID,求告知H3CS5120这款产品的OID可以从哪里获取到
(0)
最佳答案
dot1qTpFdbAddress MAC地址(不能获取节点的值) dot1qTpFdbPort MAC地址对应的端口 dot1qTpFdbStatus MAC表项的状态
(0)
需要关联才能分析的。 例如:从节点的索引来获取vlan信息,例如上图中的: 1: dot1qTpFdbPort.1.0.35.137.20.251.214 (integer) 216 索引中包含的信息是vlan 1,mac就是"0.35.137.20.251.214",对应0023-8914-fbd6。 216代表portifindex,查询下面节点可得到If index 216 90: hh3cLswPortIfindex.0.4.0.216 (integer) 61 再查询if表,得到端口名称 61: ifDescr.61 (octet string) GigabitEthernet4/0/24 [47.69.67.61.62.69.74.45.74.68.65.72.6E.65.74.34.2F.30.2F.32.34 (hex)] [H3C]dis mac-address MAC ADDR VLAN ID STATE PORT INDEX AGING TIME(s) 0023-8914-fbd6 1 Learned GigabitEthernet4/0/24 AGING 0023-8914-fc05 1 Learned GigabitEthernet4/0/24 AGING
获取不到啊,
只有这个节点获取不到吗?例如cpu等mib节点能获取到吗?
[1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3, 3, VLAN 0001, VLAN 0002, 80:ff:ff:f0:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00, ff:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00, 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00, 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00, 80:ff:ff:f0:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00, 7f:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
需要关联才能分析的。 例如:从节点的索引来获取vlan信息,例如上图中的: 1: dot1qTpFdbPort.1.0.35.137.20.251.214 (integer) 216 索引中包含的信息是vlan 1,mac就是"0.35.137.20.251.214",对应0023-8914-fbd6。 216代表portifindex,查询下面节点可得到If index 216 90: hh3cLswPortIfindex.0.4.0.216 (integer) 61 再查询if表,得到端口名称 61: ifDescr.61 (octet string) GigabitEthernet4/0/24 [47.69.67.61.62.69.74.45.74.68.65.72.6E.65.74.34.2F.30.2F.32.34 (hex)] [H3C]dis mac-address MAC ADDR VLAN ID STATE PORT INDEX AGING TIME(s) 0023-8914-fbd6 1 Learned GigabitEthernet4/0/24 AGING 0023-8914-fc05 1 Learned GigabitEthernet4/0/24 AGING
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明