CL Command Reference - CHGSNMPA
CL Command List > CHGSNMPA Reference
Description:
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.
Examples:
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.