Monitoring using mmpmon
You can use mmpmon to monitor AFM and AFM DR.
- To reset some statistics on a gateway node, run the following commands:
echo "afm_s reset" | mmpmon echo "afm_s fset all" | mmpmon
- To reset all statistics, run the following command:
mmfsadm afm resetall
- To view the statistics, run the following command:
echo afm_s | mmpmon -s -r 0 -d 2000
This command shows statistics from the time the Gateway is functioning. Every gateway recycle resets the statistics.
The following example is from an AFM Gateway node. The example shows how many operations of each type were executed on the gateway node.
c2m3n10 Tue May 10 09:55:59 0]~# echo afm_s | mmpmon mmpmon> mmpmon node 192.168.2.20 name c2m3n10 afm_s s OK Name Queued Inflight Completed Errors Filtered ENOENT lookup 0 0 1 0 0 0 create 0 0 20 0 10 0 remove 0 0 0 0 10 0 open 0 0 2 0 0 0 read 0 0 0 0 1 0 write 0 0 20 0 650 0 BytesWritten = 53320860 (50.85 MB) (26035.58 KB/s) BytesToWrite = 0 (0.00 KB) Queue Delay (s) (min:0 max:19 avg:18) Async Msgs (expire:50 force:0 sync:4 revoke:0) NumMsgExecuted = 715 NumHomeconn = 292 NumHomedisc = 292 NumRPOMisses = 1
Field name | Description |
---|---|
BytesWritten | The amount of data synchronized to home. |
BytesToWrite | The amount of data in queue. |
QueueDelay | The maximum delay experienced by operations before sync to home. |
NumMsgExecuted | The number of operations executed at home. |
NumHomeconn | The number of times home reconnected after disconnection. |
NumHomedisc | The number of times home disconnected. |
NumRPOMisses | Related to RPOs for AFM primary fileset. |