Sun Java System Web Proxy Server 4.0.2 2005Q4 Administration Guide

Using a Proxy SNMP Agent (UNIX)

You need to use a proxy SNMP agent when you already have a native agent running, and you want to use continue using it concurrently with Proxy Server master agent. Before you start, be sure to stop the native master agent. (See your system documentation for detailed information.)


Note –

To use a proxy agent, you will need to install it and then start it. You will also have to restart the native SNMP master agent using a port number other than the one the Proxy Server master agent is running on.


This section includes the following topics:

Installing the Proxy SNMP Agent

If an SNMP agent is running on your system and you want to continue using the native SNMP daemon, follow the steps in these sections:

ProcedureTo install the Proxy SNMP Agent

Steps
  1. Install the SNMP master agent. See Installing the SNMP Master Agent.

  2. Install and start the proxy SNMP agent and restart the native SNMP daemon. See Using a Proxy SNMP Agent (UNIX).

  3. Start the SNMP master agent. See Enabling and Starting the SNMP Master Agent.

  4. Enable the subagent. See Enabling the Subagent.

    To install the SNMP proxy agent, edit the CONFIG file (you can give this file a different name), located in plugins/snmp/sagt in the server root directory, so that it includes the port that the SNMP daemon will listen to. It also needs to include the MIB trees and traps that the proxy SNMP agent will forward.

    Here is an example of a CONFIG file:


    AGENT AT PORT 1161 WITH COMMUNITY public
    SUBTREES       1.3.6.1.2.1.1, 
                   3.6.1.2.1.2,
                   1.3.6.1.2.1.3,
                   1.3.6.1.2.1.4,
                   1.3.6.1.2.1.5,
                   1.3.6.1.2.1.6,
                   1.3.6.1.2.1.7,
                   1.3.6.1.2.1.8
    FORWARD ALL TRAPS;

Starting the Proxy SNMP Agent

To start the proxy SNMP agent, at the command prompt, enter:

# sagt -c CONFIG&

Restarting the Native SNMP Daemon

After starting the proxy SNMP agent, you need to restart the native SNMP daemon at the port you specified in the CONFIG file. To restart the native SNMP daemon, at the command prompt, enter

# snmpd -P port_number

where port_number is the port number specified in the CONFIG file. For example, on the Solaris platform, using the port in the previously mentioned example of a CONFIG file, you would enter:

# snmpd -P 1161