<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Admin&#039;s Choice &#187; Install</title>
	<atom:link href="http://adminschoice.com/category/install/feed" rel="self" type="application/rss+xml" />
	<link>http://adminschoice.com</link>
	<description>Unix adminstrators documents , tip and more</description>
	<lastBuildDate>Thu, 11 Feb 2010 02:53:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Solaris Jumpstart &#8211; Howto guide</title>
		<link>http://adminschoice.com/solaris-jumpstart-howto-guide</link>
		<comments>http://adminschoice.com/solaris-jumpstart-howto-guide#comments</comments>
		<pubDate>Mon, 21 Dec 2009 06:22:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Install]]></category>

		<guid isPermaLink="false">http://adminschoice.com/wp28/?p=49</guid>
		<description><![CDATA[Jumpstart offers a way to install Solaris using network over multiple server with similar of different configurations.
Learn how to Setup and configure jumpstart server &#038; clients .]]></description>
			<content:encoded><![CDATA[<p><strong>Solaris Jumpstart &#8211; howto guide </strong><br />
Setup and configuration of jumpstart server &#038; clients .</p>
<p>Jumpstart offers a way to install Solaris using network over multiple server with similar of different configurations.</p>
<p>Here is a step by Step howto guide to install Solaris over network .</p>
<p><strong>1.0  Before you start</strong><br />
Pre Installation Checklist :<br />
    * The install server or boot server is in the same local network segment as client with network link up .<br />
    * NFS services are running On jumpstart server<br />
    * The tftp services are running . To start uncomment the tftp entry in /etc/inet/inetd.conf and restart the inet services<br />
    * The reverse address lookup daemon ,in.rarpd , is running .</p>
<p><strong>2.0 Preparing for a jumpstart server</strong></p>
<p>Create and share a  directory to store and share install server data.</p>
<p>#mkdir /export/install</p>
<p>share it<br />
#vi /etc/dfs/dfstab</p>
<p>add share -F nfs -o ro,anon=0 /export/install<br />
to export file system for sharing.<br />
Do a shareall so that the file system is now exported</p>
<p><strong>2.1 Setting  up an Install server</strong></p>
<p>Mount Solaris cdrom</p>
<p>Follow the steps :<br />
#cd /cdrom/cdrom0/s0/Solaris_2.7/Tools</p>
<p>#./setup_install_server /export/install</p>
<p>This will copy the   cdrom  contents in to the /export/install directory.</p>
<p><strong>2.2 Setting up a boot server</strong><br />
For installing clients over different networks you need a boot server in the same subnet as client .<br />
Boot server after booting the client hands over subsequent installation &#038; configuration  process to install server .</p>
<p># ./setup_install_server -b /export/install sun4u</p>
<p>the above command installs software for booting the client.<br />
You also have to do a add host and add_install_client in boot server, see adding clients . Rest of the configuration has to be done at install server.</p>
<p><strong>2.3 Setting up configuration files</strong></p>
<p>Make a jumpstart directory say /jumpstart<br />
Copy sample jumpstart files from cd</p>
<p>#cp –r /cdrom/cdrom0/s0/Solaris_2.7/Misc/* /jumpstart</p>
<p><strong>2.4 Making Rules</strong></p>
<p>Edit the sample rules file as per your requirement</p>
<p>#vi /jumpstart/rules</p>
<p>Keywords their value and usage is described in rules file itself.<br />
any minus sign (-) in rule value always matches for that keyword.</p>
<p>RULE_KEYWORD     RULE_VALUE  DESCRIPTIONS</p>
<p>domainname          text     system&#8217;s domain name<br />
disksize            text      range system&#8217;s disk size<br />
disk device name    text     disk size (MBytes range)<br />
hostname            text      system&#8217;s host name<br />
installed           text     text system&#8217;s installed ver. of Solaris disk device name (text)<br />
OS release          text<br />
karch               text      system&#8217;s kernel architecture<br />
memsize             range     system&#8217;s memory size (MBytes range)<br />
model               text&#8217;     system&#8217;s model number<br />
network             text      system&#8217;s IP address<br />
totaldisk           range    system&#8217;s total disk size (MBytes range)</p>
<p>The following rule set matches any machine and redirect the install request to a profile file  called any_machine.</p>
<p>any &#8211; - any_machine -</p>
<p>more examples can be found in rules file.</p>
<p><strong>2.5 Verifying rules</strong></p>
<p>A script called check validates and generates a rules.ok file if syntax, keywords are in order.</p>
<p>#./check<br />
Validating rules&#8230;<br />
Validating profile any_machine&#8230;<br />
rules ok.</p>
<p>The clients will read the rules.ok file for booting information</p>
<p><strong>2.6 Creating Profiles</strong></p>
<p>Profile is a text file which contains configuration information for the clients</p>
<p>A sample profile file called any_machine is already there . You can create your custom profile files through text editor and mention in rules file.</p>
<p>#vi any_machine<br />
install_type          initial_install<br />
system_type           server<br />
partitioning          explicit<br />
filesys               c0t0d0s0     500  /<br />
filesys               c0t0d0s1     1000 swap<br />
filesys               c0t0d0s3     1000 /usr<br />
filesys               c0t0d0s4     1000 /var<br />
filesys               c0t0d0s5     1000 /opt<br />
cluster               SUNWCall      add</p>
<p><strong>2.7 Sysidcfg file</strong><br />
Sysidcfg file keeps the various system information like locale time zone etc and supply it to the client at the booting time. In the absence of this the installation turns in to interactive mode to prompt you to supply the value for these variables</p>
<p>You have to create this file in text editor . A sample file would look like following</p>
<p># vi sysidcfg<br />
system_locale=en_US<br />
install_locale=en_US<br />
timeserver=localhost<br />
timezone=US/Pacific<br />
network_interface=hme0 {netmask=255.255.255.0}<br />
name_service=NONE</p>
<p><strong>2.8 Add a host entry</strong><br />
Edit the /etc/ethers file and put a host entry for your client ;ethernet address followed by host name.</p>
<p>On client ok>banner will give ethernet address</p>
<p>#vi /etc/ethers<br />
8:00:50:44:88:12 mercury</p>
<p><strong>2.9 Adding a Client</strong><br />
The clients are added using add_install_client command . You have to be in the Tools directory of Solaris CD or image  as the programme looks for the presence of valid Boot image dir in the same directory.</p>
<p>#cd /export/install/Solaris_2.7/Tools<br />
#./add_install_client   -e 8:00:50:44:88:12     -s jupiter:/export/install    -c jupiter:/jumpstart      -p jupiter:/jumpstart    mercury      sun4u</p>
<p>-e specify the ethernet address of client -s option specify the location of boot image ( As given in setup_install_server)<br />
-c option specify the jumpstart directory path.<br />
-p option specify the sysidcfg file location<br />
jupiter is your jumpstart server<br />
mercury is jumpstart client to be installed.<br />
sun4u is the architecture of client<br />
You need to enter the client through above command at the boot server also</p>
<p><strong>3.0 Starting The client Installation</strong></p>
<p>at client use the following command</p>
<p>ok>boot net &#8211; install</p>
<p>the system will initialize and starts booting from network<br />
and you will see these messages</p>
<p>System is coming up<br />
checking rules file<br />
using profile any _machine<br />
selecting cluster SUNWCall<br />
Preparing system to install software<br />
setting up disk<br />
creating and checking up file systems<br />
installing packages</p>
<p>After completion it will reboot and ask the new root password and after that takes you to the<br />
console prompt where you can login and do additional task you want to do.</p>
<p><strong>4.0 Begin &#038; Finish Scripts</strong></p>
<p>These are the optional features of jumpstart .<br />
A begin script is a shell script which is used to perform the task before Solaris OS is installed. These are specified in the rules file.</p>
<p>These can be used for creating dynamic derived profiles or backing up files before upgrading.</p>
<p>A finish script is used to perform the tasks after the OS is installed but before reboot.</p>
<p>These can be used to customize root environment , adding patches , files etc.</p>
<p>These scripts can not be checked by the check script so it must be accurate.</p>
<p>Out put of these scripts goes to /var/adm/begin.log and finish.log.</p>
<p>These should be owned by the root with permission 644</p>
<p><strong>5.0 Trouble Shooting</strong></p>
<p>The following are a few of the common errors encountered in jumpstart.</p>
<p><strong>Error : unknown client &#8220;client host name&#8221;</strong><br />
    Source : add_install_client<br />
    Cause : host name can&#8217;t be resolved . check host entry is there in /etc/ethers or in nis/nis+ maps . </p>
<p><strong>File just loaded does not appear to be executable .</strong><br />
    Source : Solaris booting process<br />
    Cause : Improper media . Make sure proper media is available through disk image or CD in the install server . Also see<br />
                  that the rules point to valid media type.</p>
<p><strong>Warning : getfile:RPC failed : error 5 (RPC timed out)</strong><br />
    Source: Client boot requests<br />
    Cause : Muliple entries for a client in different servers. There should not be multiple entries in different install server&#8217;s /etc/bootparams , /tftpboot or /rplboot . These causes a hang situation when all of them try to answer. </p>
<p><strong>No network boot server .Unable to install the system. See installation instructions</strong><br />
    Source : Client boot request.<br />
    Cause : Installation is not proper. Check the boot server installation again for any error in command or file .</p>
<p><strong>Timeout waiting for ARP/RARP packet …</strong><br />
    Source : Client boot request .<br />
    Cause : No server is answering its request for booting .Probably they don&#8217;t know about this client . See the proper entries are there in /etc/bootparams or nis maps with proper entries in nsswitch.conf . add_install_client is responsible for adding client information  in jumpstart server so check the command and its  option.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminschoice.com/solaris-jumpstart-howto-guide/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solaris Installation</title>
		<link>http://adminschoice.com/solaris-installation</link>
		<comments>http://adminschoice.com/solaris-installation#comments</comments>
		<pubDate>Mon, 21 Dec 2009 06:22:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[Install]]></category>

		<guid isPermaLink="false">http://adminschoice.com/wp28/?p=72</guid>
		<description><![CDATA[How to install Solaris OS - Introduction to the procedure and sequence of event  in Solaris installation. ]]></description>
			<content:encoded><![CDATA[<p>Solaris installation poses a challenges to the new Solaris sysadmins who have never done the installation of Solaris before . Though the installation itself is simple and straight forward but doing it the first time comes with its own anxiety associated with  unexplored and unknown things .</p>
<p>The idea of this article is to introduce you with the procedure and sequence of event  Solaris installation to build enough confidence to finish the installation on your own.</p>
<p>Table of contents<br />
1. Before you begin<br />
2. Getting Started<br />
3. Starting the installation<br />
4. OS distributions &amp; disk configuration<br />
5. After Installation<br />
6. Next Steps</p>
<p><strong>1. Before you begin</strong><br />
For Solaris installation on standalone Sun machine you need the following besides sun cpu :</p>
<p>A) Sun Monitor and Sun Keyboard<br />
OR<br />
For carrying the installation through the serial port A of Sun (ttya)<br />
Dumb Terminal or PC with serial port communication software like HyperTerminal<br />
AND<br />
A null modem cable ( Pin 2 &amp; 3 crossed 5 common ground in 9 Pin to 9 pin ; Pin 7 is common ground in 25 Pin connector ) connecting sun&#8217;s serial port A with PC serial port.</p>
<p>B) You will also require a IP address, netmask and a host name for your system.</p>
<p><strong>2. Getting Started</strong></p>
<p>Installation starts at OK&gt; prompt &amp; you can get to ok&gt; using any of the following method :</p>
<p>A. by pressing Stop A key sequence on a Sun Keyboard.<br />
B. typing #init 0 if your system boots up directly .<br />
C. Pressing ctrl-break or shift-break on a pc keyboard if using pc as<br />
console through serial port.<br />
D. If auto-boot feature is enabled system directly boots up<br />
and gives you a # prompt .You can disable auto-boot so next time it<br />
stays at ok prompt for starting installation.<br />
#/usr/platform/sun4u/bin/eeprom auto-boot?=false<br />
reboot the system.</p>
<p><strong>3. Starting the installation</strong><br />
Insert the installation media &#8211; OS CD in CD drive and type boot cdrom at ok&gt; prompt .<br />
Ok&gt;boot cdrom</p>
<p>The first phase begins with system identification   and gathers information about the system from the the user .System starts booting up and after initialization it asks for language and locale also terminal type in case of PC/terminal</p>
<p>Select your locale and DEC VT100 terminal type for terminal selection<br />
Further installation through the terminal require response to the<br />
selections through ESC and function keys and space bar which are<br />
mentioned on the installation screen.</p>
<p>On the next screens, you are to identify the system as networked or    non-networked, and set the default time zone and date/time. After this following host information is required :</p>
<p>A) A host name for the system<br />
B) Whether the system is networked if yes you will have to<br />
provide the IP address &amp; netmask of this machine.</p>
<p>Next you will be asked to select the name services<br />
Name services
<pre>
[    ]                      NIS+
[    ]                      NIS
[    ]                      DNS
[X ]                        None
</pre>
<p>Select the service if you have complete details like domain names etc or select none to configure after installation.</p>
<p>You have to select a distribution type from among the choices choices</p>
<p><strong>4. OS distribution &amp; Disk configuration</strong><br />
After identification is complete the installation process proceeds on to the OS and disk configuration and need your input for these settings. Selection depends on role of your machine</p>
<p>Typical space requirement for Solaris 7 is given here.</p>
<pre>
[   ] Entire Distribution plus OEM support 64-bit 1242.00 MB (F4 to Customize
[X] Entire Distribution 64-bit .....…...….1215.00 MB
[   ] Developer System Support 64-bit.... 1154.00 MB
[   ] End User System Support 64-bit .….. 765.00 MB
[   ] Core System Support .............. .334.00 MB
</pre>
<p>* Entire distribution with OEM has all software with some third party software<br />
* Entire distribution  has all software without   third party software .<br />
* Developer system has run time libraries for C software etc.<br />
* End user has  X windows and CDE environment .<br />
* Core system is without X windows softwares etc.</p>
<p>If you are not sure select entire distribution.</p>
<p>You will be presented with choice to select the boot disk among the disks present in the system ,unless you have reasons  select the c0t0d0 at boot disk.</p>
<p>[ X ] c0t0d0 (17269 MB) boot disk 17269 MB</p>
<p>[   ] c0t1d0 (17269 MB) 17269 MB</p>
<p>overlap partition represents entire disk and is slice s2 of the disk.<br />
If any of the disk contain a preexisting partition you will be given a choice to  preserve the partition .<br />
Next the current layout is given ( if existing ) and you are asked to select between Automatic and Custom layout of disk partitions.</p>
<p>* Automatic layout make a single partition of entire boot disk .<br />
* Customize option gives and option to create the partitions and select the sizes .</p>
<p>Things to keep in mind while doing interactive or custom installation<br />
- Additional space is required in /var &amp; /home  if server is to handle  mail and printing as mail and print files are formed in /var &amp; if the user home directories are to be located on /home partition</p>
<p>A sample partition table may look like following .</p>
<pre>
File system/Mount point Disk/Slice Size
---------------------------------------

/           c0t0d0s0       300 MB

swap        c0t0d0s1       2000 MB

overlap     c0t0d0s2       17269 MB

/usr        c0t0d0s3       2000 MB

/opt        c0t0d0s4       1000 MB

/var        c0t0d0s5       1000 MB
</pre>
<p>- The swap partition size depends on the size of RAM in the system if you are not sure of its size keep it double the RAM or more than RAM in the system.</p>
<p>- If you are not sure of individual partition sizes of   /    , /usr   /opt &amp; /var make one partition as / and keep its size sufficiently higher than the distribution size you have selected in earlier steps . Always keep in mind the future software that you might have to install like compilers applications etc and log files that will be generated and accumulate in /var directory or partition.</p>
<p>After you have specified the partition sizes it gives summary and error if any</p>
<pre>
Installation Option: Initial

Boot Device:            c0t0d0s0
Client Services:        None
Software: Solaris 2.7, Entire Distribution

File System and Disk Layout:
/          c0t0d0s0     300 MB
swap       c0t0d0s1     2000 MB
/usr       c0t0d0s3     2000 MB
/opt       c0t0d0s4     1000 MB
/var       c0t0d0s5     1000 MB

one more question is asked about rebooting

[X] Auto Reboot
[  ] Manual Reboot
</pre>
<p>Afterwards it starts configuring disk making partitions and installing software indicating the progress in a table .</p>
<p>MBytes Installed: 700.66</p>
<p>MBytes Remaining: 0.00</p>
<pre>
Installing:
|    |     |     |     |     |

0   20    40    60    80    100
</pre>
<p>After the installation is complete it customizes system files , devices ,logs , installs patches which are there in OS CD for that release. You can install recommended  latest patches later</p>
<p>System then  reboots or ask you to reboot depending upon the choice selected earlier .</p>
<p><strong>5. After Installation</strong><br />
After rebooting it asks for new root passed and  comes to console prompt where you can login as root install patches ,additional software , make user etc. etc.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminschoice.com/solaris-installation/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Booting problems in Solaris</title>
		<link>http://adminschoice.com/booting-problems-in-solaris</link>
		<comments>http://adminschoice.com/booting-problems-in-solaris#comments</comments>
		<pubDate>Mon, 21 Dec 2009 06:20:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Boot]]></category>
		<category><![CDATA[Install]]></category>
		<category><![CDATA[bootblk]]></category>
		<category><![CDATA[Booting problems in Solaris]]></category>
		<category><![CDATA[ELF]]></category>
		<category><![CDATA[path_to_inst]]></category>
		<category><![CDATA[single user]]></category>
		<category><![CDATA[stat]]></category>

		<guid isPermaLink="false">http://adminschoice.com/wp28/?p=81</guid>
		<description><![CDATA[Booting problems poses serious challenge to the system administrators as system is down and no one can use it . This article tries to cover some of the general booting problems and their possible solutions to enable understand the problem cause and bring the system up very quickly.
Following are some of the booting issues ,error [...]]]></description>
			<content:encoded><![CDATA[<p>Booting problems poses serious challenge to the system administrators as system is down and no one can use it . This article tries to cover some of the general booting problems and their possible solutions to enable understand the problem cause and bring the system up very quickly.</p>
<p>Following are some of the booting issues ,error messages their meaning and possible solutions discussed in this article.</p>
<p>1) Booting in single user mode and mounting root disk<br />
2) Making boot device alias<br />
3) Timeout waiting for ARP/RARP packet&#8221;?  error message<br />
4) The file just loaded does not appear to be executable  &#8211;  error message<br />
5) bootblk: can&#8217;t find the boot program &#8211; error message<br />
6) boot: cannot open kernel/unix &#8211; error message<br />
7) Error reading ELF header? &#8211; error message <img src='http://adminschoice.com/wp28/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> Cannot open /etc/path_to_inst error message<br />
9) Can&#8217;t stat /dev/rdsk/c0t3d0s0 error message</p>
<p><strong>1. Booting in single user mode and mounting root hard disk</strong><br />
Most important step in  diagnosing the booting problems is booting the system in single user mode and examining the hard disk for possible errors &amp; work out the corrective measure. Single user mode can be achieved by any of the following methods :-<br />
ok&gt; boot -s           ;from root disk<br />
ok&gt; boot net -s       ;from network</p>
<p>ok&gt;boot cdrom -s      ;from cdrom<br />
Rebooting with command: cdrom -s<br />
Configuring the /devices directory<br />
Configuring the /dev directory |<br />
INIT: SINGLE USER MODE<br />
#<br />
# fsck /dev/rdsk/c0t3d0s0<br />
# mount /dev/dsk/c0t3d0s0 /mnt</p>
<p>Perform the required operation on mounted disk , now accessible through /mnt ,&amp; unmount the hard disk after you are done ;<br />
# umount /mnt<br />
# reboot</p>
<p><strong>2.Making boot device alias</strong><br />
In case system can not boot from primary disk  and it is needed to make another boot disk to access the data , nvalias command is used .<br />
nvalias command makes the device alias  and assigns an alternate name to a physical disk. Physical address of target disk is required  which can be had by show-disk command on ok&gt;.</p>
<p>ok&gt; nvalias disk7 /iommu@f,e0000000/sbus@f,e0001000/dma@3,81000/esp@3,80000/sd2,0<br />
The new aliased disk can be named as boot disk or can be used for booting by refering its name .<br />
ok&gt; setenv boot-device disk7<br />
ok&gt;reset<br />
or<br />
ok&gt; boot disk7</p>
<p><strong>3. Timeout waiting for ARP/RARP packet ?</strong><br />
At ok&gt; type printenv and look for these parameters .<br />
boot-device           disk<br />
mfg-switch?           false<br />
diag-switch?          false<br />
if you see &#8220;boot-device net &#8221; or true value for the other two parameter change it to the values above.<br />
In case you wants to boot from network make sure your client is properly configured in boot server and network connections &amp; configuration are proper.</p>
<p><strong>4. The file just loaded does not appear to be executable</strong><br />
Boot block on the hard disk is corrupted .Boot the system in single user mode with cdrom and reinstall boot block .</p>
<p>#installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c0t3d0s0</p>
<p><strong>5. bootblk: can&#8217;t find the boot program</strong><br />
boot block can not find the boot programe &#8211; ufsboot in Solaris .Either ufsboot is missing or corrupted . In such cases it can be restored from the cdrom after booting from cdrom &amp; mounting the hard disk<br />
# cp /platform/`uname -i`/ufsboot /mnt/platform/`uname -i`</p>
<p><strong>6. boot: cannot open kernel/unix</strong><br />
Kernel directory or unix kernel file in this directory is not found .Probably deleted during fsck or deleted by mistake. Copy it from the cdrom or restore from the backup tape.<br />
# cp /platform/`uname -i`/kernel/unix /mnt/platform/`uname -i`/kernel</p>
<p><strong>7. Error reading ELF header ?</strong><br />
Kernel directory or unix kernel file in this directory is corrupted.Copy it from the cdrom or restore from the backup tape.<br />
# cp /platform/`uname -i`/kernel/unix /mnt/platform/`uname -i`/kernel</p>
<p><strong>8. Cannot open /etc/path_to_inst</strong><br />
System can not find the /etc/path_to_install file .It might be missing or corrupted and needs to be rebuild.<br />
To rebuild this file  boot the system with  -ar option :<br />
ok&gt;boot -ar<br />
Press enter to select default values for the questions  asked during booting and select yes to rebuild /etc/path_to_install<br />
The /etc/path_to_inst on your system does not exist or is empty. Do you want to rebuild this file [n]? y<br />
system will continue booting after rebuilding the file.</p>
<p><strong>9. Can&#8217;t stat /dev/rdsk/c0t3d0s0 </strong><br />
When booted from cdrom  and done fsck the root partition comes out to be fine but on booting from root disk this error occurs. The device name for / is missing from /dev/dsk directory and to resolve the issue /dev &amp; /devices directories has to be restored from root backup tapes .</p>
]]></content:encoded>
			<wfw:commentRss>http://adminschoice.com/booting-problems-in-solaris/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Sun OpenBoot Parameters and commands</title>
		<link>http://adminschoice.com/sun-openboot-parameters-and-commands</link>
		<comments>http://adminschoice.com/sun-openboot-parameters-and-commands#comments</comments>
		<pubDate>Thu, 17 Dec 2009 06:18:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[Boot]]></category>
		<category><![CDATA[Install]]></category>

		<guid isPermaLink="false">http://adminschoice.com/wp28/?p=143</guid>
		<description><![CDATA[The firmware in Sun's boot PROM is called OpenBoot . Learn about setting up and usage of  open boot parameters in system operation and diagnostics .]]></description>
			<content:encoded><![CDATA[<p><strong>About Openboot </strong>:<br />
The firmware in Sun&#8217;s boot PROM is called OpenBoot. The main features of openboot are &#8211;  initial program loading ,   &#038;  debugging features to assist kernel debugging. OpenBoot supports plug-in device drivers which are written in language Forth. This plug in feature allows Sun or any third-party vendors to develop new boot devices but without making any changes to  boot PROM.</p>
<p><strong>Accessing the openboot</strong><br />
Openboot  console can be accessed by any of the following means . Be careful not to do this on a live system as you might end up in rebooting the server .</p>
<p><strong>1. Rebooting a system </strong>, if auto-boot is not set to true rebooted system returns to OK> prompt which is openboot prompt</p>
<p><strong>2. Pressing the keys L1 and A  or STOP A </strong> ,  at the same time will bring you to the OpenBoot system. You will see the display<br />
Type b (boot), c (continued), or n (new command mode)<br />
><br />
 Typing b boots   the operating system . Typing c resumes the execution of a halted program. Typing n gets you to the Forth monitor, and the prompt will change to ok.  </p>
<p><strong>OpenBoot Parameters &#038; commands</strong></p>
<p>Following two tables gives a list of Openboot parameters &#038; commands </p>
<table border="1" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td  width="100%" valign="top" height="39">
      <b>Following two tables gives a list of<br />
        Openboot parameters &amp; commands&nbsp;</b>
        </td>
</tr>
<tr>
<td height="23" width="100%" bgcolor="#E4E4E4">
        <b>General</b>
                </td>
</tr>
<tr>
<td height="171" width="100%">
<dl>
<dt><b>printenv</b></dt>
<dt>Display all variables and current<br />
            values.</dt>
<dt><b>setenv &lt;variable&gt;&nbsp;</b>&nbsp;</dt>
<dt>Set variable to the given&nbsp;&nbsp;<br />
            value.</dt>
<dt><b>set-default&nbsp; &lt;variable&gt;&nbsp;</b>&nbsp;</dt>
<dt>Reset the value of <var>variable</var><br />
            to the factory default.</dt>
<dt><b>set-defaults&nbsp;&nbsp;</b></dt>
<dt>Reset variable values to the factory<br />
            defaults.</dt>
</dl>
</td>
</tr>
<tr>
<td height="19" width="100%" bgcolor="#E4E4E4"  valign="top" >
        <b><span style="text-transform: uppercase;">boot</span></b></p>
</td>
</tr>
<tr>
<td height="228" width="100%"  valign="top"  >
<dl>
<dt><b>auto-boot?=true</b>&nbsp;&nbsp;</dt>
<dt>System directly boots without<br />
            stopping at OK&gt; after power on.</dt>
<dt><b>boot-command=boot</b><br />
            command passed on to auto boot if true.&nbsp;</dt>
<dt><b>boot-file:&nbsp;&nbsp;</b><br />
            File&nbsp; for booting&nbsp; Solaris , default is empty string .This<br />
            variable contains the default boot arguments that are used when<br />
            OpenBoot is not in diagnostic mode.</dt>
<dt><b>boot-device=disk net</b>&nbsp;&nbsp;</dt>
<dt> Device<br />
            to boot from , multiple devices can be specified using spaces .Other<br />
            devices will be selected if&nbsp; first device fails.</dt>
</dl>
<p>&nbsp;</p>
</td>
</tr>
<tr>
<td height="19" width="100%" bgcolor="#E4E4E4"  valign="top"  >
        <b>Network</b>
        </td>
</tr>
<tr>
<td  valign="top"  width="100%">
<dl>
<dt><b>tpe-link-test?</b></dt>
<dt><b>=true</b></dt>
<dt>Tests the UTP&nbsp; Ethernet port<br />
            link and flashes error messages if there is no network&nbsp; link.</dt>
<dt><b>local-mac-address?</b></dt>
<dt><b>=false</b></dt>
<dt>Use the system&#8217;s&nbsp; MAC address<br />
            instead of network card&#8217;s MAC address .&nbsp;</dt>
<dt><b>Ports</b></dt>
<dt><b>ttyb-rts-dtr-off</b></dt>
<dt><b>=false<br />
            ttyb-ignore-cd</b></dt>
<dt><b>=true<br />
            ttya-rts-dtr-off</b></dt>
<dt><b>=false<br />
            ttya-ignore-cd</b></dt>
<dt><b>=true<br />
            ttyb-mode</b></dt>
<dt><b>=9600,8,n,1,-<br />
            ttya-mode</b></dt>
<dt><b>=9600,8,n,1,-&nbsp;</b></dt>
</dl>
</td>
</tr>
<tr>
<td  valign="top" height="19" width="100%" bgcolor="#E4E4E4">
        <b>DIAGNOSTICS</b></p>
</td>
</tr>
<tr>
<td  valign="top" height="209" width="100%">
<dl>
<dt><b>diag-file</b>:</dt>
<dt>boot file for diagnostic mode This<br />
            variable contains the default diagnostic mode boot arguments.<br />
            <b>diag-device=net</b></dt>
<dt>booting device in diagnostic mode.</dt>
<dt><b>diag-switch?=false</b></dt>
<dt>If true system runs in diagnostic<br />
            mode.</dt>
<dt><b>diag-level=max</b><br />
            Level for diagnostics information , can&nbsp;</dt>
<dt>be&nbsp; min , max and minus . There<br />
            may be additional platform specific values. If set to off, POST is<br />
            not called. The default value is platform-dependent.
            </dt>
</dl>
</td>
</tr>
<tr>
<td height="19" width="100%" bgcolor="#E4E4E4">
        <b><span style="text-transform: uppercase;">input/output</span></b></p>
</td>
</tr>
<tr>
<td height="342" width="100%">
<dl>
<dt><b>input-device=keyboard</b></dt>
<dt>Input device used at power-on (&nbsp;<br />
            keyboard, ttya, or&nbsp; ttyb).&nbsp;&nbsp;
            </dt>
<dt><b>keyboard-click?=false</b></dt>
<dt>keyboard click sound</dt>
<dt><b>keymap</b>:&nbsp;&nbsp;</dt>
<dt>For custom keyboards</dt>
<dt><b>output-device=screen</b></dt>
<dt>Output device used at power-on<br />
            (screen,<br />
            ttya, or ttyb).<b><br />
            ansi-terminal?=true</b></dt>
<dt>controls&nbsp; the behavior of the<br />
            terminal emulator.<br />
            The value false causes&nbsp; the terminal emulator to&nbsp; stop<br />
            interpreting ANSI escape sequences resulting in&nbsp; echoing them<br />
            to the output device.&nbsp;<br />
            <b>screen-#columns</b>=80<br />
            <b>screen-#row</b>s=34</dt>
<dt>Columns and Rows of display screen.</dt>
</dl>
<p>&nbsp;</p>
</td>
</tr>
<tr>
<td height="19" width="100%" bgcolor="#E4E4E4">
        <b>SCSI</b></p>
</td>
</tr>
<tr>
<td height="57" width="100%">
<dl>
<dt><b>scsi-initiator-id=7</b></dt>
<dt>SCSI bus address of host adapter,<br />
            range 0-7. Used&nbsp; in shared scsi storage envornment.</dt>
</dl>
</td>
</tr>
<tr>
<td height="19" width="100%" bgcolor="#E4E4E4">
        <b>Bus</b></p>
</td>
</tr>
<tr>
<td height="92" width="100%">
<dl>
<dt><b>pcia-probe-list=1,2,3,4<br />
            pcib-probe-list=1,2,3</b></dt>
<dt><kbd><b>sbus-probe-list=2,0,1,3</b></kbd></dt>
<dt>Order to probe pci and sbus&nbsp;<br />
            buses for devices.</dt>
</dl>
</td>
</tr>
<tr>
<td height="19" width="100%" bgcolor="#E4E4E4">
        <b>NVram</b></p>
</td>
</tr>
<tr>
<td height="114" width="100%">
<dl>
<dt><b>use-nvramrc?=false</b></dt>
<dt>If true , execute commands in<br />
            NVRAMRC during sys-<br />
            tem start-up. Defaults to false .<br />
            <b>nvramrc</b></dt>
<dt>Displays contents of NVRAM</dt>
</dl>
</td>
</tr>
<tr>
<td height="19" width="100%" bgcolor="#E4E4E4">
        <b>Security</b></p>
</td>
</tr>
<tr>
<td height="190" width="100%">
<dl>
<dt><b>security-mode=none</b></dt>
<dt>Firmware security level (options:<br />
            none, command ,<br />
            or full). If set to command or full, system will prompt for PROM<br />
            security password.&nbsp;<br />
            &nbsp;&nbsp;</dt>
<dt>Security password setting when<br />
            security mode is command or full.<br />
            <b>security-#badlogins=0</b></dt>
<dt>No. of bad security login .</dt>
<dt><b><tt>password&nbsp;</tt>Set&nbsp;<br />
            security-password</b></dt>
</dl>
<p>&nbsp;</p>
</td>
</tr>
<tr>
<td height="19" width="100%" bgcolor="#E4E4E4">
        <b>oem</b></p>
</td>
</tr>
<tr>
<td height="114" width="100%">
<dl>
<dt><b>oem-logo</b>=<b>false</b><br />
            <b>oem-logo?=false</b><br />
            <b>oem-banner?=false</b></dt>
<dt><b>mfg-mode=off</b></dt>
</dl>
<p>&nbsp;</p>
</td>
</tr>
<tr>
<td height="19" width="100%" bgcolor="#E4E4E4">
        <b>Diagnostics</b></p>
</td>
</tr>
<tr>
<td height="361" width="100%">
<dl>
<dt><b>banner&nbsp;</b></dt>
<dt>this command shows the following&nbsp;<br />
            systems hardware information : Model, architecture, processor, keyboard, openboot<br />
            version, Serial no. Ethernet&nbsp; address &amp; host id.<br />
            <b>test floppy</b> &#8211; test floppy disk drive<br />
            <b>test net </b>- test network loop backs<br />
            <b>test scsi</b> &#8211; test scsi interface<br />
            <b>test-all&nbsp;&nbsp;</b>&nbsp; test for all devices with self test<br />
            method<br />
            <b>watch-clock&nbsp;&nbsp;</b></dt>
<dt>Show ticks of real-time clock<br />
            <b>watch-net</b></dt>
<dt>Monitor network broadcast packets<br />
            <b>watch-net-all</b></dt>
<dt>Monitor broadcast packets on all net<br />
            interfaces<br />
            <b>probe-scsi</b></dt>
<dt>Show attached SCSI devices</dt>
<dt><b>probe-scsi-all&nbsp;</b></dt>
<dt>Show attached SCSI devices for all<br />
            host adapters- internal &amp; external.</dt>
</dl>
<p>&nbsp;</p>
</td>
</tr>
<tr>
<td height="19" width="100%" bgcolor="#E4E4E4">
        <b>boot</b></p>
</td>
</tr>
<tr>
<td height="222" width="100%">
<p><b>boot</b> &#8211; boot kernel from default<br />
        device.<br />
        Factory default is to boot<br />
        from DISK if present, otherwise from NET.<br />
        <b>boot net</b> &#8211; boot kernel from network<br />
        <b>boot cdrom</b> &#8211; boot kernel from CD-ROM<br />
        <b>boot disk1:h </b>- boot from disk1 partition h<br />
        <b>boot tape</b> &#8211; boot default file from tape<br />
        <b>boot<br />
        disk</span> myunix</b> <b>-as</b> &#8211; boot myunix from disk with<br />
        flags &quot;-as&quot;</p>
</td>
</tr>
<tr>
<td height="20" width="100%" bgcolor="#E4E4E4">
<p><b>DEVALIAS</b></p>
</td>
</tr>
<tr>
<td height="236" width="100%">
<dl>
<dt><tt><kbd><b>ok&gt;show-devs</b></kbd></tt></dt>
<dt><tt>ok <kbd><b>cd /pci@1f,4000/scsi@3</b></kbd></tt>&nbsp;</dt>
<dt>ok <kbd><b>.properties</b></kbd></dt>
<dt><tt>ok </tt><kbd><b>ls</b></kbd></dt>
<dt>f00809d8 tape</dt>
<dt>f007ecdc disk</dt>
<dt><tt>ok </tt><kbd><b>.speed</b></kbd></dt>
<dt>CPU Speed : 200.00MHz</dt>
<dt>UPA Speed : 100.00MHz&nbsp;</dt>
<dt>PCI Bus A : 66Mhz</dt>
<dt>PCI Bus B : 33Mhz</dt>
</dl>
<p>&nbsp;</p>
</td>
</tr>
<tr>
<td height="40" width="100%" bgcolor="#C0C0C0">
        <b>Useful<br />
        commands at OK prompt.</b></p>
</td>
</tr>
<tr>
<td height="169" width="100%">
        <b>nvedit </b>Start<br />
        nvramrc line editor using a temporary edit buffer<br />
        <b>use-nvramrc? </b>If this variable is true , Contents of nvramrc is<br />
        executed automatically. Set using setenv command<br />
        <b>nvrun</b> Execute the contents of nvedit edit buffer<br />
        <b>nvstore </b>Save the contents of the nvedit buffer into NVRAM<br />
        <b>nvrecover</b> Recover nvramrc after a set-defaults<br />
        <b>nvalias</b> &lt;name&gt; &lt;path&gt; Edit nvramrc to include<br />
        devalias called &#8216;name&#8217;<br />
        <b>nvunalias</b> &lt;name&gt; Edit nvramrc to remove devalias called<br />
        &#8216;name&#8217;</p>
</td>
</tr>
<tr>
<td height="266" width="100%">
<dl>
<dt><b>Key Sequences</b></dt>
<dt>These commands are disabled if the PROM security is on. Also, if<br />
              your system has full security enabled, you cannot apply any of the<br />
              suggested commands unless you have the password to get to the ok<br />
              prompt.</dt>
<dt>Stop &#8211; Bypass POST. This command does not depend on<br />
              security-mode. (Note: some systems bypass POST as a default; in<br />
              such cases, use <tt>Stop-D</tt> to<br />
              start POST.)</dt>
</dl>
<dl>
<dt><b>Stop-A</b>&nbsp;<br />
            Abort.</dt>
<dt><b>Stop-D</b> -<br />
            Enter diagnostic mode (set <tt>diag-switch?</tt> to <tt>true</tt>).</dt>
<dt><b>Stop-F</b> -<br />
            Enter Forth on TTYA instead of probing. Use <tt>exit</tt> to<br />
            continue with the initialization sequence. Useful if hardware is<br />
            broken.</dt>
<dt><b>Stop-N&nbsp;</b><br />
            Reset NVRAM contents to default values.</dt>
</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://adminschoice.com/sun-openboot-parameters-and-commands/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
