21.5. IPSH diagnostics and statistics

21.5.1. IPSH diagnostics

To display the diagnostics of the IPSH resource the following commands are used:

d d ipsh / d de ipsh

Shows diagnostic information, such as the state of the resource, the current and maximum number of buffers reached from start-up into the IPRTR's incoming/outgoing FIFOs and the maximum number of users present into the user table (this information indicate the maxuser parameter).

[18:06:40] ABILIS_CPX:d d ipsh

RES:IpSh ----------------------------------------------------------------------
       IP_Shaping_service
       STATE:READY
       MAX-BUF:2000         CUR-BUF:23            PEAK-BUF:952
       MAX-S-BUF:10000      CUR-S-BUF:0           PEAK-S-BUF:339
       MAX-USER:500         CUR-USER:19           PEAK-USER:39

21.5.2. IPSH statistics

To display the statistics of the IPSH resource the following commands are used:

d s ipsh / d se ipsh

Show statistic information, such the number of IP datagrams analyzed sent/received, number of IP datagrams shaped due to ip shaping flow matching and those ignored because don't match. There are also dropped packets due to MAXUSER-EXCEED set with DROP or out-of-buffer due to buf parameter.

[18:06:40] ABILIS_CPX:d s ipsh

RES:IpSh ----------------------------------------------------------------------
       IP_Shaping_service
       --- Cleared 4 days 18:57:29 ago, on 16/09/2011 at 17:42:18 -------------
       -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---|
       ANALYZED   |   92348416|   92328825|SHAPED     |   17811290|   26150576|
       IGNORED    |   74537126|   66178249|DROPPED    |          0|          0|
       OUTBUF     |          0|          0|MAXUSERS-EX|          0|          0|
       ------------------------------------------------------------------------