Jump to content

scheduled reboot - assign reason?


Recommended Posts

Guest Cindy B
Posted

Hi-

Hopefully someone has a quick idea for this... We are implementing a weekly

reboots of all enterprise servers - attaining this by using scheduled tasks.

My questions is: Is there a way to add the reason for the reboot? I'd like

to designate it as maintenance, so when monitoring servers - we don't always

have to check the reboot maintenance schedule to see if it is planned or

unplanned.

OR.. when I run:

c:\windows\system323\shutdown.exe -r -f -t 01

can I designate planned instead of unplanned?

thanks for any suggeston you might have?

Cindy

--

Cindy B

  • Replies 7
  • Created
  • Last Reply
Guest Pegasus \(MVP\)
Posted

Re: scheduled reboot - assign reason?

 

 

"Cindy B" <benedett@brainerd.net> wrote in message

news:CB593B6D-3BE6-4720-A9D7-FD17C3BA0AE4@microsoft.com...

> Hi-

> Hopefully someone has a quick idea for this... We are implementing a

> weekly

> reboots of all enterprise servers - attaining this by using scheduled

> tasks.

> My questions is: Is there a way to add the reason for the reboot? I'd

> like

> to designate it as maintenance, so when monitoring servers - we don't

> always

> have to check the reboot maintenance schedule to see if it is planned or

> unplanned.

> OR.. when I run:

> c:\windows\system323\shutdown.exe -r -f -t 01

> can I designate planned instead of unplanned?

> thanks for any suggeston you might have?

> Cindy

> --

> Cindy B

 

We don't know which server version you run but I note that the

WinXP version of shutdown.exe has a switch for the shutdown code.

Guest Harry Bates
Posted

Re: scheduled reboot - assign reason?

 

Cindy,

Run Shutdown /? for all of the command switches for shutdown.exe.

 

 

"Cindy B" <benedett@brainerd.net> wrote in message

news:CB593B6D-3BE6-4720-A9D7-FD17C3BA0AE4@microsoft.com...

> Hi-

> Hopefully someone has a quick idea for this... We are implementing a

> weekly

> reboots of all enterprise servers - attaining this by using scheduled

> tasks.

> My questions is: Is there a way to add the reason for the reboot? I'd

> like

> to designate it as maintenance, so when monitoring servers - we don't

> always

> have to check the reboot maintenance schedule to see if it is planned or

> unplanned.

> OR.. when I run:

> c:\windows\system323\shutdown.exe -r -f -t 01

> can I designate planned instead of unplanned?

> thanks for any suggeston you might have?

> Cindy

> --

> Cindy B

Guest Cindy B
Posted

RE: scheduled reboot - assign reason?

 

Sorry - more info ... Using server 2003 R2

 

using shutdown /r /f /t 01 - it works fine...

 

using shutdown /? - I found the /d command - but cannot get it to work..

it says: /d [p:]xx:yy

 

I interupt that as - /d [p:]04:01 (for my needs) - added to my line above...

it doesn't work - just returns me to the prompt.... I have played around

with it a little, but once I add that - I can't get it to reboot?????

Should I be doing something different with those sq brackets?

 

thanks again for your help!

--

Cindy B

 

 

"Cindy B" wrote:

> Hi-

> Hopefully someone has a quick idea for this... We are implementing a weekly

> reboots of all enterprise servers - attaining this by using scheduled tasks.

> My questions is: Is there a way to add the reason for the reboot? I'd like

> to designate it as maintenance, so when monitoring servers - we don't always

> have to check the reboot maintenance schedule to see if it is planned or

> unplanned.

> OR.. when I run:

> c:\windows\system323\shutdown.exe -r -f -t 01

> can I designate planned instead of unplanned?

> thanks for any suggeston you might have?

> Cindy

> --

> Cindy B

Guest Harry Bates
Posted

Re: scheduled reboot - assign reason?

 

You are just having a syntax error. You would want to invoke it like this:

 

shutdown -r -f -d p:4:1

 

This will throw an event in the event log that the shutdown was due to

Application Maintenance and it was planned. You can also use the "-c" switch

to put a custom message in the even log.

 

Harry Bates

Lockheed Martin

 

"Cindy B" <benedett@brainerd.net> wrote in message

news:6277B8D9-3983-452F-BE6E-F1CE7B508A7E@microsoft.com...

> Sorry - more info ... Using server 2003 R2

>

> using shutdown /r /f /t 01 - it works fine...

>

> using shutdown /? - I found the /d command - but cannot get it to work..

> it says: /d [p:]xx:yy

>

> I interupt that as - /d [p:]04:01 (for my needs) - added to my line

> above...

> it doesn't work - just returns me to the prompt.... I have played around

> with it a little, but once I add that - I can't get it to reboot?????

> Should I be doing something different with those sq brackets?

>

> thanks again for your help!

> --

> Cindy B

>

>

> "Cindy B" wrote:

