lmxstat - report status LMX port and buffer traffic
lmxstat [-v] [-p <pid>] [ interval [count]]
lmxstat [-z] <0/1>
The lmxstat utility reports the status of the LMX protocol and shows statistical counters of port and buffer traffic. Both port and buffer data transfers are done over LLT protocol. LLT currently supports interconnects like ethernet/GigE. lmxstat displays the output for both received and transmitted data in packets and Kbytes. With no options the output displays the received and transmitted data in packets and Kbytes per second. In the default mode lmxstat displays the output in 2 rows. The first row indicates the packets of port and buffer traffic received and transmitted every second and also the total of both of them. The second row indicates the port and buffer traffic received and transmitted in Kbytes and also the total of both of them for every second.
-v Without the -p option, in the verbose mode, the output is displayed for every 1, 10 and 30 second interval. The first row indicates the packets of port and buffer traffic received and transmitted every second and also the total of both of them. The second row shows the average number of packets of port and buffer traffic received and transmitted for every 10 second interval and the third row for every 30 second interval. The next three rows show this data in Kbytes. The -v option has a similar effect when used with the -p option. -p <pid> To get statistics for a process with PID=<pid>. To get statistics for all the processes which are using LMX, use -1 instead of a valid pid. -z <0|1> To disable/enable the per process statistics collection. In disable mode, the -p option is not usable.
The following operands are supported:
interval Specifies the last number of seconds over which lmxstat summarizes activity. This number of seconds repeats forever. count Specifies the number of times that the statistics are repeated.
(1) # lmxstat
1s port-rx buf-rx total-rx port-tx buf-tx total-tx total
pkt: 2 0 2 39 0 39 41
KB: 9 0 9 59 0 59 68 For example the first element in port-rx is 2, which means that 2 packets of port traffic were received in the last second. The total number of packets transmitted and received is
total-rx/s + total-tx/s = 2 + 39 = 41 packets The second row indicates the number of Kbytes of data transmitted and received. The total amount of data transmitted/received per second in Kbytes would be
9K + 59K = 68K
(2) # lmxstat -p 21445
1s pid ctx prx brx trx ptx btx ttx tot p: 21445 7 0 0 0 0 0 0 0
K: 21445 7 0 0 0 0 0 0 0
lmxconfig (1M), lmxdbstat(1M)