配置 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 |