CL Command Reference - ADDCOMSNMP
CL Command List > ADDCOMSNMP Reference
Description:
The Add Community for SNMP (ADDCOMSNMP) command defines an SNMP community profile and adds it to the SNMP agent community list. An SNMP agent uses a community profile to determine whether or not to honor a request sent by an SNMP manager. The community profile consists of a community name, an object access specification, and a list of the SNMP managers that are part of the community. The community name combined with the ASCII community (ASCIICOM) parameter defines a community.
Multiple community profiles, each having a unique community name may exist in the SNMP agent community list at one time. Similarly, the same internet address may appear in more than one community profile.
The OS/400 SNMP agent does not support community views. A view is a subset of the objects in the management information base (MIB). Each OS/400 community consists of all of the objects in the MIB.
Restrictions:
An SNMP manager sends three types of requests: get, get-next, and set. Get and get-next requests are used to read management information base (MIB) variables, and a set request is used to modify MIB variables. For a request from an SNMP manager to be accepted by the AS/400 SNMP agent, all of the following must be true:
1. The community name in the SNMP manager request specifies a defined community.
2. The internet address of the manager that sent the request must be listed in the community profile.
3. For a set request, the community object access must allow write operations to occur. For a get request or get-next request, read operations must be allowed.
4. For a set request, the object specified in the request must be able to be changed. For a get request or get-next request, the object must be readable.
Examples:
ADDCOMSNMP COM(ROCHESTER) INTNETADR(กฏ8.6.5.4กฏ กฏ8.6.5.3กฏ)
OBJACC(*WRITE)
This command adds the community ROCHESTER to the SNMP agent community list. SNMP managers with internet addresses 8.6.5.4 and 8.6.5.3 are the only managers in the community and are able to change all MIB objects.