OVO常用命令 :Communication with agent & server


1.   Communicationwith agent & server

1.1.       Add nodegroup

opcnode  -add_group group_name=uxmon

1.2.       Add node

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>

 

1.3.       ovconfchg

更改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>

 

1.4.       certification

ovcert -list 查看证书

ovcert -remove

1.4.1.          Grant

ovcert –certreq

向server发送一个证书请求(server上agrant证书请求)

 

在server端:

ovcm –listpending –l 

ovcm –grant <request_id>

1.4.2.          -importcert

直接生成文件

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

 

1.5.       Check

1.5.1.          opcmsg

agent上面发送一个mount request, 看server是否能收到

opcmsg a="test" o="ToT" msg_grp="test"msg_text="testmsg" severity=Major

 

1.5.2.          bbcutil

#can try following command from each side

bbcutil -ping <hostname>

1.5.3.          opcragt

opcragt <agent_hostname>

1.6.       Assign policy

查看 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

1.7.       deploy policy

cmd下发policy:

opcragt -distrib -policies -commands -force <node>

 

http://support.openview.hp.com/selfsolve/documents

http://support.openview.hp.com/selfsolve/document/KM1020024/binary/OpAgent11.0_ReleaseNotes.html?searchIdentifier=49f4ef2%3a1333fe082be%3a8e3&resultType=document

 

chinese version of installation guidefor agent

http://support.openview.hp.com/selfsolve/document/KM1139476/binary/OpAgent11.0_Installation_zh.pdf?searchIdentifier=49f4ef2%3a1333fe082be%3a8e3&resultType=document

 

1.8.       agentbuffering

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

 

 



 


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值