Hitachi

JP1 Version 12 JP1/Extensible SNMP Agent Description, Operator's Guide and Reference


2.7.3 How to register community names

When SNMP Agent is installed, public is set in both get and set community names.

To change the default get community name:

  1. Register a get community name.

  2. Register a set community name.

  3. Store the community names in the manager.

  4. Specify the community names in the native agent (applicable to Solaris).

Organization of this subsection

(1) Registering a get community name

The following procedure shows how to register a get community name.

Procedure

  1. Search the configuration file (/etc/SnmpAgent.d/snmpd.conf) for the following line:

    get-community-name:     public

    For details about the snmpd.conf file, see Configuration file (snmpd.conf) in Chapter 6. Definition Files.

    The get-community-name: label is located near the end of the file.

  2. Change the get community name.

    public is set by default. To change this value, delete public and enter a desired get community name for SNMP Agent, expressed as a string of ASCII characters. To specify multiple get community names, add as many lines as needed.

    For details about how to specify community names, see 2.7.4 How to specify community names.

    Example:

    get-community-name: public
    get-community-name: private

(2) Registering a set community name

The following procedure shows how to register a set community name.

Procedure

  1. Search the configuration file (/etc/SnmpAgent.d/snmpd.conf) for the following line:

    #set-community-name:    # enter community name

    For details about the snmpd.conf file, see Configuration file (snmpd.conf) in Chapter 6. Definition Files.

    The #set-community-name: label is located near the end of the file.

  2. Add a set community name.

    This name is provided as a comment line by default. Delete the hash mark (#) preceding the set-community-name: label and the comment (consisting of the second hash mark (#) and what follows it), and then enter a desired set community name for SNMP Agent, expressed as a string of ASCII characters. To specify multiple set community names, add as many lines as needed.

    For details about how to specify community names, see 2.7.4 How to specify community names.

    Example:

    set-community-name: private
    set-community-name: point
    Important
    • Specifying community names

      If you use the same name for both get and set community names, specify the name only in the set-community-name: label. To use different names for get and set community names, specify appropriate names in the get-community-name: and set-community-name: labels.

    • Suppressing the transmission of authentication failure traps

      To suppress the transmission of authentication failure traps after you have set community names for SNMP Agent, set 2 in snmpEnableAuthenTraps in the configuration file (/etc/srconf/agt/snmpd.cnf), and then restart SNMP Agent.

      For details about the transmission of authentication failure traps, see 2.7.5 Sending authentication failure traps.

(3) Storing community names in the manager

Store community names in the manager so that the manager's applications can access MIBs using the correct community names of each SNMP Agent.

(4) Specifying the community name of the native agent (for Solaris)

If SNMP Agent is running on a Solaris system, the community name of the native agent must be set.

The following procedure shows how to specify the community name of the native agent.

Procedure

  1. Make sure that the community name of the native agent has been specified.

    Make sure that the following line is specified in the configuration file (/etc/net-snmp/snmp/snmpd.conf):

    rocommunity public

  2. If these lines are not defined, add the community name of the native agent.

    Add the line from step 1.