Sun GlassFish Enterprise Manager SNMP Monitoring 1.0 Reference

Linux Platform

For additional information, see the man page for snmpd.conf.

    To configure SNMP on the Linux platform, follow these steps:

  1. Using a text editor, add the following lines to the end of the /etc/snmp/snmpd.conf file.

    rocommunity public
    proxy -c public -v 1 gf-ip-address:10161 1.3.6.1.4.1.42.2.9999.1.1.1

    Substitute the IP address for the machine on which the Enterprise Server is running for gf-ip-address. The default SNMP port is 10161; for information on how to change this port, see the Sun GlassFish Enterprise Manager SNMP Monitoring 1.0 Installation and Quick Start Guide.

  2. If the following line in the /etc/snmp/snmpd.conf file exists, comment it by adding a pound sign, #, at the beginning:

    # com2sec notConfigUser default public
  3. Restart the snmpd daemon using the following command:


    /etc/rc.d/init.d/snmpd restart
  4. Send the snmpd an HUP signal using the following commands.


    ps -ef |grep snmpd|grep -v grep|awk '{print $2;}'
    kill -HUP process-id
    

    Substitute the snmpd process ID for process-id.

  5. Verify the snmpd status using the following command:


    /etc/rc.d/init.d/snmpd status
  6. To test the Enterprise Server subagent through the Solaris S10 SNMP service, use an snmpwalk command such as this one, which retrieves all Enterprise Server tables:


    snmpwalk -c public -v 1 localhost 1.3.6.1.4.1.42.2.9999.1.1.1.1.1

    On the Linux platform, this command is located in /usr/bin/. For more information about using snmpwalk with the Enterprise Server, see the Sun GlassFish Enterprise Manager SNMP Monitoring 1.0 Installation and Quick Start Guide.

To uninstall the SNMP Proxy for the Linux platform, follow these steps:

  1. Stop the snmpd daemon using the following command:


    /etc/rc.d/init.d/snmpd stop
  2. Using a text editor, remove the following lines from the end of the /etc/snmp/snmpd.conf file:

    rocommunity public
    proxy -c public -v 1 gf-ip-address:10161 1.3.6.1.4.1.42.2.9999.1.1.1
  3. If the following line in the /etc/snmp/snmpd.conf file is commented with a pound sign, #, remove the pound sign:

    com2sec notConfigUser default public
  4. Restart the snmpd daemon using the following command:


    /etc/rc.d/init.d/snmpd restart