devinteske

FreeBSD NFS Server Stats by IP

May 13th, 2020
599
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.33 KB | None | 0 0
  1. sudo dtrace -n 'inline string SA2IP[char data[14]] = strjoin(strjoin(strjoin(lltostr(data[2] & 0xFF), "."), strjoin(lltostr(data[3] & 0xFF), ".")), strjoin(strjoin(lltostr(data[4] & 0xFF), "."), lltostr(data[5] & 0xFF))); fbt:kernel:nfsrvd_read:entry, fbt:kernel:nfsrvd_write:entry { @[probefunc, SA2IP[args[0]->nd_nam->sa_data]] = count() }'
Add Comment
Please, Sign In to add comment