Use the “snmp” command to display and edit SNMP configuration settings such as the community name.
You can configure one of ten SNMP access settings numbered 1-10.
If you change the community name, you must change your computer settings. See SNMP.
Default access settings 1 and 2 are as follows:
Number |
1 |
2 |
Community name |
public |
admin |
IP address |
0.0.0.0 |
0.0.0.0 |
Access type |
read-only trap off |
read-write trap off |
Display
Shows SNMP information and available protocols.
msh> snmp ?
The following command displays the settings of registered number specified.
msh> snmp [registered_number]
Omitting the number displays all access settings.
msh> snmp [-p]
Add “-p” (as above) to have the information displayed one screen at a time.
Community name configuration
You can set the community name of the registered number.
msh> snmp number name community_name
The community name can consist of up to 15 characters.
Access type configuration
You can select the access type from those listed below:
msh> snmp number type access_type
Access type |
Type of access permitted |
---|---|
read |
Read only |
write |
Read and write |
trap |
User notified of trap messages. |
no |
All access denied. |
Protocol configuration
You should use the following command to set protocols to active or inactive. If you set a protocol to inactive, all access settings for that protocol will be disabled:
msh> snmp {ip} {on | off}
“on” means active, “off” means inactive.
To change an access setting protocol, use the following command. However, if you have disabled a protocol using the above command, making it active here will have no effect.
msh> snmp number active {ip} {on | off}
Access configuration
You can configure a host address according to protocols used.
The network interface module accepts requests only from hosts with “read-only” or “read-write” access type addresses. Enter “0” to have the network interface module accept requests from any host without requiring a specific type of access.
msh> snmp number {ip} address
msh> snmp 3 ip 192.168.15.16