CHGSNMPA (Change SNMP Attributes) Command
Purpose
The Change SNMP Attributes (CHGSNMPA) command is used to change values
and options that are used by the OS/400 SNMP agent. The command also is
used to specify which Simple Network Management Protocol (SNMP) managers
receive traps that are generated by the local AS/400 system.
The SNMP agent is shipped with the following values for the SNMP
attributes.
Keyword Value
SYSCONTACT *NONE
SYSLOC *NONE
SNDAUTTRP *YES
AUTOSTART *NO
OBJACC *READ
LOGSET *NO
LOGGET *NO
LOGTRP *NO
TRPMGR *NO
Optional Parameters
SYSCONTACT Specifies the name of the contact person
for this AS/400 system, along with the information on how to contact this
person. SNMP-specific functions use this value only. An authorized SNMP
manager may also read or change this value.
*SAME: The value does not change.
*NO: No system contact exists.
*CNTINF: The value is obtained from the service contact
information that is specified by using the Work with Contact Information
(WRKCNTINF) command. The value obtained consists of the contact person
and the contact telephone numbers.
system-contact: Specify the name of the contact person and
other contact information. All of the characters that are specified must
be able to be translated into the ASCII character set.
SYSLOC Specifies the physical location of this AS/400
system. SNMP-specific functions use this value only. An authorized SNMP
manager may read or change this value.
*SAME: The value does not change.
*NONE: No system location information exists.
*CNTIBF: The value is obtained from the service contact
information that is specified by using the Work with Contact Information
(WRKCNTINF) command. The value obtained consists the contact mailing
address.
system-location: Specify the physical location of the
system. All of the characters that are specified must be able to be
translated by the ASCII character set.
SNDAUTTRP 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 the 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. An authorized
SNMP manager may also read or change this value.
*SAME: The value does not change.
*YES: AuthenticationFailure trap may be sent.
*NO: AuthenticationFailure trap is not sent.
AUTOSTART Specifies whether the SNMP agent is started
when the STRTCP command runs.
*SAME: The value does not change.
*YES: The SNMP agent is started when the STRTCP command
runs.
*NO: The SNMP agent is not started when the STRTCP command
runs.
OBJACC Specifies the default object access for SNMP
communities.
*SAME: The value does not change.
*READ: Allow SNMP managers that are part of the community to
read all Management Information Base (MIB) objects. Modification of MID
objects by SNMP managers is not permitted.
*WRITE: Allow SNMP managers that are part of the community
to change all MIB objects that can be changed. Specifying *WRITE implies
*READ access.
*NONE: Do not allow SNMP managers that are part of the
community to change any MIB objects.
LOGSET Specifies the default value for whether set
requests from SNMP managers in a community are logged in journal QSNMP in
library QUSRSYS.
*SAME: The value does not change.
*YES: Set requests are logged.
*NO: Set requests are not logged.
LOGGET 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.
*SAME: The value is not changed.
*YES: Get requests and get-next requests are logged.
*NO: Get requests and get-next requests are not logged.
LOGTRP Specifies whether traps are logged in journal
QSNMP in library QUSRSYS.
*SAME: The value does not change.
*YES: Traps are logged.
*NO: Traps are not logged.
TRPMGR Specifies which SNMP managers receive traps
that are generated by this AS/400 system.
*SAME: The value does not change.
*NONE: No SNMP managers receive traps.
Element 1: Manager Internet Address
manager-internet-address: Specify the internet address of
the SNMP manager. The address must be of the form nnn.nnn.nnn.nnn
where nnn is a decimal number ranging form 0 to 255. This address
is independent of the manager internet address that is specified on the
ADDCOMSNMP and CHGCOMSNMP commands.
Element 2: Community Name
community-name: Specify the SNMP community name to be placed
in the traps that are sent to this SNMP manager. The community name
specified in this element is independent of the community name that is
specified on the ADDCOMSNMP, CHGCOMSNMP, and RMVCOMSNMP commands. The name
may contain characters that cannot be displayed.
Element 3: Translate Community Name
*YES: The community name is translated to ASCII characters
when a trap is sent to the SNMP manager. This value should be specified
when the community name consists entirely of characters that can be
displayed. An error message is sent if the community name cannot be
translated to ASCII characters.
*NO: The community name is not translated to ASCII
characters when a trap is sent to the SNMP manager. This value should be
specified when the community name consists one or more characters that
cannot be displayed.
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 that are generated by the local AS/400
system 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 that
are sent to 9.8.7.6, and community name TRAPCOMMUNITY2 is placed in traps
that are sent to 9.8.7.5. For both mangers the community name is
translated to ASCII characters before being placed in the trap.
|