- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Netservers
- >
- automate server reboot
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2003 02:15 AM
07-24-2003 02:15 AM
This means coming out at night if it goes wrong.
Is there a way of checking network connectivity every 30 secs, maybe a batch file that pings the default gateway for example, and then reboots itself if it gets no reply.
Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2003 03:24 AM
07-24-2003 03:24 AM
Re: automate server reboot
You can try the following one by one to zero down on the root cause..
1. Check the network settings on the system
2. Check for the duplicate IP addresses on the network.
3. Try with a different UTP cable
4. Try connecting the server to a different switch or switch port.
5. Replace the NIC card on the system
6. Try installing latest patches for the OS
Pl. post more details about the system
-Karthik S S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2003 04:22 AM
07-24-2003 04:22 AM
Re: automate server reboot
Thanks for the input, yes it's a temporary fix I agree, the problem is caused by 3rd party software that we've paid lots of money to the manufacturers to put right.
Until they do though, I'm trying to find a fix so we don't keep having to come out at night, and rebooting the system does seem to do the trick for a few hours
Details of server
Name ourserver
Model HP NetServer LP 2000r
Location
Processor 1 Pentium III, 1266 MHz
Processor 2 Pentium III, 1266 MHz
BIOS Version 4.06.06 RP
Video BIOS Version 4.328
Memory Total 1280 MB
Up Time 2 days, 17:48:38.56
OS Windows NT
OS Version 4.0 Build 1381 Service Pack 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2003 04:40 AM
07-24-2003 04:40 AM
SolutionThere are PING variants that set errorlevel and command line tools to shut down the system. Mix them together in a batch file and schedule the batch file via scheduler service (or add a freeware timer tool).
A google search for PING and ERRORLEVEL revealed this:
http://wettberg.home.texas.net/alive.htm
Use this to ping a 'known good' ip address (like another server). If errorlevel isn't zero reboot.
(No, I haven't tried that before)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2003 05:05 AM
07-24-2003 05:05 AM
Re: automate server reboot
You can make use shutdown.exe command which is a part of WindowsNT resource kit. This command can be put in a small script which checks for network connectivity and if the test case fails shutdown (reboot) can be invoked.
For getting Unix like commands and to write shell scripts for the above task you can additionally install "Windows Services for Unix" ( 4months trail from MS site).
www.microsoft.com/windows/sfu/default.asp
Regards,
Karthik S S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2003 06:20 AM
07-24-2003 06:20 AM
Re: automate server reboot
OK with your help I'm on my way to solving this.
I've downloaded the Alive program and installed the reskit. I've written a batch file that pings another server on the same switch (this will probably be changed) every 30 seconds, if I pull the network cable out of the other server the problem server is rebooting as planned.
All I need to do now is get it to log back in automatically. There is a program that needs to be running for the server to do it's job, so I could put that program in the start up folder
So any ideas about getting it to automatically logon?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2003 10:52 AM
07-24-2003 10:52 AM
Re: automate server reboot
AFAIK automatic logon is a security risk because the admin password is written unencrypted in the registry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2003 11:19 PM
07-24-2003 11:19 PM
Re: automate server reboot
To enable autologon read,
http://www.itworld.com/nl/win_admin_tips/07202001/
To lock the workstation once it has logged in ... probably you can enable screen saver password.
Regards,
Karthik S S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2003 12:25 AM
07-25-2003 12:25 AM
Re: automate server reboot
Yes, all done, thanks for the help
Incase anyone has done a search and found this and needs to do something similar here's what I did with your help:
Downloaded the alive program from
http://wettberg.home.texas.net/alive.htm
Copied the shutdown.exe from the reskit and copied both files to system32
then put a batch file like this in scheduled tasks to run every 30 secs
alive servername
if errorlevel 1 shutdown \\ipaddress /Y /R /C
Then changed the registry in regedt32 to enable autologon, see this article for instructions
http://support.microsoft.com/default.aspx?scid=kb;en-us;310584
Then made another batch file like this
RUNDLL32 USER32.DLL,LockWorkStation
Then put this .bat file and a shortcut to the program that needs to running on the server in the startup folder
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2003 12:49 AM
07-25-2003 12:49 AM
Re: automate server reboot
Thanks for sharing the procedure that you have followed.
Now have a look at,
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x1fd2e6ab52b11743b07c0dd4ca137e4c,00.html
Enjoy
-Karthik S S