Use the set snmp command to configure, enable, and disable the device/terminal server SNMP (Simple Network Management Protocol) agent.
The set snmp command requires root privileges.
Enter the set snmp command as shown below:
set snmp [auth_trap={off|on}]
[contact=administrator] [get_request=community]
[set_request] [location=location] [name=name]
[run={off|on}] [trap_dest=ip_addr]
|
Command Field |
Description |
|
auth_trap |
on - means the agent sends an authentication trap to the SNMP manager when an authentication error occurs. off - means the agent silently ignores SNMP requests that fail authentication. The default is off. |
|
contact |
Specifies a text string that identifies a contact person (usually an administrator). The entry must be surrounded by quotation marks if there are spaces in the text. |
| get_request | Specifies the password required for getting an SNMP OID.
The default is "public". |
| set_request | Causes the device/terminal server to prompt for a new password, which will
be required for setting an SNMP OID.
The default is "private". |
|
location |
Specifies a text string that describes the device/terminal server’s location. The entry must be surrounded by quotation marks if there are spaces in the text. |
|
name |
Specifies a text string that identifies the device/terminal server. The entry must be surrounded by quotation marks if there are spaces in the text. |
|
run |
on - starts the SNMP daemon. off - means the SNMP daemon will not start. The default is off. |
|
trap_dest |
Specifies the IP address of the system to which the agent should send traps. |
In this example, the set snmp command displays the SNMP configuration.
set snmp
In this example, the snmp command configures SNMP.
set snmp run=on auth_trap=on trap_dest=190.175.178.73
location=Manufacturing-1 name=PServer contact="John
Smith"