Возникло недопонимание по обработке ответа LLDP имеется оборудование Device Type : DGS-3627G Gigabit Ethernet Switch MAC Address : 00-1E-58-60-17-00 Boot PROM Version : Build 1.10-B09 Firmware Version : Build 3.03.B02 Hardware Version : A1 ####################################### enable lldp config lldp message_tx_interval 30 config lldp tx_delay 2 config lldp message_tx_hold_multiplier 4 config lldp reinit_delay 2 config lldp notification_interval 5 config lldp forward_message enable config lldp ports 1-20,23-25 notification enable config lldp ports 1-27 admin_status tx_and_rx config lldp ports 1-27 basic_tlvs port_description system_name system_description system_capabilities enable config lldp ports 21-22,26-27 notification disable ########################################## В порт № 3 DGS-3627 включен 25-м портом коммутатор
Device Type : DES-3200-28 Fast Ethernet Switch MAC Address : 78-54-2E-41-58-40 Boot PROM Version : Build 4.00.002 Firmware Version : Build 4.46.B006 Hardware Version : C1 ######################################### # LLDP enable lldp config lldp message_tx_interval 30 config lldp tx_delay 2 config lldp message_tx_hold_multiplier 4 config lldp reinit_delay 2 config lldp notification_interval 5 config lldp forward_message enable config lldp ports 1-24 notification disable config lldp ports 1-28 admin_status tx_and_rx config lldp ports 25-28 notification enable config lldp ports 25-28 basic_tlvs port_description system_name system_description system_capabilities enable ####################################################
А в порт № 6 DGS-3627 25-м портом включен
Device Type : DES-3200-28 Fast Ethernet Switch MAC Address : 3C-1E-04-A0-F3-E0 Boot PROM Version : Build 4.00.002 Firmware Version : Build 4.46.B006 Hardware Version : C1 ################################################# # LLDP enable lldp config lldp message_tx_interval 30 config lldp tx_delay 2 config lldp message_tx_hold_multiplier 4 config lldp reinit_delay 2 config lldp notification_interval 5 config lldp forward_message enable config lldp ports 1-24 notification disable config lldp ports 1-28 admin_status tx_and_rx config lldp ports 25-28 notification enable config lldp ports 25-28 basic_tlvs port_description system_name system_description system_capabilities enable #######################################################
теперь собственно проблема при запросе по SNMP от DGS-3627G Gigabit Ethernet Switch получаем в ответ
iso.0.8802.1.1.2.1.4.1.1.5.229884159.6.3 = Hex-STRING: 3C 1E 04 A0 F3 E0 iso.0.8802.1.1.2.1.4.1.1.5.229911174.3.3 = STRING: "xT.AX@"
iso.0.8802.1.1.2.1.4.1.1.7.229884159.6.3 = Hex-STRING: 3C 1E 04 A0 F3 F9 iso.0.8802.1.1.2.1.4.1.1.7.229911174.3.3 = STRING: "xT.AXY"
iso.0.8802.1.1.2.1.4.1.1.8.229884159.6.3 = STRING: "D-Link DES-3200-28 R4.46.B006 Port 25 " iso.0.8802.1.1.2.1.4.1.1.8.229911174.3.3 = STRING: "D-Link DES-3200-28 R4.46.B006 Port 25 "
При детальном рассмотрении и переводе значения из строки iso.0.8802.1.1.2.1.4.1.1.5.229911174.3.3 = STRING: "xT.AX@" из TEXT в HEX выяснилось что тут закодирован мак-адрес свитча. Но в чем прикол, почему 2 свитча с одинаковой хардварью одинаковым конфигом и одинаковой фирмварью выдают значения один в нормальном HEX а второй в STRING. И можно ли как-то это привести к общему типу отображения.
_________________ DGS-3627G, DGS-3612, DGS-3100-24, DES-3526, DES-3550, DES-3028, DES-3528, DES-3200-10, DES-3200-28F
|