Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

automatic reboot Metaframe XP server 2

Status
Not open for further replies.

salu

Programmer
Jul 6, 2002
2
0
0
US
i want to reboot our metrafme xp server every night automatically.
can anyone give me the needed commands / tips ?

thanks in advance
 
If you are using FR1 then you should be able to schedule it off the server settings (Individual servers) from within the CMC. Dead easy done through the GUI so messing around with switches and cmd scripts
 
If not, you can use the regular AT command from the command line (you'll need to have the scheduling service enabled!). CitrixEngineer@yahoo.co.uk
 
I use the AT command to do this on weekdays

at hh:mm /every:M,T,W,Th,F c:\winnt\system32\tsshutdn.exe /reboot

change hh:mm as necessary
 
The feature is available in the CMC... IF you have XPa or XPe, AND the "Resource Manager" option installed. (I think XPa is the minimum version required...)

Or you could do it using the AT command.
 
I've got a batch file that I copied from this forum that logs off your users, stops the spooler services, deletes any print jobs that are hung and reboots the server.

Let me know if you need it and I will post it on the site.
Just reply to this post and let me know if you want it.

Later.
 
Download WINAT. IS is a graphical form of the AT command. Works great.

Steve
 
Here it is.
This will help out alot!!

**************************************
REM * Citrix reboot file
REM * Reboot every Wednesday 12:00 P.M
***************************************

REM * Disable logon so new users can't logon
change logon /disable
REM * Broadcast Server Shutdown
msg * Server will reboot in 5 minutes, please save all work and log off, you may immediately log back in and continue working.
REM * Pause first 3 minutes
C:\WINNT\wait.exe 180 seconds
REM * Broadcast Server Shutdown again
msg * Server will reboot in 2 minutes, please log off.
REM * Pause for 120 seconds
C:\WINNT\wait.exe 120 seconds
REM * Reset all ICA/TCP sessions
echo y | reset session ica-tcp
REM * Stop print spooler for 30 seconds
net stop spooler
C:\WINNT\wait.exe 30 seconds
REM * Delete all stalled print jobs and delay for 20 seconds
Del /S /F /Q C:\Winnt\system32\spool\printers\*.*
C:\WINNT\wait.exe 20 seconds
REM * Shutdown Server
C:\WINNT\system32\tsshutdn.exe 0 /reboot /delay:00


BTY..you will need to download wait.exe from the internet or get it from a resource kit.

thx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top