Sun Java System Web Server 7.0 管理員指南

Procedure在 Solaris 上啟動 SNMP

  1. 配置 SNMP 參數。

    設定配置的 SNMP 參數。


    wadm> set-snmp-prop --user=admin --host=funland --port=1893 
    --config=test enabled=true master-host=masterhost-name organization=organization-name 
    location=location-name contact=contact-name description=description-name
  2. 部署配置。


    wadm> deploy-config --user=admin --password-file=admin.pwd 
    --host=serverhost --port=8989 config1
  3. 啟動伺服器實例。


    $ ./https-test/bin/startserv
  4. 以超級使用者身份執行主代理程式 (magt)。


    備註 –

    若要執行 magt,必須先停止本機 snmpd。



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

    移除檔案 https-admserv/config/logs/pid.masteragt (如果存在)。


    $ rm ./https-admserv/config/logs/pid.masteragt
        	   wadm>  start-snmp-master-agent --snmp-port 161 hostname
  5. 啟動子代理程式。

    移除檔案 https-admserv/config/logs/pid.httpagt (如果存在)。


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

    終止 httpagt (如果它已執行)。


    wadm> start-snmp-subagent hostname