This command sets SNMP communities in the device.
The use of a negative form (no) of the command removes SNMP communities.
[no] ip snmp agent community <MODE> <COMMUNITY>
<MODE> – set access mode:
<COMMUNITY> – community name, 63 characters max.
CONFIG
ma4000(config)# ip snmp agent community readonly test |
The test user group has read rights.
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.
[no] ip snmp agent enable
The command contains no arguments.
CONFIG
ma4000(config)# ip snmp agent enable |
This command defines Engine ID of SNMPv3.
The use of a negative form (no) of the command removes SNMPv3 Engine ID.
[no] ip snmp agent engine id <ENGINEID>
<ENGINEID > – identifier, 63 characters max.
CONFIG
ma4000(config)# ip snmp agent engine id test |
This command sets random Engine ID of SNMPv3.
ip snmp agent engine id generate
The command contains no arguments.
CONFIG
ma4000(config)# ip snmp agent engine id generate |
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.
[no] ip snmp agent system name <NAME>
<NAME> – device name, 255 characters max.
CONFIG
ma4000(config)# ip snmp agent system name ma4000 |
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.
[no] ip snmp agent transport <PROTOCOL> [<PORT>]
<PROTOCOL> – transport protocol: tcp/udp;
<PORT> - tcp/udp port, may take values [1 ..65535].
CONFIG
ma4000(config)# ip snmp agent transport udp 157 |
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.
[no] ip snmp agent traps <VERSION> <IP_ADDRESS>
<VERSION> – SNMP Trap version:
<IP_ADDRESS> – server IP address.
CONFIG
ma4000(config)# ip snmp agent traps informs |
This command adds an SNMP user.
ip snmp agent user add <USER_NAME> <USER_PASSWD> <USER_ACCESS>
<USER_NAME> – user name;
<USER_PASSWD> – user password, string of 8 to 31 characters;
<USER_ACCESS> – access level:
CONFIG
ma4000(config)#ip snmp agent user add test test ro |
This command removes an SNMP user.
ip snmp agent user add <USER_NAME>
<USER_NAME> – user name.
CONFIG
ma4000(config)#ip snmp agent user delete test |
This command adds a privileged SNMP user.
ip snmp agent user private add <USER_NAME> <USER_PASSWD> <USER_ACCESS>
<USER_NAME> – user name;
<USER_PASSWD> – user password;
<USER_ACCESS> – access level:
CONFIG
ma4000(config)# ip snmp agent user private add test tested ro |
This command is used to view information about SNMPv3 users.
show ip snmp agent users
The command contains no arguments.
ROOT
ma4000# show ip snmp agent users clish_ip_snmp_agent_user: action list, value (null) SNMP users ~~~~~~~~~~ User name User permissions -------------------- --------------- |