Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
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:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
COM | Community name | Character value | Required, Positional 1 |
ASCIICOM | Translate community name | *YES, *NO | Optional |
INTNETADR | Manager internet address | Single values: *ANY Other values (up to 300 repetitions): Character value |
Optional |
OBJACC | Object access | *SNMPATR, *READ, *WRITE, *NONE | Optional |
LOGSET | Log set requests | *SNMPATR, *YES, *NO | Optional |
LOGGET | Log get requests | *SNMPATR, *YES, *NO | Optional |
Top |
Specifies the name of the SNMP community being added. Each SNMP community name must be unique.
The possible values are:
Top |
Specifies whether the community name is translated to ASCII characters when the community profile is added to the SNMP agent community list.
The possible values are:
Top |
Specifies the internet addresses of the SNMP managers that are part of this community.
The possible values are:
Top |
Specifies the object access for the community.
The possible values are:
Top |
Specifies whether set requests from SNMP managers in this community are logged in journal QSNMP in library QUSRSYS.
The possible values are:
Top |
Specifies whether get requests and get-next requests from SNMP managers in this community are logged in journal QSNMP in library QUSRSYS.
The possible values are:
Top |
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.
Top |
*ESCAPE Messages
Top |