Manu, Correction. The SYSTEM(1301) is really SYSTEM(1302) in GET.USERS.B. It only returns info for your login id not all users. Don
________________________________ From: Don Robinson <donr_w...@yahoo.com> To: U2 Users List <u2-users@listserver.u2ug.org> Sent: Mon, January 3, 2011 1:06:41 PM Subject: Re: [U2] [UV] PORT.STATUS questions. Manu, The INTERNAL option looks promising for what I need. I do read manuals but somehow missed it. It doesn't solve the "One user at a time" issue but will make parsing the output easier. Your other suggestions may be useful, too. Thanks to you and the others that responded. Don Robinson ________________________________ From: Manu Fernandes <e...@infodata.lu> To: U2 Users List <u2-users@listserver.u2ug.org> Sent: Mon, January 3, 2011 11:47:21 AM Subject: Re: [U2] [UV] PORT.STATUS questions. Hi group, You can use uv provided subroutine !GET.USERS; search the uvdoc. If you use in basic EXECUTE "PORT.STATUS INTERNAL" CAPTURING VAR you get the port.status output in a dynamic array VAR ; @am,@vm You can also use in basic VAR=SYSTEM(1301) which return a dynamic Array, each attribute has 4 values: v1: Userno, v2:effective user name, v3: pid, v4: login type similar to what PORT.STATUS would show. Undocumented, but used by APP.PROGS GET.USERS.B No specials ; on uv. I hope this help. Manu > -----Message d'origine----- > De : u2-users-boun...@listserver.u2ug.org [mailto:u2-users- > boun...@listserver.u2ug.org] De la part de Don Robinson > Envoyé : jeudi 30 décembre 2010 17:46 > À : U2 Users List > Objet : [U2] [UV] PORT.STATUS questions. > > Hello all, > > We are running Universe 11.1.17 on Aix 5.3. > > I use PORT.STATUS for several function within programs by capturing the > output and parsing it. I have a couple of problems with this. > > First, only one user at a time can run the command and this causes random > failure of the programs. > Second, the output can vary depending on options and success or failure of > the command. > > So, is there a callable routine to get the same info in a cleaner way? > > I need things like "is port ### logged in" or a list of ports logged in with a > specific login id, etc. In others words, the same info but in a more usable > format. > > Also, PORT.STATUS from within Universe gives an error for options like PID > and FILEMAP but works ok from the AIX prompt, why? > > Thanks in advance, Don Robinson > _______________________________________________ > U2-Users mailing list > U2-Users@listserver.u2ug.org > http://listserver.u2ug.org/mailman/listinfo/u2-users _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users