Created
March 23, 2018 13:16
-
-
Save blackknight36/cc293d8a1cee6f4d2218c0bd56bc5936 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
NFSD=/proc/net/rpc/nfsd | |
procs="getattr setattr lookup access readlink read write create mkdir symlink mknod remove rmdir rename link readdir readdirplus fsstat fsinfo pathconf commit" | |
i=12; | |
for proc in $procs; do | |
echo -n "$proc: " | |
awk "/proc4ops/ {print \$${i}}" /proc/net/rpc/nfsd | |
i=$(expr $i + 1) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment