配置 SNMP 參數。
設定配置的 SNMP 參數。
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 |
部署配置。
wadm deploy-config --user=admin --password-file=admin.pwd --host=serverhost --port=8989 config1 |
啟動伺服器實例。
$ ./https-test/bin/startserv |
以超級使用者身份執行本機主代理程式 (snmpd)。
若要允許使用 snmpd 進行直接通訊,請在 /etc/snmp/snmpd.conf 中增加下一行,然後重新啟動 snmpd。
smuxpeer 1.3.6.1.4.1.42.2.190.1
view systemview included .1.3.6.1.4.1.42.2.190.1
# cd /etc/init.d/ # ./snmpd stop # ./snmpd start |
啟動子代理程式。
移除檔案 https-admserv/config/logs/pid.httpagt (如果存在)。
$ rm ./https-admserv/config/logs/pid.httpagt |
強制結束 httpagt (如果它已執行)。
wadm> start-snmp-subagent hostname |