Re: [U2] [UV] PORT.STATUS questions.

2011-01-04 Thread Manu Fernandes
Hi,

Yes, you are right, 
Allowing PORT.STATUS to show all users when run by a non-root user this 
following is from a IBM/U2 technote I found one time.

chmod u=rws /usr/bin/ipcs
chmod u=rws uvhome/bin/list_readu

manu

> -Message d'origine-
> De : u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
> boun...@listserver.u2ug.org] De la part de inquieti
> Envoyé : mardi 4 janvier 2011 13:38
> À : u2-users@listserver.u2ug.org
> Objet : Re: [U2] [UV] PORT.STATUS questions.
> 
> 
> We use UniVerse on RedHat and get around the problem of only showing
> your own port.status details with the following method:- Port status Setting,
> up the port.status is quite easy if you have or can get sudo.  If you have the
> file /etc/sudoers then sudo is already on your system.  Logged in as root, go
> to the /etc directory and use visudo to edit the file (you must be logged in 
> as
> root or the session will hang).  There will be an example for the group wheel
> with a remark about uncommenting the line to allow the people in the wheel
> group to run all commands.  Insert a line that will allow sbgrp to run
> commands without entering the su password.  This can be limited to specific
> commands, there are examples at the bottom of this page
> http://www.gratisoft.us/sudo/man/sudoers.html
> By adding the following line into ours
> %sbgrp  ALL=(ALL)   NOPASSWD: ALL
> All our sb+ users can run root commands.  I created a symbolic link in the 
> /bin
> directory  (ln -s /usr/ibm/uv/bin/list_readu port.status) rather than on an
> account basis.  The list_readu file itself
> (/usr/ibm/uv/bin/list_readu) should be chmodded using 4751 and the group
> set as other using chgrp.  This way the user details will also be available in
> /LOCKS Then copied the MD item for PORT.STATUS to ORIG.PORT.STATUS
> (just in case) and replaced PORT.STATUS with the following:-
> 
> 0001 PA
> 0002 SH -c "sudo port.status"
> ===
> HTH
> David
> 
> Buss, Troy (Logitek Systems)-2 wrote:
> >
> > Fyi..
> >
> > On universe 10.2 running on windows, this system(1302) seems to work
> > without contention between users and executes very quickly, about 100
> > times per second on 2 sessions.
> >
> > 
> > From: Don Robinson 
> > To: U2 Users List 
> > 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
> >
> >
> >
> __
> 
> > ___ Scanned by IBM Email Security Management Services powered
> by
> > MessageLabs.
> > For more information please visit http://www.ers.ibm.com
> >
> > This email is intended only for the use of the party to which it is
> > addressed and may contain information that is privileged,
> > confidential, or protected by law.  If you are not the intended
> > recipient you are hereby notified that any dissemination, copying or
> > distribution of the email or its contents is strictly prohibited.  If
> > you have received this message in error, please notify us immediately,
> > by replying to the message and deleting it from your computer.
> >
> > WARNING: Internet communications are not assured to be secure or clear
> > of inaccuracies as information could be intercepted, corrupted, lost,
> > destroyed, arrive late or incomplete, or contain viruses.  Therefore,
> > we do not accept responsibility for any errors or omissions that are
> > present in this email, or any attachment, that have arisen as a result
> > of e-mail transmission.
> >
> __
> 
> > ___ ___
> > U2-Users mailing list
> > U2-Users@listserver.u2ug.org
> > http://listserver.u2ug.org/mailman/listinfo/u2-users
> >
> >
> 
> --
> View this message in context: http://old.nabble.com/-UD--Killing-a-UO-
> connection-tp30547618p30586311.html
> Sent from the U2 - Users mailing list archive at Nabble.com.
> 
> ___
> 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


Re: [U2] [UV] PORT.STATUS questions.

2011-01-04 Thread inquieti

We use UniVerse on RedHat and get around the problem of only showing your own
port.status details with the following method:-
Port status
Setting up the port.status is quite easy if you have or can get sudo.  If
you have the file /etc/sudoers then sudo is already on your system.  Logged
in as root, go to the /etc directory and use visudo to edit the file (you
must be logged in as root or the session will hang).  There will be an
example for the group wheel with a remark about uncommenting the line to
allow the people in the wheel group to run all commands.  Insert a line that
will allow sbgrp to run commands without entering the su password.  This can
be limited to specific commands, there are examples at the bottom of this
page http://www.gratisoft.us/sudo/man/sudoers.html
By adding the following line into ours
%sbgrp  ALL=(ALL)   NOPASSWD: ALL
All our sb+ users can run root commands.  I created a symbolic link in the
/bin directory  (ln -s /usr/ibm/uv/bin/list_readu port.status) rather than
on an account basis.  The list_readu file itself
(/usr/ibm/uv/bin/list_readu) should be chmodded using 4751 and the group set
as other using chgrp.  This way the user details will also be available in
/LOCKS
Then copied the MD item for PORT.STATUS to ORIG.PORT.STATUS (just in case)
and replaced PORT.STATUS with the following:-

0001 PA  
0002 SH -c "sudo port.status" 
===
HTH
David

