opcagt-administer agent on Managed Node

这个命令opcagt 用来管理OMU管理node 的agent进程。这个命令需要sudo/admin权限来执行。在server端有相似的命令opcragt,该命令是server用来管理remote nodes的。

如果在执行opcagt的时候,不接任何option, opcagt会返回本机当前agent的状态。(相当于opcagt  -status)


普 通 用 户 $opcagt                                                                                                                                                      
Only 'root' users and members of group 'bin' can control OV processes

root用户# opcagt
coda        OV Performance Core                 AGENT,CODA   (15169)  Running
opcmsga     OVO Message Agent                   AGENT,EA     (15170)  Running
opcacta     OVO Action Agent                    AGENT,EA     (15171)  Running
opcmsgi     OVO Message Interceptor             AGENT,EA     (15181)  Running
opcle       OVO Logfile Encapsulator            AGENT,EA     (15192)  Running
opcmona     OVO Monitor Agent                   AGENT,EA     (15198)  Running
opctrapi    OVO SNMP Trap Interceptor           AGENT,EA     (15199)  Running


NOTE: 用命令opcragt来管理remote node 的 agent,OMU的agent一定要运行在node上,否则agent不能从OMU管理服务器started / stopped。

server端:

# opcragt -stop 16.187.113.7
Node IOMRHEL2:
Shutting down OpC services...Done.


# opcragt -status 16.187.113.7
Node IOMRHEL2:
OVO Managed Node status :
-------------------------
OV Performance Core  coda                              (3003) is running
OV Communication Broker ovbbccb                           (2984) is running
OV Control           ovcd                              (2976) is running
OV Config and Deploy ovconfd                           (3005) is running
Subagent EA:
Action Agent         opcacta                           isn't running
Logfile Encapsulator opcle                             isn't running
Monitor Agent        opcmona                           isn't running
Message Agent        opcmsga                           isn't running
Message Interceptor  opcmsgi                           isn't running
Done.

node端:

[root@IOMRHEL2 ~]# opcagt -status
scopeux     Perf Agent data collector                        (2865)   Running
midaemon    Measurement Interface daemon                     (2889)   Running
ttd         ARM registration daemon                          (2841)   Running
perfalarm   Alarm generator                                  (2879)   Running
coda        OV Performance Core                 COREXT       (3003)   Running
opcacta     OVO Action Agent                    AGENT,EA              Stopped
opcle       OVO Logfile Encapsulator            AGENT,EA              Stopped
opcmona     OVO Monitor Agent                   AGENT,EA              Stopped
opcmsga     OVO Message Agent                   AGENT,EA              Stopped
opcmsgi     OVO Message Interceptor             AGENT,EA              Stopped
Could not contact Message Agent to query buffering state.


转载请注明出处,作者No. Liu


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值