Page 1 of 1 1
Topic Options
#74267 - 2003-04-01 03:21 AM Alternative to Shutdown
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
Good evening..

I'm working on a KixForms based alternative for rebooting our servers, and have a couple of questions..

Some background, so ya'll don't think I'm totally looney. (well, just a little).

1. The System Administrators are not allowed to reboot the servers, except when they install software that automatically reboots.
2. Only members of the Computer Operations staff may reboot a server.
3. A member of the Computer Operations staff may be told by a "customer" that their application isn't responding and the server should be rebooted. (this rarely fixes the problem - you'd think they'd learn by now and we wouldn't be having THIS discussion.)
4. After a member of the Computer Operations group reboots a server at customer request, someone in the Administrators group is assigned a problem ticket to figure out what happened. Of course, after a reboot, there's no locked services, hung apps, or anything else to look at. Rarely anything in the logs, either.
5. When a member of the Computer Operations group reboots a server, the central monitoring system detects several service failures and issues a flurry of "Auto-Prob" problem tickets and assigns them to - you guessed it - the Administrators group.

So, being tired of walking in to 4-12 problem tickets (all but 1 totally invalid), I've come up with a script that performs some of 5 procedures, depending on the curcumstances.

The Script concept:
After asking if this reboot is scheduled or unscheduled, and asking for the reason if Unscheduled, the script:
1 - Dumps process, memory, and network info to a log if Unscheduled. This gives us a "snapshot" of the system at the point of the suspected "failure".
2 - Disables the Alert Monitor to prevent false "Auto-Prob" events.
3 - Attempts to write an event to a central server log to generate ONE relevent Auto-Prob alert if Unscheduled.
4 - Attempts to run a unattended installation process - if install is queued and shutdown is Scheduled.
5. Uses the Kixtart Shutdown command to shutdown or reboot the server.

I've got two problems that I can't yet resolve.

1. I've added the "NoExit" entry to the registry, which removes the Shutdown command from the Start Menu. It doesn't remove it from the Ctl-Alt-Del menu (although a local policy will). We're still a mixed environment, and have many standalone servers in the DMZ, so policies are unmanagable. Does anyone know of a registry setting that will remove the Shutdown option from the Ctl-Alt-Del menu for All users?

2. Using the built-in Kix Shutdown command only works about 90% of the time.. no rhyme or reason for the other times it doesn't work. I've used XNET with nearly 100% effectiveness, but before I change the code to use that, I'm wondering if I'm doing something wrong with Shutdown, or can troubleshoot it somehow. I never see any error message. Here's the shutdown command:
code:
 
$RTN = ShutDown("", "Operator Initiated $RbtMsg", 0, 1, $REBOOT)
If @ERROR <> 0
"@SERROR" ?
EndIf

$REBOOT is either "0" for a shutdown, or "1" for a reboot.

Thanks for slogging through this, and for your help and suggestions. (Please don't suggest a change to the Computer Operations group.. we've already asked and were declined [Big Grin] )

Regards,

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#74268 - 2003-04-01 05:36 AM Re: Alternative to Shutdown
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
How about a WMI solution with fnWMIShutdown() - LogOff/reboot/shutdown a user/computer locally or remotely or RemoteLRS() - Remotely logoff/shutdown/reboot a computer
_________________________
There are two types of vessels, submarines and targets.

Top
#74269 - 2003-04-01 07:01 AM Re: Alternative to Shutdown
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
Well, the local shutdown UDF might do the trick.. is there an advantage of WMI over just calling XNET? (xnet is on every machine - we use it heavily.)

Also, we still have many systems on NT4 - I've had some issues running WMI-based tools on them even though they are at SP6a.

Thanks,

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#74270 - 2003-04-01 08:14 AM Re: Alternative to Shutdown
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Glenn,

SP6a did not install or update WMI, if you have SMS it would have put at least an older version of WMI on the system. In order to use WMI on the NT 4 systems I'd recommend checking or updating WMI on those systems.

Windows Management Instumentation (WMI) CORE 1.5 (Windows NT 4.0)

Windows Management Instrumentation Downloads

Windows Management Instrumentation (WMI) SDK 1.5 (Windows NT 4.0 and 2000)

WMI Administrative Tools

Management (WMI) Extensions for Visual Studio .NET RTM Server Explorer

WMI - Windows Management Instrumentation - White Papers, etc...

Frequently Asked Questions - Windows Management Instrumentation

Microsoft Management Technologies Community Center

As far as the ShutDown process from KiXtart I have not used it enough to give any insight to the issues you may be having.

Don't forget we do have an FAQ here about rebooting. Original I think is here
Rob van der Woude's Shutdown and Reboot page

Jorgen Bosman writes a pretty nice utility as well for rebooting systems
Jorgen Bosman homepage

Poweroff is a small program for Win95/98/NT/W2K/XP to schedule a shutdown/reboot/logoff/poweroff/Standby/Hibernate/Lock/Wake-On-LAN at a certain time. I also support command line options that allows poweroff to be used in batch scripts. It has a built-in scheduler, it allows you to run a program before doing the action, you can give a warning message to the user, wait for a process to finish before doing the action and full remote control is supported.
PowerOff v3.0.0.16

Top
#74271 - 2003-04-01 02:33 PM Re: Alternative to Shutdown
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
Thanks, but [i]installing[/] a program - any program - requires that we complete a 16-page Risk Certification and pass a review.. I've got to work with what's there. The NT boxes are due for upgrade or physical replacement this year, depending on server age. We don't use SMS, but some of the NT systems do respond to some of the WMI functions. Apparently some application was employed that required it at some point, but it wasn't continued. (Possibly something that our Monitoring or Capacity Planning groups test-deployed.)

I'll probably employ the XNET command, as it's been rock solid. I've been unable to identify a failure reason for the Kix ShutDown function so far.

Thanks for the WEALTH of information - I'll definately review it and file it for when we are fully migrated to 2K and can take advantage of WMI.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
Page 1 of 1 1


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

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

Generated in 0.061 seconds in which 0.033 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