Cisco Wireless LAN Controller Configuration Guide, Release 7.5
Configuring SNMP
Downloads: This chapterpdf (PDF - 1.21MB) The complete bookPDF (PDF - 17.88MB) | The complete bookePub (ePub - 4.41MB) | Feedback

Configuring SNMP

Configuring SNMP

Configuring SNMP (CLI)


Note


To view the controller trap log, choose Monitor and click View All under “Most Recent Traps” on the controller GUI.
  • Create an SNMP community name by entering this command: config snmp community create name

  • Delete an SNMP community name by entering this command: config snmp community delete name

  • Configure an SNMP community name with read-only privileges by entering this command: config snmp community accessmode ro name

  • Configure an SNMP community name with read-write privileges by entering this command: config snmp community accessmode rw name

  • Configure an IP address and subnet mask for an SNMP community by entering this command:

    config snmp community ipaddr ip-address ip-mask name


    Note


    This command behaves like an SNMP access list. It specifies the IP address from which the device accepts SNMP packets with the associated community. An AND operation is performed between the requesting entity’s IP address and the subnet mask before being compared to the IP address. If the subnet mask is set to 0.0.0.0, an IP address of 0.0.0.0 matches to all IP addresses. The default value is 0.0.0.0.



    Note


    The controller can use only one IP address range to manage an SNMP community.


  • Enable or disable a community name by entering this command:

    config snmp community mode {enable | disable}

  • Configure a destination for a trap by entering this command:

    config snmp trapreceiver create name ip-address

  • Delete a trap by entering this command:

    config snmp trapreceiver delete name

  • Change the destination for a trap by entering this command:

    config snmp trapreceiver ipaddr old-ip-address name new-ip-address

  • Enable or disable the traps by entering this command:

    config snmp trapreceiver mode {enable | disable}

  • Configure the name of the SNMP contact by entering this command:

    config snmp syscontact syscontact-name

    Enter up to 31 alphanumeric characters for the contact name.

  • Configure the SNMP system location by entering this command:

    config snmp syslocation syslocation-name

    Enter up to 31 alphanumeric characters for the location.

  • Verify that the SNMP traps and communities are correctly configured by entering these commands:

    show snmpcommunity

    show snmptrap

  • See the enabled and disabled trap flags by entering this command:

    show trapflags

    If necessary, use the config trapflags command to enable or disable trap flags.

  • Configure when the warning message should be displayed after the number of clients or RFID tags associated with the controller hover around the threshold level by entering this command:

    config trapflags {client | rfid} max-warning-threshold {threshold-between-80-to-100 | enable | disable}

    The warning message is displayed at an interval of 600 seconds (10 minutes).

  • Configure the SNMP engine ID by entering this command:

    config snmp engineID engine-id-string


    Note


    The engine ID string can be a maximum of 24 characters.


  • View the engine ID by entering this command:

    show snmpengineID

  • Configure the SNMP version by entering this command:

    config snmp version {v1 | v2c | v3} {enable | disable}

SNMP Community Strings

The controller has commonly known default values of "public" and "private" for the read-only and read-write SNMP community strings. Using these standard values presents a security risk. If you use the default community names, and since these are known, the community names could be used to communicate to the controller using SNMP. Therefore, we strongly advise that you change these values.

Changing the SNMP Community String Default Values (GUI)


    Step 1   Choose Management and then Communities under SNMP. The SNMP v1 / v2c Community page appears.
    Step 2   If “public” or “private” appears in the Community Name column, hover your cursor over the blue drop-down arrow for the desired community and choose Remove to delete this community.
    Step 3   Click New to create a new community. The SNMP v1 / v2c Community > New page appears.
    Step 4   In the Community Name text box, enter a unique name containing up to 16 alphanumeric characters. Do not enter “public” or “private.”
    Step 5   In the next two text boxes, enter the IP address from which this device accepts SNMP packets with the associated community and the IP mask.
    Step 6   Choose Read Only or Read/Write from the Access Mode drop-down list to specify the access level for this community.
    Step 7   Choose Enable or Disable from the Status drop-down list to specify the status of this community.
    Step 8   Click Apply to commit your changes.
    Step 9   Click Save Configuration to save your settings.
    Step 10   Repeat this procedure if a “public” or “private” community still appears on the SNMP v1 / v2c Community page.

    Changing the SNMP Community String Default Values (CLI)


      Step 1   See the current list of SNMP communities for this controller by entering this command:

      show snmp community

      Step 2   If "public" or "private" appears in the SNMP Community Name column, enter this command to delete this community:

      config snmp community delete name

      The name parameter is the community name (in this case, “public” or “private”).

      Step 3   Create a new community by entering this command:

      config snmp community create name

      Enter up to 16 alphanumeric characters for the name parameter. Do not enter “public” or “private.”

      Step 4   Enter the IP address from which this device accepts SNMP packets with the associated community by entering this command:

      config snmp community ipaddr ip_address ip_mask name

      Step 5   Specify the access level for this community by entering this command, where ro is read-only mode and rw is read/write mode:

      config snmp community accessmode {ro | rw} name

      Step 6   Enable or disable this SNMP community by entering this command:

      config snmp community mode {enable | disable} name

      Step 7   Save your changes by entering this command:

      save config

      Step 8   Repeat this procedure if you still need to change the default values for a “public” or “private” community string.

      Configuring Real Time Statistics (CLI)

      SNMP traps are defined for CPU and memory utilization of AP and controller. The SNMP trap is sent out when the threshold is crossed. The sampling period and statistics update interval can be configured using SNMP and CLI.

      • Configure the sampling interval by entering this command: config service statistics sampling-interval seconds
      • Configure the statistics interval by entering this command: config service statistics statistics-interval seconds
      • See sampling and service interval statistics by entering this command: show service statistics interval

      SNMP Trap Enhancements

      This feature provides soaking of SNMP traps and resending of traps after a threshold that you can configure called the hold time. The hold time helps in suppressing false traps being generated. The traps that are supported are for CPU and memory utilization of AP and controller. The retransmission of the trap occurs until the trap is cleared.

      • Configure the hold time after which the SNMP traps are to be resent by entering this command:

        config service alarm hold-time seconds

      • Configure the retransmission interval of the trap by entering this command:

        config service alarm trap retransmit-interval seconds

      • Configure debugging of the traps by entering this command:

        debug service alarm {enable | disable}