Page 1 of 1 1
Topic Options
#13325 - 2001-10-17 11:41 PM Limiting Users installing service pack at once
Anonymous
Unregistered


I have a simple login script that copies the the 6a service pack into the client computers, then installs it.....however we only have one server hosting the 6a files and i don't want all 140 clients hitting it at the same time....

is there a way to limit the number of users hitting the share?

i know i can use the share properties to limit the number of users...but how would i feed that into an error code for my script?

i assume i could do copy and if it dies use the error code...but with the current layout i notify the users via message box that a copy is about to occur before i actually start copying.....so they would get one "about to copy" message box and one "oops, it's to busy"....

tia,
justin

Top
#13326 - 2001-10-18 05:37 AM Re: Limiting Users installing service pack at once
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Hello Justin,

You could possibly try creating a batch file to copy and run the upgrade and use the built-in NT Scheduler to run it. Use some kind of timing based upon alphabetical user names. i.e. A-C = 11:00AM D-F = 11:30 AM etc...

Top
#13327 - 2001-10-18 06:57 AM Re: Limiting Users installing service pack at once
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
There are several ways you could pace the rollout. Using your idea, you could try a small test file 'silent' copy as a test before the big one. Based on sucess or failure, put up a message and proceed or skip.

You could put the candidate computer names in an INI file and check it with ReadProfileString. You could use the same file to log with WriteProfileString. Then pace the rollout by placing limited number of candidate machines in the file at a time.

You could do it all remotely from a central console, pushing out the file and initiating the install using the scheduler. This you could do after hours, providing you can get your users to leave their machines powered up.

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#13328 - 2001-10-18 07:27 AM Re: Limiting Users installing service pack at once
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

We have an idea about such implementation.
the problem was: how can we count.
solution: create a temporary file on server which can be updated with the
WriteProfileString function.
We know when the limit of active user has been reach by checking the filesize
of that temporary file. We are using for all user an entry with same length.

Code can be:

code:

$check_file="c:\check-install_process"
IF (GetFileSize($check_file) < 167) ; max 6 active users at the same time
$check_key=@date+" "+@time+" "+@ipaddress0
; - lock entry -
IF (WriteProfileString($check_file,"install",$check_key,"busy") <> 0)
ENDIF
;
; your code to copy and install service pack NT SP6a
;
; - unlock entry -
IF (WriteProfileString($check_file,"install",$check_key,"") <> 0)
ENDIF
ELSE
? "Warning KIX-INSTALL: too many users active for an installation run. possible next time."
ENDIF


The temporary file may look like with 4 active users:
code:

[install]
2001/10/18 05:33:08=busy
2001/10/18 05:33:09=busy
2001/10/18 05:33:11=busy
2001/10/18 05:34:52=busy


remark: it can be possible that at exactly the same time two users became active,
which means temporarily an additional user is active. it can happen, but it isn't
necessary and its number will not be very big.
Greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#13329 - 2001-10-18 05:32 PM Re: Limiting Users installing service pack at once
Anonymous
Unregistered


Interesting approach angle MCA...i think i'm gonna try that out.....only one question...how long does the file stay open? Any chance of wierd errors for people hitting the file at the time it's open to write data to it?

thanks for the replies guys!

justin

Top
#13330 - 2001-10-19 06:44 AM Re: Limiting Users installing service pack at once
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

The WriteProfileString will not generate an error.
Reasons:

  • file is very small. the amount of information written is also very
    small.
  • as user the file will only open during f.e. the time of the write
    operation.
  • how many users are trying to write to that file at the same moment?
    we are using such structure for the creation of all kind of dynamic
    files, which contains much more information.
    only very slow server can be a problem for very great INI files, but
    your one will never be a problem for the server.

Greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 937 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.054 seconds in which 0.024 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org