[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference iosg::all-in-1_v30

Title:*OLD* ALL-IN-1 (tm) Support Conference
Notice:Closed - See Note 4331.l to move to IOSG::ALL-IN-1
Moderator:IOSG::PYE
Created:Thu Jan 30 1992
Last Modified:Tue Jan 23 1996
Last Successful Update:Fri Jun 06 1997
Number of topics:4343
Total number of notes:18308

87.0. "How many ALL-IN-1 users per day?" by MISFIT::KINNEYD (Aruba Bound Soon!!) Mon Feb 24 1992 20:26

    I have a customer with a need to know how many people log into ALL-IN-1
    on a daily basis and who they are. For justification I suppose. Is
    there any way to do that in ALL-In-1? We thought about enabling image
    accounting in VMS but I understand the overhead is tremendous. I then
    thought OAINI.SCP would be a good place to stick something, write a
    record to a file or something, but if this gets executed every time a
    subprocess gets fired up, that would not be accurate.
    
    Any other ideas?
    
    Dave Kinney
T.RTitleUserPersonal
Name
DateLines
87.1Use OAINI.SCP (and the trademark ALL-IN-1)SHALOT::LANPHEARTest the water or turn the tide?Mon Feb 24 1992 21:386
OAINI.SCP will work exactly the way you need.
        
You don't want to use OAINI.COM, because _that's_ what only executes upon 
subprocess activation.
    
    						Cheers, Dan'l
87.2OAINI.SCP is probably best but others could workBUFFER::VICKERSWinners take action not keep scoreMon Feb 24 1992 21:3850
    Dave,

    I corrected the spelling of the ALL-IN-1 product name in your topic
    title.  It is always appreciate when people take the trouble to use the
    proper product name, especially here.

    I suspect that adding some simple logging in OAINI.SCP is the best way
    to go as it should capture the right amount and level of information
    for the customer.  OAINI.SCP is only executed as a part of the
    initialization of the ALL-IN-1 session.  If you wish to have a single
    record for each user per day then you'll probably want to keep track of
    whether the use has already been logged for today.

    The code below will write a record containing the user name and NBS
    date of the entry to the end of a file named
    OA$SITE_DATA_SHARE:ENTRY_LOG.DAT:

    	.FU .IF $LAST_ENTRY_LOG_DATE EQS OA$DATE_NBS:8 THEN .GOTO DONE_THAT
    	.FU GET $LAST_ENTRY_LOG_DATE  =  OA$DATE_NBS:8
    	.FU GET #RECORD = OA$USER:30 " " OA$DATE_NBS
    	.FU TEXT_FILE OPEN  LOG "OA$SITE_DATA_SHARE:ENTRY_LOG.DAT"/APPEND
    	.FU TEXT_FILE WRITE LOG #RECORD
    	.FU TEXT_FILE CLOSE LOG
    .LABEL DONE_THAT
    
    This code may not handle having the file locked.  The most suitable
    approach to handle that is to check OA$STATUS after the OPEN and have a
    retry loop for a reasonable amount of times.

    If any users have their own OAINI.SCP scripts then you should be sure
    that they have the tasteful line of:

    	.FU SCRIPT OA$LIB:OAINI.SCP

    so that their OAINI.SCP causes the system wide OAINI.SCP script.

    There is already a mail log file which COULD provide a less precise way
    to gather this sort of information.  You might want to look at
    OA$MTI_LOG to see if this might not provide a rough approximation to
    what would help the customer.  According to the marketing types the
    only use of ALL-IN-1 is mail so, if this is correct, OA$MTI_LOG would
    come close to getting an accurate usage count.  This assumes that each
    user sends at least one mail message a day.

    A more precise way to gather the information would be to implement
    metering.  This adds a bit more overhead but is easy.

    Good luck,
    don

87.3A proven hackMSDOA::ISAAC$cmkrnl_s routin=crash ;if firedTue Feb 25 1992 20:1524
	Another thing you can do which of course is not supported but a simple
fix I wish engineering would consider so it is possible to have a do script
executed whenever someone invokes ALL-IN-1.  Is is very simple, proven at
a site of over 15,000 users and would solve alot of headaches with chasing
down user oaini.scp and other crap like that.

	We patched oa.bli to dispatch a script which 
which does our initial site script.  We used to open some special form
libraries. 
	
	If you look in oa.bli find the comment

	!+
	! Invoke the start form (and hence menu processing).
	!- 

	The code below is what dispatch the main form.  We added
	a similar call before this that called our site startup do
	script.



	John