René Nyffenegger's collection of things on the web | |
René Nyffenegger on Oracle - Most wanted - Feedback
- Follow @renenyffenegger
|
Solaris things | ||
Versions
SunOS 5.x + Open Windows = Solaris 2.x
Solaris 2.7 = Solaris 7, Solaris 2.8 = Solaris 8, Solaris 2.9 = Solaris 9
ModelsSun2Sun386i4/x series
x = {100, 200, 300, 400}
600 model x
x = {120, 140, 41, 51}
SPARCstation x
x = {1, 2, 4, 5, 10, 20, Voyager}
Ultra x
x = {1, 2, 5, 10, 30, 60, 250, 450, Enterprise}
SunBlade x
x = {100, 1000, 150, 3800, 4800, 4810, 6800, }
Others
B100s, V100, V120, V210, V240, V250, 280R, V440, V880, B200x, v20z, v40z
Determining model
On older models:
/usr/sbin/prtconf
suntype (perl script)
Keyboardxmodmap xkeycaps MemoryDetermining physical memory/usr/sbin/prtconf | grep "Memory size" /usr/sbin/prtdiag
On high end machines:
usr/sbin/cfgadm -al Determining virtual memoryswap -s
If po (page out) and sr (scan rate) have high values, more memory should probably be used.
Displaying memory segmentsipcs -m Determining swap space/usr/sbin/swap -l
The value shown in the BLOCK columns needs to be divided by 2 in order to get kilo bytes.
Determining installed packages
64 Bit:
showrev -p
32 Bit:
pkginfo -i package name NetworkingSpecifying the nameserver/etc/resolv.conf
domain my.domain nameserver abc.def.ghi.jkl /etc/nsswitch.conf
hosts: dns files Adding a gatewayroute add default abc.def.ghi.jkl Configuring the ip addressifconfig <interface> abc.def.ghi.jkl netmask 255.255.255.0 up Architecture Name
sun4-solaris
Performancetop
Solaris 8 and higher ship prstat which offers similar funcionality.
spsqpsMonitoringiostat
Disk utilization etc
iostat -p shows disk statistics at the partition level.
mpstat
CPU + Interrupt activity per CPU (that is: per processor statistics)
Also displays the number of CPUs.
netstat
Network traffic
nfsstat
NFS
ps
Processes
sar
System without network
See also statit.
vmstat
CPU, memory, swap and run queue.
prstat
By default, prstat lists the processes running on a system, sorted by CPU utilization. See also
top .
prststat -L: shows each LWP for a multi-threaded process.
prstat -m: includes the percentage of time a process spends in system traps, text page faults, data page faults, waiting for user locks, and waiting for CPU time.
prstat -t: lists the CPU and memory resource usage summary for each user.
pcred
Prints credential (that is effective, real and saved user and group IDs) for each process.
pfiles
On open files of processes.
pflags/proc tracing flags
pldd
Show dynamic libraries linked into a process.
pmap
Address space of processes.
pstackprtmem
Displays the system's overall breakdown of the memory layout.
Alternative:
mdb
Misc
Listing the system's current shared memory and semaphore segments, and their identification number and owner:
ipcs
Who is accessing a file system (and prevents it from being unmounted)
fuser -c /cdrom/disk1 pstop and prun
Stop and start processes.
uptime
How long is the box already running.
Platforms
How to identify platforms?
Lightweight processes (LWPs)
An LWP is a virtual execution environment for each kernel thread within a process. It allows each kernel thread within a process to make system calls independent of other kernel threads within the same process.
Special groupssys , but what for?
Buzzwords
Predictive self-healing, Service Management Framework (SMF), Solaris Fault Manager, Solaris Zones, Dynamic resource pools (DRP), Physical memory control, Dynamic tracing facility (DTrace), Process rights management,
Memory placement optimization (MPO), Resource Manager (RM), Solaris Volume Manager (SVM), Threads library (libthread.so)
Help
SolarisGuide
SunHelp SolarisCentral SunGuru SunFreeware searchenterpriselinux.techtarget.com http://searchenterpriselinux.techtarget.com BigAdmin System Administration Portal sysadmin resources Alan Pae |