OnDemand Users Group

Archive => Other => Topic started by: GWilcox on December 06, 2012, 02:46:26 PM

Title: Viewing Number of Users Logged into OnDemand
Post by: GWilcox on December 06, 2012, 02:46:26 PM
Is there a way to see the CURRENT number of users connected to an OnDemand instance/session?
I know you can see information in the System Log-
I am looking for a way to see this in real time, maybe via Command Line?

Thanks!
Title: Re: Viewing Number of Users Logged into OnDemand
Post by: Justin Derrick on December 06, 2012, 05:26:49 PM
Depends on the platform and version.

In AIX with CMOD 8.4, you can get the number of active users from the process list:

$ ps -ef |grep license
archive  7536774  7274502   0   Sep 18      - 145:15 arssockd: license (Cur(1), Max(12))


Which platform / version are you using?

-JD.
Title: Re: Viewing Number of Users Logged into OnDemand
Post by: GWilcox on December 06, 2012, 10:26:09 PM
Hello Justin,
I am using IBM Content Manager OnDemand for Multiplatforms 8.5.0.4 with Windows 2008 R2 and SQL Server 2008 R2...
Thanks!
Title: Re: Viewing Number of Users Logged into OnDemand
Post by: Alessandro Perucchi on December 10, 2012, 03:08:33 PM
Quote from: GWilcox on December 06, 2012, 10:26:09 PM
I am using IBM Content Manager OnDemand for Multiplatforms 8.5.0.4 with Windows 2008 R2 and SQL Server 2008 R2...

Well in that case, try

arssockd -p -I <instance>

To have the arssockd help you might do:

arssockd -help

Quote$ arssockd -help
Usage: arssockd [options]
   Version:  8.5.0.5
   -h <od_inst> OnDemand instance name or host name (same as -I)
   -I <od_inst> OnDemand instance name or host name (same as -h)
   -p Display process usage information for the given instance
   -q Display configuration and version information for the given instance
   -r <iterations> Number of iterations (defaults to 1)
   -s <seconds> Number of seconds between iterations (defaults to 1)
   -S Start the OnDemand server for the given instance
   -T Stop the OnDemand server for the given instance
   -v Verbose output
   -x Extended information (when used with -p)
   -1 <trace_file> Fully-qualified trace file name
   -2 <level> Trace level number
              The values are additive.  (Default: 3)
              1: Errors
              2: Warnings
              4: Info
              8: Flow

it should help a bit :-)

Sincerely yours,
Alessandro
Title: Re: Viewing Number of Users Logged into OnDemand
Post by: Ed_Arnold on January 04, 2013, 05:18:39 PM
To run this command in batch on z/OS this is JCL I use.

I don't know if you need all of the DD defs, it's just canned JCL I use for various batch invocations.

//STEP1    EXEC PGM=BPXBATCH,REGION=0M                       
//*                                                         
//STEPLIB  DD DISP=SHR,DSN=ARS.ARSV900.SARSLOAD             
//         DD DISP=SHR,DSN=DSN.DB2VA10.SDSNEXIT             
//         DD DISP=SHR,DSN=DSN.DB2VA10.SDSNLOAD             
//SYSPRINT DD SYSOUT=*                                       
//SYSOUT   DD SYSOUT=*                                       
//STDERR   DD SYSOUT=*                                       
//STDOUT   DD SYSOUT=*                                       
//STDPARM DD *                                               
PGM /usr/lpp/ars/V9R0M0/bin/arssockd                         
-h ARCH900 -p                                               
//STDENV DD *                                               
CLASSPATH=/usr/lpp/ars/V9R0M0/bin/xml/ODAdmin.jar:           
          /usr/lpp/java/J6.0_64/lib/core.jar                 
LIBPATH=/usr/lpp/ixm1a/IBM/xml4c-5_7/lib/:$LIBPATH           
PATH=/usr/lpp/java/J6.0_64/bin:/usr/lpp/ars/V9R0M0/bin:$PATH
/*                                                           
Title: Re: Viewing Number of Users Logged into OnDemand
Post by: Ed_Arnold on January 07, 2013, 06:43:12 PM
Hmmm - at least on z/OS this doesn't work as I expected.  I've logged on to OnDemand, even ran a load while displaying the process information and I can never get anyone/anything to show up in the "user" column.

Probably something I'm doing but I'm investigating....

Ed
Title: Re: Viewing Number of Users Logged into OnDemand
Post by: Ed_Arnold on January 15, 2013, 06:27:22 PM
Quote from: Ed_Arnold on January 07, 2013, 06:43:12 PM
Hmmm - at least on z/OS this doesn't work as I expected.  I've logged on to OnDemand, even ran a load while displaying the process information and I can never get anyone/anything to show up in the "user" column.

Probably something I'm doing but I'm investigating....

Ed

Sure enough, it was something I was doing.

On z/OS at least when a user logs on, it may take a little bit before the Cur(n) field gets updated.

When a user logs off, the logoff is reflected immediately.

The code that updates the Cur(n) field for logons runs on a timer pop, is asynchronous.

Ed