Hitachi

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


3.5 Changing the maximum number of connected subagents

The maximum number of connected subagents indicates the maximum number of subagents that can be connected to the master agent. The default value is 22. This setting is defined in the /etc/srconf/agt/snmpd.cnf file. If the master agent receives a connection request that exceeds the maximum number of subagents that can be connected, it will output the following message to the /var/adm/snmpd.log file. For details about the snmpd.cnf file, see Configuration file (snmpd.conf) in Chapter 6. Definition Files.

AllocSubagent: runtime_MAX_SUBAGENTS exceeded

If this message is output, change the maximum number of connected subagents. To do this, log into the system as a superuser and perform the following procedure.

Procedure

  1. Open /etc/srconf/agt/snmpd.cnf.

  2. Find the following line:

    MAX_SUBAGENTS 22

    This value is the maximum number of connected subagents.

  3. After the MAX_SUBAGENTS label, enter a desired number of subagents that can be connected.

  4. Find the following line:

    MAX_THREADS 22

    This value is the maximum number of threads that can be generated by the master agent at the same time.

  5. After the MAX_THREADS label, enter the same value as that specified for the MAX_SUBAGENTS label.

  6. Execute the snmpstart command.

    SNMP Agent restarts.

    Important

    The minimum values of MAX_SUBAGENTS and MAX_THREADS are both 22. The maximum value depends on the maximum number of threads that can be generated per process by the OS.