Friday, August 15, 2008

Quick Tape test on a Sun machine

You will need to know the /dev/rmt/? device number before running this script.

--
#!/bin/sh

#tape_test.sh
#rev 01 01.05.04
#Steve Haley

#input for rmt device
clear;
print "Please enter rmt device number\n";
$rmt=;
chomp $rmt;

#Writing
clear;
print "Writing to /dev/rmt/$rmt\n";
sleep 2;
tar -cvf /dev/rmt/$rmt /usr/openwin/demo;

#Reading
clear;
print "Reading from /dev/rmt/$rmt\n";
sleep 2;
tar -xvf /dev/rmt/$rmt;
print "\n";
print "The test passed ok";

Labels: , , , ,

How to bypass ALOM password on a Sun Fire[TM] V210/V240/V250/V440

To overide the ALOM password on the system you will need to:

1) Attach console to Serial Management Port

2) Power on the server via the front power button. Once POST has
completed, you will need to wait 1 to 2 minutes for a timeout to
occur and the system to drop to the "ok>" prompt.

If you do not get the "Please login:" prompt (you will likely see the
SC prompt) then you must power the system off remove the battery from
the LOM board, wait a minute, and re-install everything).

Below is an example of what you might see on the console:

Please login:
SC Alert: Host System has Reset

[wait one two minutes]
Serial line login timeout, returns to console stream.

ok>

3) Boot the system to the OS level. If Solaris is not currently
installed on the server, you will need to install it at this point.

4) Use the scadm command to reset the admin password:

a) cd /usr/platform/`uname -i`/sbin
b) ./scadm userpassword admin

5) Use the escape sequence "#." to get system back to the alom login
prompt.

6) You can now log into the admin account using the password from
step 4 b).

Labels: , , , , , ,

Reset a Sun system network configuration to defaults

This simple command will un-configure a SunOS. After rebooting, it will ask you questions again about hostname, network, etc.

#sys-unconfig

Labels: , , , ,

Quick and Dirty - Creating a Diskless Client Jumpstart Server for Sun Microsystems Test Environment

This is a quick example to get you up and running with a Sun Jumpstart server. The hostname, IP scheme and hardware is just a typical example, but you can be creative and use whatever you have. I personally set up the jumpstart modules on a separate disk array, but it is up to you. Please contact me and I can email you the document. Hope this helps. You can download it here

---
ScreenShot

Labels: , , ,