zlsof [-p[pids]|[-a[asids]|[-j[jobs]] [-u[users]] [-c] [-d] [-t] [-i] [-l] [-n] [-su] [-v] [-m maxtime] [-rw[seconds]] [pathname|pipe|socket]
The zlsof utility displays information about open files, sockets, and pipes (including named pipes, which are also known as FIFO special files). The display includes the file name or inode number, associated PID, user, file system, and whether the file was locked by the byte range lock manager (BRLM).
Filters are provided to limit output. Filters include specific processes, ASIDs, jobs, users, files, file systems, sockets, and pipes
The default output for an unauthorized invoker consists of open file information for processes that are associated with the user. If the invoker is authorized, the default output consists of open file information for all processes in the system.
You can also use the -rw option to monitor file system usage.
If socket or pipe is entered, the output will show only the socket or pipe and FIFO summary usage.
-p 11,22,37
-j resolver,cea
-a 23,1d
-u wjs,jhc
The output consists of two parts: First, the initial file or file system usage information that matches the input PIDs, ASIDs, jobs, users, and path name filters is displayed; second, the summary read and write activity for the corresponding file systems is provided.
SY1:/> zlsof -p 1,2,3,16777220
zlsof 120515: Searching for all file usage by process 1,2,3,16777220
Command PID User File System Mountpoint Inode/file
BPXPINPR 1 IBMUSER ZOS21.ROOT.HFS / r 3
ZOS21.ROOT.HFS / c 3
EZBREINI 2 RESOLVER ZOS21.ROOT.HFS / r 3
ZOS21.ROOT.HFS / c 3
EZBREUPS 3 RESOLVER ZOS21.ROOT.HFS / r 3
ZOS21.ROOT.HFS / c 3
CEAPSRVR 16777220 CEA ZOS21.ROOT.HFS / r 3
ZOS21.ROOT.HFS / c 3
CEAPSRVR 16777220 CEA socket: 1
End of output
SY1:/> zlsof -u wellie1
zlsof 120515: Searching for all file usage by user wellie1
Command PID User File System Mountpoint Inode/file
obrowse 83886089 WELLIE1 ZOS21.ROOT.HFS / r 3
ZOS21.ROOT.HFS / c 3
ZOS21.ROOT.HFS / 1259 /dev/ttyp0001
ZOS21.ROOT.HFS / 1259 /dev/ttyp0001
ZOS21.ROOT.HFS / 1259 /dev/ttyp0001
-sh 83886091 WELLIE1 ZOS21.ROOT.HFS / r 3
ZOS21.ROOT.HFS / c 3
ZOS21.ROOT.HFS / 1259 /dev/ttyp0001
ZOS21.ROOT.HFS / 1259 /dev/ttyp0001
ZOS21.ROOT.HFS / 1259 /dev/ttyp0001
ZOS21.ROOT.HFS / 1259 /dev/ttyp0001
ZOS21.ROOT.HFS / 1301 /tmp/.sh_history
OMVS 83886095 WELLIE1 ZOS21.ROOT.HFS / r 3
ZOS21.ROOT.HFS / 21 tmp
ZOS21.ROOT.HFS / 1258 /dev/ptyp0001
ZOS21.ROOT.HFS / 1323 //instruct.txt
SY1:/> zlsof -d
zlsof 120515: Searching for all file usage for deleted files
Command PID User File System Mountpoint Size Inode/file
OMVS 83886095 WELLIE1 ZOS21.ROOT.HFS / 1 1323 //instruct.txt
End of output
fuser