Você está na página 1de 150

Sun Fundamentals – Course 2

Midrange Servers
This page is left intentionally blank

2
Notice

The information contained within this document is strictly confidential and subject to change without notice.

This document is distributed directly and under agreement restricting the use, copying, distribution and
decompilation. No part of this document may be reproduced in any form by any means without the prior written
authorisation of Agilitas IT Solutions Limited.

Documentation is provided ‘as is’ and all expressed or implied conditions and representations, including any
implied fitness for a particular purpose or non -infringement are disclaimed, except to the extent that such
disclaimers are held to be legally invalid.

3
This page is left intentionally blank

4
Contents

Covered
Section Topic Page
during

Preface

1 Hardware Naming Conventions Day 1 9

Common Hardware basics


2 Connecting to Sun systems Day 1 17
Lights Out Management

3 Open Boot Prom and BIOS Day 1 47

L1 Lab session 1 Day 1

Solaris introduction
4 Day 2 63
Install Solaris – Text Terminal

Lab session 2
L2 Day 2

Basic Solaris – boot and halt


4 Day 2
Login, navigate and explore
Useful Solaris for Engineers
4 Solaris Quick Ref Guide Day 3
Editing with vi

L3 Lab session 3 Day 3

5 Sources of Information Day 4 105

L4 Lab session 4 Day 4

6 Appendices 115

5
This page is left intentionally blank

6
Preface

Training with Agilitas

Agilitas develops training programmes that aim to provide delegates with the
skill set necessary to identify the features and architecture specifics of the Sun
range of servers and storage.

Courses are held in one of our two custom built training suites and provide a
combination of hands on and class taught workshops. This training method
allows delegates to gain invaluable experience of the technology in an
environment optimised for learning.

The computer room at Agilitas is extensively furnished with current and legacy
technology.

The Agilitas training course you are attending is a 4-day fundamental


introduction to the following Sun Midrange Servers.

Midrange Servers Ultra E3000, E4000, E5000, E6000


Ultra E3500, E4500, E5500, E6500
Sun Fire E3800, E4800, E6800
Sun Fire E2900, E4900, E6900
Sun Fire V480, V490
Sun Fire V880, V890
Sun Fire V1280, E2900
SunFire T1000, T2000
SunFire T5xxx
Sun X4xxx

About this guide

The guide is a supplementary reference document to help you through the


course.

Further Sun courses offered by Agilitas

Course 1 – Sun Workstations and Entry Level Servers


(Applicants for Course 2 are required to have completed this Course).

Course 3 – Sun High End Servers


(Applicants for Course 3 are required to have completed A gilitas’s Midrange Server Course
2).

Please note that a minimum of 4 weeks should elapse between course attendances.

7
This page is left intentionally blank

8
Section 1
Hardware naming conventions

9
This page is left intentionally blank

10
Section 1 – Hardware naming conventions

Naming Conventions and Model Equivalents

Server Netra
UltraSPARC I Ultra E3000
Ultra E4000
Ultra E5000
Ultra E6000
UltraSPARC II Ultra E3000
Ultra E4000
Ultra E5000
Ultra E6000
Ultra E3500
Ultra E4500
Ultra E5500
Ultra E6500
UltraSPARC III E4800
E6800
V880
UltraSPARC III Cu E3800
E4800
E4810
E6800
E4900
E6900
V1280
UltraSPARC IV E4800
E4810
E6800
E2900
E4900
E6900
V890
V1280
UltraSPARC IV+ E4800
E4810
E6800
E2900
E4900
E6900
V890
SPARC64 VI M3000
SPARC64 VI M4000
UltraSPARC T1 T1000
T2000
UltraSPARC T2 T5120
T5220
UltraSPARC T2+ T5140
T5240
T5440

11
This page is left intentionally blank

12
13
14
15
16
Section 2
Common hardware basics

17
This page is left intentionally blank

18
Section 2 – Common hardware basics

Connecting to Sun Systems

If your Sun system has a full graphics screen, keyboard and mouse, all
diagnostic information will be output on the graphics screen, and all user
interaction will be through the keyboard and mouse.

If you system has no graphics screen, then a laptop or serial terminal


connected to the serial port must be used instead.

Older Sun systems have 2 unmanaged serial ports labelled A and B, known as
ttya and ttyb (tty = teletype) and the output from Power On Self Test (POST)
is from ttya.

Newer Sun systems have a Serial Management port in addition to one or two
serial ports. In these systems, all management is via the Serial Management
port.

Port Settings

 9600 baud
 8 bit
 1 stop bit
 no parity

Port Form factor

Most unmanaged ports use 25-way or 9-way D type connectors and you may
need to vary the cable pin-outs depending on the system you want to connect
to.

For managed ports a Cisco Rollover cable will work.

Connecting using a laptop PC

Download and install a serial client. PuTTY is recommended.

http://www.chiark.greenend.org.uk/

Configure a session to match the port settings above.


The session should immediately connect with the port.

19
Connecting using an Apple Mac

You need an usb to serial converter


Open a terminal session

sudo bash
password
cu –l /dev/cu.usbdriver -s 9600
Connected

Connecting using another Sun system

Use the ttya port on the system you are connecting from.

Within the connecting system’s Solaris, login as root, then edit the
/etc/remote file. Change hardwire from /dev/term/ to /dev/term/a as below:

bash-3.00# more /etc/remote


# The next 17 lines are for the PCMCIA serial/modem cards.
#
pc0:\
:dv=/dev/cua/pc0:br#38400:el=^C^S^Q^U^D:ie=%$:oe=^D:nt:hf:
pc1:\
:dv=/dev/cua/pc1:br#38400:el=^C^S^Q^U^D:ie=%$:oe=^D:nt:hf:
pc2:\
:dv=/dev/cua/pc2:br#38400:el=^C^S^Q^U^D:ie=%$:oe=^D:nt:hf:
pc3:\
:dv=/dev/cua/pc3:br#38400:el=^C^S^Q^U^D:ie=%$:oe=^D:nt:hf:
pc4:\
:dv=/dev/cua/pc4:br#38400:el=^C^S^Q^U^D:ie=%$:oe=^D:nt:hf:
pc5:\
:dv=/dev/cua/pc5:br#38400:el=^C^S^Q^U^D:ie=%$:oe=^D:nt:hf:
pc6:\
:dv=/dev/cua/pc6:br#38400:el=^C^S^Q^U^D:ie=%$:oe=^D:nt:hf:
pc7:\
:dv=/dev/cua/pc7:br#38400:el=^C^S^Q^U^D:ie=%$:oe=^D:nt:hf:
cuab:dv=/dev/cua/b:br#2400
dialup1|Dial-up system:\
:pn=2015551212:tc=UNIX-2400:
hardwire:\
:dv=/dev/term/b:br#9600:el=^C^S^Q^U^D:ie=%$:oe=^D:
tip300:tc=UNIX-300:
tip1200:tc=UNIX-1200:
tip0|tip2400:tc=UNIX-2400:
tip9600:tc=UNIX-9600:
tip19200:tc=UNIX-19200:
UNIX-300:\
:el=^D^U^C^S^Q^O@:du:at=hayes:ie=#$%:oe=^D:br#300:tc=dialers:
UNIX-1200:\
:el=^D^U^C^S^Q^O@:du:at=hayes:ie=#$%:oe=^D:br#1200:tc=dialers:
UNIX-2400:\
:el=^D^U^C^S^Q^O@:du:at=hayes:ie=#$%:oe=^D:br#2400:tc=dialers:
UNIX-9600:\
:el=^D^U^C^S^Q^O@:du:at=hayes:ie=#$%:oe=^D:br#9600:tc=dialers:
UNIX-19200:\
:el=^D^U^C^S^Q^O@:du:at=hayes:ie=#$%:oe=^D:br#19200:tc=dialers:
VMS-300|TOPS20-300:\
:el=^Z^U^C^S^Q^O:du:at=hayes:ie=$@:oe=^Z:br#300:tc=dialers:
VMS-1200|TOPS20-1200:\
:el=^Z^U^C^S^Q^O:du:at=hayes:ie=$@:oe=^Z:br#1200:tc=dialers:

20
dialers:\
:dv=/dev/cua/b:
--------------------------------------------------------------------
The attributes are:

dv device to use for the ttyinit


el EOL marks (default is NULL)
du make a call flag (dial up)
pn phone numbers
(@ =>'s search phones file; possibly taken from PHONES
environment variable)
at ACU type
ie input EOF marks (default is NULL)
oe output EOF string (default is NULL)
cu call unit (default is dv)
br baud rate (defaults to 300)
fs frame size (default is BUFSIZ) -- used in buffering writes
on receive operations
tc to continue a capability

To connect:

bash-3.00# tip hardwire

To drop the connection, type ~.

Example of a terminal session on an unmanaged serial port

connected
Power ON
Verifying NVRAM...Done
Bootmode is 0
[New I2C DIMM address]
MCR0 = 57b2ce06
MCR1 = 80008000
MCR2 = cf3000ff
MCR3 = a00000cf
Ecache Size = 512 KB
NVRAM Test
Icache Test
Dcache Test
MMU Test
FPU Test
Ecache Tag Addr Test
Ecache RAM Addr Test
Clearing E$ Tags Done
Clearing I/D TLBs Done
Probing memory
Done
MEMBASE=0x40000000
MEMSIZE=0x20000000
Data Line Test
Core Memory Test
Clearing memory...including Unix retained memory...Done
Turning ON MMUs Done
Copy ROM to RAM (170040 bytes) Done
Orig PC=0x1fff0007e44 New PC=0xf0f07e9c
Processor Speed=648MHz

21
Memory Data Line Test
Memory Addr Line w/ Ecache Test
ECC Block Memory Test
Looking for Dropin cPOST ... found
Copying Client...Done
Transferring control to Client...

Sun Microsystems, Inc. cPOST


