Escolar Documentos
Profissional Documentos
Cultura Documentos
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
Solaris introduction
4 Day 2 63
Install Solaris – Text Terminal
Lab session 2
L2 Day 2
6 Appendices 115
5
This page is left intentionally blank
6
Preface
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.
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
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
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.
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
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.
http://www.chiark.greenend.org.uk/
19
Connecting using an Apple Mac
sudo bash
password
cu –l /dev/cu.usbdriver -s 9600
Connected
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:
20
dialers:\
:dv=/dev/cua/b:
--------------------------------------------------------------------
The attributes are:
To connect:
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...
Init PCI
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
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.
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
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
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 )
sc> resetsc
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.
The CLI is usable via the Serial Management port with no further
configuration.
->reset /SP
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
hpps://192.168.2.2
#ssh root@192.168.2.2
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.
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.
When you first connect to the SC you will be at the Platform shell.
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:
Once POST is complete you should get the OK prompt and be able to run
standard OBP commands and to boot each domain.
Note – To avoid file system corruption, Solaris MUST be shut down by the
appropriate system administrator BEFORE powering off a domain.
Note –All domains must be powered-off before the platform can be powered
off.
32
System Controller Housekeeping Tasks
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.
>addboard
>connections **
>console -d
>deleteboard
>disablecomponent
>disconnect **
>dumpconfig **
>enablecomponent
>flashupdate ** -y –f
>help
34
>history **
>password
>poweroff
To turn components on
>poweron
>reboot **
>reset **
>restoreconfig **
>service
>setdate
>setdefaults
>setescape
35
->setfailover (on, off, force)
>showchs -b
>showcomponent (-v)
>showdate
>showescape
>showframe (-v)
>showfailover
36
To list FRUs in the system (ScApps 5.13.00 or better)
>showkeyswitch
>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
>testinterconnect
37
Domain Shell commands:
>addboard –d
>break
>connections
>deleteboard
>disablecomponent
>disconnect
>enablecomponent
>help
>history
>password
>poweroff
38
To turn components on
>poweron
>resume
>setchs
>setdate
>setdefaults
>setupdomain (–v)
>showboards (–v)
>showchs (–b)
>showcomponent (–v)
>showdate
39
To show domain configuration
>showdomain (-v)
>showenvironment (–v)
>showkeyswitch
>showlogs (-v)
To test a board
>testboard
40
To Setup remote logging:
In setupplatform:
# touch /var/adm/messages.nnnnnnn
Then
LOG=messages #LOG=messages
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:
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.
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.
More information
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 (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.
printenv variables
diag-passes 1 – 999
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
The system will wait at the menu for a response and no output will
go to the graphics terminal.
printenv
setenv
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
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
ok
watch-net
It firstly does an internal loop back test – this checks the electronics
of the NIC (Network Interface Controller)
ok
ok watch-net
51
up
....................
52
watch-net-all
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
…………….
NIC-/pci@1f,0/pci@1,1/network@c,1
obdiag
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)
___________________________________________________________________ ________
| 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)
If you suspect that one component may have an intermittent fault, you can
change the diag-passes and then run the individual test.
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)
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)
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
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
59
60
61
62
Section 4
Solaris
63
This page is left intentionally blank
64
Section 4 - 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 –rv
boot -sv
ok boot
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
*****************************************************************************
*
* 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
ok boot -s
Resetting
66
Jan 31 12:56:46 su: 'su root' succeeded for root on /dev/console
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
#
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
#
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
*****************************************************************************
*
* The X-server can not be started on display :0...
*
* See file /var/dt/Xerrors for details.
*
*****************************************************************************
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
73
Installing Solaris
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.
Jumpstart, WANboot and FLAR install methods are the responsibility of the
end user and are not covered in this course.
You will need information about the system’s name, IP address, disk layout
etc. This should be available from the system’s administrator.
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
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
#
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#
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#
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#
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#
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.
Use the tail command to look at the last n lines of the file .
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
bash-3.00# dmesg
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
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
=========================
========================= 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
81
========================= HW Revisions
=========================
ASIC Revisions:
---------------
Cheerio: ebus Rev 1
prtdiag can also be run with the –v flag for verbose output
========================= CPUs
=========================
========================= 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
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
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
84
Stop after first error? no
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
analyze> test
Ready to analyze (won't harm data). This takes a long time,
but is interruptable with CTRL-C. Continue? y
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
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
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
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
/ 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.
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.
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}
lpstat –t
show all printer status.
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.
/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
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.
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.
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/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.
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:
http://www.oracle.com/technetwork/documentation/oracle-x86-
servers-190077.html#legacyoraclex86
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
http://www.oracle.com/technetwork/documentation/sparc-mseries-
servers-252709.html
http://download.oracle.com/docs/cds/E19867-01.zip
http://download.oracle.com/docs/cds/E19855-01.zip
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 will show you all the components in the system
ILOM lab
On some systems there is a back door into ALOM. How can you do this?
What command will show you all the components in the system
117
ALOM Lab – Q & A
ALOM lab
sc>help
sc>showfaults
no
sc>shownetwork
sc>setupnetwork
sc>setupsc
sc>poweron
sc>console
#.
sc>resetsc
What command will show you all the components in the system
sc>showcomponent
118
ILOM lab
->show /SYS
yes
->show /SP/network
->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?
Esc (
What command will show you all the components in the system
start /SP/console
119
Disk Format Mount
bash-3.2# format
Searching for disks...done
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)
partition> 0
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 12 129.19MB (13/0/0) 264576
partition> 1
Part Tag Flag Cylinders Size Blocks
1 swap wu 13 - 25 129.19MB (13/0/0) 264576
121
partition> pr
Current partition table (unnamed):
Total disk cylinders available: 14087 + 2 (reserved cylinders)
partition> 6
Part Tag Flag Cylinders Size Blocks
6 usr wm 26 - 14086 136.46GB (14061/0/0) 286169472
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
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
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
129
OBP Lab
OBP Lab
What command would you use to tell where you are in the device path?
What command would you use to find the value of the diag-switch?
What commands should you always use before doing any OBP tests ?
How can you tell if you have any scsi devices installed in 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>'.
{2} ok cd /
{2} ok pwd
/
{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
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
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 ?
<*>
Software Reset
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.
Environmental monitor is ON
ERROR: Power On Self Test Failed. Cause:
CPU0 Bank 0 Dimm 0, J2900 side 1
ERROR: POST failed.
{2} ok
{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
{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] ?
sifting
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
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
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.
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] ?
{2} ok banner
139
Ethernet address 0:3:ba:db:dc:eb, Host ID: 83dbdceb.
#.
{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:
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
{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
Both processors on each system board must have the same size cache.
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.
For best memory performance the all memory banks should be the same size.
142
IO Boards
Type 1 501-4287
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
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 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.
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.
144
The range includes the following.
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.
or an: IO-Board
SYSIO B drives the on-board FEPS ( Fast SCSI and Ethernet) slot 3
and sbus slot 0.
146
Type Two IO-Board.
# cd /dev/dsk
# ls
# ls -l c0t0d0s0
# ls -l c2t0d0s0
147
SUNW,ssd@0,0
UPA sbus target,lun
/sbus@3,0/SUNW,fas@3,880000/sd@5,0
/sbus@2,0/SUNW,soc@d,10000/SUNW,pln@b,000000023453/SUNW,ssd
@3,1
/sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037049a5f
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
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 ==>
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
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