Привет всем!
Может кто сталкивался с изменением IP адреса по SNMP на коммутаторе Huawei s2326.
В мануале нашел нужный oid .1.3.6.1.4.1.2011.5.25.41.1.2.1.1
так же в мануале помечено:
The entries in this table can be created. You can create the primary IP address, and then the secondary IP address on the interface. The newly-created IP address and mask cannot be the same as the existing ones.
Modification Restriction
After the IP address is created, the attribute of the IP address cannot be modified, because all the attributes of the IP address, except the row status, are closely associated with the IP address.
Currently, entries in hwIpAdEntIfIndex, hwIpAdEntNetMask, hwIpAdEntAddressType, and hwIfIpMethod can be created, but cannot be modified.
walk выдает вот что:
# snmpwalk -v2c -c testtest 172.22.137.142 SNMPv2-SMI::enterprises.2011.5.25.41.1.2.1.1
SNMPv2-SMI::enterprises.2011.5.25.41.1.2.1.1.1.127.0.0.1 = IpAddress: 127.0.0.1
SNMPv2-SMI::enterprises.2011.5.25.41.1.2.1.1.1.172.22.137.142 = IpAddress: 172.22.137.142
SNMPv2-SMI::enterprises.2011.5.25.41.1.2.1.1.2.127.0.0.1 = INTEGER: 1
SNMPv2-SMI::enterprises.2011.5.25.41.1.2.1.1.2.172.22.137.142 = INTEGER: 36
SNMPv2-SMI::enterprises.2011.5.25.41.1.2.1.1.3.127.0.0.1 = IpAddress: 255.0.0.0
SNMPv2-SMI::enterprises.2011.5.25.41.1.2.1.1.3.172.22.137.142 = IpAddress: 255.255.255.240
SNMPv2-SMI::enterprises.2011.5.25.41.1.2.1.1.4.127.0.0.1 = INTEGER: 1
SNMPv2-SMI::enterprises.2011.5.25.41.1.2.1.1.4.172.22.137.142 = INTEGER: 1
SNMPv2-SMI::enterprises.2011.5.25.41.1.2.1.1.5.127.0.0.1 = INTEGER: 65535
SNMPv2-SMI::enterprises.2011.5.25.41.1.2.1.1.5.172.22.137.142 = INTEGER: 65535
SNMPv2-SMI::enterprises.2011.5.25.41.1.2.1.1.6.127.0.0.1 = INTEGER: 1
SNMPv2-SMI::enterprises.2011.5.25.41.1.2.1.1.6.172.22.137.142 = INTEGER: 1
SNMPv2-SMI::enterprises.2011.5.25.41.1.2.1.1.7.127.0.0.1 = INTEGER: 4
SNMPv2-SMI::enterprises.2011.5.25.41.1.2.1.1.7.172.22.137.142 = INTEGER: 1
SNMPv2-SMI::enterprises.2011.5.25.41.1.2.1.1.8.127.0.0.1 = INTEGER: 1
SNMPv2-SMI::enterprises.2011.5.25.41.1.2.1.1.8.172.22.137.142 = INTEGER: 1
Я так понял мне нужно создать новый набор оидов
SNMPv2-SMI::enterprises.2011.5.25.41.1.2.1.1.1.172.22.140.70
SNMPv2-SMI::enterprises.2011.5.25.41.1.2.1.1.2.172.22.140.70
SNMPv2-SMI::enterprises.2011.5.25.41.1.2.1.1.3.172.22.140.70
SNMPv2-SMI::enterprises.2011.5.25.41.1.2.1.1.4.172.22.140.70
SNMPv2-SMI::enterprises.2011.5.25.41.1.2.1.1.5.172.22.140.70
SNMPv2-SMI::enterprises.2011.5.25.41.1.2.1.1.6.172.22.140.70
SNMPv2-SMI::enterprises.2011.5.25.41.1.2.1.1.7.172.22.140.70
SNMPv2-SMI::enterprises.2011.5.25.41.1.2.1.1.8.172.22.140.70
но как это сделать?
Пробовал выполнить:
snmpset -v2c -c testtest 172.22.137.142 1.3.6.1.4.1.2011.5.25.41.1.2.1.1.1 a 172.22.140.70 1.3.6.1.4.1.2011.5.25.41.1.2.1.1.2 i 36 1.3.6.1.4.1.2011.5.25.41.1.2.1.1.3 a 255.255.255.240 1.3.6.1.4.1.2011.5.25.41.1.2.1.1.4 i 1 1.3.6.1.4.1.2011.5.25.41.1.2.1.1.5 i 65535 1.3.6.1.4.1.2011.5.25.41.1.2.1.1.1.6 i 1 1.3.6.1.4.1.2011.5.25.41.1.2.1.1.7 i 1 1.3.6.1.4.1.2011.5.25.41.1.2.1.1.8 i 1
Error in packet.
Reason: noCreation (That table does not support row creation or that object can not ever be created)
Failed object: SNMPv2-SMI::enterprises.2011.5.25.41.1.2.1.1.1
или
snmpset -v2c -c testtest 172.22.137.142 1.3.6.1.4.1.2011.5.25.41.1.2.1.1.1.172.22.140.70 a 172.22.140.70 1.3.6.1.4.1.2011.5.25.41.1.2.1.1.2.172.22.140.70 i 36 1.3.6.1.4.1.2011.5.25.41.1.2.1.1.3.172.22.140.70 a 255.255.255.240 1.3.6.1.4.1.2011.5.25.41.1.2.1.1.4.172.22.140.70 i 1 1.3.6.1.4.1.2011.5.25.41.1.2.1.1.5.172.22.140.70 i 65535 1.3.6.1.4.1.2011.5.25.41.1.2.1.1.1.6.172.22.140.70 i 1 1.3.6.1.4.1.2011.5.25.41.1.2.1.1.7.172.22.140.70 i 1 1.3.6.1.4.1.2011.5.25.41.1.2.1.1.8.172.22.140.70 i 1
Error in packet.
Reason: notWritable (That object does not support modification)
Failed object: SNMPv2-SMI::enterprises.2011.5.25.41.1.2.1.1.1.172.22.140.70
Если что софт V100R006C00SPC800
Заранее спасибо.