| Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Change Community for SNMP (CHGCOMSNMP) command changes an SNMP community profile in 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.
Restrictions:
| Top |
| Keyword | Description | Choices | Notes |
|---|---|---|---|
| COM | Community name | Character value | Required, Key, Positional 1 |
| ASCIICOM | Translate community name | *YES, *NO | Optional, Key |
| INTNETADR | Manager internet address | Single values: *SAME, *ANY Other values (up to 300 repetitions): Element list |
Optional |
| Element 1: Manager internet address | Character value | ||
| Element 2: Manager internet address mask | Character value | ||
| OBJACC | Object access | *SAME, *SNMPATR, *READ, *WRITE, *NONE | Optional |
| LOGSET | Log set requests | *SAME, *SNMPATR, *YES, *NO | Optional |
| LOGGET | Log get requests | *SAME, *SNMPATR, *YES, *NO | Optional |
| Top |
Specifies the name of the SNMP community being changed. The community must already exist in the SNMP agent community list. You can define an SNMP community using the Add Community for SNMP (ADDCOMSNMP) command.
| Top |
Specifies whether the community name is translated to ASCII characters before it is compared with the community name specified in a request from an SNMP manager. This parameter is used in combination with the community name to determine the community to be changed.
| Top |
The internet addresses and internet address mask of the SNMP managers that are part of this community. The internet address may be an IPv4 or IPv6 address.
Single values
Element 1: Manager Internet Address
Element 2: IP address mask
| Top |
Specifies the object access for the community.
| Top |
Specifies whether Set requests from SNMP managers in this community are logged in journal QSNMP in library QUSRSYS.
| Top |
Specifies whether get requests and get-next requests from SNMP managers in this community are logged in journal QSNMP in library QUSRSYS.
| Top |
CHGCOMSNMP COM(ROCHESTER) INTNETADR(*ANY) OBJACC(*READ)
This command changes community ROCHESTER to have an object access of read and to allow any SNMP manager to read the MIB objects on this system. All of the other community values are unchanged.
CHGCOMSNMP COM(PUBLIC)
INTNETADR(('10.4.120.97' 16)( '9.71.128.4'
'255.255.255.0') ('192.4.52.1' '255.255.0.0'))
This command changes default community PUBLIC to only allow SNMP packets coming from 10.4.120.97, 9.71.128.4, and 192.4.52.1 to be processed. Note that the first internet mask is equal to 255.255.0.0 mask. All of the other community values are unchanged.
CHGCOMSNMP COM(PRIVATE)
INTNETADR(('2001:db8::10f' 64)('2001:db8::10e'
'FFFF:FFFF:FFFF:FFFF::'))
This command changes community PRIVATE to only allow SNMP packets coming from 2001:db8::10f and 2001:db8::10e to be processed. Note that the prefix length of the first internet address is equal to the second colon hexadecimal notation FFFF:FFFF:FFFF:FFFF:: mask. All of the other community values are unchanged.
| Top |
*ESCAPE Messages
| Top |