Manu Fernandes | 3 Jan 17:47 2011
Picon

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 ;  <at> am, <at> 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-bounces <at> listserver.u2ug.org [mailto:u2-users-
> bounces <at> 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.
(Continue reading)

Don Robinson | 3 Jan 19:06 2011
Picon

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 <efv <at> infodata.lu>
To: U2 Users List <u2-users <at> 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 ;  <at> am, <at> 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. 

(Continue reading)

Don Robinson | 3 Jan 19:20 2011
Picon

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

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_work <at> yahoo.com>
To: U2 Users List <u2-users <at> 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 <efv <at> infodata.lu>
To: U2 Users List <u2-users <at> listserver.u2ug.org>
(Continue reading)

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

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 <donr_work <at> yahoo.com>
To: U2 Users List <u2-users <at> 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

_____________________________________________________________________________
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
(Continue reading)

inquieti | 4 Jan 13:38 2011

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

(Continue reading)

Manu Fernandes | 4 Jan 16:34 2011
Picon

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

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-bounces <at> listserver.u2ug.org [mailto:u2-users-
> bounces <at> listserver.u2ug.org] De la part de inquieti
> Envoyé : mardi 4 janvier 2011 13:38
> À : u2-users <at> 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
(Continue reading)

Greg | 5 Jan 12:56 2011

[U2] Unsubscribe


_______________________________________________
U2-Users mailing list
U2-Users <at> listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

Dianne Ackerman | 5 Jan 20:58 2011

[U2] UV retrieve

I think I'm losing my mind today - I'm doing something I do all the time 
but getting an error and can't seem to figure it out, please help!  UV 
10.2, PICK flavor, a simple RETRIEVE statement.

I can do just fine:

LIST FILE1
LIST DICT FILE1
LIST FILE2
LIST DICT FILE2

But when I do

LIST FILE1 USING DICT FILE2

I get a very weird error that I don't understand:
RetrieVe: syntax error.  Unexpected symbol.  Token was "DICT".
Scanned command was LIST FILE1 USING DICT

-Dianne

_______________________________________________
U2-Users mailing list
U2-Users <at> listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

Dianne Ackerman | 5 Jan 21:03 2011

Re: [U2] UV retrieve

Never mind.  Had a brain flash and found the problem.  There was an 
entry called "DICT" in the dictionary of FILE2.  Ugh, I wasted an hour 
on this.

On 1/5/2011 2:58 PM, Dianne Ackerman wrote:
> I think I'm losing my mind today - I'm doing something I do all the 
> time but getting an error and can't seem to figure it out, please 
> help!  UV 10.2, PICK flavor, a simple RETRIEVE statement.
>
> I can do just fine:
>
> LIST FILE1
> LIST DICT FILE1
> LIST FILE2
> LIST DICT FILE2
>
> But when I do
>
> LIST FILE1 USING DICT FILE2
>
> I get a very weird error that I don't understand:
> RetrieVe: syntax error.  Unexpected symbol.  Token was "DICT".
> Scanned command was LIST FILE1 USING DICT
>
> -Dianne
>
>
>
> _______________________________________________
> U2-Users mailing list
(Continue reading)

Shaun.Ferguson | 5 Jan 21:19 2011

Re: [U2] UV retrieve

Have you tried specifying dictionary items in the list command?

EX;  LIST ANYFILE F1 F5 USING DICT VOC

Shaun Ferguson
Master Data Systems Analyst
Wolseley Group Services - 12500 Jefferson Avenue - Newport News - VA -
23602-4314
T: (757) 989-2916 - F: (757) 989-2801 - E: shaun.ferguson <at> wolseley.com
www.wolseley.com <BLOCKED::http://www.wolseley.com/> 
Wolseley plc registered office Parkview 1220 Arlington Business Park
Theale Nr Reading RG7 4GA United Kingdom
Registration No. 29846 England 

_______________________________________________
U2-Users mailing list
U2-Users <at> listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Gmane