Драйвер для коммутаторов Quidway

Started by enp, August 07, 2012, 11:15:16 AM

Previous topic - Next topic

enp

Можно ли написать драйвер для коммутаторов Quidway? Вывод:


nxsnmpwalk -c public sw-1 .1.3.6.1


прилагаю. Что приложить еще?

Victor Kirhenshtein

Еще хорошо бы MIB файлы (или ссылку), чтобы мне самому не искать их.

enp

Приложенные подходят

enp

Еще лучше подходят приложенные:


snmpwalk -c public 192.168.199.11 hwdot1qVlanPorts
HUAWEI-LswVLAN-MIB::hwdot1qVlanPorts.1 = Hex-STRING: 04 00 00 0C 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
HUAWEI-LswVLAN-MIB::hwdot1qVlanPorts.3 = Hex-STRING: 04 00 00 01 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
HUAWEI-LswVLAN-MIB::hwdot1qVlanPorts.11 = Hex-STRING: C3 01 00 03 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
HUAWEI-LswVLAN-MIB::hwdot1qVlanPorts.896 = Hex-STRING: 00 02 00 03 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
HUAWEI-LswVLAN-MIB::hwdot1qVlanPorts.898 = Hex-STRING: 2C EE 1E 03 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
HUAWEI-LswVLAN-MIB::hwdot1qVlanPorts.900 = Hex-STRING: 04 00 00 01 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
HUAWEI-LswVLAN-MIB::hwdot1qVlanPorts.901 = Hex-STRING: 10 12 E1 03 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
HUAWEI-LswVLAN-MIB::hwdot1qVlanPorts.1458 = Hex-STRING: 04 00 00 01 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


Я не понял, как интерпретировать эти биты. В документации (ее я не могу приложить из-за ограничения на размер вложения) пишут:

Quote
Port list that belongs to the VLAN. Each bit of hwdot1qVlanPorts represents a port within fabric-wide. In fabric, any port has an exclusive fabric-wide portId. So each bit can means only one fabric wide port. MAX_PORT_NUM_PER_UNIT (=52 for 3600) is a macro which help to distinguish the port of different unit. MAX_PORT_NUM_PER_UNIT indicates the max port number of a unit. So the exclusive fabric wide port acquired number from can be local-unit port number by this way portId (fabric wide) = (unitId-1)*MAX_PORT_NUM_PER_UNIT+portid (unit-wide). The range of unitId Portid(unit-wide) is [1..8] is [0..MAX_PORT_NUM_PER_UNIT-1] For example, the first port on unit 2 has a fabric-wide port id (2-1)*MAX_PORT_NUM_PER_UNIT + 0=64. So the 64th h3cdot1qVlanPorts bit of represents the first port on unit 2.