My previous post has presented an hidden command for analysing in real time fabric statistics. I've developed a small op script, for the MX platform, that provides in one command the PFE/Fabric IN/OUT statistics for all the Fabric Planes (0 to 5) for a given DPC/MPC.
During stress tests it could be very useful :) At least, for me !
The 'op' script is called fabstats.slax. It has been tested with release 10.2 and 11.4. You can simply download it : here
After that, just upload it in the directory /var/db/scripts/op/ of your MX and activate the script by entering the following command :
edit exclusive
set system scripts op file fabstats.slax
commit sync and-quit
Now we can play with it:
sponge@bob> op fabstats ?
Possible completions:
<[Enter]> Execute this command
<name> Argument name
detail Display detailed output
fpc Specify fpc slot number
| Pipe through a command
You must provide 1 parameter :
- fpc : fpc slot number
Hereafter one sample output :
sponge@bob> op fabstats fpc 2
+------------------+
| PFE ---in-> FAB |
+------------------+
PLANE/PFE State vld/sec req/sec gnt/sec drops/sec
================================================================
0 / PFE0 up 0001389846 0001389844 0000313292 0000000000
1 / PFE0 up 0001389925 0001389925 0000313252 0000000000
2 / PFE0 up 0001368917 0001368916 0000308452 0000000000
3 / PFE0 up 0001368633 0001368637 0000308478 0000000000
4 / PFE0 up 0001368566 0001368571 0000308468 0000000000
5 / PFE0 up 0001368687 0001368690 0000308472 0000000000
0 / PFE1 up 0001262146 0001262139 0000294623 0000000000
1 / PFE1 up 0001262167 0001262162 0000294615 0000000000
2 / PFE1 up 0001294673 0001294678 0000290615 0000000000
3 / PFE1 up 0001294685 0001294686 0000290635 0000000000
4 / PFE1 up 0001294625 0001294619 0000290667 0000000000
5 / PFE1 up 0001294503 0001294514 0000290658 0000000000
0 / PFE2 up 0000227301 0000227301 0001443901 0000000000
1 / PFE2 up 0000227290 0000227288 0001444082 0000000000
2 / PFE2 up 0000228450 0000228451 0001453358 0000000000
3 / PFE2 up 0000228462 0000228461 0001453281 0000000000
4 / PFE2 up 0000228453 0000228452 0001453273 0000000000
5 / PFE2 up 0000228455 0000228455 0001453415 0000000000
0 / PFE3 up 0000257854 0000257857 0001667622 0000000000
1 / PFE3 up 0000257862 0000257862 0001667616 0000000000
2 / PFE3 up 0000255225 0000255226 0001671581 0000000000
3 / PFE3 up 0000255200 0000255198 0001671503 0000000000
4 / PFE3 up 0000255215 0000255214 0001671716 0000000000
5 / PFE3 up 0000255200 0000255199 0001671497 0000000000
+-------------------+
| FAB -out---> PFE |
+-------------------+
PLANE/PFE State vld/sec req/sec gnt/sec drops/sec
================================================================
0 / PFE0 up 0000313275 0000313275 0001389929 0000000000
1 / PFE0 up 0000313244 0000313242 0001389868 0000000000
2 / PFE0 up 0000308446 0000308449 0001368708 0000000000
3 / PFE0 up 0000308497 0000308496 0001368686 0000000000
4 / PFE0 up 0000308474 0000308475 0001368732 0000000000
5 / PFE0 up 0000308490 0000308489 0001368694 0000000000
0 / PFE1 up 0000294612 0000294611 0001262178 0000000000
1 / PFE1 up 0000294610 0000294613 0001262149 0000000000
2 / PFE1 up 0000290634 0000290633 0001294738 0000000000
3 / PFE1 up 0000290651 0000290650 0001294720 0000000000
4 / PFE1 up 0000290671 0000290671 0001294598 0000000000
5 / PFE1 up 0000290636 0000290634 0001294559 0000000000
0 / PFE2 up 0001443927 0001443922 0000227313 0000000000
1 / PFE2 up 0001444013 0001444003 0000227289 0000000000
2 / PFE2 up 0001453318 0001453323 0000228456 0000000000
3 / PFE2 up 0001453248 0001453257 0000228453 0000000000
4 / PFE2 up 0001453229 0001453233 0000228462 0000000000
5 / PFE2 up 0001453326 0001453323 0000228467 0000000000
0 / PFE3 up 0001667641 0001667643 0000257854 0000000000
1 / PFE3 up 0001667661 0001667662 0000257872 0000000000
2 / PFE3 up 0001671467 0001671459 0000255195 0000000000
3 / PFE3 up 0001671527 0001671538 0000255201 0000000000
4 / PFE3 up 0001671674 0001671675 0000255213 0000000000
5 / PFE3 up 0001671511 0001671505 0000255217 0000000000
David.