@(#) cpost 1.0.12 2002/01/08 13:00

All Basic UltraSPARC IIe PBM Tests


Init CPU PBM
PIO Decoder And BCT Test
CPU IOMMU Reg Test
CPU IOMMU RAM NTA Test
CPU IOMMU CAM NTA Test
CPU IOMMU RAM Address Test
CPU IOMMU CAM Address Test
IOMMU TLB Compare Test
IOMMU TLB Flush Test
PBM Control/Status Reg Test
PBM Diag Reg Test
CPU PBM Reg Test

All Basic APB Simba Tests

Init PCI

All Basic RIO Tests (RIO# 1)


RIO Ebus Config Space Reg Test
RIO Network Config Space Reg Test
RIO Firewire Config Space Reg Test
RIO USB Config Space Reg Test
All Basic RIO Tests (RIO# 2)
RIO Ebus Config Space Reg Test
RIO Network Config Space Reg Test
RIO Firewire Config Space Reg Test
RIO USB Config Space Reg Test
All Basic SCSI Controller Tests
Symbios SCSI Controller PCI Config Space Test
All Basic SCSI Controller Tests
Symbios SCSI Controller PCI Config Space Test
Basic SouthBridge Tests
Southbridge ISA Config Space Reg Test
Southbridge PMU Config Space Reg Test
Southbridge IDE Config Space Reg Test
Southbridge Audio Config Space Reg Test
All Memory Stress Tests
Consist Write Data Test
Resetting...
?
Processor Speed = 648 MHz
Baud rate is 9600
8 Data bits, 1 stop bits, no parity (configured from lom)

Firmware CORE Sun Microsystems, Inc.


@(#) core 1.0.12 2002/01/08 13:00
Software Power ON
Verifying NVRAM...Done
Bootmode is 0
[New I2C DIMM address]
MCR0 = 57b2ce06
MCR1 = 80008000
MCR2 = cf3000ff
MCR3 = a00000cf
Ecache Size = 512 KB
Clearing E$ Tags Done
Clearing I/D TLBs Done
Probing memory
Done
MEMBASE=0x40000000

22
MEMSIZE=0x20000000
Clearing memory...Done
Turning ON MMUs Done
Copy ROM to RAM (170040 bytes) Done
Orig PC=0x1fff0007e44 New PC=0xf0f07e9c
Processor Speed=648MHz
Looking for Dropin FVM ... found
Decompressing Client Done
Transferring control to Client...

ttya initialized
Reset Control: BXIR:0 BPOR:0 SXIR:0 SPOR:1 POR:0
Probing upa at 1f,0 pci pci pci
Probing upa at 0,0 SUNW,UltraSPARC-IIe SUNW,UltraSPARC-IIe (512 Kb)
Loading Support Packages: kbd-translator
Loading onboard drivers: ebus flashprom eepro m idprom SUNW,lomh
Probing /pci@1,1 Device 3 pmu i2c temperature dimm dimm i2c -nvram
idprom motherboard-fru fan-control
lomp
Probing Memory Bank #0 512 Megabytes
Probing Memory Bank #1 512 Megabytes
Probing Memory Bank #2 0 Megabytes
Probing Memory Bank #3 0 Megabytes
Probing /pci@1,1 Device 7 isa power serial serial
Probing /pci@1,1 Device c network firewire usb
Probing /pci@1,1 Device 3
Probing /pci@1,1 Device d ide disk cdrom
Probing /pci@1,1 Device 5 pci108e,1100 network firewire us b
Probing /pci@1 Device 8 scsi disk tape scsi disk tape
Probing /pci@1 Device 5 SUNW,Expert3D
Probing /pci@1 Device 6 Nothing there
Probing /pci@1 Device 7 Nothing there
? not found.
keyboard not found.
Reset Control: BXIR:0 BPOR:0 SXIR:0 SPOR:1 POR:0
Probing upa at 1f,0 pci pci pci
Probing upa at 0,0 SUNW,UltraSPARC-IIe SUNW,UltraSPARC-IIe (512 Kb)
Loading Support Packages: kbd-translator
Loading onboard drivers: ebus flashprom eeprom idprom SUNW,lomh
Probing /pci@1,1 Device 3 pmu i2c temperature dimm dimm i2c -nvram
idprom motherboard-fru fan-control
lomp
Probing Memory Bank #0 512 Megabytes
Probing Memory Bank #1 512 Megabytes
Probing Memory Bank #2 0 Megabytes
Probing Memory Bank #3 0 Megabytes
Probing /pci@1,1 Device 7 isa power serial serial
Probing /pci@1,1 Device c network firewire usb
Probing /pci@1,1 Device 3
Probing /pci@1,1 Device d ide disk cdrom
Probing /pci@1,1 Device 5 pci108e,1100 network firewire usb
Probing /pci@1 Device 8 scsi disk tape scsi disk tape
Probing /pci@1 Device 5 SUNW,Expert3D
Probing /pci@1 Device 6 Nothing there
Probing /pci@1 Device 7 Nothing there

Sun Fire V120 (UltraSPARC-IIe 648MHz), No Keyboard


OpenBoot 4.0, 1024 MB memory installed, Serial #57456536.
Ethernet address 0:3:ba:6c:b7:98, Host ID: 836cb798.

Environment monitoring: disabled


Boot device: net File and args:
Using Onboard Transceiver - Link Up.
Timeout waiting for ARP/RARP packet

The above is the output from a working v120

Note with the diag-switch set to true, the default boot device is the network.

23
Lights Out Management

If you are dealing with a Serial Management port, the initial connection will
be to a management device such as a Lights Out Management (LOM) card or
a System Controller (SC). The LOM or SC can display system information, but
the functionality of the LOM or SC varies from system to system. The LOM or
SC can also be used to open a console session to the system itself.

Sun implemented several flavours of Lights Out Management in the


Midrange:

Advanced Lights Out Management (ALOM)


Integrated Lights Out Management (ILOM)
Embedded Lights Out Management (ELOM)
System Controller (SC)
eXtended System Control Facility (XSCF)

There are variants within these flavours depending on the version of the
individual LOM software and of the system model. LOMlite is another flavour
but is not used in the systems covered by this course.

24
LOM implementation by model

Server Console or LOM


E3000 ttya
E4000 ttya
E5000 ttya
E6000 ttya
E3500 ttya
E4500 ttya
E5500 ttya
E6500 ttya
E3800 System Controller with ttya
E4800 System Controller with ttya
E6800 System Controller with ttya
E2900 System Controller with ttya
E4900 System Controller with ttya
E6900 System Controller with ttya
V880 RSC card with ALOM
V890 RSC card with ALOM
V1280 System Controller with ttya
M3000 XSCF
M4000 XSCF
T1000 ALOM
T2000 ALOM
T5120 ILOM
T5220 ILOM
T5140 ILOM
T5240 ILOM
T5440 ILOM

LOM Commands

Each flavour of LOM has a set of commands that are entirely different from
the other flavours. The commands are listed in the Sun documentation for
that flavour of LOM and there are help functions within the live LOM
instance. Each LOM requires the user to log in. For best security the system
administrator should have changed and recorded the LOM passwords, but
there are factory set ones that may work. The most useful and most used
LOM function is to open and close a console session into the system itself.

25
ALOM – login and commands

Default login admin


Default password Last 8 digits of system serial number
LOM prompt lom>

or

sc>
Help help
To open a console console
To exit a console #. (hash dot)
poweron [-c] {FRU}
poweroff [-y] [-f]
removefru [-y] {FRU}
reset [-y] [-x] [-c]
break [-y] [-c]
bootmode
[normal|reset_nvram|diag|skip_diag|bootscript="string"]
console [-f]
consolehistory [-b lines|-e lines] [-g lines] [-v] [boot|run]
showlogs [-b lines|-e lines] [-g lines] [-v]
setlocator [on|off]
showlocator
showenvironment
showfru
showplatform [-v]
showsc [-v] [param]
shownetwork [-v]
setsc [param] [value]
setupsc
showdate
setdate [[mmdd]HHMM | mmddHHMM[cc]yy][.SS]
resetsc [-y]
flashupdate [-s IPaddr -f pathname] [-v]
setdefaults [-y] [-a]
useradd
userdel [-y]
usershow [username]
userpassword
userperm [c][u][a][r]
password
showusers [-g lines]
logout
help [command]

26
Example of ALOM interaction (on a Sun V1280)

lom> setupnetwork
Network Configuration
---------------------
Is the system controller on a network? [yes]:
Use DHCP or static network settings? [DHCP]: static
Hostname []: 1280-sc IP Address []: 172.20.40.55
Netmask []: 255.255.0.0
Gateway []: 172.20.88.1
DNS Domain []: uk.sun.com
Primary DNS Server []: 172.20.33.22
Secondary DNS Server []: 172.20.33.31
Connection type (ssh, telnet, none) [none]: telnet
Rebooting the SC is required for changes in network settings to take
effect.
lom>
lom> resetsc
Are you sure you want to reboot the system controller now? [no] yes
Waiting for critical processes to finish. This may take a while. Critical
processes have finished.
Rebooting. All network client connections closed. Reestablish any
needed connections.
Mon Oct 25 12:24:31 noname lom: Stopping all services on this SC
Mon Oct 25 12:24:31 noname lom: All services on this SC have been
stopped.
Software Reset...
@(#) SYSTEM CONTROLLER(SC) POST 41 2004/08/18 09:31 PSR =
0x044010e5 PCR = 0x04004000
Memory size = 32MB
Basic sanity checks done. Skipping POST ... ERI Device Present Getting
MAC address for SSC1
Using SCC MAC address
MAC address is 00:03:ba:c0:ff:ee
Hostname: 1280-sc Address: 172.20.40.5
Netmask: 255.255.0.0
Attached TCP/IP interface to eri unit 0 Attaching interface lo0...done
Gateway: 172.20.88.1
interrupt: 100 Mbps full duplex link up
Sun Fire System Firmware
RTOS version: 41
ScApp version: 5.18.0 Build_14
SC POST diag level: off
The date is Monday, October 25, 2004, 12:25:08 PM CEST.
Mon Oct 25 Mon Oct 25 Mon Oct 25 Mon Oct 25 Mon Oct 25 Mon Oct
25 Mon Oct 25 Mon Oct 25 Mon Oct 25
Connected.
lom>

27
Another example (this time on a T2000 )

First set up the network on the system controller


sc> setsc if_network true
sc> setsc netsc_ipaddr 192.168.2.2
sc> setsc netsc_ipnetmask 255.255.255.0
sc> setsc netsc_ipgateway 192.168.2.1

Decide if you want to use telnet or ssh

sc> setsc if_connection ssh


sc> setsc if_connection telnet

sc> resetsc

T2 systems run ILOM but there is a back door into ALOM

-> create /SP/users/admin password=changeme


-> set /SP/users/admin role=Administrator cli_mode=alom

28
ILOM – login and commands

ILOM is more complex than ALOM. It’s a LINUX variant that boots from a
chip. It has a file and directory structure, and the commands are embedded in
the structure. You need to navigate around to find the commands you want to
run.

At the top level there are three directories:

/SYS which contains system control functions


/SP this contains the Service Processor commands
/HOST which contains individual system information

ILOM has 2 user interfaces:


 Command Line Interface (CLI)
 Browser User Interface (BUI) also known as a webGUI.

The CLI is usable via the Serial Management port with no further
configuration.

Default login root


Default password changeme
LOM prompt ->
Help help
Commands Too many to list here but useful ones are:

Power on the System


-> start /SYS
Power off the system
-> stop /SYS
Reset the system
-> reset /SYS
It is safe to reset the SP with the server running.

->reset /SP

To exit a console ESC ( Escape shift-9


To open a console -> cd /SP/console
-> start

Or
-> start /SP/console

29
The BUI is designed to be used as part of a system control network, whereby
a remote system administrator can power cycle systems etc without being on-
site The Network controller must be set up before BUI is usable

To setup network on the system controller connect via the serial port:

login:root
password:changeme

-> cd /SP/network
-> set pendingipaddress=192.168.2.2
-> set pendingipnetmask=255.255.255.0
-> set pendingipgateway=192.168.2.1
-> set pendingipdiscovery=static

-> set commitpending=true

You can now either open a browser

hpps://192.168.2.2

or ssh onto the SC

#ssh root@192.168.2.2

The same commands are available in both CLI and BUI.

30
The SunFire System Controller (SC)

The SC is that hardware to which you connect. The SC runs a real -time
operating system which boots up when power is applied to the system chassis.
The SC runs a software application called ScApp which in turn responds to
the commands you issue at the serial port.

SunFire systems have a concept of a Platform and Domains, which respond to


SC commands. The Platform is the “frame” of the system. The SC can
assemble system boards (Uniboards) into logical systems (Domains) within a
Platform. A Solaris instance runs on each individual Domain.

A maximum of 4 domains are possible depending on the model.

From an SC point of view they are labelled a, b, c and d.

Some commands are platform specific and some are domain specific.

There are several “shells” that accept command input and are use to control
the system.

Platform Shell – control platform level activity


Domain Shell – one per configured domain to control domain level
activity

When you first connect to the SC you will be at the Platform shell.

Navigating between shells:

From to Command
Platform Domain console –d [A, B, C, D]
Domain Platform disconnect
Domain OBP break (after 'setkeyswitch on ' had been run)
OBP Domain Serial connection ctrl ] or ~#
Telnet connection ctrl ] or send break
Ssh connection #.

Solaris Domain resume (after O/S was brought up via 'boot' command)

31
Hardware Power Control

Powering-on hardware:

Connect to the Main SC and enter 0 to get to the platform shell.

shell Command Effect


platform poweron all Powers on the platform
platform showboards -v Verify platform power-on
domain console -d [a, b, c or d Switch to domain console
domain setkeyswitch on Powers on the domain, starts POST
domain showkeyswitch Verify domain power on

Once POST is complete you should get the OK prompt and be able to run
standard OBP commands and to boot each domain.

Powering- off a domain:

Note – To avoid file system corruption, Solaris MUST be shut down by the
appropriate system administrator BEFORE powering off a domain.

shell Command Effect


domain setkeyswitch off Powers off the domain (takes a
while)

Powering-off the platform:

Note –All domains must be powered-off before the platform can be powered
off.

shell Command Effect


platform poweroff all Powers off the platform

32
System Controller Housekeeping Tasks

Update SC firmware: (from platform shell on the SC)

>flashupdate -y -f ftp://root:password@host_ip/path_to_new_firmware all rtos

Run this command from the platform shell.


This command will not update the Spare SC.
To update the Spare SC, you must make it the primary or run the command
from the Spare SC.

To copy firmware between like boards

>flashupdate -c <source board> <replacement board>

Save SC configuration: (from platform shell on the SC)

> dumpconfig - f ftp://root:password@host_ip/path_to_dumpdir

Restore SC Configuration: (from platform shell on the SC)

> restoreconfig - f ftp://root:password@host_ip/path_to_dumpdir

Platform and Domain Configuration Commands

To create/modify Platform: (from platform shell on the SC)

> setupplatform (enter information and modify ACLs .

For each domain use deleteboard and addboard - d commands

To create/modify Domain: (from Domain shell on the SC)

> setupdomain (enter information. Defaults in [ ]s

33
Platform Shell commands:

Most of these commands run only on the Main SC, but ** indicates that a
command is available on the Spare SC.

To assign a board to a domain

>addboard

To show connections to the system controller or a domain console

>connections **

To connect to a domain shell

>console -d

To delete a board from a domain

>deleteboard

To add a component to the blacklist

>disablecomponent

To disconnect this connection or a specified connection

>disconnect **

To save the system controller configuration to a server

>dumpconfig **

To delete a component from the blacklist

>enablecomponent

To update flash prom images

>flashupdate ** -y –f

To show help for a command or list commands

>help

To show shell command history

34
>history **

To change platform or domain password

>password

To turn components off

>poweroff

To turn components on

>poweron

To reboot the system controller

>reboot **

To reset the other system controller

>reset **

To restore the system controller configuration from a server

>restoreconfig **

To access service mode

>service

setchs (service cmd)

setchs -s ok, suspect, faulty -r "reason for status" -c /N0/SB2/p2

To set the date and time for the platform

>setdate

To set default configuration values

>setdefaults

To change escape characters (ScApps 5.16.00 or better) (default #.)

>setescape

To change the state of SC failover (ScApps 5.13.00 or better)

35
->setfailover (on, off, force)

To set the keyswitch position for a domain

>setkeyswitch (on, off)

To generate or /lists ssh host keys/fingerprint (ScApps 5.16.00 or better)

>set-keygen (-l –r)

To configure the platform

>setupplatform ** (-p acls, -p partition)

To show board information

>showboards (-d,-e, -p, -v)

To shows component heath status (use with setchs)

>showchs (service cmd)

>showchs -b

To show state of a component

>showcomponent (-v)

To show the current date and time for the platform

>showdate

To show environment sensors

>showenvironment -u, -w, -l, -p, -v

To list escape character (ScApps 5.16.00 or better)

>showescape

To show frame information

>showframe (-v)

To display SC and clock failover status (ScApps 5.13.00 or better)

>showfailover

36
To list FRUs in the system (ScApps 5.13.00 or better)

>showfru (-r manufacturer)

To show the keyswitch positions

>showkeyswitch

To show the logs

>showlogs (-d –v)

To show the status of domain and platform configuration

>showplatform ** (-d, -p, -v)

To show system controller uptime, version, and configuration

>showsc ** (-v)

To restart ssh server to put new host keys into effect (ScApps 5.13.00 or
better)

>sshrestart

To test a board

>testboard

To run the interconnect test (available in service mode only)

>testinterconnect

37
Domain Shell commands:

To assign a board to a domain

>addboard –d

To send break to the domain console

>break

To show connections to the domain

>connections

To delete a board from a domain

>deleteboard

To add a component to the blacklist

>disablecomponent

To disconnect this connection

>disconnect

To delete a component from the blacklist

>enablecomponent

To show help for a command or list commands

>help

To show shell command history

>history

To change domain password

>password

To turn components off

>poweroff

38
To turn components on

>poweron

To reset the domain

>reset (-x) (XIR will dump a hung domain)

To return to domain console

>resume

To access service mode command

>setchs

To set the date and time for the domain

>setdate

To set default configuration values

>setdefaults

To set the keyswitch position

>setkeyswitch (on, off)

To configure the domain

>setupdomain (–v)

To show board information

>showboards (–v)

To access service mode command

>showchs (–b)

To show state of a component

>showcomponent (–v)

To show the current date and time for the domain

>showdate

39
To show domain configuration

>showdomain (-v)

To show environment sensors

>showenvironment (–v)

To show the keyswitch position

>showkeyswitch

To show the logs

>showlogs (-v)

To test a board

>testboard

40
To Setup remote logging:

In setupplatform:

>Syslog loghost [ ] : ip_of_adminStation


>Log Facility [ ]: local0 (can be 0-7)

In setupdomain: (for each domain)

>Syslog loghost [ ] : ip_of_adminStation


>Log Facility [ ]: local1 (can be 0-7)

In syslog.conf on admin station:

>local0.notice /var/adm/messages.platform local1.notice


>/var/adm/messages.domainA

On the admin station:

Create the files:

# touch /var/adm/messages.nnnnnnn

Restart the syslog:

# kill -HUP `cat /etc/syslog.pid`


or
# /etc/init.d/syslog stop
or
# /etc/init.d/syslog start

To restrice logfile growth, edit /usr/lib/newsyslog file as follows

On line 2 enter all message file names you created

Then

Comment out the LOG=messages line with a #

LOG=messages #LOG=messages

cd /var/adm for LOG in messages messages.platform messages.domainA


(ect..)

>test -f $LOG.2 && mv $LOG.2 $LOG.3 do

41
>test -f $LOG.1 && mv $LOG.1 $LOG.2 cd /var/adm
>test -f $LOG.0 && mv $LOG.0 $LOG.1
>test -f $LOG.2 && mv $LOG.2 $LOG.3
>mv $LOG $LOG.0
>test -f $LOG.1 && mv $LOG.1 $LOG.2
>cp /dev/null $LOG
>test -f $LOG.0 && mv $LOG.0 $LOG.1
>chmod 644 $LOG
>mv $LOG $LOG.0
>cp /dev/null $LOG
>chmod 644 $LOG
>done

To test logging:

- # logger -p local0.notice "test message for platform log file"

Check contents of log files to make sure logging is working, if not check
permissions on the log file.

Then setfailover off /on and check log file on log host. If it’s not working,
snoop the interface to make sure log entry is reaching the loghost.

Make sure syslogd is not running with the -t switch

Notes:

- Use 'connections' command to see if ghost sessions are keeping you from
connecting to a domain. If so, then reset the SC either from the Spare SC or
reset button.

- Use the dash (-) to remove an entry when running setupplatform

More information

For more information on the SunFire Midrange System controller see:

42
43
44
45
46
Section 3
Open Boot Prom (OBP) and BIOS

47
This page is left intentionally blank

48
Section 3 - Open Boot Prom (OBP) and BIOS

Open Boot Prom

Open Boot Prom (OBP) is the chip based monitor (or pre-boot) program that
runs as soon as a Sun Sparc-based system is powered up. Intel and AMD
based systems run BIOS.

OBP is a command line based tool that allows a user or engineer to interact
with the system hardware without Solaris “getting in the way”. OBP contains a
minor programming feature that allows persistent parameters to be set that
control the system behaves during it’s boot-up to Solaris. OBP also manages
the way the system self-tests and has some interactive hardware tests.

Power On Self Test - POST

POST runs when the system is powered on.

printenv variables

diag-passes 1 – 999

diag-level min max or menus

on x800 servers you can also set


to mem1 and mem2

diag-switch ? true or false

Note - POST only outputs to ttya.

Be very careful if the system has a frame buffer and a graphics


terminal. You will only get output to the graphic terminal when the
system is probing devices before going to the ok prompt.

So if diag-passes has been set to 100 post will run 100 times
before you get any output.

49
Also on some systems if these variables are set

diag-level menus

diag-switch? true

then a menu will be output to ttya.

The system will wait at the menu for a response and no output will
go to the graphics terminal.

Servers also have a keyswitch position for extended POST or


Service.

Useful OBP Commands

printenv

printenv list all the variables that are set in OBP.

setenv

setenv is used to change a variable’s value

You must always set auto-boot? to false and reset the system
before running any of the following tests:

probe-scsi

probe-scsi will probe the on-board SCSI bus and list any devices on
the bus.

ok
ok probe-scsi-all
/pci@1f,0/pci@1/scsi@8,1

/pci@1f,0/pci@1/scsi@8
Target 0
Unit 0 Disk FUJITSU MAP3735N SUN72G 0401
Target 1
Unit 0 Disk FUJITSU MAP3367N SUN36G 0301

ok

50
probe-scsi-all

probe-scsi-all will probe all the SCSI HBAs(Host Bus Adapters)

The output will include the absolute path to the HBAs

On some systems e.g. v890, it will also probe FC-AL and IDE buses.

ok

ok probe-scsi-all

/pci@1f,0/pci@1/scsi@8,1

/pci@1f,0/pci@1/scsi@8

Target 0

Unit 0 Disk FUJITSU MAP3735N SUN72G 0401

ok

watch-net

watch-net is a very useful command that runs 3 tests in one

It firstly does an internal loop back test – this checks the electronics
of the NIC (Network Interface Controller)

Secondly, it tests for a connection to a switch – Link Up

Thirdly, it checks to make sure the switch is on the network by


looking for good Ethernet packets.

ok

ok watch-net

gme register test --- succeeded.

Internal loopback test -- succeeded.

Link is -- Using Onboard Transceiver - Link Up.

51
up

Using Onboard Transceiver - Link Up.

Looking for Ethernet Packets.

'.' is a Good Packet. 'X' is a Bad Packet.

Type any key to stop.

....................

52
watch-net-all

watch-net-all will test all the NICs in the system

ok
ok watch-net-all
/pci@1f,0/pci@1,1/network@5,1
gme register test --- succeeded.
Internal loopback test -- succeeded.
Link is -- Using Onboard Transceiver - Link Up.
up
Using Onboard Transceiver - Link Up.
Looking for Ethernet Packets.
'.' is a Good Packet. 'X' is a Bad Packet.
Type any key to stop.
………………
/pci@1f,0/pci@1,1/network@c,1
gme register test --- succeeded.
Internal loopback test -- succeeded.
Link is -- Using Onboard Transceiver - Timeout reading Link
status. Check cable and try again.
Timeout waiting for AutoNegotiation Status to be updated.
Timeout reading Link status. Check cable and try again.
Timeout waiting for AutoNegotiation Status to be updated.
Timeout reading Link status. Check cable and try again.
AutoNegotiation Timeout.
Check Cable or Contact your System Administrator.
Link Down.
down
Using Onboard Transceiver - Timeout waiting for
AutoNegotiation Status to be updated.
Timeout reading Link status. Check cable and try again.
Timeout waiting for AutoNegotiation Status to be updated.
Timeout reading Link status. Check cable and try again.
Timeout waiting for AutoNegotiation Status to be updated.
Timeout reading Link status. Check cable and try again.
AutoNegotiation Timeout.
Check Cable or Contact your System Administrator.
Link Down.

ok

53
From the above output we can determine

NIC-/pci@1f,0/pci@1,1/network@5,1

The electronics are good.


It has a good connection to a switch – Link Up
The switch is on the network as it sees packets of information

…………….

NIC-/pci@1f,0/pci@1,1/network@c,1

The electronics are good.


It is not connected to a switch - Timeout waiting for
AutoNegotiation Status to be updated.

obdiag

obdiag is designed to test only IO, whereas POST tests CPU,


Memory and IO
____________________________________________________________________________
| obdiag |
|____________________________________________________________________________|
| | | |
| 1 SUNW,Expert3D@5 | 2 SUNW,lomh@14,200000 | 3 ebus@c |
| 4 flashprom@10,0 | 5 i2c-nvram@0,a0 | 6 ide@d |
| 7 network@5,1 | 8 network@c,1 | 9 pmu@3 |
| 10 scsi@8 | 11 scsi@8,1 | 12 serial@0,2e8 |
| 13 serial@0,3f8 | 14 usb@5,3 | 15 usb@c,3 |
|____________________________|____________________________|__________________|
| Commands: test test-all except help what printenvs setenv versions exit |
|_______________________________________ _______________________________|

obdiag> help

|=================================================|
| obdiag commands |
|============================================ =====|
| | |
| exit | Exit obdiag tool |
| help | Print this help information |
| setenv | Set diagnostic configuration variab le to new value |
| printenvs | Print values for diagnostic configuration variables |
| versions | Print selftests, library and obdiag tool versions |
| test-all | Test all devices displayed in the menu |
| test 1,2,5 | Test devices 1, 2 and 5 |
| except 2,5 | Test all devices except devices 2 and 5 |
| what 1,2,5 | Print some selected properties for devices 1, 2 and 5 |
| |
|=================================================|

Hit spacebar for diag control information, other key to return to the main menu.

54
You can test everything:

obdiag> test-all
Hit the spacebar to interrupt testing
Testing /pci@1f,0/pci@1/SUNW,Expert3D@5
Starting IFB Selftest
(This will take an estimated
2-4 minutes for the full test)

Direct access framebuffer test:


address test ovl0 pass
address test ovl1 pass
pattern test ovl0 00 ff a5 5a pass
pattern test ovl1 00 ff a5 5a pass
passed

Frame buffer color test:


The frame buffer will be painted with:
red in the top third
green in the middle third
blue in the bottom third.

Direct Burst memory test:


address test db mem pass
pattern test db mem 00 ff a5 5a pass
............................... passed
Testing /pci@1f,0/pci@1,1/ebus@c/SUNW,lomh@14,200000 .................. passed
Testing /pci@1f,0/pci@1,1/ebus@c ...................................... passed
Testing /pci@1f,0/pci@1,1/ebus@c/flashprom@10,0 ....................... passed
Testing /pci@1f,0/pci@1,1/pmu@3/i2c@0,0/i2c-nvram@0,a0 ................ passed
Testing /pci@1f,0/pci@1,1/ide@d ....................................... passed
Testing /pci@1f,0/pci@1,1/network@5,1 ................................. passed
Testing /pci@1f,0/pci@1,1/network@c,1 ................... .............. passed
Testing /pci@1f,0/pci@1,1/pmu@3 ....................................... passed
Testing /pci@1f,0/pci@1/scsi@8 ........................................ passed
Testing /pci@1f,0/pci@1/scsi@8,1 ...................................... pass ed
Testing /pci@1f,0/pci@1,1/isa@7/serial@0,2e8 .......................... passed
Testing /pci@1f,0/pci@1,1/isa@7/serial@0,3f8 [Used as Console] .......................... passed
Testing /pci@1f,0/pci@1,1/usb@5,3 ..................................... passe d
Testing /pci@1f,0/pci@1,1/usb@c,3 ..................................... passed

Hit any key to return to the main menu

Or everything except the IDE test:

___________________________________________________________________ ________
| obdiag |
|_________________________ _________________________ __________________ ____|
| | | |
| 1 SUNW,Expert3D@5 | 2 SUNW,lomh@14,200000 | 3 ebus@c |
| 4 flashprom@10,0 | 5 i2c-nvram@0,a0 | 6 ide@d |
| 7 network@5,1 | 8 network@c,1 | 9 pmu@3 |
| 10 scsi@8 | 11 scsi@8,1 | 12 serial@0,2e8 |
| 13 serial@0,3f8 | 14 usb@5,3 | 15 usb@c,3 |
|____________________________|____________________________|________________|
| Commands: test test-all except help what printenvs setenv versions exit |
|____________________________________________________________________ ______|

obdiag> except 6
Hit the spacebar to interrupt testing
Testing /pci@1f,0/pci@1/SUNW,Expert3D@5

55
Starting IFB Selftest
(This will take an estimated
2-4 minutes for the full test)

Direct access framebuffer test:


address test ovl0 pass
address test ovl1 pass
pattern test ovl0 00 ff a5 5a pass
pattern test ovl1 00 ff a5 5a pass
passed

Frame buffer color test:


The frame buffer will be painted with:
red in the top third
green in the middle third
blue in the bottom third.

Direct Burst memory test:


address test db mem pass
pattern test db mem 00 ff a5 5a pass
............................... passed
Testing /pci@1f,0/pci@1,1/ebus@c/SUNW,lomh@14,200000 .................. passed
Testing /pci@1f,0/pci@1,1/ebus@c ...................................... passed
Testing /pci@1f,0/pci@1,1/ebus@c/flashprom@10,0 ....................... p assed
Testing /pci@1f,0/pci@1,1/pmu@3/i2c@0,0/i2c -nvram@0,a0 ................ passed
Testing /pci@1f,0/pci@1,1/network@5,1 ................................. passed
Testing /pci@1f,0/pci@1,1/network@c,1 ................................. passed
Testing /pci@1f,0/pci@1,1/pmu@3 ....................................... passed
Testing /pci@1f,0/pci@1/scsi@8 ........................................ passed
Testing /pci@1f,0/pci@1/scsi@8,1 ...................................... passed
Testing /pci@1f,0/pci@1,1/isa@7/serial@0,2e8 .......................... passed
Testing /pci@1f,0/pci@1,1/isa@7/serial@0,3f8 [Used as Console] .......................... passed
Testing /pci@1f,0/pci@1,1/usb@5,3 ..................................... passed
Testing /pci@1f,0/pci@1,1/usb@c,3 ..................................... passed

Hit any key to return to the main menu

If you suspect that one component may have an intermittent fault, you can
change the diag-passes and then run the individual test.

Note - Remember to change “passes” back to 1 after running any tests.


obdiag> setenv diag-passes 3
_____________________________________________________________________ __________
| obdiag |
|_________________________ _________________ ______________________ _____________|
| | | |
| 1 SUNW,Expert3D@5 | 2 SUNW,lomh@14,200000 | 3 ebus@c |
| 4 flashprom@10,0 | 5 i2c-nvram@0,a0 | 6 ide@d |
| 7 network@5,1 | 8 network@c,1 | 9 pmu@3 |
| 10 scsi@8 | 11 scsi@8,1 | 12 serial@0,2e8 |
| 13 serial@0,3f8 | 14 usb@5,3 | 15 usb@c,3 |
|____________________________|____________________________|____________________|
| Commands: test test-all except help what printenvs setenv versions exit |
|_________________________________________________ _____________________________ |

obdiag> printenvs
diag-verbosity = 0
diag-continue? = 0
diag-switch? = true
diag-targets = 0
diag-passes = 3
diag-level = max

56
Hit any key to return to the main menu
___________________________________________________________ _____________________
| obdiag |
|_________________________ ____________ _____________________________ ___________|
| | | |
| 1 SUNW,Expert3D@5 | 2 SUNW,lomh@14,200000 | 3 ebus@c |
| 4 flashprom@10,0 | 5 i2c-nvram@0,a0 | 6 ide@d |
| 7 network@5,1 | 8 network@c,1 | 9 pmu@3 |
| 10 scsi@8 | 11 scsi@8,1 | 12 serial@0,2e8 |
| 13 serial@0,3f8 | 14 usb@5,3 | 15 usb@c,3 |
|____________________________|____________________________|____________________ |
| Commands: test test-all except help what printenvs setenv versions exit |
|____________________________________________________________________ __________ |

obdiag> test 1
Hit the spacebar to interrupt testing
Testing /pci@1f,0/pci@1/SUNW,Expert3D@5
Starting IFB Selftest
(This will take an estimated
2-4 minutes for the full test)

Direct access framebuffer test:


address test ovl0 pass
address test ovl1 pass
pattern test ovl0 00 ff a5 5a pass
pattern test ovl1 00 ff a5 5a pass
passed

Frame buffer color test:


The frame buffer will be painted with:
red in the top third
green in the middle third
blue in the bottom third.

Direct Burst memory test:


address test db mem pass
pattern test db mem 00 ff a5 5a pass
............................... passed
Pass:1 (of 3) Errors:0 (of 0) Tests Failed:0 Elapsed Time: 0:0:0:14

Hit the spacebar to interrupt testing


Testing /pci@1f,0/pci@1/SUNW,Expert3D@5
Starting IFB Selftest
(This will take an estimated
2-4 minutes for the full test)

Direct access framebuffer test:


address test ovl0 pass
address test ovl1 pass
pattern test ovl0 00 ff a5 5a pass
pattern test ovl1 00 ff a5 5a pass
passed

Frame buffer color test:


The frame buffer will be painted with:
red in the top third
green in the middle third
blue in the bottom third.

Direct Burst memory test:


address test db mem pass
pattern test db mem 00 ff a5 5a pass
............................... passed
Pass:2 (of 3) Errors:0 (of 0) Tests Failed:0 Elapsed Time: 0:0:0:29

57
Hit the spacebar to interrupt testing
Testing /pci@1f,0/pci@1/SUNW,Expert3D@5
Starting IFB Selftest
(This will take an estimated
2-4 minutes for the full test)

Direct access framebuffer test:


address test ovl0 pass
address test ovl1 pass
pattern test ovl0 00 ff a5 5a pass
pattern test ovl1 00 ff a5 5a pass
passed

Frame buffer color test:


The frame buffer will be painted with:
red in the top third
green in the middle third
blue in the bottom third.

Direct Burst memory test:


address test db mem pass
pattern test db mem 00 ff a5 5a pass
............................... passed
Pass:3 (of 3) Errors:0 (of 0) Tests Failed:0 Elapsed Time: 0:0:0:44

Hit any key to return to the main menu

If a test fails you can get information about the failed component:

______________________________________________________________ __________________
| obdiag |
|_______________________________________________________ _______________________|
| | | |
| 1 SUNW,Expert3D@5 | 2 SUNW,lomh@14,200000 | 3 ebus@c |
| 4 flashprom@10,0 | 5 i2c-nvram@0,a0 | 6 ide@d |
| 7 network@5,1 | 8 network@c,1 | 9 pmu@3 |
| 10 scsi@8 | 11 scsi@8,1 | 12 serial@0,2e8 |
| 13 serial@0,3f8 | 14 usb@5,3 | 15 usb@c,3 |
|____________________________|____________________________|____________________ |
| Commands: test test-all except help what printenvs setenv versions exit |
|_____________________________________________________________________ _________ |

obdiag> what 1

Device 1 is /pci@1f,0/pci@1/SUNW,Expert3D@5
version : No version is specified.
name : SUNW,Expert3D
device_type : display
model : SUNW,370-3987

Hit any key to return to the main menu

58
To see Firmware versions of components:

_______________________________________________________________________ _________
| obdiag |
|________________________________________________________________ ______________|
| | | |
| 1 SUNW,Expert3D@5 | 2 SUNW,lomh@14,200000 | 3 ebus@c |
| 4 flashprom@10,0 | 5 i2c-nvram@0,a0 | 6 ide@d |
| 7 network@5,1 | 8 network@c,1 | 9 pmu@3 |
| 10 scsi@8 | 11 scsi@8,1 | 12 serial@0,2e8 |
| 13 serial@0,3f8 | 14 usb@5,3 | 15 usb@c,3 |
|____________________________|____________________________|____________________ |
| Commands: test test-all except help what printenvs setenv versions exit |
|______________________________________________________________________ ________|

obdiag> versions

1 SUNW,Expert3D@5 No version is specified.


2 SUNW,lomh@14,200000 00/01/19 @(#)lom.fcode 1.5 Copyright (c) Sun Microsystems, Inc.
3 ebus@c 1.6 00/05/23 Copyright (c) Sun Microsystems, Inc.
4 flashprom@10,0 1.5 00/05/25 Copyright (c) Sun Microsystems, Inc.
5 i2c-nvram@0,a0 1.1 00/10/12 Copyright (c) Sun Microsystems, Inc.
6 ide@d 1.2 00/07/18 Copyright (c) Sun Microsystems, Inc.
7 network@5,1 1.9 01/03/12 Copyright (c) Sun Microsystems, Inc.
8 network@c,1 1.9 01/03/12 Copyright (c) Sun Microsystems, Inc.
9 pmu@3 1.1 00/07/18 Copyright (c) Sun Microsystems, Inc.
10 scsi@8 1.5 00/04/17 Copyright (c) Sun Micros ystems, Inc.
11 scsi@8,1 1.5 00/04/17 Copyright (c) Sun Microsystems, Inc.
12 serial@0,2e8 No version is specified.
13 serial@0,3f8 No version is specified.
14 usb@5,3 1.7 00/07/27 Copyright (c) Sun Microsystems , Inc.
15 usb@c,3 1.7 00/07/27 Copyright (c) Sun Microsystems, Inc.

OBDIAG LIBRARY 1.3 00/01/19 Copyright (c) Sun Microsystems, Inc.


OBDIAG MENUTOOL 1.2 00/01/19 Copyright (c) Sun Microsystems, Inc.

Hit any key to return to the main menu

59
60
61
62
Section 4
Solaris

63
This page is left intentionally blank

64
Section 4 - Solaris

Booting the system from OBP or BIOS to Solaris

If auto-boot? is set to true in OBP, then the system will try and
load Solaris on power-on.

If auto-boot? is set to false in OBP the system will pause after POST
and you have several boot options:

boot will boot from the boot-device variable

boot –s will boot the system to single user

boot –v Verbose boot

boot –r will boot the system and reconfigure the kernel


This should only be done after installing extra
hardware

A combination of the above can be used:

boot –rv

boot -sv

Example: boot without options boot

ok boot

Sun Fire V120 (UltraSPARC-IIe 648MHz), No Keyboard


OpenBoot 4.0, 1024 MB memory installed, Serial #57456536.
Ethernet address 0:3:ba:6c:b7:98, Host ID: 836cb798.

Executing last command: boot


Boot device: disk File and args:
SunOS Release 5.10 Version Generic_118833 -33 64-bit
Copyright 1983-2006 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Hostname: SFV120
checking ufs filesystems
/dev/rdsk/c1t0d0s7: is logging.

65
Jan 31 12:15:33 SFV120 sendmail[263]: My unqualified host name (SFV120) unknown;
sleeping for retry
Jan 31 12:15:33 SFV120 sendmail[269]: My unqualified host name (SFV120) unknown;
sleeping for retry

SFV120 console login:

*****************************************************************************
*
* Starting Desktop Login on display :0...
*
* Wait for the Desktop Login screen before logging in.
*
*****************************************************************************

*****************************************************************************
*
* The X-server can not be started on display :0...
*
* See file /var/dt/Xerrors for details.
*
*****************************************************************************
Jan 31 12:16:22 SFV120 java[606]: pkcs11_softtoken: Keystore version failure.
Jan 31 12:16:33 SFV120 sendmail[263]: unable to qualify my own domain name (SFV120) -
- using short name
Jan 31 12:16:33 SFV120 sendmail[269]: unable to qualify my own domain name (SFV120) -
- using short name

SFV120 console login:

Example: single user boot boot -s

ok boot -s
Resetting

keyboard not found.

Sun Fire V120 (UltraSPARC-IIe 648MHz), No Keyboard


OpenBoot 4.0, 1024 MB memory installed, Serial #57456536.
Ethernet address 0:3:ba:6c:b7:98, Host ID: 836cb798.

Executing last command: boot -s


Drive not ready
Can't read disk label.
Can't open disk label package
Boot device: /pci@1f,0/pci@1/scsi@8/disk@0,0 File and args: -s
SunOS Release 5.10 Version Generic_118833 -33 64-bit
Copyright 1983-2006 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Booting to milestone "milestone/single -user:default".
Hostname: SFV120
Requesting System Maintenance Mode
SINGLE USER MODE

Root password for system maintenance (control -d to bypass):


single-user privilege assigned to /dev/console.
Entering System Maintenance Mode

66
Jan 31 12:56:46 su: 'su root' succeeded for root on /dev/console
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
#

At this point, you have to enter the root password

Single user means no users can login, but the network is up. You
can confirm this with the ifconfig command:

# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232
index 1
inet 127.0.0.1 netmask ff000000
eri0: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.100.207 netmask ffffff00 broadcast 192.168.100.255
ether 0:3:ba:6c:b7:98
#

Example: verbose boot boot -v


ok boot -v
Drive not ready
Can't read disk label.
Can't open disk label package
Boot device: /pci@1f,0/pci@1/scsi@8/disk@0,0 File and args : -v
The boot filesystem is logging.
The ufs log is empty and will not be used.
Size: 0x7a768+0x1c319+0x30443 Bytes
module /platform/sun4u/kernel/sparcv9/unix: text at [0x1000000, 0x107a767] data at
0x1800000
module misc/sparcv9/krtld: text at [0x107a768, 0x10933af] data at 0x184c760
module /platform/sun4u/kernel/sparcv9/genunix: text at [0x10933b0, 0x11f0f17] data at
0x1852000
module /platform/SUNW,UltraAX-i2/kernel/misc/sparcv9/platmod: text at [0x11f0f18,
0x11f1187] data at 0x18a4558
module /platform/sun4u/kernel/cpu/sparcv9/SUNW,UltraSPARC-IIe: text at [0x11f11c0,
0x11fe4d7] data at 0x18a4cc0
SunOS Release 5.10 Version Generic_118833 -33 64-bit
Copyright 1983-2006 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Ethernet address = 0:3:ba:6c:b7:98
mem = 1048576K (0x40000000)
avail mem = 1039548416
root nexus = Sun Fire V120 (UltraSPARC-IIe 648MHz)
pseudo0 at root
pseudo0 is /pseudo
scsi_vhci0 at root
scsi_vhci0 is /scsi_vhci
pcipsy0 at root: UPA 0x1f 0x0
pcipsy0 is /pci@1f,0
PCI-device: pci@1, simba1
simba1 is /pci@1f,0/pci@1
/pci@1f,0/pci@1/scsi@8 (glm0):
glm0 supports power management.
/pci@1f,0/pci@1/scsi@8 (glm0):
Rev. 7 Symbios 53c896 found.
PCI-device: scsi@8, glm0
glm0 is /pci@1f,0/pci@1/scsi@8

67
sd0 at glm0: target 0 lun 0
sd0 is /pci@1f,0/pci@1/scsi@8/sd@0,0
root on /pci@1f,0/pci@1/scsi@8/disk@0,0:a fstype ufs
PCI-device: pci@1,1, simba0
simba0 is /pci@1f,0/pci@1,1
PCI-device: isa@7, ebus1
ebus1 is /pci@1f,0/pci@1,1/isa@7
pseudo-device: dld0
dld0 is /pseudo/dld@0
su0 at ebus1: offset 0,3f8
su0 is /pci@1f,0/pci@1,1/isa@7/serial@0,3f8
PCI-device: usb@c,3, ohci0
ohci0 is /pci@1f,0/pci@1,1/usb@c,3
PCI-device: usb@5,3, ohci1
ohci1 is /pci@1f,0/pci@1,1/usb@5,3
cpu0: UltraSPARC-IIe (portid 0 impl 0x13 ver 0x33 clock 648 MHz)
iscsi0 at root
iscsi0 is /iscsi
SUNW,eri0 : Local Ethernet address = 0:3:ba:6c:b7:98PCI -device: network@c,1, eri0
eri0 is /pci@1f,0/pci@1,1/network@c,1
SUNW,eri1 : Local Ethernet address = 0:3:ba:6c:b7:99PCI -device: network@5,1, eri1
eri1 is /pci@1f,0/pci@1,1/network@5,1
dump on /dev/dsk/c1t0d0s1 size 516 MB
Hostname: v120
pseudo-device: zfs0
zfs0 is /pseudo/zfs@0
SUNW,eri0 : 100 Mbps full duplex link up
pseudo-device: devinfo0
devinfo0 is /pseudo/devinfo@0
pseudo-device: tod0
tod0 is /pseudo/tod@0
pseudo-device: pm0
pm0 is /pseudo/pm@0
PCI-device: SUNW,Expert3D@5, ifb0
ifb0 is /pci@1f,0/pci@1/SUNW,Expert3D@5
checking ufs filesystems
/dev/rdsk/c1t0d0s7: is logging.
su1 at ebus1: offset 0,2e8
su1 is /pci@1f,0/pci@1,1/isa@7/serial@0,2e8
Jan 31 16:30:03 v120 sendmail[260]: My unqualified host name (v120) unknown; sleeping
for retry
Jan 31 16:30:03 v120 sendmail[261]: My unqualified host name (v120) unknown; sleeping
for retry
v120 console login: Jan 31 16:30:08 v120 pseudo: pseudo -device: vol0
Jan 31 16:30:08 v120 genunix: vol0 is /pseudo/vol@0
Jan 31 16:30:08 v120 pseudo: pseudo-device: pseudo1
Jan 31 16:30:08 v120 genunix: pseudo1 is /pseudo/zconsnex@1
Jan 31 16:30:08 v120 simba: PCI-device: ebus@c, ebus0
Jan 31 16:30:08 v120 genunix: ebus0 is /pci@1f,0 /pci@1,1/ebus@c
Jan 31 16:30:08 v120 scsi: /pci@1f,0/pci@1/scsi@8,1 (glm1):
Jan 31 16:30:08 v120 glm1 supports power management.
Jan 31 16:30:08 v120 scsi: /pci@1f,0/pci@1/scsi@8,1 (glm1):
Jan 31 16:30:08 v120 Rev. 7 Symbios 53c896 found.
Jan 31 16:30:08 v120 simba: PCI-device: scsi@8,1, glm1
Jan 31 16:30:08 v120 genunix: glm1 is /pci@1f,0/pci@1/scsi@8,1
Jan 31 16:30:09 v120 simba: PCI-device: pmu@3, pmubus0
Jan 31 16:30:09 v120 pseudo: pseudo-device: fssnap0
Jan 31 16:30:09 v120 genunix: fssnap0 is / pseudo/fssnap@0
Jan 31 16:30:09 v120 pseudo: pseudo-device: ramdisk1024
Jan 31 16:30:09 v120 genunix: ramdisk1024 is /pseudo/ramdisk@1024
Jan 31 16:30:09 v120 ebus: power0 at ebus1: offset 0,2000
Jan 31 16:30:09 v120 genunix: power0 is /pci@1f,0/pci@1,1/isa@7/power@0,2000
Jan 31 16:30:09 v120 pseudo: pseudo-device: winlock0
Jan 31 16:30:09 v120 genunix: winlock0 is /pseudo/winlock@0

68
Jan 31 16:30:09 v120 pseudo: pseudo-device: lockstat0
Jan 31 16:30:09 v120 genunix: lockstat0 is /pseudo/l ockstat@0
Jan 31 16:30:09 v120 pseudo: pseudo-device: fcode0
Jan 31 16:30:09 v120 genunix: fcode0 is /pseudo/fcode@0
Jan 31 16:30:09 v120 pseudo: pseudo-device: llc10
Jan 31 16:30:09 v120 genunix: llc10 is /pseudo/llc1@0
Jan 31 16:30:10 v120 pseudo: pseudo-device: lofi0
Jan 31 16:30:10 v120 genunix: lofi0 is /pseudo/lofi@0
Jan 31 16:30:10 v120 pseudo: pseudo-device: rsm0
Jan 31 16:30:10 v120 genunix: rsm0 is /pseudo/rsm@0
Jan 31 16:30:10 v120 pseudo: pseudo-device: trapstat0
Jan 31 16:30:10 v120 genunix: trapstat0 is /pseudo/trapstat@0
Jan 31 16:30:10 v120 pseudo: pseudo-device: fbt0
Jan 31 16:30:10 v120 genunix: fbt0 is /pseudo/fbt@0
Jan 31 16:30:10 v120 pseudo: pseudo-device: profile0
Jan 31 16:30:10 v120 genunix: profile0 is /pseudo/profile@0
Jan 31 16:30:10 v120 pseudo: pseudo-device: systrace0
Jan 31 16:30:10 v120 genunix: systrace0 is /pseudo/systrace@0
Jan 31 16:30:10 v120 pseudo: pseudo-device: sdt0
Jan 31 16:30:10 v120 genunix: sdt0 is /pseudo/sdt@0
Jan 31 16:30:10 v120 pseudo: pseudo-device: fasttrap0
Jan 31 16:30:10 v120 genunix: fasttrap0 is /pseudo/fasttrap@0
Jan 31 16:30:10 v120 pseudo: pseudo-device: pool0
Jan 31 16:30:10 v120 genunix: pool0 is /pseudo/pool@0
Jan 31 16:30:11 v120 pseudo: pseudo-device: wrsmd0
Jan 31 16:30:11 v120 genunix: wrsmd0 is /pseudo/wrsmd@0
Jan 31 16:30:11 v120 pseudo: pseudo-device: fcsm0
Jan 31 16:30:11 v120 genunix: fcsm0 is /pseudo/fcsm@0
Jan 31 16:30:11 v120 pseudo: pseudo-device: dtrace0
Jan 31 16:30:11 v120 genunix: dtrace0 is /pseudo/dtrace@0
Jan 31 16:30:11 v120 pseudo: pseudo-device: wrsmd1
Jan 31 16:30:11 v120 genunix: wrsmd1 is /pseudo/wrsmd@1
Jan 31 16:30:11 v120 pseudo: pseudo-device: wrsmd2
Jan 31 16:30:11 v120 genunix: wrsmd2 is /pseudo/wrsmd@2
Jan 31 16:30:11 v120 pseudo: pseudo-device: wrsmd3
Jan 31 16:30:11 v120 genunix: wrsmd3 is /pseudo/wrsmd@3
Jan 31 16:30:11 v120 pseudo: pseudo-device: wrsmd4
Jan 31 16:30:11 v120 genunix: wrsmd4 is /pseudo/wrsmd@4
Jan 31 16:30:11 v120 pseudo: pseudo-device: wrsmd5
Jan 31 16:30:11 v120 genunix: wrsmd5 is /pseudo/wrsmd@5
Jan 31 16:30:11 v120 pseudo: pseudo-device: wrsmd6
Jan 31 16:30:11 v120 genunix: wrsmd6 is /pseudo/wrsmd@6
Jan 31 16:30:11 v120 pseudo: pseudo-device: wrsmd7
Jan 31 16:30:11 v120 genunix: wrsmd7 is /pseudo/wrsmd@7
Jan 31 16:30:11 v120 pseudo: pseudo-device: wrsmd8
Jan 31 16:30:11 v120 genunix: wrsmd8 is /pseudo/wrsmd@8
Jan 31 16:30:11 v120 pseudo: pseudo-device: wrsmd9
Jan 31 16:30:11 v120 genunix: wrsmd9 is /pseudo/wrsmd@9
Jan 31 16:30:11 v120 pseudo: pseudo-device: wrsmd10
Jan 31 16:30:11 v120 genunix: wrsmd10 is /pseudo/wrsmd@10
Jan 31 16:30:11 v120 pseudo: pseudo-device: wrsmd11
Jan 31 16:30:11 v120 genunix: wrsmd11 is /pseudo/wrsmd@11
Jan 31 16:30:11 v120 pseudo: pseudo-device: wrsmd12
Jan 31 16:30:11 v120 genunix: wrsmd12 is /pseudo/wrsmd@12
Jan 31 16:30:11 v120 pseudo: pseudo-device: wrsmd13
Jan 31 16:30:11 v120 genunix: wrsmd13 is /pseudo/wrsmd@13
Jan 31 16:30:11 v120 pseudo: pseudo-device: wrsmd14
Jan 31 16:30:11 v120 genunix: wrsmd14 is /pseudo/wrsmd@14
Jan 31 16:30:11 v120 pseudo: pseudo-device: wrsmd15
Jan 31 16:30:11 v120 genunix: wrsmd15 is /pseudo/wrsmd@15
Jan 31 16:30:11 v120 pseudo: pseudo-device: fcp0
Jan 31 16:30:11 v120 genunix: fcp0 is /pseudo/fcp@0

69
*****************************************************************************
*
* Starting Desktop Login on display :0...
*
* Wait for the Desktop Login screen before logging in.
*
*****************************************************************************
Jan 31 16:30:30 v120 simba: PCI-device: SUNW,Expert3D@5, ifb0
Jan 31 16:30:30 v120 genunix: ifb0 is /pci@1f,0/pci@1/SUNW,Expert3D@5

Jan 31 16:30:31 v120 pseudo: pseudo-device: devinfo0


Jan 31 16:30:31 v120 genunix: devinfo0 is /pseudo/devinfo@0

*****************************************************************************
*
* The X-server can not be started on display :0...
*
* See file /var/dt/Xerrors for details.
*
*****************************************************************************

v120 console login

Example: reconfigure boot boot -r

ok boot -rv
Drive not ready
Can't read disk label.
Can't open disk label package
Boot device: /pci@1f,0/pci@1/scsi@8/disk@0,0 File and args: -rv
module /platform/sun4u/kernel/sparcv9/unix: text at [0x1000000, 0x107a767] data at
0x1800000
module misc/sparcv9/krtld: text at [0x107a768, 0x10933a f] data at 0x184c760
module /platform/sun4u/kernel/sparcv9/genunix: text at [0x10933b0, 0x11f0f17] data at
0x1852000
module /platform/SUNW,UltraAX-i2/kernel/misc/sparcv9/platmod: text at [0x11f0f18,
0x11f1187] data at 0x18a4558
module /platform/sun4u/kernel/cpu/sparcv9/SUNW,UltraSPARC-IIe: text at [0x11f11c0,
0x11fe4d7] data at 0x18a4cc0
SunOS Release 5.10 Version Generic_118833 -33 64-bit
Copyright 1983-2006 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Ethernet address = 0:3:ba:6c:b7:98
mem = 1048576K (0x40000000)
avail mem = 1039548416
root nexus = Sun Fire V120 (UltraSPARC-IIe 648MHz)
pseudo0 at root
pseudo0 is /pseudo
scsi_vhci0 at root
scsi_vhci0 is /scsi_vhci
pcipsy0 at root: UPA 0x1f 0x0
pcipsy0 is /pci@1f,0
PCI-device: pci@1, simba1
simba1 is /pci@1f,0/pci@1
/pci@1f,0/pci@1/scsi@8 (glm0):
glm0 supports power management.
/pci@1f,0/pci@1/scsi@8 (glm0):
Rev. 7 Symbios 53c896 found.
PCI-device: scsi@8, glm0
glm0 is /pci@1f,0/pci@1/scsi@8
sd0 at glm0: target 0 lun 0
sd0 is /pci@1f,0/pci@1/scsi@8/sd@0,0

70
root on /pci@1f,0/pci@1/scsi@8/disk@0,0:a fstype ufs
PCI-device: pci@1,1, simba0
simba0 is /pci@1f,0/pci@1,1
PCI-device: isa@7, ebus1
ebus1 is /pci@1f,0/pci@1,1/isa@7
pseudo-device: dld0
dld0 is /pseudo/dld@0
su0 at ebus1: offset 0,3f8
su0 is /pci@1f,0/pci@1,1/isa@7/serial@0,3f8
PCI-device: usb@c,3, ohci0
ohci0 is /pci@1f,0/pci@1,1/usb@c,3
PCI-device: usb@5,3, ohci1
ohci1 is /pci@1f,0/pci@1,1/usb@5,3
cpu0: UltraSPARC-IIe (portid 0 impl 0x13 ver 0x33 clock 648 MHz)
iscsi0 at root
iscsi0 is /iscsi
SUNW,eri0 : Local Ethernet address = 0:3:ba:6c:b7:98PCI -device: network@c,1, eri0
eri0 is /pci@1f,0/pci@1,1/network@c,1
SUNW,eri1 : Local Ethernet address = 0:3:ba:6c:b7:99PCI -device: network@5,1, eri1
eri1 is /pci@1f,0/pci@1,1/network@5,1
dump on /dev/dsk/c1t0d0s1 size 516 MB
Configuring devices.
SUNW,eri0 : 100 Mbps full duplex link up
Hostname: v120
pseudo-device: rsm0
rsm0 is /pseudo/rsm@0
pseudo-device: devinfo0
devinfo0 is /pseudo/devinfo@0
pseudo-device: pseudo1
pseudo1 is /pseudo/zconsnex@1
PCI-device: ebus@c, ebus0
ebus0 is /pci@1f,0/pci@1,1/ebus@c
/pci@1f,0/pci@1/scsi@8,1 (glm1):
glm1 supports power management.
/pci@1f,0/pci@1/scsi@8,1 (glm1):
Rev. 7 Symbios 53c896 found.
PCI-device: scsi@8,1, glm1
glm1 is /pci@1f,0/pci@1/scsi@8,1
PCI-device: pmu@3, pmubus0
PCI-device: SUNW,Expert3D@5, ifb0
ifb0 is /pci@1f,0/pci@1/SUNW,Expert3D@5
power0 at ebus1: offset 0,2000
power0 is /pci@1f,0/pci@1,1/isa@7/power@0,2000
su1 at ebus1: offset 0,2e8
su1 is /pci@1f,0/pci@1,1/isa@7/serial@0,2e8
pseudo-device: fssnap0
fssnap0 is /pseudo/fssnap@0
pseudo-device: ramdisk1024
ramdisk1024 is /pseudo/ramdisk@1024
pseudo-device: winlock0
winlock0 is /pseudo/winlock@0
pseudo-device: lockstat0
lockstat0 is /pseudo/lockstat@0
pseudo-device: vol0
vol0 is /pseudo/vol@0
pseudo-device: fcode0
fcode0 is /pseudo/fcode@0
pseudo-device: llc10
llc10 is /pseudo/llc1@0
pseudo-device: pm0
pm0 is /pseudo/pm@0
pseudo-device: tod0
tod0 is /pseudo/tod@0
pseudo-device: lofi0

71
lofi0 is /pseudo/lofi@0
pseudo-device: trapstat0
trapstat0 is /pseudo/trapstat@0
pseudo-device: dtrace0
dtrace0 is /pseudo/dtrace@0
pseudo-device: fbt0
fbt0 is /pseudo/fbt@0
pseudo-device: profile0
profile0 is /pseudo/profile@0
pseudo-device: systrace0
systrace0 is /pseudo/systrace@0
pseudo-device: sdt0
sdt0 is /pseudo/sdt@0
pseudo-device: fasttrap0
fasttrap0 is /pseudo/fasttrap@0
pseudo-device: pool0
pool0 is /pseudo/pool@0
pseudo-device: zfs0
zfs0 is /pseudo/zfs@0
pseudo-device: wrsmd0
wrsmd0 is /pseudo/wrsmd@0
pseudo-device: wrsmd1
wrsmd1 is /pseudo/wrsmd@1
pseudo-device: wrsmd2
wrsmd2 is /pseudo/wrsmd@2
pseudo-device: wrsmd3
wrsmd3 is /pseudo/wrsmd@3
pseudo-device: wrsmd4
wrsmd4 is /pseudo/wrsmd@4
pseudo-device: wrsmd5
wrsmd5 is /pseudo/wrsmd@5
pseudo-device: wrsmd6
wrsmd6 is /pseudo/wrsmd@6
pseudo-device: wrsmd7
wrsmd7 is /pseudo/wrsmd@7
pseudo-device: wrsmd8
wrsmd8 is /pseudo/wrsmd@8
pseudo-device: wrsmd9
wrsmd9 is /pseudo/wrsmd@9
pseudo-device: wrsmd10
wrsmd10 is /pseudo/wrsmd@10
pseudo-device: wrsmd11
wrsmd11 is /pseudo/wrsmd@11
pseudo-device: wrsmd12
wrsmd12 is /pseudo/wrsmd@12
pseudo-device: wrsmd13
wrsmd13 is /pseudo/wrsmd@13
pseudo-device: wrsmd14
wrsmd14 is /pseudo/wrsmd@14
pseudo-device: wrsmd15
wrsmd15 is /pseudo/wrsmd@15
pseudo-device: fcp0
fcp0 is /pseudo/fcp@0
pseudo-device: fcsm0
fcsm0 is /pseudo/fcsm@0
checking ufs filesystems
/dev/rdsk/c1t0d0s7: is logging.
Feb 1 09:14:55 v120 sendmail[274]: My unqualified host name (v120) unknown; sleeping
for retry
Feb 1 09:14:55 v120 sendmail[275]: My unqualifi ed host name (v120) unknown; sleeping
for retry
v120 console login:

72
*****************************************************************************
*
* Starting Desktop Login on display :0...
*
* Wait for the Desktop Login screen before logging in.
*
*****************************************************************************
Feb 1 09:15:20 v120 simba: PCI-device: SUNW,Expert3D@5, ifb0
Feb 1 09:15:20 v120 genunix: ifb0 is /pci@1f,0/pci@1/SUNW,Expert3D@5
Feb 1 09:15:21 v120 pseudo: pseudo-device: devinfo0
Feb 1 09:15:21 v120 genunix: devinfo0 is /pseudo/devinfo@0

*****************************************************************************
*
* The X-server can not be started on display :0...
*
* See file /var/dt/Xerrors for details.
*
*****************************************************************************
Feb 1 09:15:42 v120 java[613]: pkcs11_softtoken: Keystore version failure.
Feb 1 09:15:55 v120 sendmail[275]: unable to qualify my own domain name (v120) --
using short name
Feb 1 09:15:55 v120 sendmail[274]: unable to qualify my own domain name (v120) --
using short name

v120 console login:

73
Installing Solaris

Solaris can be installed and updated by several means:

 From CD or DVD using a local CD or DVD drive


 From a Flash Archive Image (FLAR) CD or DVD
 From a Jumpstart or JET server
 From a WANboot server

The Jumpstart and WANboot methods are by far the most common today. A
dedicated system holds a variety of pre-defined Solaris images on disk. The
target system is connected to a shared network, boots from one of the images
and builds itself automatically.

Example: boot net – install

Will start a Solaris install if a Jumpstart server has been configured.

Jumpstart, WANboot and FLAR install methods are the responsibility of the
end user and are not covered in this course.

It may be occasionally required to build a system from CD/DVD.

Example: boot from cdrom boot cdrom

Use this command to install Solaris.

You will need information about the system’s name, IP address, disk layout
etc. This should be available from the system’s administrator.

Booting Solaris into Single User mode from a CD/DVD

Example: boot cdrom –s boot cdrom -s

This will boot a system to single user from a cdrom. When in single user mode
you can mount the disk drives, which is very useful for diagnosing problems.

74
Login, Navigate and Explore

After the system has booted you need to login:

v120 console login: root

You will be prompted for the password:

Password:
Jan 31 21:18:59 v120 login: ROOT LOGIN /dev/console
Last login: Mon Jan 31 16:32:53 on console
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
#

You are now at a Solaris prompt #

It is a good idea to use the bash shell (the Bourne Again Shell)

The shell is the command line interface that allows the user to interact with
Solaris and the system hardware. Bash is the easiest shell to use. There are
many shell commands:

# bash
bash-3.00#

ls list your present directory

bash-3.00# ls
bin etc lib opt system vol
cdrom export lost+found platform tmp
dev home mnt proc usr
devices kernel net sbin var
bash-3.00#

The ls command can be used with different flags to get more detail
bash-3.00# ls -lagi
total 624
2 drwxr-xr-x 27 root 1024 Jan 31 14:09 .
2 drwxr-xr-x 27 root 1024 Jan 31 14:09 ..
181881 -rw------- 1 root 77 Sep 10 2008 TTauthority
181892 -rw------- 1 root 100 Sep 10 2008 . Xauthority
181876 -rw------- 1 root 245 Jan 31 14:12 . bash_history
326496 drwxr-xr-x 11 root 512 Sep 10 2008 . dt
181880 -rwxr-xr-x 1 root 5111 Sep 10 2008 .dtprofile
326573 drwx------ 2 root 512 Sep 10 2008 .gconf
326575 drwx------ 2 root 512 Sep 10 2008 . gconfd
326611 drwxr-xr-x 3 root 512 Sep 10 2008 . softwareupdate
326490 drwx------ 3 root 512 Sep 10 2008 . sunw
1423 lrwxrwxrwx 1 root 9 Sep 9 2008 bin -> ./usr/bin

75
326283 drwxr-xr-x 2 nobody 512 Sep 10 2008 cdrom
1476 drwxr-xr-x 17 sys 4096 Jan 31 21:15 dev
6618 drwxr-xr-x 2 sys 512 Jan 31 21:14 devices
1477 drwxr-xr-x 83 sys 4096 Jan 31 21:15 etc
4 drwxr-xr-x 3 sys 512 Sep 9 2008 export
37166 dr-xr-xr-x 1 root 1 Jan 31 21:15 home
2645 drwxr-xr-x 14 sys 512 Sep 9 2008 kernel
1582 drwxr-xr-x 7 bin 5632 Sep 9 2008 lib
3 drwx------ 2 root 8192 Sep 9 2008 lost+found
1590 drwxr-xr-x 2 sys 512 Sep 9 2008 mnt
326487 dr-xr-xr-x 1 root 1 Jan 31 21:15 net
1591 drwxr-xr-x 6 sys 512 Sep 10 2008 opt
3281 drwxr-xr-x 53 sys 2048 Sep 9 2008 platform
1592 dr-xr-xr-x 36 root 258752 Jan 31 21:25 proc
1593 drwxr-xr-x 2 sys 1024 Sep 9 2008 sbin
1598 drwxr-xr-x 4 root 512 Sep 9 2008 system
1601 drwxrwxrwt 6 sys 397 Jan 31 21:16 tmp
28 drwxr-xr-x 39 sys 1024 Sep 9 2008 usr
6 drwxr-xr-x 43 sys 1024 Sep 10 2008 var
326285 dr-xr-xr-x 6 root 512 Jan 31 21:15 vol

cd change directory

bash-3.00# cd usr
bash-3.00# ls
4lib aset j2se news sadm ucb
5bin bin java oasys sbin ucbinclude
X ccs jdk old sfw ucblib
X11 demo kernel openwin share vmsys
X11R6 dict kvm perl5 snadm xpg4
adm dt lib platform spool xpg6
apache games mail preserve src
apache2 gnome man proc staroffice7
appserver include net pub tmp
bash-3.00#

pwd present working directory

bash-3.00# pwd
/usr
bash-3.00#

df disk free - shows which disk partitions are mounted and their mount
points

bash-3.00# df
/ (/dev/dsk/c1t0d0s0 ): 3730672 blocks 531911 files
/devices (/devices ): 0 blocks 0 files
/system/contract (ctfs ): 0 blocks 2147483623 files
/proc (proc ): 0 blocks 16136 files
/etc/mnttab (mnttab ): 0 blocks 0 files
/etc/svc/volatile (swap ): 2431984 blocks 147294 files
/system/object (objfs ): 0 blocks 2147483504 files
/dev/fd (fd ): 0 blocks 0 files

76
/tmp (swap ): 2431984 blocks 147294 files
/var/run (swap ): 2431984 blocks 147294 files
/export/home (/dev/dsk/c1t0d0s7 ): 128383236 blocks 7734268 files
bash-3.00#

df –k is very informative shows kbytes used of the partitions(slices)

bash-3.00# df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c1t0d0s0 5808942 3943606 1807247 69% /
/devices 0 0 0 0% /devices
ctfs 0 0 0 0% /system/contract
proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
swap 1217144 1176 1215968 1% /etc/svc/volatile
objfs 0 0 0 0% /system/object
fd 0 0 0 0% /dev/fd
swap 1216000 32 1215968 1% /tmp
swap 1216016 48 1215968 1% /var/run
/dev/dsk/c1t0d0s7 64255355 63737 63549065 1% /export/home
bash-3.00#

more The more command is used for viewing files

The /etc/vfstab file is used for mounting partitions at boot.

bash-3.00# more /etc/vfstab


#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/dsk/c1t0d0s1 - - swap - no -
/dev/dsk/c1t0d0s0 /dev/rdsk/c1t0d0s0 / ufs 1 no
-
/dev/dsk/c1t0d0s7 /dev/rdsk/c1t0d0s7 /export/home ufs 2
yes -
/devices - /devices devfs - no -
ctfs - /system/contract ctfs - no -
objfs - /system/object objfs - no -
swap - /tmp tmpfs - yes -
bash-3.00#

cat Concatenate can also be used for viewing files

bash-3.00# cat /etc/vfstab


#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/dsk/c1t0d0s1 - - swap - no -
/dev/dsk/c1t0d0s0 /dev/rdsk/c1t0d0s0 / ufs 1 no
-
/dev/dsk/c1t0d0s7 /dev/rdsk/c1t0d0s7 /export/home ufs 2
yes -

77
/devices - /devices devfs - no -
ctfs - /system/contract ctfs - no -
objfs - /system/object objfs - no -
swap - /tmp tmpfs - yes -
bash-3.00#

78
The Solaris messages files are located in /var/adm

bash-3.00# cd /var/adm
bash-3.00# ls -lagi
total 684
1602 drwxrwxr-x 9 sys 512 Sep 10 2008 .
6 drwxr-xr-x 43 sys 1024 Sep 10 2008 ..
117192 drwxrwxr-x 5 adm 512 Sep 9 2008 acct
1894 -rw------- 1 bin 0 Nov 9 2006 aculog
1603 drwxr-xr-x 2 adm 512 Sep 9 2008 exacct
46397 -r--r--r-- 1 root 28 Feb 1 09:20 lastlog
1604 drwxr-xr-x 2 adm 512 Sep 9 2008 log
181867 -rw-r--r-- 1 root 210424 Feb 1 09:15 messages
61925 drwxr-xr-x 2 sys 512 Sep 9 2008 pool
117196 drwxrwxr-x 2 sys 512 Sep 9 2008 sa
239138 drwxr-xr-x 2 sys 512 Sep 9 2008 sm.bin
1895 -rw-rw-rw- 1 bin 0 Nov 9 2006 spellhist
1605 drwxr-xr-x 2 sys 512 Sep 9 2008 streams
181884 -rw------- 1 root 66 Jan 31 12:56 sulog
1896 -rw-r--r-- 1 bin 2232 Feb 1 09:20 utmpx
46534 -rw-r--r-- 1 root 0 Sep 10 2008 vold.log
1897 -rw-r--r-- 1 adm 102300 Feb 1 09:20 wtmpx
bash-3.00#

The messages file is 210424kB. These files can grow very large

If you more this file, it may be hundreds of pages. Very time consuming.

tail and head commands

Use the tail command to look at the last n lines of the file .

bash-3.00# tail -50 messages


Feb 1 13:11:12 v120 pseudo: [ID 129642 kern.info] pseudo -device: fasttrap0
Feb 1 13:11:12 v120 genunix: [ID 936769 kern.info] fasttrap0 is /pseudo/fasttrap@0
Feb 1 13:11:12 v120 pseudo: [ID 129642 kern.info] pseudo -device: pool0
Feb 1 13:11:12 v120 genunix: [ID 936769 kern.info] pool0 is /pseudo/pool@0
Feb 1 13:11:13 v120 ipf: [ID 774698 kern.info] IP Filter: v4.0.3, running.
Feb 1 13:11:13 v120 pseudo: [ID 129642 kern.info] pseudo -device: wrsmd0
Feb 1 13:11:13 v120 genunix: [ID 936769 kern.info] wrsmd0 is /pseudo/wrsmd@0
Feb 1 13:11:13 v120 pseudo: [ID 129642 kern.info] pseudo -device: fcsm0
Feb 1 13:11:13 v120 genunix: [ID 936769 kern.info] fcsm0 is /pseudo/fcsm@0
Feb 1 13:11:13 v120 pseudo: [ID 129642 kern.info] pseudo -device: dtrace0
Feb 1 13:11:13 v120 genunix: [ID 936769 kern.info] dtrace0 is /pseudo/dtrace@0
Feb 1 13:11:13 v120 pseudo: [ID 129642 kern.info] pseudo -device: wrsmd1
Feb 1 13:11:13 v120 genunix: [ID 936769 kern.info] wrsmd1 is /pseudo/wrsmd@1
Feb 1 13:11:13 v120 pseudo: [ID 129642 kern.info] pseudo-device: wrsmd2
Feb 1 13:11:13 v120 genunix: [ID 936769 kern.info] wrsmd2 is /pseudo/wrsmd@2
Feb 1 13:11:13 v120 pseudo: [ID 129642 kern.info] pseudo -device: wrsmd3
Feb 1 13:11:13 v120 genunix: [ID 936769 kern.info] wrsmd3 is /pseudo/wrsm d@3
Feb 1 13:11:13 v120 pseudo: [ID 129642 kern.info] pseudo -device: wrsmd4
Feb 1 13:11:13 v120 genunix: [ID 936769 kern.info] wrsmd4 is /pseudo/wrsmd@4
Feb 1 13:11:13 v120 pseudo: [ID 129642 kern.info] pseudo -device: wrsmd5
Feb 1 13:11:13 v120 genunix: [ID 936769 kern.info] wrsmd5 is /pseudo/wrsmd@5
Feb 1 13:11:13 v120 pseudo: [ID 129642 kern.info] pseudo -device: wrsmd6
Feb 1 13:11:13 v120 genunix: [ID 936769 kern.info] wrsmd6 is /pseudo/wrsmd@6
Feb 1 13:11:13 v120 pseudo: [ID 129642 kern.info] pseu do-device: wrsmd7
Feb 1 13:11:13 v120 genunix: [ID 936769 kern.info] wrsmd7 is /pseudo/wrsmd@7

79
Feb 1 13:11:13 v120 pseudo: [ID 129642 kern.info] pseudo -device: wrsmd8
Feb 1 13:11:13 v120 genunix: [ID 936769 kern.info] wrsmd8 is /pseudo/wrsmd@8
Feb 1 13:11:13 v120 pseudo: [ID 129642 kern.info] pseudo -device: wrsmd9
Feb 1 13:11:13 v120 genunix: [ID 936769 kern.info] wrsmd9 is /pseudo/wrsmd@9
Feb 1 13:11:13 v120 pseudo: [ID 129642 kern.info] pseudo -device: wrsmd10
Feb 1 13:11:13 v120 genunix: [ID 936769 kern.info] wrsmd10 is /pseudo/wrsmd@10
Feb 1 13:11:13 v120 pseudo: [ID 129642 kern.info] pseudo -device: wrsmd11
Feb 1 13:11:13 v120 genunix: [ID 936769 kern.info] wrsmd11 is /pseudo/wrsmd@11
Feb 1 13:11:13 v120 pseudo: [ID 129642 kern.info] pseudo -device: wrsmd12
Feb 1 13:11:13 v120 genunix: [ID 936769 kern.info] wrsmd12 is /pseudo/wrsmd@12
Feb 1 13:11:13 v120 pseudo: [ID 129642 kern.info] pseudo -device: wrsmd13
Feb 1 13:11:13 v120 genunix: [ID 936769 kern.info] wrsmd13 is /pseudo/wrsmd@13
Feb 1 13:11:13 v120 pseudo: [ID 129642 kern.info] pseudo -device: wrsmd14
Feb 1 13:11:13 v120 genunix: [ID 936769 kern.info] wrsmd14 is /pseudo/wrsmd@14
Feb 1 13:11:13 v120 pseudo: [ID 129642 kern.info] pseudo -device: wrsmd15
Feb 1 13:11:13 v120 genunix: [ID 936769 kern.info] wrsmd15 is /pseudo/wrsmd@15
Feb 1 13:11:13 v120 pseudo: [ID 129642 kern.info] pseudo -device: fcp0
Feb 1 13:11:13 v120 genunix: [ID 936769 kern.info] fcp0 is /pseudo/fcp@0
Feb 1 13:11:25 v120 simba: [ID 370704 kern.info] PCI -device: SUNW,Expert3D@5, ifb0
Feb 1 13:11:25 v120 genunix: [ID 936769 kern.info] ifb0 is /pci@1f,0/pci@1/SUNW,Expert3D@5
Feb 1 13:11:26 v120 pseudo: [ID 129642 kern.info] pseudo -device: vol0
Feb 1 13:11:26 v120 genunix: [ID 936769 kern.info] vol0 is /pseudo/vol@0
Feb 1 13:11:52 v120 java[608]: [ID 807473 user.error] pkcs11_softtoken: Keystore version failure.
Feb 1 13:12:04 v120 sendmail[272]: [ID 702911 mail.alert] unable to qualify my own domain name
(v120) -- using short name
Feb 1 13:12:04 v120 sendmail[274]: [ID 702911 mail.alert] unable to qualify my own domain name
(v120) -- using short name
bash-3.00#

head -50 xxxxxx will show the first 50 lines of the file

dmesg message of the day

bash-3.00# dmesg

Tue Feb 1 13:19:26 GMT 2011


Feb 1 12:06:12 v120 pseudo: [ID 129642 kern.info] pseudo-device: wrsmd1
Feb 1 12:06:12 v120 genunix: [ID 936769 kern.info] wrsmd1 is /pseudo/wrsmd@1
Feb 1 12:06:12 v120 pseudo: [ID 129642 kern.info] pseudo -device: wrsmd2
Feb 1 12:06:12 v120 genunix: [ID 936769 kern.info] w rsmd2 is /pseudo/wrsmd@2
Feb 1 12:06:12 v120 pseudo: [ID 129642 kern.info] pseudo -device: wrsmd3
Feb 1 12:06:12 v120 genunix: [ID 936769 kern.info] wrsmd3 is /pseudo/wrsmd@3
Feb 1 12:06:12 v120 pseudo: [ID 129642 kern.info] pseudo -device: wrsmd4
Feb 1 12:06:12 v120 genunix: [ID 936769 kern.info] wrsmd4 is /pseudo/wrsmd@4
Feb 1 12:06:12 v120 pseudo: [ID 129642 kern.info] pseudo -device: wrsmd5
Feb 1 12:06:12 v120 genunix: [ID 936769 kern.info] wrsmd5 is /pseudo/wrsmd@5
Feb 1 12:06:12 v120 pseudo: [ID 129642 kern.info] pseudo-device: wrsmd6
Feb 1 12:06:12 v120 genunix: [ID 936769 kern.info] wrsmd6 is /pseudo/wrsmd@6
Feb 1 12:06:12 v120 pseudo: [ID 129642 kern.info] pseudo -device: wrsmd7
Feb 1 12:06:12 v120 genunix: [ID 936769 kern.info] wrsmd7 is /pse udo/wrsmd@7
Feb 1 12:06:12 v120 pseudo: [ID 129642 kern.info] pseudo -device: wrsmd8
Feb 1 12:06:12 v120 genunix: [ID 936769 kern.info] wrsmd8 is /pseudo/wrsmd@8
Feb 1 12:06:12 v120 pseudo: [ID 129642 kern.info] pseudo -device: wrsmd9
Feb 1 12:06:12 v120 genunix: [ID 936769 kern.info] wrsmd9 is /pseudo/wrsmd@9
Feb 1 12:06:12 v120 pseudo: [ID 129642 kern.info] pseudo -device: wrsmd10
Feb 1 12:06:12 v120 genunix: [ID 936769 kern.info] wrsmd10 is /pseudo/wrsmd@10
Feb 1 12:06:12 v120 pseudo: [ID 129642 kern.info] pseudo-device: wrsmd11
Feb 1 12:06:12 v120 genunix: [ID 936769 kern.info] wrsmd11 is /pseudo/wrsmd@11
Feb 1 12:06:12 v120 pseudo: [ID 129642 kern.info] pseudo -device: wrsmd12
Feb 1 12:06:12 v120 genunix: [ID 936769 kern.info] wrsmd12 is /pseudo/w rsmd@12
Feb 1 12:06:12 v120 pseudo: [ID 129642 kern.info] pseudo -device: wrsmd13

80
Feb 1 12:06:12 v120 genunix: [ID 936769 kern.info] wrsmd13 is /pseudo/wrsmd@13
Feb 1 12:06:12 v120 pseudo: [ID 129642 kern.info] pseudo -device: wrsmd14
Feb 1 12:06:12 v120 genunix: [ID 936769 kern.info] wrsmd14 is /pseudo/wrsmd@14
Feb 1 12:06:12 v120 pseudo: [ID 129642 kern.info] pseudo -device: wrsmd15
Feb 1 12:06:12 v120 genunix: [ID 936769 kern.info] wrsmd15 is /pseudo/wrsmd@15
Feb 1 12:06:12 v120 pseudo: [ID 129642 kern.info] pseudo-device: fcp0
Feb 1 12:06:12 v120 genunix: [ID 936769 kern.info] fcp0 is /pseudo/fcp@0
Feb 1 12:06:31 v120 simba: [ID 370704 kern.info] PCI -device: SUNW,Expert3D@5, ifb0
Feb 1 12:06:31 v120 genunix: [ID 936769 kern.info] ifb0 is
/pci@1f,0/pci@1/SUNW,Expert3D@5
Feb 1 12:06:31 v120 pseudo: [ID 129642 kern.info] pseudo -device: devinfo0
Feb 1 12:06:31 v120 genunix: [ID 936769 kern.info] devinfo0 is /pseudo/devinfo@0
Feb 1 12:06:52 v120 java[604]: [ID 807473 user.error] pkcs11_softtoken: Key store version
failure.

prtdiag Very useful command, “The Engineers Friend”.


It will list any internal hardware fault on the server.

If /usr/platform/sun4u/sbin/prtdiag is in the PATH you can type

prtdiag

bash-3.00# ./prtdiag -v
System Configuration: Sun Microsystems sun4u Sun Fire V120 (UltraSPARC -IIe 648MHz)
System clock frequency: 100 MHz
Memory size: 1024 Megabytes

========================= CPUs
=========================

Run Ecache CPU CPU


Brd CPU Module MHz MB Impl. Mask
--- --- ------- ----- ------ ------ ----
0 0 0 648 0.5 13 3.3

========================= IO Cards
=========================

Bus# Freq
Brd Type MHz Slot Name Model
--- ---- ---- ---- -------------------------------- ----------------------
0 PCI-1 33 12 ebus
0 PCI-1 33 3 pmu-pci10b9,7101
0 PCI-1 33 3 lomp
0 PCI-1 33 7 isa
0 PCI-1 33 12 network-pci108e,1101 SUNW,pci-eri
0 PCI-1 33 12 usb-pci108e,1103.1
0 PCI-1 33 13 ide-pci10b9,5229
0 PCI-1 33 5 network-pci108e,1101 SUNW,pci-eri
0 PCI-1 33 5 usb-pci108e,1103.1
0 PCI-2 33 8 scsi-glm Symbios,53C896
0 PCI-2 33 8 scsi-glm Symbios,53C896
0 PCI-2 33 5 SUNW,Expert3D SUNW,37 0-3987

No failures found in System


===========================

81
========================= HW Revisions
=========================

ASIC Revisions:
---------------
Cheerio: ebus Rev 1

System PROM revisions:


----------------------
CORE 1.0.12 2002/01/08 13:00
bash-3.00#

prtdiag can also be run with the –v flag for verbose output

find you need to know this command

bash-3.00# find / -name prtdiag


/usr/platform/SUNW,Netra-CP2300/sbin/prtdiag
/usr/platform/SUNW,Netra-CP3010/sbin/prtdiag
/usr/platform/SUNW,SPARC-Enterprise/sbin/prtdiag
/usr/platform/sun4u/sbin/prtdiag
/usr/platform/SUNW,Sun-Fire-V215/sbin/prtdiag
/usr/platform/SUNW,Sun-Fire-V240/sbin/prtdiag
/usr/platform/SUNW,Sun-Fire-V250/sbin/prtdiag
/usr/platform/SUNW,Sun-Fire-V445/sbin/prtdiag
/usr/sbin/prtdiag
bash-3.00#

echo$PATH will show what PATH has been set to

bash-3.00# echo $PATH


/usr/sbin:/usr/bin
bash-3.00#

bash-3.00# echo $PATH


/usr/bin:/usr/ucb:/etc:/usr/sbin:/usr/platform/sun4u/s bin:.
bash-3.00# prtdiag
System Configuration: Sun Microsystems sun4u Sun Fire V120 (UltraSPARC -IIe 648MHz)
System clock frequency: 100 MHz
Memory size: 1024 Megabytes

========================= CPUs
=========================

Run Ecache CPU CPU


Brd CPU Module MHz MB Impl. Mask
--- --- ------- ----- ------ ------ ----
0 0 0 648 0.5 13 3.3

========================= IO Cards
=========================

Bus# Freq
Brd Type MHz Slot Name Model
--- ---- ---- ---- -------------------------------- ----------------------
0 PCI-1 33 12 ebus
0 PCI-1 33 3 pmu-pci10b9,7101

82
0 PCI-1 33 3 lomp
0 PCI-1 33 7 isa
0 PCI-1 33 12 network-pci108e,1101 SUNW,pci-eri
0 PCI-1 33 12 usb-pci108e,1103.1
0 PCI-1 33 13 ide-pci10b9,5229
0 PCI-1 33 5 network-pci108e,1101 SUNW,pci-eri
0 PCI-1 33 5 usb-pci108e,1103.1
0 PCI-2 33 8 scsi-glm Symbios,53C896
0 PCI-2 33 8 scsi-glm Symbios,53C896
0 PCI-2 33 5 SUNW,Expert3D SUNW,370 -3987

No failures found in System


===========================
bash-3.00#

83
format

format is the disk drive utility and can be used to test a disk drive and map
out bad blocks

bash-3.00# format
Searching for disks...done

AVAILABLE DISK SELECTIONS:


0. c1t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@1f,0/pci@1/scsi@8/sd@0,0
1. c1t1d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
/pci@1f,0/pci@1/scsi@8/sd@1,0
Specify disk (enter its number): 1
selecting c1t1d0
[disk formatted]

FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> inq
Vendor: FUJITSU
Product: MAP3367N SUN36G
Revision: 0301
format> anal

ANALYZE MENU:
read - read only test (doesn't harm SunOS)
refresh - read then write (doesn't harm data)
test - pattern testing (doesn't harm data)
write - write then read (corrupts data)
compare - write, read, compare (corrupts data)
purge - write, read, write (corrupts data)
verify - write entire disk, then verify (corrupts data)
print - display data buffer
setup - set analysis parameters
config - show analysis parameters
!<cmd> - execute <cmd> , then return
quit

Check how parameters have been set.


analyze> config
Analyze entire disk? yes
Loop continuously? no
Number of passes: 2
Repair defective blocks? yes

84
Stop after first error? no

Use random bit patterns? no


Number of blocks per transfer: 126 (0/1/19)
Verify media after formatting? yes
Enable extended messages? no
Restore defect list? yes

Restore disk label? yes

Modify if required

analyze> setup
Analyze entire disk[yes]?
Loop continuously[no]?
Enter number of passes[2]:
Repair defective blocks[yes]?
Stop after first error[no]?
Use random bit patterns[no]?
Enter number of blocks per transfer[126, 0/1/19]:
Verify media after formatting[yes]?
Enable extended messages[no]?
Restore defect list[yes]?
Restore disk label[yes]?

analyze> test
Ready to analyze (won't harm data). This takes a long time,
but is interruptable with CTRL-C. Continue? y

pass 0 - pattern = 0xc6dec6de


52/0/90

Note that analyse can be set to automatically repair bad blocks.


If bad blocks are reported in messages you can map them out manually

analyze> test
Ready to analyze (won't harm data). This takes a long time,
but is interruptable with CTRL-C. Continue? y

pass 0 - pattern = 0xc6dec6de


^C 703/6/15
Total of 0 defective blocks repaired.
analyze> quit

FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return

85
quit
format> repair

Enter absolute block number of defect: 10056


This block doesn't appear to be bad. Repair it anyway? yes
Ready to repair defect, continue? y
Repairing block 10056 (3/12/105)...ok.

format>

86
Status Commands
iostat iostat –E will list disk errors
bash-3.00# iostat -E
sd0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: FUJITSU Product: MAP3735N SUN72G Revision: 0401 Serial No: 0442Q0FT30
Size: 73.40GB <73400057856 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
sd1 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: FUJITSU Product: MAP3367N SUN36G Revision: 0301 Serial No: 0313N00MCV
Size: 36.42GB <36418595328 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
bash-3.00#

iostat 5 will update every 5 seconds. The first line is information on bootup, then tty, sd0, sd1, nfs, and
cpu
bash-3.00# iostat 5
tty sd0 sd1 nfs1 cpu
tin tout kps tps serv kps tps serv kps tps serv us sy wt id
0 103 54 4 8 1694 30 0 0 0 0 3 3 0 94
0 39 0 0 0 0 0 0 0 0 0 0 1 0 99
0 13 0 0 0 0 0 0 0 0 0 0 1 0 99
0 13 0 0 0 0 0 0 0 0 0 0 1 0 99
0 13 0 0 0 0 0 0 0 0 0 0 1 0 99
0 13 0 0 0 0 0 0 0 0 0 0 1 0 99
0 13 0 0 0 0 0 0 0 0 0 0 1 0 99
0 13 0 0 0 0 0 0 0 0 0 0 1 0 99
0 13 0 0 0 0 0 0 0 0 0 0 1 0 99
0 13 0 0 0 0 0 0 0 0 0 0 1 0 99
0 13 0 0 0 0 0 0 0 0 0 0 1 0 99
0 13 0 0 0 0 0 0 0 0 0 0 1 0 99
0 13 0 0 0 0 0 0 0 0 0 0 1 0 99

87
Example of iostat when simultaneously running format/analyse on sd1
bash-3.00# iostat 5
tty sd0 sd1 nfs1 cpu
tin tout kps tps serv kps tps serv kps tps serv us sy wt id
0 103 54 4 8 1694 30 0 0 0 0 3 3 0 94
0 39 0 0 0 0 0 0 0 0 0 0 1 0 99
0 13 0 0 0 0 0 0 0 0 0 0 1 0 99
0 13 0 0 0 0 0 0 0 0 0 0 1 0 99
0 13 0 0 0 0 0 0 0 0 0 0 1 0 99
1 14 0 0 14 0 0 0 0 0 0 0 1 0 99
1 79 527 47 3 3631 266 0 0 0 10 20 0 0 69
1 166 0 0 0 963 63 1 0 0 0 1 4 0 96
1 160 2 0 13 0 0 0 0 0 0 0 1 0 99
0 10764 5 4 25 48458 769 0 0 0 0 1 12 0 86
0 14658 0 0 0 63190 1003 0 0 0 0 2 15 0 83
0 14593 1 0 11 63024 1000 0 0 0 0 2 16 0 82
0 14662 9 12 23 63202 1003 0 0 0 0 2 16 0 83
0 13951 0 0 0 59512 945 0 0 0 0 2 15 0 83
0 13 0 0 0 0 0 0 0 0 0 0 1 0 99
0 13 0 0 0 0 0 0 0 0 0 0 1 0 99
0 13 0 0 0 0 0 0 0 0 0 0 1 0 99

mpstat Micro Processor Statistics

bash-3.00# mpstat 5
CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt vmstatidl
0 95 6 0 434 328 603 63 0 0 0 1066 8 4 0 87
0 2 0 0 433 302 157 0 0 0 0 45 0 1 0 99
0 0 0 0 439 324 160 0 0 0 0 29 0 1 0 99
0 0 0 0 416 300 151 4 0 0 0 45 6 1 0 93
0 0 0 0 417 301 152 0 0 0 0 29 0 1 0 99
0 0 0 0 415 300 151 0 0 0 0 43 0 1 0 99
0 0 0 0 417 302 155 0 0 0 0 31 0 1 0 99

88
vmstat Virtual Memory Statistics

bash-3.00# vmstat 5
kthr memory page disk faults
cpu
r b w swap free re mf pi po fr de sr s0 s1 -- -- in sy cs us sy id
0 0 0 1224952 808216 19 75 107 0 0 0 34 7 0 0 0 434 847 507 7 4 90
0 0 0 1224768 799776 0 5 6 0 0 0 0 0 0 0 0 450 63 156 0 1 99
0 0 0 1224744 799752 0 0 0 0 0 0 0 0 0 0 0 418 40 156 0 1 99
0 0 0 1224744 799752 0 0 0 0 0 0 0 0 0 0 0 415 48 151 0 1 99
0 0 0 1224744 799752 0 0 0 0 0 0 0 3 0 0 0 437 32 153 0 1 99
0 0 0 1224744 799752 0 0 0 0 0 0 0 0 0 0 0 417 46 155 0 1 99
0 0 0 1224744 799752 0 0 0 0 0 0 0 0 0 0 0 416 32 150 0 1 99
0 0 0 1224744 799752 0 0 0 0 0 0 0 0 0 0 0 416 46 154 0 1 99
0 0 0 1224744 799752 0 0 0 0 0 0 0 0 0 0 0 417 32 153 0 1 99
0 0 0 1224744 799752 0 0 0 0 0 0 0 0 0 0 0 416 48 153 0 1 99
0 0 0 1224744 799752 0 0 0 0 0 0 0 0 0 0 0 419 33 153 0 1 99

netstat Network Statistics


bash-3.00# netstat -a

UDP: IPv4
Local Address Remote Address State
-------------------------------------------------------------------------------
*.route Idle
*.sunrpc Idle
*.* Unbound
*.32771 Idle

TCP: IPv4
Local Address Remote Address Swind Send-Q Rwind Recv-Q State
-------------------------------------------------------------- ------------------------------------------------------------------------

89
*.* *.* 0 0 49152 0 IDLE
*.sunrpc *.* 0 0 49152 0 LISTEN
*.* *.* 0 0 49152 0 IDLE
*.ssh *.* 0 0 49152 0 LISTEN
localhost.5987 *.* 0 0 49152 0 LISTEN
localhost.898 *.* 0 0 49152 0 LISTEN
localhost.32771 *.* 0 0 49152 0 LISTEN
localhost.5988 *.* 0 0 49152 0 LISTEN
localhost.32772 *.* 0 0 49152 0 LISTEN
*.telnet *.* 0 0 49152 0 LISTEN
*.ftp *.* 0 0 49152 0 LISTEN
*.32782 *.* 0 0 49152 0 BOUND
localhost.6788 *.* 0 0 49152 0 LISTEN
localhost.6789 *.* 0 0 49152 0 LISTEN
localhost.smtp *.* 0 0 49152 0 LISTEN
localhost.submission *.* 0 0 49152 0 LISTEN
localhost.32780 *.* 0 0 49152 0 LISTEN

TCP: IPv6
Local Address Remote Address Swind Send-Q Rwind Recv-Q State If
--------------------------------------------------------------------------- --------------------------------- ----- ------ ----- ------ ----------- -----
*.* *.* 0 0 49152 0 IDLE
*.ssh *.* 0 0 0 49152 0 LISTEN
*.telnet *.* 0 0 0 49152 0 LISTEN
*.ftp *.* 0 0 0 49152 0 LISTEN

SCTP:
Local Address Remote Address Swind Send-Q Rwind Recv-Q StrsI/O State
---------------------------------------------------- ------------------------ ------------------------------- ------ ------ ------ ------ ------- -----------
0.0.0.0 0.0.0.0 0 0 102400 0 32/32 CLOSED

90
Solaris Administrator’s Quick Reference

Change hostname/IP address

/ etc/hostname.{hme0|le0} /etc/nodename;
/etc/inet/hosts; /etc/net/*/hosts; /etc/defautrouter; /etc/resolv.conf

/etc/auto_home
Automount home (indirect) map, sample as follow #### mount home director y
##### jialong bluebear:/export/home/jialong

/etc/auto_direct
Automount direct map, sample as follow #### mount /usr/local from a ser ver ####
/usr/local bluebear:/usr/local

/etc/vold.conf
Volume manager configuration.

share [options] pathname export NFS file systems to other computers.

mount [options] filesr v:/pathname /mnt Mount remote file system. For security, when
possible, mount system as readonly and nosuid.

/etc/rmmount.conf
Removable disk configuration.

Sendmail Configuration

/etc/mail/sendmail.cf
sendmail configuration file.

/etc/mail/aliases aliases file. Must run newaliases after modifying aliases file.

Configure a mail ser ver


Generate new configuration file cd /usr/lib/mail/cf cp main -v7sun.mc foo.mc
/usr/ccs/bin/make foo.cf
Test new mail configuration file /usr/lib/sendmail –C foo.cf –v email_address </de/null
Install configuration file cd /etc/mail cp sendmail.cf sendmail.sav cp /usr/lib/foo.cf
sendmail.cf
pkill –HUP sendmail

Anti-spam
make sure FEATURE(access_db) is in sendmail.mc create /etc/mail/access with
something like
Author: Jialong He Email: Jialong_he@bigfoot.com
http://www.bigfoot.com/~jialong_he

User Initialization

($HOME/.profile)
Setup Printer
Local printer

91
/etc/profile
lpadmin –p prt_name –v /dev/ecpp0 -D “description” –T PS -I postscript
parallel port: {/dev/ecpp0 | /dev/bpp0}
serial port: {/dev/term/a | /dev/term/b}

Printer connected to a computer


lpadmin –p prt_name –s host_name –T unknow –I any Network capable printer

lpadmin –p prt_name –m netstandard –v /dev/null -D “description” -o protocol={bsd |


tcp} -o dest=prtIP:9100 ←port needed for tcp protocol -o banner={never | optional |
always} -o timeout=300

Misc printing commands lpadmin –d prt_name


set prt_name as the default printer. lpstat –d
show current default printer.

lpstat –p prt_name –l show prt_name configuration.

lpstat –t
show all printer status.

Environment variables LPDEST or PRINTER


User default printer. _default in /etc/printers.conf system default printer.

Disable banner edit file /etc/lp/inter faces/prt_name nobanner=yes

Common setting stored in file


/etc/lp/printers/prt_name/configuration /usr/lib/lp/model

File Sharing

/etc/vfstab
File mount table (local or NFS).

/etc/dfs/dfstab
File sharing table (NFS ser ver).

/etc/auto_master
Automounter master map, sample as follow #### Master map for automounter
#### /home auto_home -nobrowse /- auto_direct -ro
sh, bash, ksh system wide (per user) init
(system wide init has no effect in CDE environment).

/etc/.login ($HOME/.login)
csh, tcsh system wide (per user) init (system wide init has no effect in CDE
environment).

$HOME/.cshrc
per user csh, tcsh init (order: /etc/.login → $HOME/.cshrc →
$HOME/.login).

/usr/dt/config/Xsession.d/2000.login
system wide init for CDE environment (a script in Xsession.d).

$HOME/.dtprofile
per user init for CDE environment.

92
/etc/skel/*
Templete files (local.cshrc, local.login, local.profile) copied to new user’s home
director y.

93
Network Configuration

/etc/defaultdomain
NIS/NIS+ domain name.

/etc/defaultrouter
IP address of the default router.

/etc/resolv.conf
Internet domain name, name ser ver and search order. An example of resolv.conf
domain mydomain.com nameser ver 192.168.0.1
search mydomain.com

/etc/nsswitch.conf
specifying information source from files, NIS, NIS+, or DNS.

/etc/hostname.{hme0|le0}
Ipv4 hostname.

/etc/nodename
IPv6 hostname.

/etc/inet/hosts
Host name file (/etc/hosts is a link to this file).

/etc/inet/netmasks
TCP/IP subnet masks.

/etc/inet/protocols
Network protocols.

/etc/inet/ser vices
Network ser vice name and port number.

/etc/notrouter
create this file prevent in.routed or in.rdiscd from starting at
boot time.

/etc/inet/inetd.conf
Internet super daemon configuration file.
cyberpromo.com sendmail.org REL AY spam@buyme.com

94
CDE configuration

$HOME/.dtprofile
per user CDE init file, gemerated from
/{usr|etc}/dt/config/sys.dtprofile . $HOME/.dt/dtwmrc
desktop manager configuration file (pop-up menu when right
click mouse). From /{usr|etc}/dt/config/C/sys.dtwmrc
/usr/dt/appconfig/types/C/dtwm.fp
copy to $HOME/.dt/types/myname.fp and modify it.
REJECT
550 Spammers shan't see sunlight here makemap hash /etc/mail/access <
/etc/mail/access
$HOME/.dt/sessionetc
per user CDE session start file (script with execute perm)

$HOME/.dt/sessionexit
per user CDE exit file (script with execute permission).

/{usr | etc}/dt/config/C/Xresources
control attribute of login screen, for example, to disable session menu,
uncomment following line

/etc/pam.conf
pluggable authentication configuration file.

/etc/power.conf
power configuration.

/etc/printers.conf
BSD printer configuration.

/etc/magic
used by “file” command to determine file type.

/etc/security/*
security audit related files.

/etc/syslog.conf
system log daemon configuration file.

/etc/notrouter
specify this host is not a router.

95
Default info for various programs

/etc/default/power
power management parameters.

/etc/default/Solregis
put DISABLE=1 to disable solaris registration screen.

/etc/default/su
settings for “su” command.

/etc/default/sys-suspend
users permitted to put system in suspend mode.

/etc/default/passwd
minimum password length.

/etc/default/login
login related settings, put CONSOLE=/dev/console
disable root login by telnet (rlogin).

/etc/default/init
time zone, CMASK (default 022)

/etc/default/kbd
KEYBOARD_ABORT=disable

96
Application Configuration

/etc/ssh2/ssh2_configure ($HOME/.ssh2/ssh2_config)
SSH client system wide (per user) configuration file.

/etc/ssh2/sshd2_config ($HOME/.ssh2/sshd2_config)
SSH ser ver system wide (per user) configuration file.

Setup SSH2 to accept hostbased authtication


(1) Ser ver side In sshd2_config, includes hostbased, like this AllowedAuthentications
hostbased, publickey, password In /etc/hosts, use client’s full qualified domain name
(FQDN). In .rhosts (.shosts), also use FQDN, make user these files are owned by that
user and not writeble by other users. Copy client’s hostkey.pub to ser ver’s
/etc/ssh2/knownhosts and name it as FQDN.ssh -dss.pub (e.g., bluebear.la.asu.edu.ssh -
dss.pub).
(2) Client side In ssh2_config, includes hostbased authentication, like this
AllowedAuthentications hostbased, publickey, password Also need to set
DefaultDomain keyword, like DefaultDomain la.asu.edu

/usr/local/lib/pine.conf
system wide PINE configuration, over write by $H OME/.pinerc

/usr/local/lib/pine.conf.fixed
httpd.conf (https.conf)
Apache web ser ver configuration file. ( www.apache.org)

smb.conf
Samba (window ser ver) configuration file. ( www.samba.org)

Miscellaneous Commands

SUN patch files and freeware


http://sunsolve.sun.com
http://sunfreeware.com

Forget root password


boot –s cdrom find out root partition with “format” command mount
/dev/dsk/c0t0d0s0 /mnt (suppose c0t0d0s0 is root part.) edit /mnt/etc/shadow

Disable auto-logout feature for tcsh Put following line in .cshrc or .tcshrc unset
autologout

edit /etc/inittab
remove sc:234:respawn:/usr/lib/saf/sac –t 300
disable serial device (modem) login.

showmount –e host_name show export file systems on host_name.

rpcinfo –p host_name check RPC ser vices on host_name.

ldd program show what dynamic libraries needed by program. LD_LIBRARY_PATH is


the search path for dynamic libraries.

useradd –d homedir –u UID –g GID –c “comment” –s shell add new user account.

man foo | col –b > foo.txt save manual page for command “foo” in pure text.

97
pkgadd –d pkgfile add solaris package file.

boot –r
Reconfiguration system after adding new hardware.

who –r
show current run level.

volcheck –v
check if new floppy/cdrom is inserted.

fuser –u [-k] /cdrom Show which program is using the cdrom (or floppy).

/usr/sbin/eeprom
show settings in eeprom.

/usr/sbin/prtconf –vb
show system information.

find / -type f –perm -4000 –user root –print


find set UID to root program.
m64config –res 1024x768x75 –depth 24
set screen resolution, color depth for M64 frame buffer.
(ffbconfig on Ultra -60)

fsck –F ufs –y /dev/rdsk/c0t0d0s0


file system check, answer “y ” to all questions.

xv –root –quit foo.gif


set CDE screen background.

/etc/init.d/script {start | stop} run a script in /etc/init.d director y.

newfs –v /dev/rdsk/c0t0d0s6
construct new file system after format.

/usr/sbin/sys-unconfig
Dtlogin*session_menus*sensitive:
/{usr | etc}/dt/config/C/sys.resources
False
session resource, for example, to disable automatic screen lock, set timout to 0
dtsession*lockTimeout: 0

$HOME/.dt/sessions/{current | home}
current (home) session files.

/{usr | etc}/dt/config/Xconfig
configuration file for login screen (dtconfig), after change use
dtconfig –reset

/usr/dt/config/Xstartup
this script run after user login but before user session.

/usr/dt/config/Xaccess
Control access to Xser ver.

98
/usr/dt/bin/Xsession
start CDE session

/usr/dt/config/Xsession.d/*
Scripts auto executed by Xsession.

usr/dt/config/Xsession.ow
start OpenWindow session.
/usr/dt/config/Xreset
Command executed after the session end.

/usr/dt/bin/dtconfig –e|-d|-kill
-e|-d: enable (disable) autostart login ser ver.
-kill: kill dtlogin and all its child process.

$HOME/.dt/icons $/{usr|etc}/dt/appconfig/icons/C
default icons search path.

System Configuration

/etc/passwd, /etc/shadow, /etc/group


user account information.

/etc/ftpusers
users NOT allowed to use FTP.

/etc/system
Kernel parameters Example: disable execution in stack set noexec_user_stack= 1 set
noexec_user_stack_log=1 set maxuprc = 128 # maximum no. of user process set
sys:coredumpsize = 0 # prevent core dump

/etc/hosts.equiv, ($HOME/.rhosts)
system wide (per user) trust hosts.

/etc/motd, (/etc/issue)
message after (before) login.

/etc/shells
allowed shell program.

/etc/initab
run level configuration.

/etc/rc{S, | 1 | 2 | 3 | 5 | 6}.d
scripts for different run levels.

/etc/bootparams
system wide PINE configuration, NOT over write by ~/.pinerc
reconfiguring the system.
rpc.bootparamd configuration file.

patchadd [options] patch apply patch to system.

ufsdump 0uf /dev/rmt/0 / backup of all files.

ufsrestore xf /dev/rmt/0 etc/inetd.conf restore inetd.conf file from backup

99
install_cluster –q -nosave
ndd
install recommended patch cluster.
set TCP/IP parameters

eeprom
change settings in eeprom, like eeprom security-mode=full

Shell Programming

if-then-else
sh, bash, ksh if condition; then action_1; else action_2; fi
csh, tcsh if (condition) then
action_1; else
action_2; endif

foreach
sh, bash, ksh for key in list... ; do actions; done
csh, tcsh foreach key (list) actions end
Rename files foreach i (*)
mv $i $i.old end

do-while
sh, bash, ksh while condition; do actions; done
csh, tcsh while (condition) actions end

http://www.cheat-sheets.org/saved-copy/Solaris_quickref.pdf

100
101
102
103
104
Section 5
Sources of Information

105
This page is left intentionally blank

106
Section 5 – Sources of Information

Most of the hands-on sessions in this course are based on material that is
freely available for download from the Oracle Corporation website.

Agilitas is not able to distribute this material, but we strong ly suggest that
you download the material yourself from the links below:

For the X4xxx series in general:

http://www.oracle.com/technetwork/documentation/oracle-x86-
servers-190077.html#legacyoraclex86

For the Sparc-based servers in general:

http://www.oracle.com/technetwork/documentation/oracle-sparc-
ent-servers-189996.html#legacyentry

and specifically:

http://download.oracle.com/docs/cds/E19095-01.tar.gz

For the M-series in general:

http://www.oracle.com/technetwork/documentation/sparc-mseries-
servers-252709.html

specifically for the M3000:

http://download.oracle.com/docs/cds/E19867-01.zip

and specifically for the M4000:

http://download.oracle.com/docs/cds/E19855-01.zip

For the T-series in general:

http://www.oracle.com/technetwork/documentation/sparc-tseries-
servers-252697.html

107
108
109
110
111
112
113
114
Section 6
Appendices

115
This page is left intentionally blank

116
Section 6 – Appendices

ALOM Lab

ALOM lab

What command lists all the commands available?

How would you check for faults on a system?

Is the BUI supported on ALOM?

How can you display the ip-address of the SC

What command set up the network port on the SC

How do you go to the OBP

If in Solaris or OBP how do you get back to the SC

What command is used to reset the SC

What command will show you all the components in the system

ILOM lab

How do you determine if the server is powered on

Is the BUI supported on ILOM

How can you display the ip address of the SP

What commands change the ip-address of the SP

On some systems there is a back door into ALOM. How can you do this?

If in Solaris or OBP how do you get to the ILOM

What command is used to reset the SP

What command will show you all the components in the system

117
ALOM Lab – Q & A

ALOM lab

What command lists all the commands available?

sc>help

How would you check for faults on a system?

sc>showfaults

Is the BUI supported on ALOM?

no

How can you display the ip-address of the SC

sc>shownetwork

What command set up the network port on the SC

sc>setupnetwork

sc>setupsc

How do you go to the OBP

sc>poweron

sc>console

If in Solaris or OBP how do you get back to the SC

#.

What command is used to reset the SC

sc>resetsc

What command will show you all the components in the system

sc>showcomponent

118
ILOM lab

How do you determine if the server is powered on

->show /SYS

Is the BUI supported on ILOM

yes

How can you display the ip address of the SP

->show /SP/network

What commands change the ip-address of the SP

->cd /SP/network

->set pendingipaddress=192.168.2.10

->set commitpending=true

On some systems there is a back door into ALOM. How can you do this?

->create /SP/users/admin password=changeme

->set /SP/users/admin role=administrator cli_mode=alom

If in Solaris or OBP how do you get to the ILOM

Esc (

What command is used to reset the SP

-> reset /SP

What command will show you all the components in the system

-> show /SYS

Wow would you console to the system

 start /SP/console

119
Disk Format Mount

bash-3.2# format
Searching for disks...done

AVAILABLE DISK SELECTIONS:


0. c0t0d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
/pci@0,600000/pci@0/pci@8/pci@0/scsi@1/sd@0,0
1. c0t1d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
/pci@0,600000/pci@0/pci@8/pci@0/scsi@1/sd@1,0
Specify disk (enter its number): 0
selecting c0t0d0
[disk formatted]

FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> parti

PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' partition
select - select a predefined table
modify - modify a predefined partition table

120
name - name the current table
print - display the current table
label - write partition map and label to the disk
!<cmd> - execute <cmd>, then return
quit
partition> pr
Current partition table (original):
Total disk cylinders available: 14087 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks


0 root wm 0 - 12 129.19MB (13/0/0) 264576
1 swap wu 13 - 25 129.19MB (13/0/0) 264576
2 backup wu 0 - 14086 136.71GB (14087/0/0) 286698624
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 usr wm 26 - 14086 136.46GB (14061/0/0) 286169472
7 unassigned wm 0 0 (0/0/0) 0

partition> 0
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 12 129.19MB (13/0/0) 264576

Enter partition id tag[root]:


Enter partition permission flags[wm]:
Enter new starting cyl[0]:
Enter partition size[264576b, 13c, 12e, 129.19mb, 0.13gb]: 50gb
partition> pr
Current partition table (unnamed):
Total disk cylinders available: 14087 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks


0 root wm 0 - 5152 50.01GB (5153/0/0) 104873856
1 swap wu 13 - 25 129.19MB (13/0/0) 264576
2 backup wu 0 - 14086 136.71GB (14087/0/0) 286698624
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 usr wm 26 - 14086 136.46GB (14061/0/0) 286169472
7 unassigned wm 0 0 (0/0/0) 0

partition> 1
Part Tag Flag Cylinders Size Blocks
1 swap wu 13 - 25 129.19MB (13/0/0) 264576

Enter partition id tag[swap]:


Enter partition permission flags[wu]:
Enter new starting cyl[13]: 5153
Enter partition size[264576b, 13c, 5165e, 129.19mb, 0.13gb]: 2gb

121
partition> pr
Current partition table (unnamed):
Total disk cylinders available: 14087 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks


0 root wm 0 - 5152 50.01GB (5153/0/0) 104873856
1 swap wu 5153 - 5359 2.01GB (207/0/0) 4212864
2 backup wu 0 - 14086 136.71GB (14087/0/0) 286698624
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 usr wm 26 - 14086 136.46GB (14061/0/0) 286169472
7 unassigned wm 0 0 (0/0/0) 0

partition> 6
Part Tag Flag Cylinders Size Blocks
6 usr wm 26 - 14086 136.46GB (14061/0/0) 286169472

Enter partition id tag[usr]:


Enter partition permission flags[wm]:
Enter new starting cyl[26]: 5360
Enter partition size[177611904b, 8727c, 14086e, 86724.56mb, 84.69gb]: 14086
Please specify units in either b(blocks), c(cylinders), e(end cylinder),
m(megabytes) or g(gigabytes)
Enter partition size[177611904b, 8727c, 14086e, 86724.56mb, 84.69gb]: e
End cylinder must fall on or after start cylinder 5360
Enter partition size[177611904b, 8727c, 14086e, 86724.56mb, 84.69gb]:
14086c
`14086c' is out of range
Enter partition size[177611904b, 8727c, 14086e, 86724.56mb, 84.69gb]:
partition> 6
Part Tag Flag Cylinders Size Blocks
6 usr wm 5360 - 14086 84.69GB (8727/0/0) 177611904

Enter partition id tag[usr]:


Enter partition permission flags[wm]:
Enter new starting cyl[5360]:
Enter partition size[177611904b, 8727c, 14086e, 86724.56mb, 84.69gb]: 9726c
`9726c' is out of range
Enter partition size[177611904b, 8727c, 14086e, 86724.56mb, 84.69gb]: 8727c
partition> par
`par' is not expected.
partition> pr
Current partition table (unnamed):
Total disk cylinders available: 14087 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks


0 root wm 0 - 5152 50.01GB (5153/0/0) 104873856
1 swap wu 5153 - 5359 2.01GB (207/0/0) 4212864

122
2 backup wu 0 - 14086 136.71GB (14087/0/0) 286698624
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 usr wm 5360 - 14086 84.69GB (8727/0/0) 177611904
7 unassigned wm 0 0 (0/0/0) 0

partition>
partition> help
Expecting one of the following: (abbreviations ok):
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!<cmd> - execute <cmd>, then return
quit

partition> labl
`labl' is not expected.
partition> label
Ready to label disk, continue? y

partition> quit

FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name

123
!<cmd> - execute <cmd>, then return
quit
format> quit
bash-3.2# cd /
bash-3.2# ls
bin etc lib opt system vol
boot export lost+found platform tmp
dev home mnt proc usr
devices kernel net sbin var
bash-3.2# mkdir /scc
bash-3.2# format
Searching for disks...done

AVAILABLE DISK SELECTIONS:


0. c0t0d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
/pci@0,600000/pci@0/pci@8/pci@0/scsi@1/sd@0,0
1. c0t1d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
/pci@0,600000/pci@0/pci@8/pci@0/scsi@1/sd@1,0
Specify disk (enter its number): 0
selecting c0t0d0
[disk formatted]
q

FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> q
`qq' is not expected.
format> qui
bash-3.2# mount /dev/dsk/c0t0d0s0 /scc
Dec 8 13:31:22 scc-server ufs: NOTICE: mount: not a UFS magic number
(0xaaaaaaaa)
mount: /dev/dsk/c0t0d0s0 is not this fstype
bash-3.2# newfs /dev/rdsk/c0t0d0s0

124
Construct a new file system
newfs /dev/rdsk/c0t0d0s0: (y/n)? y
Warning: 4224 sector(s) in last cylinder unallocated
/dev/rdsk/c0t0d0s0: 104873856 sectors in 17070 cylinders of 48 tracks, 128
sectors
51207.9MB in 1067 cyl groups (16 c/g, 48.00MB/g, 5824 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 98464, 196896, 295328, 393760, 492192, 590624, 689056, 787488,
885920,
Initializing cylinder groups:
.....................
super-block backups for last 10 cylinder groups at:
103911584, 104010016, 104108448, 104206880, 104305312, 104403744,
104502176,
104600608, 104699040, 104797472
bash-3.2# mount /dev/dsk/c0t0d0s0 /scc
bash-3.2# df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t1d0s0 7265237 4764188 2428397 67% /
/devices 0 0 0 0% /devices
ctfs 0 0 0 0% /system/contract
proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
swap 14109336 648 14108688 1% /etc/svc/volatile
objfs 0 0 0 0% /system/object
sharefs 0 0 0 0% /etc/dfs/sharetab
fd 0 0 0 0% /dev/fd
swap 14108720 32 14108688 1% /tmp
swap 14108768 80 14108688 1% /var/run
/dev/dsk/c0t1d0s7 133392036 132289 131925827 1% /export/home
/dev/dsk/c0t0d0s0 51643047 51225 51075392 1% /scc
bash-3.2# cd /etc
bash-3.2# ls
acct install rc5
aggregation.conf ioctl.syscon rc6
aliases ipf rcm
apache iscsi rcS
apache2 iu.ap rcS.d
apoc killall reboot
auto_home krb5 release
auto_master labelit remote
autopush lib rmmount.conf
autoreg link rmt
bonobo-activation llc2 rndc.key
brand log rpc
cacao logadm.conf rpcsec
certs logindevperm rpld.conf
cfgadm lp saf
chroot lu samba

125
clri lvm sasl
coreadm.conf magic scrollkeeper.conf
cron mail sdp.conf
cron.d mailcap security
crypto mime.types services
dacf.conf minor_perm setmnt
dat mkfs sfw
datemsk mknod sgml
dcopy mnttab shadow
default motd shutdown
defaultdomain mount skel
dev mountall sma
device.tab mpapi.conf smartcard
devices mvdir smc
devlink.tab name_to_major snmp
dfs name_to_sysnum sock2path
dgroup.tab nca sound
dhcp ncheck sparcv9
dmi net ssh
driver_aliases netconfig sulogin
driver_classes netmasks sunvts
dumpadm.conf networks svc
dumpdates nfs swap
esd.conf nfssec.conf swapadd
ff nodename sysdef
flash nscd.conf sysevent
fm nsswitch.conf syslog.conf
fmthard nsswitch.dns syslog.pid
fonts nsswitch.files system
format nsswitch.ldap tar
format.dat nsswitch.nis telinit
fs nsswitch.nisplus termcap
fsck opt TIMEZONE
fsdb orbitrc tm
fstyp pam.conf ttydefs
ftpd pam.conf-winbind ttysrch
fuser pango uadmin
gconf passwd umount
getty patch umountall
gimp path_to_inst unlink
gnome-vfs-2.0 pgsql usb
gnome-vfs-mime-magic power.conf user_attr
gnopernicus-1.0 ppp utmppipe
group printers.conf utmpx
grpck product-info uucp
gss profile vfstab
gtk project volcopy
gtk-2.0 protocols vold.conf
halt prtconf wall

126
hba.conf prtvtoc webconsole
hostname.bge0 publickey webmin
hosts pwck wgetrc
iiim quagga whodo
ima.conf rc0 wtmpx
imq rc0.d X11
inet rc1 xml
inetd.conf rc1.d xpdfrc
init rc2 zfs
init.d rc2.d zones
initpipe rc3
inittab rc3.d
bash-3.2# more vfstab
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/dsk/c0t1d0s1 - - swap - no -
/dev/dsk/c0t1d0s0 /dev/rdsk/c0t1d0s0 / ufs 1 no -
/dev/dsk/c0t1d0s7 /dev/rdsk/c0t1d0s7 /export/home ufs 2 yes
-
/devices - /devices devfs - no -
"vfstab" 13 lines, 467 characters sharefs - no -
ctfs - /system/contract ctfs - no -
objfs - /system/object objfs - no -
swap - /tmp tmpfs - yes -
bash-3.2# cp vfstab vfsta.old
bash-3.2# TERM=vt100
bash-3.2# export TERM
bash-3.2# echo $TERM
vt100
bash-3.2# vi vfstab

#device device mount FS fsck mount mount


#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/dsk/c0t1d0s1 - - swap - no -
/dev/dsk/c0t1d0s0 /dev/rdsk/c0t1d0s0 / ufs 1 no
-
/dev/dsk/c0t1d0s7 /dev/rdsk/c0t1d0s7 /export/home ufs 2
yes -
/dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 /scc ufs 2 yes
-
/devices - /devices devfs - no -
sharefs - /etc/dfs/sharetab sharefs - no -
ctfs - /system/contract ctfs - no -

127
objfs - /system/object objfs - no -
swap - /tmp tmpfs - yes -
~
~
~
~
~
~
"vfstab" 14 lines, 521 characters
bash-3.2# more vfstab
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/dsk/c0t1d0s1 - - swap - no -
/dev/dsk/c0t1d0s0 /dev/rdsk/c0t1d0s0 / ufs 1 no
-
/dev/dsk/c0t1d0s7 /dev/rdsk/c0t1d0s7 /export/home ufs 2
yes -
/dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 /scc ufs 2 yes
-
/devices - /devices devfs - no -
sharefs - /etc/dfs/sharetab sharefs - no -
ctfs - /system/contract ctfs - no -
objfs - /system/object objfs - no -
swap - /tmp tmpfs - yes -
bash-3.2#

128
Disk Lab

Disk LAB

Use the format utility to partition disk drive

Put a file system on the partition

Create a mount point

Mount the partition

Vi /etc/vfstab so the partition automatically mounts on boot.

Remember to set the TERM type before using vi

129
OBP Lab

OBP Lab

What command would you use to tell where you are in the device path?

What command do you use to change to the / directory?

What command list the directory’s below?

What command would you use to find the value of the diag-switch?

How can you change this?

What commands should you always use before doing any OBP tests ?

What command list all the commands available ?

What is the OBP equivalent to grep ?

How can you test the systems connection to a network switch ?

How can you tell if you have any scsi devices installed in the system?

How can you find the MAC address of a network card?

What would determine which MAC address would be used?

Ie Idprom or network card.

How would you find the MAC address of a network card?

What command do you use to go back the the SC?

How would you create a boot alias?

List all the device aliases on the system.

Use all the steps to create an alias to disk 0 and then set this as the boot-device

130
OBP Lab – Q & A

OBP Lab

What command would you use to tell where you are in the device path?

{2} ok pwd
Not at a device tree node. Use 'dev <device-pathname>'.

What command do you use to change to the / directory?

{2} ok cd /
{2} ok pwd
/

What command list the directory’s below?

{2} ok ls
f00973f4 pci@9,600000
f008ed24 pci@9,700000
f00879c0 pci@8,600000
f007eda4 pci@8,700000
f007ec68 memory-controller@2,400000
f007e3d4 cmp@2,0
f007e298 memory-controller@0,400000
f007d5e4 cmp@0,0
f00456b4 virtual-memory
f00450a8 memory@m0,a2
f002d4a0 aliases
f002d428 options
f002d2e0 openprom
f002d26c chosen
f002d1f4 packages
{2} ok

The output above shows that the system has 2 CPUs cmp@2,0 and cmp@0,0

2 PCI controllers pci@9 and pci@8

each PCI controller has 2 busses ,600000 66MHZ and ,700000 33MHZ

What command would you use to find the value of the diag-switch?

{2} ok printenv
Variable Name Value Default Value

131
test-args
diag-passes 1 1
local-mac-address? false false
scsi-initiator-id 7 7
oem-logo No default
oem-logo? false false
oem-banner No default
oem-banner? false false
ansi-terminal? true true
screen-#columns 80 80
screen-#rows 34 34
ttya-rts-dtr-off false false
ttya-ignore-cd true true
ttya-mode 9600,8,n,1,- 9600,8,n,1,-
output-device screen ttya
input-device keyboard ttya
auto-boot-on-error? true true
load-base 16384 16384
auto-boot? false true
network-boot-arguments
boot-command boot boot
diag-file
diag-device disk net
boot-file
boot-device /pci@9,600000/SUNW,qlc@2 ... disk net
use-nvramrc? false false
nvramrc
security-mode none No default
security-password No default
security-#badlogins 0 No default
verbosity normal normal
fcode-debug? false false
diag-out-console false false
diag-trigger error-reset power-on-res ... error-reset power-on-res ...
service-mode? false false
diag-script normal normal
diag-level min max
diag-switch? false false
error-reset-recovery sync sync
{2} ok

How can you change this?

{2} ok setenv diag-switch? true


diag-switch? = true
{2} ok

132
WARNING
If you leave the diag-switch? Set to true the sytem will try and boot from the
diag-device instead of the boot-device.

What commands should you always use before doing any OBP tests ?

{2} ok setenv auto-boot? false


auto-boot? = false
{2} ok reset-all
Resetting ...

<*>

Software Reset

@(#)OBP 4.22.24 2006/12/08 10:07 Sun Fire 4XX


System is initializing with diag-switch? overrides.
Online: CMP0 UltraSPARC IV (v3.1) 9:1 1350MHz 8MB 5:1 ECache
Online: *CMP2 UltraSPARC IV (v3.1) 9:1 1350MHz 8MB 5:1 ECache
Skipping POST.
Enabling system bus....... CMP0 CMP2 Done
Initializing CPUs.........
Init ICache/etc........... CMP0 CMP2 Done
Init ECache Tags.......... CMP0 CMP2 Done
Clearing TLBs............. CMP0 CMP2 Done
Setup I/DTLBs............. CMP0 CMP2 Done
Enabling Cache/MMUs....... CMP0 CMP2 Done
Init ECache Data.......... CMP0 CMP2 Done
Initializing boot memory..
Zeroing memory...Done
Copying FLASHRAM to memory...Verifying base 128KB...Done
Jumping into RAM (leaving slave CPUs in ROM)
RAM CRC = 0000.0000.6dab.c7e2; ROM CRC = 0000.0000.6dab.c7e2
Dropping in...
Find dropin, Decompressing Done, Size 0000.0000.0007.ed20 (508KB)
Slave CPUs starting Forth at 0000.0000.f000.00e0 Done

Boot CPU2 starting Forth at 0000.0000.f000.00e0


Diagnostic console initialized
Configure root name: SUNW,Sun-Fire-V490
SUNW,Sun-Fire-V490 Probing system devices
(1350 MHz @ 9:1, 1 MB) /: gptwo at 0,0 cmp cpu cpu memory-controller
/: gptwo at 1,0 Nothing there
(1350 MHz @ 9:1, 1 MB) /: gptwo at 2,0 cmp cpu cpu memory-controller
/: gptwo at 3,0 Nothing there
/: gptwo at 4,0 Nothing there

133
/: gptwo at 5,0 Nothing there
/: gptwo at 6,0 Nothing there
/: gptwo at 7,0 Nothing there
/: gptwo at 8,0 pci pci
/: gptwo at 9,0 pci pci
Loading Support Packages: obp-tftp kbd-translator SUNW,i2c-ram-device
SUNW,fru-device
Loading onboard drivers: ebus
/pci@9,700000/ebus@1: flashprom bbc power i2c i2c rtc gpio pmc rsc-control
rsc-console serial
/pci@9,700000/ebus@1/i2c@1,2e: fru fru fru fru fru fru fru fru fru fru fru fru
fru fru fru fru fru nvram idprom fru fru
/pci@9,700000/ebus@1/i2c@1,30: temperature temperature ioexp ioexp ioexp
ioexp ioexp ioexp ioexp temperature-sensor fru fru fru fru
Memory Configuration:
/memory: CMP0 Bank0 512 + 512 + 512 + 512 : Not in Use [Failed POST
diagnostics]
/memory: CMP0 Bank1 512 + 512 + 512 + 512 : 2 GB @ a000000000 4-way
#0
/memory: CMP0 Bank2 512 + 512 + 512 + 512 : Not in Use [Failed POST
diagnostics]
/memory: CMP0 Bank3 512 + 512 + 512 + 512 : 2 GB @ a000000000 4-way
#2
/memory: CMP2 Bank0 1024 + 512 + 512 + 1024 : 2 GB @ a200000000 2-
way #0
/memory: CMP2 Bank1 512 + 512 + 512 + 512 : 2 GB @ a000000000 4-way
#1
/memory: CMP2 Bank2 1024 + 512 + 512 + 1024 : 2 GB @ a200000000 2-
way #1
/memory: CMP2 Bank3 512 + 512 + 512 + 512 : 2 GB @ a000000000 4-way
#3
Probing I/O buses
/pci@8,600000: Device 1 Nothing there
/pci@8,600000: Device 2 Nothing there
/pci@8,700000: Device 2 Nothing there
/pci@8,700000: Device 3 Nothing there
/pci@8,700000: Device 4 Nothing there
/pci@8,700000: Device 5 Nothing there
/pci@8,700000: Device 6 ide disk cdrom
/pci@9,600000: Device 1 network
/pci@9,600000: Device 2 SUNW,qlc fp disk
/pci@9,700000: Device 1 usb
/pci@9,700000: Device 2 network
screen not found.
keyboard not found.
Keyboard not present. Using ttya for input and output.
Configure root name: SUNW,Sun-Fire-V490
SUNW,Sun-Fire-V490 Probing system devices
(1350 MHz @ 9:1, 1 MB) /: gptwo at 0,0 cmp cpu cpu memory-controller

134
/: gptwo at 1,0 Nothing there
(1350 MHz @ 9:1, 1 MB) /: gptwo at 2,0 cmp cpu cpu memory-controller
/: gptwo at 3,0 Nothing there
/: gptwo at 4,0 Nothing there
/: gptwo at 5,0 Nothing there
/: gptwo at 6,0 Nothing there
/: gptwo at 7,0 Nothing there
/: gptwo at 8,0 pci pci
/: gptwo at 9,0 pci pci
Loading Support Packages: obp-tftp kbd-translator SUNW,i2c-ram-device
SUNW,fru-device
Loading onboard drivers: ebus
/pci@9,700000/ebus@1: flashprom bbc power i2c i2c rtc gpio pmc rsc-control
rsc-console serial
/pci@9,700000/ebus@1/i2c@1,2e: fru fru fru fru fru fru fru fru fru fru fru fru
fru fru fru fru fru nvram idprom fru fru
/pci@9,700000/ebus@1/i2c@1,30: temperature temperature ioexp ioexp ioexp
ioexp ioexp ioexp ioexp temperature-sensor fru fru fru fru
Memory Configuration:
/memory: CMP0 Bank0 512 + 512 + 512 + 512 : Not in Use [Failed POST
diagnostics]
/memory: CMP0 Bank1 512 + 512 + 512 + 512 : 2 GB @ a000000000 4-way
#0
/memory: CMP0 Bank2 512 + 512 + 512 + 512 : Not in Use [Failed POST
diagnostics]
/memory: CMP0 Bank3 512 + 512 + 512 + 512 : 2 GB @ a000000000 4-way
#2
/memory: CMP2 Bank0 1024 + 512 + 512 + 1024 : 2 GB @ a200000000 2-
way #0
/memory: CMP2 Bank1 512 + 512 + 512 + 512 : 2 GB @ a000000000 4-way
#1
/memory: CMP2 Bank2 1024 + 512 + 512 + 1024 : 2 GB @ a200000000 2-
way #1
/memory: CMP2 Bank3 512 + 512 + 512 + 512 : 2 GB @ a000000000 4-way
#3
Probing I/O buses
/pci@8,600000: Device 1 Nothing there
/pci@8,600000: Device 2 Nothing there
/pci@8,700000: Device 2 Nothing there
/pci@8,700000: Device 3 Nothing there
/pci@8,700000: Device 4 Nothing there
/pci@8,700000: Device 5 Nothing there
/pci@8,700000: Device 6 ide disk cdrom
/pci@9,600000: Device 1 network
/pci@9,600000: Device 2 SUNW,qlc fp disk
/pci@9,700000: Device 1 usb
/pci@9,700000: Device 2 network

135
Sun Fire V490, No Keyboard
Copyright 2006 Sun Microsystems, Inc. All rights reserved.
OpenBoot 4.22.24, 12288 MB memory installed, Serial #64740587.
Ethernet address 0:3:ba:db:dc:eb, Host ID: 83dbdceb.

Creating CMP memory layout properties.

Reading temperature limits from FRUPROMs: CMP0/2 BACKPLANE

Environmental monitor is ON
ERROR: Power On Self Test Failed. Cause:
CPU0 Bank 0 Dimm 0, J2900 side 1
ERROR: POST failed.

{2} ok

The above example shows a memory error.

Depending on the architecture you use either show-post-results or .post to see


the results of Power On Self Test POST

{2} ok show-post-results
System POST Results
Component: Results

CMP0: Passed
Memory Bank0: Failed
DIMM0: Failed
DIMM1: Passed
DIMM2: Passed
DIMM3: Passed
Memory Bank1: Passed
Memory Bank2: Failed
DIMM0: Failed
DIMM1: Passed
DIMM2: Passed
DIMM3: Passed
Memory Bank3: Passed
CMP1/Memory: Passed
CMP2/Memory: Passed
CMP3/Memory: Passed
IO-Bridge8: Passed
IO-Bridge9: Passed
GPTwo Slots: Passed
Onboard FCAL: Passed
Onboard Net1: Passed

136
Onboard Net0: Passed
Onboard IDE: Passed
PCI Slots: Passed
BBC0: Passed
RIO: Passed
USB: Passed
RSC: Passed
POST Message: CPU0 Bank 0 Dimm 0, J2900 side 1
{2} ok

What command list all the commands available ?

{2} ok words
prom-checksum flash-update init-flash unknown-flash
write-protected unknown-flash$
write-protected$ str, bail round-up
flashc@ flashc! .status spinner$ spinner
activity flash-program flash-erase watch-clock date
power-off external headerless headers init
unix-init-io unix-init stand-init-io stand-init
execute-buffer xir-check2 reset-all env-off
env-on .env /pdb-sc-struct
pdb-sc>crc32 pdb-sc>c32tag pdb-sc>maxpwrdist
pdb-sc>it-maxp pdb-sc>maxpower
pdb-sc>it-minp pdb-sc>minpower
pdb-sc>it-vrail pdb-sc>vrail pdb-sc>it-ambtemps
pdb-sc>ambtemps pdb-sc>frutype
pdb-sc>version pdb-sc>sctag /ps-sc-struct
ps-sc>crc32 ps-sc>c32tag ps-sc>maxpwrdist
ps-sc>reserved ps-sc>frutype ps-sc>version
ps-sc>tag /io-sc-struct io-sc>crc32 io-sc>c32tag
io-sc>maxpower io-sc>it-maxp io-sc>minpower
io-sc>it-minp io-sc>ambtemps io-sc>frutype
io-sc>version io-sc>sctag io-sc-mintempsversion
/mb-sc-struct mb-sc>crc32 mb-sc>c32tag mb-sc>reserved
mb-sc>jcttemps
More [<space>,<cr>,q,n,p,c] ?

What is the OBP equivalent to grep ?

sifting

{2} ok sifting show


In vocabulary forth
(f0072c44) show-obdiag-results
(f00724f4) show-post-results
(f0070734) show-status (f006722c) showing-cursor?
(f00466a8) show-tty-msgs (f00314fc) no-show-extra

137
(f00314dc) show-extra-env-var
(f00314b8) show-extra-env-vars
(f002ec5c) show-displays (f002ec2c) show-tapes
(f002ebfc) show-nets (f002ebc8) show-hier
(f002eb9c) show-ttys (f002eb70) show-disks
(f002bb60) show-fru-location
(f002b904) show-props (f002b880) show-devs
(f002b83c) $show-devs (f0017214) noshowstack
(f00171e8) showstack (f000ee3c) show-error
{2} ok

How can you test the systems connection to a network switch ?

Watch-net-all

{2} ok watch-net-all
/pci@9,600000/network@1
/pci@9,600000/network@1: Timed out waiting for Auto-Negotation to
complete
/pci@9,600000/network@1: Cannot establish link via Auto-Negotation
Please check cable and/or connection
/pci@9,600000/network@1: link down
/pci@9,700000/network@2
/pci@9,700000/network@2: 1000 Mbps full duplex link up
Watch ethernet packets
'.' is a good packet and 'X' is a bad packet
Press any key to stop
...................................
{2} ok

In the above example /pci@9,600000/network@1 is not connect to the network

/pci@9,700000/network@2 is connect to the network and can see good


network packets

How can you tell if you have any scsi devices installed in the system?

{2} ok probe-scsi-all
/pci@9,600000/SUNW,qlc@2
LiD HA LUN --- Port WWN --- ----- Disk description -----
0 0 0 21000018621821ed SEAGATE ST314670FSUN146G055A

The above is not the best example as it is from a V490 and shows an fcal drive.

On other architectures you would need to use the probe-fcal-all command.


How can you find the MAC address of a network card?

138
{2} ok show-nets
a) /pci@9,600000/network@1
b) /pci@9,700000/network@2
q) NO SELECTION
Enter Selection, q to quit: b
/pci@9,700000/network@2 has been selected.
Type ^Y ( Control-Y ) to insert it in the command line.
e.g. ok nvalias mydev ^Y
for creating devalias mydev for /pci@9,700000/network@2
{2} ok cd /pci@9,700000/network@2
{2} ok .properties
assigned-addresses 82001010 00000000 00200000 00000000 00200000
82001030 00000000 02000000 00000000 00100000
pci-req-removal
compatible pci108e,abba.20
pci108e,abba
pciclass,020000
pciclass,0200
reg 00001000 00000000 00000000 00000000 00000000
02001010 00000000 00000000 00000000 00200000
version Gigaswift FCode 2.11 03/09/10
address-bits 00000030
max-frame-size 00004000
phy-type mif
model SUNW,pci-ce
device_type network
name network
local-mac-address 00 03 ba db dc ec
66mhz-capable
fast-back-to-back
devsel-speed 00000002
latency-timer 00000040
cache-line-size 00000010
More [<space>,<cr>,q,n,p,c] ?

What would determine which MAC address would be used?

Ie Idprom or network card.

{2} ok printenv local-mac-address?


local-mac-address? = false
{2} ok
If set to false the system would use the Idprom

{2} ok banner

Sun Fire V490, No Keyboard


Copyright 2006 Sun Microsystems, Inc. All rights reserved.
OpenBoot 4.22.24, 12288 MB memory installed, Serial #64740587.

139
Ethernet address 0:3:ba:db:dc:eb, Host ID: 83dbdceb.

What command do you use to go back the SC?

#.

How would you create a boot alias?

{2} ok
{2} ok show-disks
a) /pci@9,600000/SUNW,qlc@2/fp@0,0/disk
b) /pci@8,700000/ide@6/cdrom
c) /pci@8,700000/ide@6/disk
q) NO SELECTION
Enter Selection, q to quit:

{2} ok setenv boot-device


Usage: setenv option-name value

Use all the steps to create an alias to disk 0 and then set this as the boot-device

{2} ok show-disks
a) /pci@9,600000/SUNW,qlc@2/fp@0,0/disk
b) /pci@8,700000/ide@6/cdrom
c) /pci@8,700000/ide@6/disk
q) NO SELECTION
Enter Selection, q to quit: a
/pci@9,600000/SUNW,qlc@2/fp@0,0/disk has been selected.
Type ^Y ( Control-Y ) to insert it in the command line.
e.g. ok nvalias mydev ^Y
for creating devalias mydev for /pci@9,600000/SUNW,qlc@2/fp@0,0/disk
{2} ok nvalias ian /pci@9,600000/SUNW,qlc@2/fp@0,0/disk@0,0
{2} ok
{2} ok setenv boot-device ian
boot-device = ian
{2} ok

List all the device aliases on the system.

{2} ok devalias
ian /pci@9,600000/SUNW,qlc@2/fp@0,0/disk@0,0
disk1 /pci@9,600000/SUNW,qlc@2/fp@0,0/disk@1,0
disk0 /pci@9,600000/SUNW,qlc@2/fp@0,0/disk@0,0
disk /pci@9,600000/SUNW,qlc@2/fp@0,0/disk@0,0
ide /pci@8,700000/ide@6
scsi /pci@9,600000/SUNW,qlc@2

140
cdrom /pci@8,700000/ide@6/cdrom@0,0:f
net /pci@9,700000/network@2
net1 /pci@9,600000/network@1
net0 /pci@9,700000/network@2
flash /pci@9,700000/ebus@1/flashprom@0,0
idprom /pci@9,700000/ebus@1/i2c@1,2e/idprom@4,a4
nvram /pci@9,700000/ebus@1/i2c@1,2e/nvram@4,a4
i2c1 /pci@9,700000/ebus@1/i2c@1,30
i2c0 /pci@9,700000/ebus@1/i2c@1,2e
bbc /pci@9,700000/ebus@1/bbc@1,0
rsc-console /pci@9,700000/ebus@1/rsc-console@1,3083f8
rsc-control /pci@9,700000/ebus@1/rsc-control@1,3062f8
ttya /pci@9,700000/ebus@1/serial@1,400000:a
pci9b /pci@9,700000
pci9a /pci@9,600000
pci8b /pci@8,700000
pci8a /pci@8,600000
ebus /pci@9,700000/ebus@1
name aliases
{2} ok

141
The Sunfire X500 Server Range

CPU-Memory boards

501-2976 83MHz 2MB cache per module 501-4312 83MHz 4MB cache
per module

501-4882 100MHz 4MB cache per module

Two UPA ports - UltraSPARC II sockets

16 dimm slots – 2 banks of 8

All processors in the system must be the same speed.

Both processors on each system board must have the same size cache.

Different size cache on different system boards is supported.

To get the best memory performance install 1 bank in each system board first.

The processors access the memory via the centerplane, even memory
interleaving is switched off the data path is CPU – Data Controllers – Centerplane
– Data Controllers – Memory Bank.

1 bank installed on the board the memory can be read at 500MB per second.

2 banks installed the memory can be read at 600MB per second.

The memory is interleaved across the centerplane.

For best memory performance the all memory banks should be the same size.

Install bank 0 in all boards first for best performance.

Cpu-Memory 0 bank 0 installed bank 1 empty 500 MB per second.


Cpu-Memory 2 bank 0 installed bank 1 empty 500 MB per second.
Cpu-Memory 4 bank 0 installed bank 1 empty 500 MB per second.
Cpu-Memory 6 bank 0 installed bank 1 empty 500 MB per second.
4 way memory interleave 2000MB per second.
Cpu-Memory 0 bank 0 installed bank 1 installed 600 MB per second.
Cpu-Memory 2 bank 0 installed bank 1 installed 600 MB per second.
4 way memory interleave 1200MB per second.

142
IO Boards

5 different types of IO boards

Type 1 501-4287

2 UPA ports - SYSIO chips - sbus IO controllers (83 MHz)

UPA 0 drives on board SOC (@d)and sbus slots 1 and 2

UPA 1 drives FEPS(@3) onboard scsi , ethernet and sbus slot 0

Type 2 501-4288

2 UPA ports 1 SYSIO chip a UPA slave port for Fast Frame Buffer (83 MHz)

UPA 0 drives on board SOC(@d), FEPS(@3) scsi ,ethernet and sbus slots 0 and 2

UPA 1 FFB

Type 3 501-3023(83MHz) 501-4881(100MHz)

2 UPA ports PHYSCO chips – pci IO controllers

UPA 0 on board ethernet and PCI slot 0

UPA 1 on board scsi and PCI slot 1

Type 4 501-4266(83MHz) 501-4883(100MHz)

2 UPA ports - SYSIO chips - sbus IO controllers

UPA 0 drives on board SOCAL(@d) and sbus slots 1 and 2

UPA 1 drives FEPS (@3) onboard scsi , ethernet and sbus slot 0

Type 5 501-4884(100MHz)

2 UPA ports 1 SYSIO chip a UPA slave port for Fast Frame Buffer

UPA 0 drives on board SOCAL(@d), FEPS(@3) scsi ,ethernet and sbus slots 0 and
2

UPA 1 FFB

143
Clock Boards

501-4946 1:2 1:3 1:4 501-5365 1:2 1:3 1:4 1:5 1:6

The original x000 systems used a 83 Mhz centerplane.

The processor speed is a direct ratio between the centerlane speed and the clock
board oscillator.

The original processors were 167 Mhz clock ratio 1:2 centerplane 83Mhz

When the 250Mhz processors came out a new clock board was produced that
could do 1:2 and 1:3 ratios . 83MHz 1:3 = 250MHz

When the x500 were released they had a 100Mhz centerplan and a new clock
board with 2:1 3:1 and 4:1 ratios was released.

400Mhz 4:1 = 100Mhz.

VERY IMPORTANT

The X500 system should run at 100Mhz if you install a slower 83Mhz board you
will slug the whole system down to 83 Mhz

The processor speed is a direct ratio between the centerlane speed and the clock
board oscilator.

This will cause the 400Mhz processors to work at a 4:1 ratio.

400 4: 1 100Mhz = 400Mhz CPUspeed.


400 4:1 83Mhz = 336Mhz CPU speed.

Using the POST deamon 100Mhz boards are listed as + boards.

Solaris - prtdiag -v 100Mhz boards are listed as 100Mhz capable.

144
The range includes the following.

Sunfire Enterprise 3500

All systems have a clock board in slot 16

5 System board slots 1,3,5,7 and 9

Plus an fcal connection board

Upto 8 internal FCAL drives

You must have at least on IO board so possible 4 CPU/Memory boards = max 8


Processors

Sunfire Enterprise 4500 and 5500

8 system boards 0-7

You must have at least on IO board so possible 7 CPU/Memory boards = max 14


Processors

Sunfire Enterprise 6500

12 system boards for UPA devices 0-11

Disk boards in slots 12-15

You must have at least on IO board so possible 11 CPU/Memory boards = max 22


Processors

You need to install load boards in empty slots

145
Firstly we have to understand how the UPA addressing works on the
Enterprise Servers.

What does UPA stand for. It depends on who wrote the white paper.
Uniform Port Architecture.

Ultra Port Architecture.

There are two UPA ports per slot.

A slot can have either a : CPU - Memory board.

Two CPU’s both UPA devices.


SLOT 0 CPU 0 = UPA 0 CPU 1 = UPA 1

SLOT 2 CPU 0 = UPA 4 CPU 1 = UPA 5

or an: IO-Board

Still two UPA devices.


Type One IO-Board.

Two SYSIO chips both UPA devices.

Each SYSIO ASIC(Application Specific Integrated Circuit) has its


own UPA address.

SLOT 1 SYSIO A = UPA 2 SYSIO B = UPA 3

SLOT 3 SYSIO A = UPA 6 SYSIO B = UPA 7


SYSIO A drives the on-board SOC ( Serial Optical Controller) slot 13
(Hexadecimal d) and sbus slots 2 and 1.

SYSIO B drives the on-board FEPS ( Fast SCSI and Ethernet) slot 3
and sbus slot 0.

146
Type Two IO-Board.

One SYSIO chip.


One UPA slave port for a Fast Frame Buffer.

SLOT 1 FFB = UPA 2 SYSIO B = UPA 3

SLOT 3 FFB = UPA 6 SYSIO B = UPA 7


SYSIO B drives the on-board SOC slot 13 , FEPS slot 3 and sbus
slots 0 and 1

# cd /dev/dsk

# ls

c0t0d0s0 c0t0d0s7 c0t1d0s6 c0t6d0s1 c1t0d0s0 c1t0d0s7 c2t0d0s0

c0t0d0s1 c0t1d0s0 c0t1d0s7 c0t6d0s2 c1t0d0s1 c1t1d0s0 c2t0d0s1

c0t0d0s2 c0t1d0s1 c0t1d0s4 c0t6d0s3 c1t0d0s2 c1t1d0s1 c2t0d0s2

c0t0d0s3 c0t1d0s2 c0t1d0s5 c0t6d0s4 c1t0d0s3 c1t1d0s2 c2t0d0s3

c0t0d0s4 c0t1d0s3 c0t1d0s6 c0t6d0s5 c1t0d0s4 c1t1d0s3 c2t0d0s4

c0t0d0s5 c0t1d0s4 c0t1d0s7 c0t6d0s6 c1t0d0s5 c1t1d0s4 c2t0d0s5

c0t0d0s6 c0t1d0s5 c0t6d0s0 c0t6d0s7 c1t0d0s6 c1t1d0s5 c2t0d0s6

# ls -l c0t0d0s0

lrwxrwxrwx 1 root root date time c0t0d0s0 -- > ../


../devices/sbus@3,0/SUNW,fas@3,880000/sd@0,0

# ls -l c2t0d0s0

lrwxrwxrwx 1 root root date time c2t0d0s0 -- >


../../devices/sbus@2,0/SUNW,soc@d,10000/SUNW,pln@a,000000112234/

147
SUNW,ssd@0,0
UPA sbus target,lun

/sbus@3,0/SUNW,fas@3,880000/sd@5,0

UPA sbus port WWA target,drive

/sbus@2,0/SUNW,soc@d,10000/SUNW,pln@b,000000023453/SUNW,ssd
@3,1

UPA sbus port WWN

/sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037049a5f

UPA Ultra Port Address


.

Port A soc(SSA) has two ports for fiber modules either a or b.


A socal(A5000) has two ports for GBIC’s either 1 or 0

WWA World Wide Address: Each Sparc Storage Array has a 12 digit World
Wide Address.

WWN Each fcal disk has a unique Wold Wide Number. These drives are
dual pathed either a or b, check the first 2 numbers.
2100002037049a5f = port a
2200002037049a5f = port b

148
Copy Firmware

2,0>Extended POST Menus


2,0>Select one of the following functions
2,0> '0' Return
2,0> '1' Reset
2,0> '2' Peek/Poke device
2,0> '3' Environmental Status
2,0> '4' Test Menus
2,0> '5' State Dump
2,0> '6' Frequency Margining
2,0> '7' Display System Summary
2,0> '8' Display Fatal Reset Info
2,0> '9' Scan System Board Ring
2,0> 'a' Set Memory Test Megs
2,0> 'b' Print SIMM Info
2,0> 'c' Focus CPU
2,0> 'd' CPU State
2,0> 'f' fcopy
2,0> 'h' Bounce Patterns
2,0> 'i' Focus I/O Board
2,0>

Command ==> f
2,0>
2,0>Flash PROM Copy Menu
2,0>Select one of the following functions
2,0> '0' Return
2,0> '1' Copy
2,0> '2' Verify
2,0> '3' Display Version
2,0> '4' Activate System Board
2,0> '5' Deactivate System Board
2,0>

Command ==> 3
2,0>Slot 1 IO Type 4 FCODE 1.8.30 2002/10/25 14:02 iPOST 3.4.30
2002/10/25 14:03
2,0>Slot 2 CPU/Memory OBP 3.2.30 2002/10/25 14:03 POST 3.9.30
2002/10/25 14:04
2,0>Slot 3 IO Type 4 FCODE 1.8.30 2002/10/25 14:02 iPOST 3.4.30
2002/10/25 14:03
2,0>Slot 5 IO Type 4 FCODE 1.8.30 2002/10/25 14:02 iPOST 3.4.30
2002/10/25 14:03
2,0>
2,0>Flash PROM Copy Menu
2,0>Select one of the following functions
2,0> '0' Return
2,0> '1' Copy

149
2,0> '2' Verify
2,0> '3' Display Version
2,0> '4' Activate System Board
2,0> '5' Deactivate System Board
2,0>

Command ==>

Copy the NVRAM

All IO boards have a NVRAM which holds copies of the Clock TOD(NVRAM)

If you have changed the clock board you need to copy the TOD from a specific IO
Board

{4} ok sifting copy

In vocabulary forth
(f006ae10) prom-copy (f006adb8) force-prom-copy
(f005c494) copy-io-board-tod-to-clock-tod
(f005c3d0) copy-clock-tod-to-io-boards
(f005c078) copy-nvram-to-others (f005bf70) copy-tod
(f005be98) copy-obp-eeprom (f0053fcc) copy-nvram (f00295b0) copy-args
(f0013abc) copyright: (f000d6b8) "copy
{4} ok 1 copy-io-board-tod-to-clock-tod

If you change an IO board you must copy from the Clock board to the IO boards

ok copy-clock-tod-to-io-boards
{4} ok

150

Você também pode gostar