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: , , , ,

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: , , , ,