1. Communicationwith agent & server
1.1.Add nodegroup
opcnode -add_group group_name=uxmon
1.2.1.添加 node:
opcnode -add_node node_name=gasevs01 \
node_label=gasevs01 group_name=uxmon-nodegroup \
net_type=NETWORK_IP mach_type=MACH_BBC_SOL10_X86
opcnode -add_node node_name=tssavl10 \
node_label= tssavl10 group_name= uxmon \
net_type=NETWORK_IP mach_type=MACH_BBC_LX26RPM_X86
opcnode -add_node node_name= sgdsy205.chn.hp.com \
net_type=NETWORK_IP mach_type=MACH_BBC_HPUX_IPF32
opcnode -add_node node_name=gasevs01 \
node_label=gasevs01 group_name=OA11 \
net_type=NETWORK_IP mach_type=MACH_BBC_HPUX_PA_RISC
1.2.2.删除 node:
opcnode -del_node node_name=sgdsy205.chn.hp.com net_type=NETWORK_IP
If node still in some tables:
opcdbidx -orphan
1.2.3.server端设置node id
server#/opt/OV/bin/OpC/utils/opcnode -chg_idnode_name=<agent_name> id=<agent_coreid>
更改server信息
# ovconfchg -ns sec.cm.client -set CERTIFICATE_SERVER<server_host>
# ovconfchg -ns sec.core.auth -set MANAGER <server_host>
# ovconfchg -ns sec.core.auth -set MANAGER_ID <server_id>
ovcert -list 查看证书
ovcert -remove
ovcert –certreq
向server发送一个证书请求(server上agrant证书请求)
在server端:
ovcm –listpending –l
ovcm –grant <request_id>
直接生成文件
server# ovcm -issue -file /tmp/nodecert -name <server_hostname>-coreid <id>
在server或者同样server的agent上执行命令写出文件,并copy到要设定的agent上
server#ovcert -exportcert -file /tmp/nodecert -pass mypass -ovrg server
put nodecert to agent
agent# ovcert -importcert -file /tmp/nodecert
有疑难问题尝试以下步骤:
1. Remove agent certification & trusted
2.Remove server trusted :
ovcert -remove CA_dcd0c94c-cb7d-7506-079a-9cc1b0282993 -ovrg server
3.重新生成trust
ovcm –newcacert
4.导入
ovcm -issue -file /tmp/nodecert -name <server_hostname> -coreid<id>
ovcert -importcert -file /tmp/nodecert
5. ovstop
ovstart
agent上面发送一个mount request, 看server是否能收到
opcmsg a="test" o="ToT" msg_grp="test"msg_text="testmsg" severity=Major
#can try following command from each side
bbcutil -ping <hostname>
opcragt <agent_hostname>
查看 policy:
opcnode -list_ass_pol_groups node_name=isusel11 net_type=NETWORK_IP
assign policy:
opcnode -assign_pol_grouppol_group="/UXMON/UXMON_LINUX/UXMON_LINUX_PRE" \
node_name=isusel11 net_type=NETWORK_IP
cmd下发policy:
opcragt -distrib -policies -commands -force <node>
http://support.openview.hp.com/selfsolve/documents
chinese version of installation guidefor agent
Solution:
a. #opcsv -stop
#ovc -stop & ovc -kill
#opcagt -stop
b. server#rm -rf /var/opt/OV/share/tmp/OpC/mgmt_sv/*q
agent#rm -rf /var/opt/OV/tmp/OpC/*q
c. #ovc -start
#opcsv -start
#opcagt –start
redo agt configuration
ovconfchg -ns sec.core.auth -set MANAGER pln-omu-p.ecs.eslabs.ssn.hp.com
ovconfchg -ns sec.core.auth -set MANAGER_ID695aca2a-facf-7553-1fff-f27f66c1b7a2
ovconfchg -ns sec.cm.client -set CERTIFICATE_SERVERpln-omu-p.ecs.eslabs.ssn.hp.com
ovconfchg -ns eaagt -set SNMP_SESSION_MODE NO_TRAPD
ovc –kill
ovc –start