opcagt-administer agent on Managed Node

来源:互联网 发布:java审批流 编辑:程序博客网 时间:2024/05/16 01:22

这个命令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


原创粉丝点击