Buss, Troy (Logitek Systems)-2 wrote:
> 
> Fyi..
> 
> On universe 10.2 running on windows, this system(1302) seems to work
> without contention between users and executes very quickly, about 100
> times per second on 2 sessions.
>  
> 
> From: Don Robinson 
> To: U2 Users List 
> 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
> 
> 
> _
> Scanned by IBM Email Security Management Services powered by MessageLabs.
> For more information please visit http://www.ers.ibm.com
> 
> This email is intended only for the use of the party to which it is
> addressed and may contain information that is privileged, confidential, or
> protected by law.  If you are not the intended recipient you are hereby
> notified that any dissemination, copying or distribution of the email or
> its contents is strictly prohibited.  If you have received this message in
> error, please notify us immediately, by replying to the message and
> deleting it from your computer.
> 
> WARNING: Internet communications are not assured to be secure or clear of
> inaccuracies as information could be intercepted, corrupted, lost,
> destroyed, arrive late or incomplete, or contain viruses.  Therefore, we
> do not accept responsibility for any errors or omissions that are present
> in this email, or any attachment, that have arisen as a result of e-mail
> transmission.
> _
> ___
> U2-Users mailing list
> U2-Users@listserver.u2ug.org
> http://listserver.u2ug.org/mailman/listinfo/u2-users
> 
> 

-- 
View this message in context: 
http://old.nabble.com/-UD--Killing-a-UO-connection-tp30547618p30586311.html
Sent from the U2 - Users mailing list archive at Nabble.com.

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] [UV] PORT.STATUS questions.

2011-01-03 Thread Buss, Troy (Logitek Systems)
Fyi..

On universe 10.2 running on windows, this system(1302) seems to work without 
contention between users and executes very quickly, about 100 times per second 
on 2 sessions.
 

From: Don Robinson 
To: U2 Users List 
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


_
Scanned by IBM Email Security Management Services powered by MessageLabs. For 
more information please visit http://www.ers.ibm.com

This email is intended only for the use of the party to which it is addressed 
and may contain information that is privileged, confidential, or protected by 
law.  If you are not the intended recipient you are hereby notified that any 
dissemination, copying or distribution of the email or its contents is strictly 
prohibited.  If you have received this message in error, please notify us 
immediately, by replying to the message and deleting it from your computer.

WARNING: Internet communications are not assured to be secure or clear of 
inaccuracies as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  Therefore, we do not accept 
responsibility for any errors or omissions that are present in this email, or 
any attachment, that have arisen as a result of e-mail transmission.
_
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] [UV] PORT.STATUS questions.

2011-01-03 Thread Don Robinson
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 
To: U2 Users List 
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 
To: U2 Users List 
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


Re: [U2] [UV] PORT.STATUS questions.

2011-01-03 Thread Don Robinson
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 
To: U2 Users List 
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


Re: [U2] [UV] PORT.STATUS questions.

2011-01-03 Thread Manu Fernandes
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


Re: [U2] [UV] PORT.STATUS questions.

2010-12-31 Thread Tom Dodds
Good question, Dan

Tom Dodds
t...@ix.netcom.com
630.235.2975



On Dec 30, 2010, at 12:22 PM, Dan Fitzgerald wrote:

> 
> Did real estate prices also cause you to stop putting [ad] in your 
> advertisements?
> 
>> From: fft2...@aol.com
>> Date: Thu, 30 Dec 2010 13:19:17 -0500
>> To: u2-users@listserver.u2ug.org
>> Subject: Re: [U2] [UV] PORT.STATUS questions.
>> 
>> In a message dated 12/30/2010 8:46:12 AM Pacific Standard Time, 
>> donr_w...@yahoo.com writes:
>> 
>> 
>>> 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?
>>> 
>> 
>> Yes. If you have a budget.
>> The solution is rather elegant, but also proprietary... to me.
>> You have to buy a license. I stopped giving away free software when real 
>> estate went South :)
>> 
>> Will Johnson
>> Fast Forward Technologies
>> 831 477 7125
>> ___
>> 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


Re: [U2] [UV] PORT.STATUS questions.

2010-12-30 Thread Dan Fitzgerald

Did real estate prices also cause you to stop putting [ad] in your 
advertisements?
 
> From: fft2...@aol.com
> Date: Thu, 30 Dec 2010 13:19:17 -0500
> To: u2-users@listserver.u2ug.org
> Subject: Re: [U2] [UV] PORT.STATUS questions.
> 
> In a message dated 12/30/2010 8:46:12 AM Pacific Standard Time, 
> donr_w...@yahoo.com writes:
> 
> 
> > 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?
> > 
> 
> Yes. If you have a budget.
> The solution is rather elegant, but also proprietary... to me.
> You have to buy a license. I stopped giving away free software when real 
> estate went South :)
> 
> Will Johnson
> Fast Forward Technologies
> 831 477 7125
> ___
> 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


Re: [U2] [UV] PORT.STATUS questions.

2010-12-30 Thread FFT2001
In a message dated 12/30/2010 8:46:12 AM Pacific Standard Time, 
donr_w...@yahoo.com writes:


> 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?
> 

Yes.  If you have a budget.
The solution is rather elegant, but also proprietary... to me.
You have to buy a license.  I stopped giving away free software when real 
estate went South :)

Will Johnson
Fast Forward Technologies
831 477 7125
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] [UV] PORT.STATUS questions.

2010-12-30 Thread Martin Phillips

Hi Don,

It may be easier simply to add a program to the LOGIN and ON.EXIT paragraphs 
to maintain a file with the specific details that you want available.



Also, PORT.STATUS from within Universe gives an error for options
like PID and FILEMAP but works ok from the AIX prompt, why?


These options are normally only present in the UV account VOC but there is 
no reason why they cannot be copied to other VOC files.



Martin Phillips
Ladybridge Systems Ltd
17b Coldstream Lane, Hardingstone, Northampton NN4 6DB, England
+44 (0)1604-709200 


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


[U2] [UV] PORT.STATUS questions.

2010-12-30 Thread Don Robinson
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