>

>> Hi-

>> Hopefully someone has a quick idea for this... We are implementing a

>> weekly

>> reboots of all enterprise servers - attaining this by using scheduled

>> tasks.

>> My questions is: Is there a way to add the reason for the reboot? I'd

>> like

>> to designate it as maintenance, so when monitoring servers - we don't

>> always

>> have to check the reboot maintenance schedule to see if it is planned or

>> unplanned.

>> OR.. when I run:

>> c:\windows\system323\shutdown.exe -r -f -t 01

>> can I designate planned instead of unplanned?

>> thanks for any suggeston you might have?

>> Cindy

>> --

>> Cindy B

Guest Pegasus \(MVP\)
Posted

Re: scheduled reboot - assign reason?

 

It takes a little patience and some trial and error to work out

the correct syntax for this command. Here is an example:

 

shutdown -r -t 2000 -d :12:45

 

 

"Cindy B" <benedett@brainerd.net> wrote in message

news:6277B8D9-3983-452F-BE6E-F1CE7B508A7E@microsoft.com...

> Sorry - more info ... Using server 2003 R2

>

> using shutdown /r /f /t 01 - it works fine...

>

> using shutdown /? - I found the /d command - but cannot get it to work..

> it says: /d [p:]xx:yy

>

> I interupt that as - /d [p:]04:01 (for my needs) - added to my line

> above...

> it doesn't work - just returns me to the prompt.... I have played around

> with it a little, but once I add that - I can't get it to reboot?????

> Should I be doing something different with those sq brackets?

>

> thanks again for your help!

> --

> Cindy B

>

>

> "Cindy B" wrote:

>

>> Hi-

>> Hopefully someone has a quick idea for this... We are implementing a

>> weekly

>> reboots of all enterprise servers - attaining this by using scheduled

>> tasks.

>> My questions is: Is there a way to add the reason for the reboot? I'd

>> like

>> to designate it as maintenance, so when monitoring servers - we don't

>> always

>> have to check the reboot maintenance schedule to see if it is planned or

>> unplanned.

>> OR.. when I run:

>> c:\windows\system323\shutdown.exe -r -f -t 01

>> can I designate planned instead of unplanned?

>> thanks for any suggeston you might have?

>> Cindy

>> --

>> Cindy B

Guest Cindy B
Posted

RE: scheduled reboot - assign reason?

 

THANKs!!!!

- You both sent me the right info... works great! Guess I should have kept

plugging away at it - anyhow, thanks so much for your help and your time!!!!

--

Cindy B

 

 

"Cindy B" wrote:

> Sorry - more info ... Using server 2003 R2

>

> using shutdown /r /f /t 01 - it works fine...

>

> using shutdown /? - I found the /d command - but cannot get it to work..

> it says: /d [p:]xx:yy

>

> I interupt that as - /d [p:]04:01 (for my needs) - added to my line above...

> it doesn't work - just returns me to the prompt.... I have played around

> with it a little, but once I add that - I can't get it to reboot?????

> Should I be doing something different with those sq brackets?

>

> thanks again for your help!

> --

> Cindy B

>

>

> "Cindy B" wrote:

>

> > Hi-

> > Hopefully someone has a quick idea for this... We are implementing a weekly

> > reboots of all enterprise servers - attaining this by using scheduled tasks.

> > My questions is: Is there a way to add the reason for the reboot? I'd like

> > to designate it as maintenance, so when monitoring servers - we don't always

> > have to check the reboot maintenance schedule to see if it is planned or

> > unplanned.

> > OR.. when I run:

> > c:\windows\system323\shutdown.exe -r -f -t 01

> > can I designate planned instead of unplanned?

> > thanks for any suggeston you might have?

> > Cindy

> > --

> > Cindy B

Guest Jos Munnik
Posted

Re: scheduled reboot - assign reason?

 

Hi Cindy,

 

An easy way to perform this task is to create a vbs/cmd/cmdlet. See example

 

http://www.computerperformance.co.uk/ezine/ezine45.htm

 

edit this script so that it matches your requirements. And create a

scheduled task and select this

script.

 

Kind Regards,

 

JosM

 

"Cindy B" <benedett@brainerd.net> wrote in message

news:CB593B6D-3BE6-4720-A9D7-FD17C3BA0AE4@microsoft.com...

> Hi-

> Hopefully someone has a quick idea for this... We are implementing a

> weekly

> reboots of all enterprise servers - attaining this by using scheduled

> tasks.

> My questions is: Is there a way to add the reason for the reboot? I'd

> like

> to designate it as maintenance, so when monitoring servers - we don't

> always

> have to check the reboot maintenance schedule to see if it is planned or

> unplanned.

> OR.. when I run:

> c:\windows\system323\shutdown.exe -r -f -t 01

> can I designate planned instead of unplanned?

> thanks for any suggeston you might have?

> Cindy

> --

> Cindy B


×
×
  • Create New...