Thursday, April 14, 2011

How to mount iso image on solaris:

---------------------------------

You can mount an ISO image directly using the lofiadm and mount commands.
Given an ISO image in /export/home/user/program.iso, a loopback file
device (/dev/lofi/1) is created with the following command:
lofiadm -a /export/home/user/program.iso /dev/lofi/1
The lofi device creates a block device version of a file. This block
device can be mounted to /mnt with the following command:
mount -F hsfs -o ro /dev/lofi/1 /mnt
These commands can be combined into a single command:
mount -F hsfs -o ro `lofiadm -a /export/home/user/program.iso` /mnt
You can mount multiple iso images by incrementing /dev/lofi/[x] and
using differing mount points.



If you want to know any word that associate to a Solaris command you can use , man -k keyword
create the windex database (so that you can use whatis or man -k for a keyword search through the man pages or man -f for man pages related to certain files) do "catman -w"

Check the status, mode and speed of the network device : Solaris

#ndd -get /dev/hme link_status
0 -- link up
1 -- link down

# ndd -get /dev/hme link_mode
0 -- half-duplex
1 -- full-duplex

# ndd -get /dev/hme link_speed
0 -- 10 Mbit
1 -- 100 Mbit
1000 -- 1 Gbit

Unix utilities can be found here

Find Update/Build version of a Installation CD/DVD

To find the OS Update / Build version of a installation media,

Ex:
cat /cdrom/sol_9_404_x86/Solaris_9/Product/SUNWsolnm/reloc/etc/release

Solaris 9 4/04 s9x_u6wos_08a x86
Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 22 March 2004

So what we have is,

s9x_u6wos_08a ---> Solaris 9/ X86 / Update 6 / Build 08a

Tuesday, April 12, 2011

Solaris OS Cluster info


cat /var/sadm/system/admin/CLUSTER
CLUSTER=SUNWCXall


Software Group                       group_name


Core             SUNWCreq

End User System Support         SUNWCuser

Developer System Support  SUNWCprog

Entire Distribution  SUNWCall

Entire Distribution Plus OEM Support  SUNWCXall