NSH Script: Reboot Windows Servers

The attached script is used to reboot a Windows machine as part of a sequence of multiple operations.  It sends a reboot command to the server and then monitors the status of the server until it has finished rebooting and is once again accessible to Network Shell (i.e. the agent has restarted).

 

See also http://www.bladelogic.com/community/entry!default.jspa?categoryID=26&entryID=58&fromSearchPage=true

for setting the tcp timeout values

 

  • This sample can also be found in the samples directory within the product distribution.