похоже Вы прислали старые документы, ибо результат тот же самый(впрочем и oid'ы точно такие же

)
в присланном документе:
Код:
How to create IP ACL with SNMP command on DGS-3612
1. Create Access profile and ACL entry
1.1) Create an Access profile as the following command, whose filter range is single source IP:
snmpset -c private -v 2c 10.90.90.90 1.3.6.1.4.1.171.12.9.2.2.1.2.1 i 2 1.3.6.1.4.1.171.12.9.2.2.1.3.1 i 3 1.3.6.1.4.1.171.12.9.2.2.1.4.1 a 255.255.255.255 1.3.6.1.4.1.171.12.9.2.2.1.19.1 i 4 1.3.6.1.4.1.171.12.9.2.2.1.23.1 s IP-ACL
1.2) Add a one ACL entry to deny the source ip from 10.90.90.99 on port 1
snmpset -c private -v 2c 10.90.90.90 1.3.6.1.4.1.171.12.9.3.2.1.4.1.1 a 10.90.90.99 1.3.6.1.4.1.171.12.9.3.2.1.20.1.1 i 1 1.3.6.1.4.1.171.12.9.3.2.1.21.1.1 s 1 1.3.6.1.4.1.171.12.9.3.2.1.22.1.1 i 4
2.Delete Access_profile command
snmpset -c private -v 2c 10.90.90.90 1.3.6.1.4.1.171.12.9.2.2.1.19.1 integer 6
3. Delete ACL entry command
snmpset -c private -v 2c 10.90.90.90 1.3.6.1.4.1.171.12.9.3.2.1.22.1.1 i 6
пытаюсь создать профиль:
$rule = "1.3.6.1.4.1.171.12.9.2.2.1.2.1 i 2 1.3.6.1.4.1.171.12.9.2.2.1.3.1 i 3 1.3.6.1.4.1.171.12.9.2.2.1.4.1 a 255.255.255.255 1.3.6.1.4.1.171.12.9.2.2.1.19.1 i 4 1.3.6.1.4.1.17
1.12.9.2.2.1.23.1 s IP-ACL";
system("snmpset -v2c -c private 10.10.4.6 $rule");
Error in packet.
Reason: inconsistentValue (The set value is illegal or unsupported in some way)
Failed object: SNMPv2-SMI::enterprises.171.12.9.2.2.1.19.1
создал профиль руками:
Access Profile ID: 1 Type : IP
================================================================================
Owner : ACL
MASK Option :
Source IP MASK
255.255.255.255
---------------
================================================================================
Unused Entries: 128
пытаюсь удалить:
$rule = "1.3.6.1.4.1.171.12.9.3.2.1.4.$np.$nr a $ip 1.3.6.1.4.1.171.12.9.3.2.1.20.$np.$nr i 1 1.3.6.1.4.1.171.12.9.3.2.1.21.$np.$nr s 1 1.3.6.1.4.1.171.12.9.3.2.1.22.$np.$nr i 4"
;
print "$rule\n";
system("snmpset -v2c -c private 10.10.4.6 $rule");
1.3.6.1.4.1.171.12.9.3.2.1.4.1.1 a 88.204.3.171 1.3.6.1.4.1.171.12.9.3.2.1.20.1.1 i 1 1.3.6.1.4.1.171.12.9.3.2.1.21.1.1 s 1 1.3.6.1.4.1.171.12.9.3.2.1.22.1.1 i 4
Error in packet.
Reason: notWritable (That object does not support modification)
Failed object: SNMPv2-SMI::enterprises.171.12.9.3.2.1.4.1.1
результат попытки удаления правила :
до
Access Profile Table
Total Unused Rule Entries:1791
Total Used Rule Entries :1
Access Profile ID: 1 Type : IP
================================================================================
Owner : ACL
MASK Option :
Source IP MASK
255.255.255.255
---------------
Access ID : 1 Mode: Permit RX Rate(64Kbps): no_limit
Ports: 1-12
---------------
10.10.10.10
================================================================================
Unused Entries: 127
после snmpset -c private -v 2c 10.10.4.6 1.3.6.1.4.1.171.12.9.3.2.1.22.1.1 i 6
SNMPv2-SMI::enterprises.171.12.9.3.2.1.22.1.1 = INTEGER: 6
Access Profile Table
Total Unused Rule Entries:1791
Total Used Rule Entries :1
Access Profile ID: 1 Type : IP
================================================================================
Owner : ACL
MASK Option :
Source IP MASK
255.255.255.255
---------------
Access ID : 1 Mode: Permit RX Rate(64Kbps): 6
Ports: 1-12
---------------
10.10.10.10
================================================================================
Unused Entries: 127