54.5. LDAP diagnostics and statistics

54.5.1. LDAP diagnostics

This command reports the current situation of the LDAP resource:

[20:14:32] ABILIS_CPX:d d ldap

RES:Ldap ----------------------------------------------------------------------
       Lightweight_Directory_Access_protocol                                   
       STATE:ACTIVE                                 DB-LOADED:YES
       CUR-SES:1            PEAK-SES:1              MAX-SES:10
       ENTRIES:12/1022      ATTRIBUTES:112/36792    ATTR-VALUES:143/44968
       - LDAP Sessions diagnostics --------------------------------------------
       SES: State     RemAdd-RemPort        User
       ------------------------------------------------------------------------
       0    IDLE      000.000.000.000-0     
       1    IDLE      000.000.000.000-0     
       2    IDLE      000.000.000.000-0     
       3    IDLE      000.000.000.000-0     
       4    IDLE      000.000.000.000-0     
       5    IDLE      000.000.000.000-0     
       6    IDLE      000.000.000.000-0     
       7    IDLE      000.000.000.000-0     
       8    IDLE      000.000.000.000-0     
       9    BINDED    192.168.029.254-62670 admin

The meaning:

STATE

LDAP port state:

  • INACTIVE - configuration parameter ACT:NO.

  • READY - the driver is fully ready to work.

DB-LOADED

Loaded state of database.

CUR-SES

Current used LDAP client sessions.

PEAK-SES

The peak of used LDAP client sessions.

MAX-SES

Maximum LDAP client sessions.

ENTRIES

Current/Maximum used LDAP entries.

ATTRIBUTES

Current/Maximum used LDAP attributes.

ATTR-VALUES

Current/Maximum used LDAP attribute values.

SES

The LDAP session's identifier.

State

Session state:

  • STOPPED;

  • IDLE;

  • CONNECTED;

  • BINDED.

RemAdd-RemPort

The remote IP address/port of LDAP session.

User

The connected user.

54.5.2. LDAP statistics

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

d s ldap

Shows the statistics of the LDAP resource.

d se ldap

Shows the statistics of the LDAP resource for each session.

[20:30:09] ABILIS_CPX:d s ldap

RES:Ldap ----------------------------------------------------------------------
       Lightweight_Directory_Access_protocol                                   
       --- Cleared 5 days 22:38:06 ago, on 24/04/2018 at 14:21:23 -------------
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       CHR        |     956486|    1110050|FMR        |      17084|      34165|
       LONG       |          0|           |BAD-FMT    |          0|           |
       DENIED-IP  |          7|           |TIME-OUT   |          2|           |

With reference to the shown interval of time («5 days 22:38:06 ago») these counters show the number of:

CHRIncoming/outgoing characters from UDP.
FMRIncoming/outgoing packets to UDP
LONGRefused incoming packets with too long length.
BAD-FMTRefused incoming malformed packets.
DENIED-IPRefused incoming packets with not allowed source IP address.
TIME-OUTIncoming timeouts.
[20:30:13] ABILIS_CPX:d se ldap

RES:Ldap ----------------------------------------------------------------------
       Lightweight_Directory_Access_protocol                                   
       --- Cleared 5 days 22:38:15 ago, on 24/04/2018 at 14:21:24 -------------
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       CHR        |     956486|    1110050|FMR        |      17084|      34165|
       LONG       |          0|           |BAD-FMT    |          0|           |
       DENIED-IP  |          7|           |TIME-OUT   |          2|           |
       ------------------------------------------------------------------------
       - LDAP Sessions statistics ---------------------------------------------
       SES:0
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       CHR        |     926435|    1075310|FMR        |      16544|      33087|
       LONG       |          0|           |BAD-FMT    |          0|           |
       DENIED-IP  |          0|           |TIME-OUT   |          1|           |
       ------------------------------------------------------------------------
       SES:1
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       CHR        |          0|          0|FMR        |          0|          0|
       LONG       |          0|           |BAD-FMT    |          0|           |
       DENIED-IP  |          1|           |TIME-OUT   |          0|           |
       ------------------------------------------------------------------------
       SES:2
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       CHR        |          0|          0|FMR        |          0|          0|
       LONG       |          0|           |BAD-FMT    |          0|           |
       DENIED-IP  |          1|           |TIME-OUT   |          0|           |
       ------------------------------------------------------------------------
       SES:3
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       CHR        |          0|          0|FMR        |          0|          0|
       LONG       |          0|           |BAD-FMT    |          0|           |
       DENIED-IP  |          1|           |TIME-OUT   |          0|           |
       ------------------------------------------------------------------------