Prv8 Shell
Server : Apache
System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64
User : matalashes ( 1004)
PHP Version : 8.1.29
Disable Function : NONE
Directory :  /usr/share/systemtap/examples/network/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/systemtap/examples/network/nfsd-recent.stp
#!/usr/bin/stap

global times%,op% /* arrays indexed by client-ip */
global maxage=300 /* seconds */

probe nfsd.proc.entries, nfsd.entries {
    times[client_ip] = gettimeofday_s()
    op[client_ip] = name /* operation name */
}
probe end, error, timer.s(10) {
    printf("\n")
    foreach (ip in times-)
        if (times[ip] > (gettimeofday_s()-maxage)) /* recent enough */
            printf("%s %s %s\n", ctime(times[ip]), ip, op[ip])
}

haha - 2025