snmp command
Use this command to display and configure SNMP interface information.
Syntax:
snmp [-options]
Option | Description | Values |
---|---|---|
-a3 | SNMPv3 agent | on, off Note To enable the SNMPv3 agent, the following criteria must be met:
|
-t | SNMPv3 traps | on, off |
-tn | SNMPv3 trap user name | Valid user name |
-tauth | SNMPv3 trap authentication protocol | none, HMAC-SHA |
-tapw | SNMPv3 trap authentication password | Valid password |
-tpriv | SNMPv3 trap privacy protocol | none, CBC-DES, AES |
-tppw | SNMPv3 trap privacy password | Valid password |
-tix | Community IP address or host name x | Valid IP address or hostname (limited to 63 characters, x can range 1 to 3). Note
|
-l | IMM location | String (limited to 47 characters). Note
|
-cn | IMM contact name | String (limited to 47 characters). Note
|
-t1 | SNMPv1 traps | on, off |
-c | SNMP community name | String (limited to 15 characters). Note
|
-ci | Community IP address/host name 1 | Valid IP address or hostname (limited to 63 characters). Note
|
-c1iy | Community IP address/host name y | Valid IP address or hostname (limited to 63 characters, y can range 2 or 3). Note
|
-t2 | SNMPv2 traps | on, off |
-ct | SNMPv2 trap community name | String (limited to 15 characters). Note
|
-cti | SNMPv2 trap community IP address/hostname 1 | Valid IP address or hostname (limited to 63 characters). Note
|
-eid | SNMP engine id | String (limited 1 to 27 characters) |
-send | Send a test trap information |
Example:
system> snmp
-t enabled
-a3 enabled
-l ZhangjiangMansion
-cn Kelvin
-t1 enabled
-c community1
-ci host1
-t2 enabled
-ct community2
-cti host2
-eid XCC-7Z70-DSYM09X
system>
Give documentation feedback