Thursday, January 28, 2010

Auto-restart sun server

Hello,

In this blog i will cover a small experimetal set-up wherin we will see how to restart a T1000 server using image stored in tftpserver in case of an OS crash.

Experimental setup;

1. Connect your console cable to t1000 and using hyperterminal in windows connect to it using default settings.

2.On a sucessfull connection enter your with login name as ¨admin¨ and password ¨admin123¨ (or just press enter for default ) .

3.To go to ALOM mode type ¨#.¨ (two keys # and dot)

4.At sc> showsc

5. sc> bootmode normal ¨auto-restart ? false¨

6.sc> reset

7 After reset command the server OS will reboot and then will land up on the ok prompt.

8. At ok>show-nets

9. At ok>nvalias nxge0 /pci@780/network

10.At ok>boot-device nxge0

11.At ok>setenv network-boot-arguments host-ip=<any ip address in dot and decimal format reachable to tftpserver>,file=tftp://<tftp server-ip>/<boot-file-name>

12.boot

13 .All set and the server will boot enjoy !!!!