B_Bondarenko Posted March 18, 2013 Коллеги, хотелось бы получить небольшое howto по управлению принадлежностью порта вланам на s2950 по SNMP. Стандартные oid из qBridgeMIB работают только на чтение, на запись получаем ошибку: nm# snmpget -v2c -c <community> 192.168.100.1 .1.3.6.1.2.1.17.7.1.4.3.1.4.1 SNMPv2-SMI::mib-2.17.7.1.4.3.1.4.1 = Hex-STRING: 7F FF FF C0 nm# snmpset -v2c -c <community> 192.168.100.1 .1.3.6.1.2.1.17.7.1.4.3.1.4.1 x ffffffc0 Error in packet. Reason: undoFailed Failed object: SNMPv2-SMI::mib-2.17.7.1.4.3.1.4.1 Тоже-самое касается и dot1qVlanStaticEgressPorts (.1.3.6.1.2.1.17.7.1.4.3.1.2). Сильно подозреваю, что управление ведется через другие vendor-specific oid, а oid из qBridgeMIB оставлены в RO для обратной совместимости по мониторингу, но не менеджменту. Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
zorn Posted March 19, 2013 (edited) MIBы тут http://data.nag.ru/SNR%20Switches/MIBs/ Берем S2950-24G.mib --xxx.100.3.2.1.15 portMode OBJECT-TYPE SYNTAX INTEGER { access(1), trunk(2), hybrid(3) } MAX-ACCESS read-write STATUS current DESCRIPTION "port mode: 1 is access,2 is trunk,3 is hybrid" ::= { priPortEntry 15 } --xxx.100.3.2.1.16 pvid OBJECT-TYPE SYNTAX INTEGER MAX-ACCESS read-write STATUS current DESCRIPTION "port of native vlan No." ::= { priPortEntry 16 } Где xxx - это enterprises.6339 Allowed vlans и т.п. сам можешь найти. Edited March 19, 2013 by zorn Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
Andrey Savenkov Posted March 19, 2013 Установить native VLAN на порту (switchport access vlan xxx): snmpset -v2c -c private x.x.x.x .1.3.6.1.4.1.6339.100.3.2.1.16.N i M где: x.x.x.x - IP коммутатора, N - номер порта M - PVID VLAN’a Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
B_Bondarenko Posted March 19, 2013 Спасибо разобрался. Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...