Configuring SNMPv3 settings by using the command line

Enable SNMP and specify main connection and security and user details.

About this task

You can use the command line to configure connection details for SNMPv3.

Procedure

  1. Connect to the IBM® MQ Appliance as described in Command line access. Log in as an administrative user.
  2. Type config to enter global configuration mode.
  3. Type snmp to enter SNMP configuration mode.
  4. Enable SNMP by entering the following command:
    admin-state enabled
  5. Specify the IP address of the local interface on which the SNMP service listens for SNMP requests by entering the following command:
    ip-address local_IP_address
    Where local_IP_address is a local IP address. Specify 0.0.0.0 to listen on all appliance interfaces.
  6. Specify the port that is listened on by entering the following command:
    port port_number
    Where port_number is the port listened on. The port is set to 161 by default.
  7. Specify the security level by entering the following command:
    security-level level
    Where level is one of the following values:
    noAuthNoPriv

    The SNMP connection requires neither authentication of users nor encryption of data.

    authNoPriv

    The SNMP connection requires authentication of users but not the encryption of data.

    authPriv

    The SNMP connection requires authentication of users and encryption of data.

    If you select either of the levels that specify user authentication, you must define a local user for SNMP authentication, together with SNMP credentials. See Configuring local users by using the command line.
  8. Specify the user ID of the local user that is used for authentication:
    user userName
  9. Specify the access level of read-only by entering the following command:
    access-level read-only

What to do next

Specify whether default trap events are enabled.