Information
Unsupported content This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

Modifying the snmpagt.cfg file


The SNMP "COMMUNITY" is used for security reasons to allow SNMP manager to identify itself to an SNMP agent. The COMMUNITY clause is used within the PATROL SNMP Master Agent configuration file, PATROL_HOME/lib/snmpmagt.cfg, to define external access to PATROL Agent SNMP subagent(s).

Within PATROL, the default community string is "public"; however, you must change the community. The default COMMUNITY clause within the SNMP Master Agent configuration file is as follows:

COMMUNITY public
ALLOW ALL OPERATIONS
USE NO ENCRYPTION

Within the PATROL Master Agent configuration, the default community is "public"; however, you must change the community in order to restrict SNMP access to the PATROL Agent SNMP.

The following formats are acceptable for entering COMMUNITY string in PATROL_HOME/lib/snmpmagt.cfg:

  • A series of ASCII characters (both numeric and non-numeric characters are allowed) beginning with a non-numeric character with no double quotes. For example:

    "public" is entered as: COMMUNITY public.
  • A series of ASCII characters (both numeric and non-numeric characters are allowed) beginning with either a numeric or non-numeric character surrounded by quotes. For example:

    "public" would be entered as: COMMUNITY "public"
     "0public" would be entered as: COMMUNITY "0public"
  • A series of hex digits representing ASCII representation of characters preceded by 0x. For example:

    "public" would be entered as: COMMUNITY 0x7075626C6963.

The following error message is generated when the COMMUNITY that is entered violates the rules described above:

<$PATROL_HOME>/lib/snmpmagt.cfg, line 1 near "@": syntax error ./snmpmagt: error processing configuration 

To maintain consistency when changing the COMMUNITY in the snmpmagt.cfg file, also update the following agent configuration variables:

  • /snmp/agent_r_community "<your_public_name>"
  • /snmp/agent_w_community "<your_private_name>"
  • /snmp/default_r_community "<your_public_name>"
  • /snmp/default_w_community "<your_private_name>"

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC PATROL Agent 9.5