Description:
This command sets the community read-only and read-write strings.
Form:
Command Handler: SYSD
SNMPVAR | SNMPVAR | SNMPVAR [[NAME] VALUE]
Argument list:
NAME DEFAULT VALUE DESCRIPTION
rocommunity adtec Read-only community string
rwcommunity none Read-write community string
trapcommunity public used with snmp trap messages
trap2sink localhost the address of the trap monitor
Response:
"OK\r\n" to acknowledge receipt of command, and
[Reply Info] if required by the command
"ERROR- [Description]\r\n" if error, ending command
"\r\n" concludes modify responses (empty line)
Examples:
Show all:
*.SYSD SNMPVAR
Response is: OK\r\n
SNMPVAR ROCOMMUNITY = adtec\r\n
SNMPVAR RWCOMMUNITY = none\r\n
SNMPVAR TRAPCOMMUNITY = public\r\n
SNMPVAR TRAPSINK = localhost\r\n
\r\n
Get RWCOMMUNITY:
*.SYSD SNMPVAR RWCOMMUNITY
Response is: OK\r\n
SNMPVAR RWCOMMUNITY = none\r\n
\r\n
Set RWCOMMUNITY
*.SYSD SNMP RWCOMMUNITY mysecret
Response is: OK\r\n
\r\n
Notes:
SNMP Version 2 is default.