+ Post New Thread
Page 2 of 2 FirstFirst 12
Results 16 to 26 of 26
Windows Thread, Released: Network Shutdown in Technical; I tried this today running it from one of my CC3 servers, and it just hung for over 20 mins ...
  1. #16

    maniac's Avatar
    Join Date
    Feb 2007
    Location
    Kent
    Posts
    3,087
    Thank Post
    210
    Thanked 432 Times in 312 Posts
    Rep Power
    145
    I tried this today running it from one of my CC3 servers, and it just hung for over 20 mins searching for stations. I know some were switched on and our network may not be perfect, but it's not that slow. Is there anything that may be causing that behaviour that I can remedy?

    Mike.

  2. #17
    bizzel's Avatar
    Join Date
    Jul 2007
    Location
    Cambridge
    Posts
    654
    Thank Post
    102
    Thanked 204 Times in 72 Posts
    Rep Power
    52
    Quote Originally Posted by maniac View Post
    I tried this today running it from one of my CC3 servers, and it just hung for over 20 mins searching for stations. I know some were switched on and our network may not be perfect, but it's not that slow. Is there anything that may be causing that behaviour that I can remedy?

    Mike.
    The station search uses the WMI ping command on every station in the PackageControl folder. The timeout for each station is about 3 seconds. If you have many stations and almost all of them are off it'll take longer but not 20 minutes.

    Did the progress bar move at all in that time? If not, it's hung before detecting online stations.

  3. #18

    maniac's Avatar
    Join Date
    Feb 2007
    Location
    Kent
    Posts
    3,087
    Thank Post
    210
    Thanked 432 Times in 312 Posts
    Rep Power
    145
    Quote Originally Posted by bizzel View Post
    The station search uses the WMI ping command on every station in the PackageControl folder. The timeout for each station is about 3 seconds. If you have many stations and almost all of them are off it'll take longer but not 20 minutes.

    Did the progress bar move at all in that time? If not, it's hung before detecting online stations.
    Yes the progress bar did move, but it had only got to about half way after 20mins, and I wasn't prepared to wait much longer as it's quicker to shut them down using RM if it's going to take that long. There could be a large number of workstations in our package control that no longer exist, my AD is littered with them as our CC3 network is very old and has seen many many different network managers in its time. Maybe if I spend a little time tidying I might have more success!

    Thanks

    Mike.

  4. #19
    bizzel's Avatar
    Join Date
    Jul 2007
    Location
    Cambridge
    Posts
    654
    Thank Post
    102
    Thanked 204 Times in 72 Posts
    Rep Power
    52
    Quote Originally Posted by maniac View Post
    Yes the progress bar did move, but it had only got to about half way after 20mins, and I wasn't prepared to wait much longer as it's quicker to shut them down using RM if it's going to take that long. There could be a large number of workstations in our package control that no longer exist, my AD is littered with them as our CC3 network is very old and has seen many many different network managers in its time. Maybe if I spend a little time tidying I might have more success!

    Thanks

    Mike.
    Okay Mike, thanks. At least I know it's not stalling totally. Yes, non-existent workstations will slow down the process quite a bit. I think I know a way to cut these times down by 4-5x though.

    Although this is version 3 in name, it's only version 1 technically. Versions 1 and 2 were made by the guy who worked here before me and this is a ground-up rewrite. There are lots of improvements to come.

  5. #20

    Join Date
    Sep 2005
    Posts
    153
    Thank Post
    1
    Thanked 4 Times in 4 Posts
    Rep Power
    19
    You guys never heard of shutdown.exe??
    I use this integrated into a batch script, which runs as a scheduled task on our servers. It runs at 10pm, (when school closes) so no-one should be here then, and if they are: TOUGH!

  6. #21

    maniac's Avatar
    Join Date
    Feb 2007
    Location
    Kent
    Posts
    3,087
    Thank Post
    210
    Thanked 432 Times in 312 Posts
    Rep Power
    145
    Quote Originally Posted by markwilliamson2001 View Post
    You guys never heard of shutdown.exe??
    I use this integrated into a batch script, which runs as a scheduled task on our servers. It runs at 10pm, (when school closes) so no-one should be here then, and if they are: TOUGH!
    Yes, but doing it that way relies on an up-to-date list of computer names in the batch file. I add and remove workstations to and from my network on a daily basis so this would be near enough impossible to keep up to date, I also have well over 400 workstations so the list would be long.

    The brilliant thing about bizzels program is it's ability to use the RM ini files as a station list so a) any new workstations are automatically added, and b) I don't accidently shutdown my servers or staff workstations. For me (when I eventually get it to work that is) it provides the ideal solution.

    Mike.

  7. #22
    bizzel's Avatar
    Join Date
    Jul 2007
    Location
    Cambridge
    Posts
    654
    Thank Post
    102
    Thanked 204 Times in 72 Posts
    Rep Power
    52
    Let's start with a nice bugfix release later this week. I've fixed the problem with the packagecontrol folder not being found, now to look at the slow scanning.

    I'm also prepping a slightly newer release of EduSweep as well.

  8. #23

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,867
    Thank Post
    412
    Thanked 778 Times in 651 Posts
    Rep Power
    182
    Quote Originally Posted by markwilliamson2001 View Post
    You guys never heard of shutdown.exe??
    I use this integrated into a batch script, which runs as a scheduled task on our servers. It runs at 10pm, (when school closes) so no-one should be here then, and if they are: TOUGH!
    You have read the rest of this thread, right?

  9. #24

    Join Date
    Sep 2005
    Posts
    153
    Thank Post
    1
    Thanked 4 Times in 4 Posts
    Rep Power
    19
    I don't have daily updates of machines on my network, plus I do the install of all new machines, so is easy to add/remove machines from the list.

    I had a script somewhere which used to query AD for computer objects, and pipe the results to a text file. I then used to paste this into excel, and add the shutdown part of the script to the computer name, then just dumped the completed results back into a text file saved as a batch file.

    I nearly got round to totally automating the whole process...

  10. #25

    Join Date
    Jan 2006
    Location
    Surburbia
    Posts
    2,178
    Thank Post
    74
    Thanked 307 Times in 243 Posts
    Rep Power
    116
    Gosh documentation that exists! It's nicely presented and readable.. the only thing I'd add is a DNS caution (names need to point to the right addresses etc.)

    Re. the potential future features emerging above, haven't done shutdowns but I nailed down most of that territory way back (recent example is whoison CL util in the Downloads forum). Best advice I can offer: Network scanners always need to be multi-threaded to get around latency (RPC timeouts being the worst offender in this specific case). It's worth going the extra mile when writing such code so you can easily reuse it for anything you want done to multiple boxes via the network.

  11. Thanks to PiqueABoo from:

    bizzel (20th September 2008)

  12. #26
    bizzel's Avatar
    Join Date
    Jul 2007
    Location
    Cambridge
    Posts
    654
    Thank Post
    102
    Thanked 204 Times in 72 Posts
    Rep Power
    52
    Quote Originally Posted by PiqueABoo View Post
    Best advice I can offer: Network scanners always need to be multi-threaded to get around latency (RPC timeouts being the worst offender in this specific case). It's worth going the extra mile when writing such code so you can easily reuse it for anything you want done to multiple boxes via the network.
    Working on that part now. I'll add your idea about the DNS warning as well.



SHARE:
+ Post New Thread
Page 2 of 2 FirstFirst 12

Similar Threads

  1. GPupdate on shutdown.
    By boomam in forum Windows
    Replies: 9
    Last Post: 28th February 2008, 04:48 PM
  2. sample error at shutdown
    By macca in forum Windows
    Replies: 5
    Last Post: 25th September 2007, 10:45 AM
  3. Remote shutdown
    By Kained in forum Windows
    Replies: 9
    Last Post: 28th August 2007, 07:44 PM
  4. xp shutdown problem
    By Uraken in forum Windows
    Replies: 0
    Last Post: 22nd February 2007, 10:09 PM
  5. Christmas Shutdown
    By nawbus in forum Wireless Networks
    Replies: 16
    Last Post: 20th December 2005, 11:02 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •