Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Change SNMP Attributes (CHGSNMPA) command changes values and options used by the OS/400 SNMP agent. The command also is used to specify which SNMP managers receive traps generated by the local AS/400 system.
The SNMP agent is shipped with the following values for the SNMP attributes.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
SYSCONTACT | System contact | Character value, *SAME, *NONE, *CNTINF | Optional |
SYSLOC | System location | Character value, *SAME, *NONE, *CNTINF | Optional |
SNDAUTTRP | Send authentication traps | *SAME, *YES, *NO | Optional |
AUTOSTART | Automatic start | *SAME, *YES, *NO | Optional |
OBJACC | Object access | *SAME, *READ, *WRITE, *NONE | Optional |
LOGSET | Log set requests | *SAME, *YES, *NO | Optional |
LOGGET | Log get requests | *SAME, *YES, *NO | Optional |
LOGTRP | Log traps | *SAME, *YES, *NO | Optional |
TRPMGR | Trap managers | Single values: *SAME, *NONE Other values (up to 300 repetitions): Element list |
Optional |
Element 1: Manager internet address | Character value | ||
Element 2: Community name | Character value | ||
Element 3: Translate community name | *YES, *NO |
Top |
Specifies the name of the contact person for this AS/400 system, along with information on how to contact this person. This value is used only by SNMP-specific functions. This value also may be read or modified by an authorized SNMP manager.
The possible values are:
Top |
Specifies the physical location of this AS/400 system. This value is used only by SNMP-specific functions. This value also may be read or modified by an authorized SNMP manager.
The possible values are:
Top |
Specifies whether the SNMP agent may send any authenticationFailure traps to any defined SNMP managers. An authenticationFailure trap is sent by the SNMP agent if a request is received from an SNMP manager that contains a community name that is not recognized by the SNMP agent. This trap is only sent when SNDAUTTRP is *YES and when at least one trap manager has been defined. This value may also be read or modified by an authorized SNMP manager.
The possible values are:
Top |
Specifies whether the SNMP agent is started when the STRTCP command or STRTCPSVR SERVER(*AUTOSTART) command runs.
The possible values are:
Top |
Specifies the default object access for SNMP communities.
The possible values are:
Top |
Specifies the default value for whether set requests from SNMP managers in a community are logged in journal QSNMP in library QUSRSYS.
The possible values are:
Top |
Specifies the default value for whether get requests and get-next requests from SNMP managers in a community are logged in journal QSNMP in library QUSRSYS.
The possible values are:
Top |
Specifies whether traps are logged in journal QSNMP in library QUSRSYS.
The possible values are:
Top |
Specifies which SNMP managers receive traps generated by this AS/400 system.
The possible values are:
Element 1: Manager Internet Address
Element 2: Community Name
Element 3: Translate Community Name
Top |
Example 1: Changing System Contact and Automatic Start
CHGSNMPA SYSCONTACT('JOE SMITH, PHONE 555-1212') AUTOSTART(*NO)
This command changes the system contact information and specifies that the SNMP agent should not start when the STRTCP command runs. All other values are unchanged.
Example 2: Changing Trap Managers
CHGSNMPA TRPMGR(('9.8.7.6' 'TRAPCOMMUNITY') ('9.8.7.5' 'TRAPCOMMUNITY2'))
This command causes any traps generated by the local iSeries 400 to be sent to SNMP managers that have internet protocol addresses 9.8.7.6 and 9.8.7.5. Community name TRAPCOMMUNITY is placed in traps sent to 9.8.7.6, and community name TRAPCOMMUNITY2 is placed in traps sent to 9.8.7.5. For both managers the community name is translated to ASCII characters before being placed in the trap.
Top |
*ESCAPE Messages
Top |