TCPIP$UCP_HELP.HLB  —  SET  CONFIGURATION  SNMP  Examples
    1.TCPIP> SET CONFIGURATION SNMP /COMMUNITY="public" -
      _TCPIP> /CONTACT="Sam Spade" -
      _TCPIP> /LOCATION=(FIRST="Falcon Building",SECOND="Los Angeles,
      California")

      Configures SNMP with the standard public community, taking the
      default type (READ) and address (0.0.0.0) for that community.
      Both contact and location are specified.

      The first and second parts of the location text are
      concatenated when displayed by an SNMP client. For example:

        Falcon BuildingLos Angeles, California

      If no update to the location text is done by an SNMP client,
      the display produced by SHOW CONFIGURATION SNMP is as follows:

        Location
        First:  Falcon Building
        Second: Los Angeles, California

      If the text is updated by an SNMP client (for example, to
      change "Falcon" to "Falconi"), the original formatting is not
      preserved and the display produced by SHOW CONFIGURATION SNMP
      is as follows:

        Location
        First:  Falconi BuildingLos Angeles, California

    2.TCPIP> SET CONFIGURATION SNMP /COMMUNITY="rw" /TYPE=WRITE -
      _TCPIP> /ADDRESS=136.20.100.10 /FLAGS=SETS

      Configures a community with only read/write access to the host
      with the address specified. Other hosts still have read access
      through the public community. Also sets the SETS flag to enable
      the SNMP agents to process write requests from SNMP clients on
      host 136.20.100.10.

    3.TCPIP> SET CONFIGURATION SNMP /NOCOMMUNITY="rw"

      Removes the rw (read/write) community (set in example 2.)

    4.TCPIP> SET CONFIGURATION SNMP /COMMUNITY="trapit" /TYPE=TRAP -
      _TCPIP> /ADDRESS=136.20.0.10

      Configures SNMP so that agents can send trap messages to the
      well-known UDP port 162 on the host identified with the address
      136.20.0.10.

    5.TCPIP> SET CONFIGURATION SNMP /FLAGS=AUTHEN_TRAPS -
      _TCPIP> /COMMUNITY="trapit2" /TYPE=TRAP -
      _TCPIP> /ADDRESS=(136.20.0.12,136.20.0.15)

      Configures SNMP with the AUTHEN_TRAPS flag so that the
      master agent sends trap messages when it detects a client
      request containing an invalid community name. Also configures
      an additional trap community. Trap messages, including
      authentication traps, go to all three addresses specified in
      the trap communities configured in this example and in example
      4.

    6.TCPIP> SET CONFIGURATION SNMP  /COMMUNITY="rw2" /TYPE=WRITE -
      _TCPIP> /ADDRESS=(136.20.0.15,136.20.0.100)

      Configures community rw2, which gives read/write access to
      two hosts. Note that one address can appear for more than one
      community, although a given address cannot be specified more
      than once for a single community.
Close Help