Sun Java System Web Server 7.0 Update 1 Administrator's Guide

ProcedureTo Activate SNMP on Solaris

  1. Configure SNMP Parameters.

    Set the SNMP parameters for the configuration.

    wadm> enable-snmp --user=admin --password-file=../admin.passwd 
    --host=serverhost --port=8989 --ssl=true --no-prompt --rcfile=null 
    --config=config1 --loconfig1ion=india --master-host=hostname 
    --description=cli-snmp --organization=sun --contact=internal
  2. Deploy the Configuration.

    wadm> deploy-config --user=admin --password-file=admin.pwd 
    --host=serverhost --port=8989 config1
  3. Start the Server Instance.

    $ ./https-test/bin/startserv
  4. Run Master Agent (magt) as root.

    Note –

    To run magt, native snmpd must be stopped.

    $ cd /etc/init.d/
    		   $ init.dmi stop; init.snmpdx stop; init.sma stop

    Remove the file https-admserv/config/logs/pid.masteragt (If present).

    $ rm ./https-admserv/config/logs/pid.masteragt
        	   wadm>  start-snmp-master-agent --snmp-port 161 hostname
  5. Start the Sub Agent.

    Remove the file https-admserv/config/logs/pid.httpagt( If present).

    $ rm ./https-admserv/config/logs/pid.httpagt

    Kill the httpagt if it is already running

    wadm> start-snmp-subagent hostname