ip snmp agent community
This command sets SNMP communities in the device.
The use of a negative form (no) of the command removes SNMP communities.
Syntax
[no] ip snmp agent community <MODE> <COMMUNITY>
Parameters
<MODE> – set access mode:
- readonly – read;
- readwrite – edit;
- trap – snmp trap transmission list.
<COMMUNITY> – community name, 63 characters max.
Command mode
CONFIG
Example
ma4000(config)# ip snmp agent community readonly test
The test user group has read rights.
ip snmp agent enable
This command enables management and monitoring of the device via SNMP protocol.
The use of a negative form (no) of the command prohibits device management via SNMP protocol.
Syntax
[no] ip snmp agent enable
Parameters
The command contains no arguments.
Command mode
CONFIG
Example
ma4000(config)# ip snmp agent enable
ip snmp agent engine id
This command defines Engine ID of SNMPv3.
The use of a negative form (no) of the command removes SNMPv3 Engine ID.
Syntax
[no] ip snmp agent engine id <ENGINEID>
Parameters
<ENGINEID > – identifier, 63 characters max.
Command mode
CONFIG
Example
ma4000(config)# ip snmp agent engine id test
ip snmp agent engine id generate
This command sets random Engine ID of SNMPv3.
Syntax
ip snmp agent engine id generate
Parameters
The command contains no arguments.
Command mode
CONFIG
Example
ma4000(config)# ip snmp agent engine id generate
ip snmp agent system name
This command sets the system name of the device in SNMP.
The use of a negative form (no) of the command removes system name of the device in SNMP.
Syntax
[no] ip snmp agent system name <NAME>
Parameters
<NAME> – device name, 255 characters max.
Command mode
CONFIG
Example
ma4000(config)# ip snmp agent system name ma4000
ip snmp agent transport
This command defines the transport protocol and port for SNMP exchange.
The use of a negative form (no) of the command removes transport protocol configuration.
Syntax
[no] ip snmp agent transport <PROTOCOL> [<PORT>]
Parameters
<PROTOCOL> – transport protocol: tcp/udp;
<PORT> - tcp/udp port, may take values [1 ..65535].
Command mode
CONFIG
Example
ma4000(config)# ip snmp agent transport udp 157
ip snmp agent traps
This command specifies the server to which SNMP TRAP messages will be sent.
The use of a negative form (no) of the command removes a specified TRAP server.
Syntax
[no] ip snmp agent traps <VERSION> <IP_ADDRESS>
Parameters
<VERSION> – SNMP Trap version:
- Informs;
- trapsv1;
<IP_ADDRESS> – server IP address.
Command mode
CONFIG
Example
ma4000(config)# ip snmp agent traps informs
ip snmp agent user add
This command adds an SNMP user.
Syntax
ip snmp agent user add <USER_NAME> <USER_PASSWD> <USER_ACCESS>
Parameters
<USER_NAME> – user name;
<USER_PASSWD> – user password, string of 8 to 31 characters;
<USER_ACCESS> – access level:
- ro – read only;
- rw – read and edit.
Command mode
CONFIG
Example
ma4000(config)#ip snmp agent user add test test ro
ip snmp agent user delete
This command removes an SNMP user.
Syntax
ip snmp agent user add <USER_NAME>
Parameters
<USER_NAME> – user name.
Command mode
CONFIG
Example
ma4000(config)#ip snmp agent user delete test
ip snmp agent user private add
This command adds a privileged SNMP user.
Syntax
ip snmp agent user private add <USER_NAME> <USER_PASSWD> <USER_ACCESS>
Parameters
<USER_NAME> – user name;
<USER_PASSWD> – user password;
<USER_ACCESS> – access level:
- ro – read only;
- rw – read and edit.
Command mode
CONFIG
Example
ma4000(config)# ip snmp agent user private add test tested ro
show ip snmp agent users
This command is used to view information about SNMPv3 users.
Syntax
show ip snmp agent users
Parameters
The command contains no arguments.
Command mode
ROOT
Example
ma4000# show ip snmp agent users clish_ip_snmp_agent_user: action list, value (null) SNMP users ~~~~~~~~~~ User name User permissions -------------------- ---------------