59.4. OPC diagnostics and statistics

59.4.1. OPC diagnostics

This command reports the current situation of the OPC resource:

[15:52:15] ABILIS_CPX:d d opc

RES:Opc -----------------------------------------------------------------------
       Operator_Panel_Collector                                                
       STATE:UP
       CUR-MAXUSERS:200  CUR-MAXCALLS:200  CUR-MAXCLIENTS:20 CUR-MAXREMOTES:1
       CUR-USERS:22      CUR-CALLS:0       CUR-CLIENTS:1     CUR-REMOTES:1
       - OPC Sessions ---------------------------------------------------------
       Ses  State    SessionID              PendingTime     WaitingTime
       ------------------------------------------------------------------------
       0    READY                           0               0
       1    USED     001201610121539139199  10              0
       2    READY                           0               0
       3    READY                           0               0
       4    READY                           0               0
       5    READY                           0               0
       6    READY                           0               0
       7    READY                           0               0
       8    READY                           0               0
       9    READY                           0               0
       10   READY                           0               0
       11   READY                           0               0
       12   READY                           0               0
       13   READY                           0               0
       14   READY                           0               0
       15   READY                           0               0
       16   READY                           0               0
       17   READY                           0               0
       18   READY                           0               0
       19   READY                           0               0
       - OPC Remote collectors ------------------------------------------------
       Rem  AbilisId                               LocAdd-LocPort
            Tcp-State    Login-State   Protocol    RemAdd-RemPort
       ------------------------------------------------------------------------
       0    Remote                                 192.168.020.254-15735  
            CONNECTED    LOGGED        Plain       192.168.029.254-80     
       ------------------------------------------------------------------------

The meaning:

STATE

VS driver state:

  • DOWN - configuration parameter ACT:NO.

  • UP - the driver is fully ready to work.

CUR-MAXUSERS

The maximal number of users that can be managed until reboot.

CUR-MAXCALLS

The maximal number of simultaneous calls that can be managed until reboot.

CUR-MAXCLIENTS

The maximal number of clients that are possible until reboot.

CUR-MAXREMOTES

The maximal number of remote abilis clients that are possible until reboot.

CUR-USERS

Number of simultaneous users currently managed.

CUR-CALLS

Number of simultaneous calls currently managed.

CUR-CLIENTS

Number of HTTP clients that are currently used.

CUR-REMOTES

Number of remote abilis clients that are currently used.

Ses

The number of the OPC session.

State

The OPC session state:

  • READY - ready to be used.

  • USED - currently used.

SessionID

The OPC session identifier, when session is used.

PendingTime

Time elapsed since update request was received, and is still pending. When it reaches XML-TOUT value the pending update request gets completed.

WaitingTime

Time since last request, full or update, has been completed. If it reaches 30 seconds the session gets closed.

Rem

The identification number of the remote collector.

AbccilisId

The remote configured AbilisId parameter for OPC resource.

Tcp-State

The OPC session state:

  • CLOSED - The TCP session is closed.

  • CALLING - Remote collector is trying to open session to the remote client.

  • CONNECTED - Remote collector is connected to the remote client.

  • CLEARING - Remote collector is closing session to the remote client.

  • DELAY - Remote collector is waiting to make a new connection.

Login-State

The OPC session phase:

  • DOWN;

  • NOTLOGGED;

  • LOGGING;

  • LOGGED;

  • UNKNOWN.

Protocol

Protocol: Plain; SSL.

LocAdd-LocPort

OPC Channel local IP address/TCP port.

RemAdd-RemPort

OPC Channel remote IP address/TCP port.

59.4.2. OPC statistics

This command can help to understand what is happening, in case of troubles:

[15:52:18] ABILIS_CPX:d s opc

RES:Opc -----------------------------------------------------------------------
       Operator_Panel_Collector                                                
       --- Cleared 3 days 20:02:47 ago, on 13/08/2018 at 17:26:41 -------------
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       USER-STATE |        980|           |CALL-STATE |       1993|           |
       BAD-USERST |          0|           |BAD-CALLST |          0|           |
       BAD-USER   |        308|           |BAD-CALLDIR|          0|           |
       BADABILISID|          0|           |BADINTERF  |         52|           |
       ------------------------------------------------------------------------

With reference to the shown interval of time («Cleared 3 days 20:02:47 ago») these counters show the number of:

USER-STATENumber of state changes for users.
CALL-STATENumber of state changes for calls.
BAD-USERSTNumber of user requests without setting a valid state.
BAD-CALLSTNumber of call requests without setting a valid state.
BAD-USERNumber of user/call requests without setting a valid user name.
BAD-CALLDIRNumber of call requests without setting a valid call direction.
BADABILISIDNumber of user/call requests without setting a valid abilis identifier.
BADINTERFNumber of user/call requests without setting a valid interface type.
IMAGE-ERRErrors that occurred during the download and decryption of the image.