Enable this feature to report default events to an SNMP if they arise.
About this task
You can use the command line to enable or disable the reporting of default trap events and to
specify a target for them.
Procedure
-
Connect to the IBM® MQ Appliance as described in
Command line access. Log in as an administrative user.
-
Type
config to enter global configuration mode.
-
Type
snmp to enter SNMP configuration mode.
-
Enable default trap events by entering the following command:
trap-default-subscriptions on
Specify
off to disable
the default trap events.
-
Specify the version of SNMP that you are using:
version versionNumber
Where
versionNumber can be 1, 2c, or 3.
-
If you are using SNMP v3, enter the following command:
trap-target ip_address [port] snmpVersion user security_level
Where:
- ip_address
- Specifies the IP address of the host that receives notifications.
- port
- Optionally specify the port. The port is 162 by default.
- snmpVersion
- Specify
3 to indicate that you are using SNMPv3.
- user
- Specify the user ID that is used to send notifications.
- security_level
- Specify the security level. The level is one of
noAuthNoPriv,
authNoPriv, or authPriv.
-
If you are using SNMPv1 or SNMP v2c, enter the following command:
trap-target ip_address [port] snmpVersion community
Where:
- ip_address
- Specifies the IP address of the host that receives notifications.
- port
- Optionally specify the port. The port is 162 by default.
- snmpVersion
- Specify
1 or 2c to indicate that you are using SNMPv1 or
SNMPv2c.
- community
- Provides a community name, which is essentially a password, to include in the SNMP message
header. The default value is
public.
What to do next
If you have finished configuring SNMP, type exit to save the
configuration and exit, or type cancel to exit without saving.