Hello Dave! Yes, it is in the z/OS 2.1 SAXREXEC library and it is an alias of ZLSOF. You can customize your own rexx to be executed by system rexx though, I've done this for my personal use, should work under system rexx just fine (no guarantees ^_^):
/* rexx */ parse arg path call syscalls 'ON' address syscall 'getcwd cwd' address syscall 'geteuid' myeuid=retval if myeuid<>0 then do say 'Not running UID=0 - attempting to set UID=0' address syscall 'getuid' myuid=retval address syscall 'setreuid 0 0' lerrno=errno lerrnojr=errnojr address syscall 'geteuid' if retval<>0 then do say say 'Unable to set UID to 0. Errno='lerrno 'Reason='lerrnojr exit retval end end cmd="fuser -cu " path cmdrc=bpxwunix(cmd,,'cmo.','cme.') say 'command return code='cmdrc say if cmdrc > 0 then do do i=1 to cmo.0 say cmo.i end do i=1 to cme.0 say cme.i end end else if cmo.0 > 0 then do i=1 to cmo.0 say 'Listing users of 'word(cme.1,1) SAY 'JOBNAME |PID |ASIDX' do j = 1 to words(cmo.i) psrc=bpxwunix('ps -p 'word(cmo.i,j)' -ojobname -opid -oxasid',,'pso.','pse.') upper pso.2 say left(word(pso.2,1),8)'|'left(word(pso.2,2),10)'|'right(word(pso.2,3),4,'0') end end Regards, Leo -----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Hansen, Dave L - Eagan, MN Sent: Wednesday, October 22, 2014 4:42 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: BPXOINIT and SYSPLEX Mode Question Leo, Is bpxwlsof in your SYS1.SAXREXEC lib? I don't see it in mine, my message is not found in REXXLIB. In V2R1 TFS gets FSFULL. I'm just trying to get through on V1R13. We have no "df" commands that execute to query the filesystems. I guess we just wait for the full message. I guess we don't get a full message on V1R13 for a TFS filesystem. Sounds like we all should be querying /tmp until we get to V2R1. Thank you, Dave -----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Leonardo Vaz Sent: Wednesday, October 22, 2014 2:55 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: BPXOINIT and SYSPLEX Mode Question Like Rex said, probably due to UID=0. Since you seem to want a mvs command to do it you can execute "f axr,bpxwlsof '/tmp'" to find out the user id. If you need to know the jobname I have a rexx that you can also put on the system rexx library to list it. Regards, Leo -----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Hansen, Dave L - Eagan, MN Sent: Wednesday, October 22, 2014 2:44 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: BPXOINIT and SYSPLEX Mode Question Dear Friends, I've noticed on our z/OS V1R13 system that we do a "F BPXOINIT,SHUTDOWN=xxxx" and it works! However about z/OS V1R7 came a BPXPRMxx parameter SYSPLEX(YES/NO). We are a SYSPLEX=NO shop. So when I enter "F BPXOINIT,FILESYS=DISPLAY,FILESYSTEM=/TMP" I get an error: "BPXM106I UNIX SYSTEM SERVICES WAS NOT STARTED IN SYSPLEX MODE". I am looking for some help after reading the books. Perhaps the UID and OWNER information is only populated with zFS ownership (rather that z/OS UNIX ownership) of filesystems. I'd still like to track down our /tmp users in a non-shared environment. Supposedly /tmp filled up the other day and we IPL'd. UID=0 can report different USERIDs if they are all UID=0. It looks like OMVS USERIDS and TSO USERIDS also reported differently. And OWNERSHIP might change depending on whether or not you have zFS Sysplex Sharing (SYSPLEX=YES). Q). It says "The Modify Function Cannot Be Performed". Besides turning on SYSPLEX=YES, how can I get BPXOINIT to do a FILESYS=DISPLAY? Yes, I can work with "D OMVS,F" for Filesystems, but the RedBook on z/OS V1R13 Implementation shows that bpxoinit can tell me the UID and the OWNER. My OMVS display "d omvs,f,n=/tmp" shows: D OMVS,F,N=/TMP BPXO045I 12.58.20 DISPLAY OMVS 697 OMVS 000E ACTIVE OMVS=(00,FF,PC) TYPENAME DEVICE ----------STATUS----------- MODE MOUNTED LATCHES TFS 11 ACTIVE RDWR 04/15/2014 L=23 NAME=/TMP 19.06.21 Q=0 PATH=/SYSTEM/tmp MOUNT PARM=-s 10 Figure 15-27 in the RedBook on z/OS V1R13 Implementation shows more information from the omvs command that what I am getting. It shows UID=888 and OWNER=SC74. Q). How can I get more information out of my "d omvs,f" command so I can see the UIDs and OWNERs? My "fuser -cu /tmp" command shows many users of /tmp: <MNPB4U>fuser -cu /tmp /SYSTEM/tmp: 8c(IBMUSER) 25c(RMFGAT) 50331938(IBMUSER) 33554852c(AUTO2) fuser says these are TSO USERIDs. But when I enter "d omvs,u=IBMUSER" I get back IBMUSER NOT FOUND. With "ps -ef" I can see the PIDS with IBMUSER on them: IBMUSER 50331938 1 - Oct 21 ? 0:13 IMWHTTPD Q). How can IBMUSER have PID 50331938 that's using /tmp and not be found as an OMVS USERID? Thank you, Dave ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN