配置流程

配置SNMPV1/V2C
配置端口
admin:/>show snmp port
SNMP Listening Port : 161
admin:/>change snmp port port_number=20000
WARNING: You are about to change the listening port of the SNMP service. This operation may cause the restart of the SNMP service and use the newly configured listening port.
Suggestion: Before you perform this operation, disconnect the network management software and SNMP service. After the configuration is successful, use the new port to connect to SNMP service.
Have you read warning message carefully?(y/n)y
Are you sure you really want to perform the operation?(y/n)y
Command executed successfully.
默認端口值為161,取值范圍為20000~20100。
啟用SNMPV1/V2C
admin:/>change snmp version v1v2c_switch=On
CAUTION: You are about to enable SNMPv1 and SNMPv2c. But you are advised to use the secure SNMPv3 protocol only.
Do you wish to continue?(y/n)y
Command executed successfully.
admin:/>show snmp version
SNMP V1V2C Switch : On
配置團體字
admin:/>change snmp community read_community=********* write_community=*********
Command executed successfully.
參數說明:
- read_community 只讀團體字,用於讀取設備信息時使用,可以通過 “show snmp safe_strategy” 命令獲取密碼安全策略。
- write_community 讀寫團體字,用於讀取設備信息或配置設備時使用,可以通過 “show snmp safe_strategy” 命令獲取密碼安全策略。
初次登錄時,請立即修改團體字,以保證系統的安全。
系統默認只讀團體字為“storage_public”,讀寫團體字為“storage_private”。
團體字格式要求如下:
團體字長度范圍為 4~32個字符,可通過“change snmp safe_strategy”命令修改長度范圍,區分大小寫。
團體字必須滿足密碼復雜度要求:
當密碼復雜度為“Normal”時,團體字必須包含特殊字符,並且至少包含大寫字母、小寫字母以及數字中任意兩者的組合。
當密碼復雜度為“High”時,團體字必須包含特殊字符、大寫字母、小寫字母和數字。
當密碼復雜度為“Low”時,團體字為特殊字符、大寫字母、小寫字母和數字的任意組合。
只讀團體字和讀寫團體字不能相同。
說明:
出於兼容性考慮,系統保留了對SNMPv1和SNMPv2c的支持。為了保證數據的安全性,強烈建議使用SNMPv3協議。
可以通過“change snmp safe_strategy”命令修改團體字策略。
特殊字符包含` ~ ! @ # $ % ^ & * ( ) - _ = + \ | [ { } ] ; : ' " , < . > / ?和空格。
配置SNMPV3
- 選擇“ 設置 > 告警設置 > USM用戶管理”。
- 單擊“增加”。
系統彈出“增加USM用戶”對話框。 - 根據要求填寫USM用戶信息
- 單擊“確定”
- 單擊“保存”。
系統彈出“執行結果”,提示操作成功。 - 單擊“關閉”。
注意:通過設置USM用戶,可以為SNMPV3進行鑒權和數據加密。
