March 29, 2010
If you have a Solaris box with few NIC cards configured. You can list them as follows:
# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
vsw0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 184.108.40.206 netmask ffffff00 broadcast 220.127.116.11
And you’d get the output as shown above. So this is reflecting on localhost and one virtual switch vsw0. But what about other NIC cards? You can list all of the network cards at once using the following command:
ifconfig -a plumb
This will list all the network devices available on the Solaris Box. So even if you have a freshly installed Solaris machine with no interface configured, you can use the above command to list the network cards and then proceed with configuring them.
March 18, 2010
It actually happens a number of times that although you’ve inserted the disc in a sparc machine but still it refuses to mount the disk. One of the workaround is to restart the vold and vomgt daemons. But even the if you don’t see your cdrom mounted, you can do it manually as mentioned below:
First find the cdrom, i.e. we need to know the x in cxtxdx.
Fire the following command to find the actual path of cdrom:
ls -al /dev/sr*
This would look like something as follows:
bash-3.00# ls -al /dev/sr*
lrwxrwxrwx 1 root root 12 Mar 8 14:14 /dev/sr0 -> dsk/c1t0d0s2
So here my cdrom is /dev/dsk/c1t0d0sx
We’re not yet sure about the slice no. so I’ve mentioned sx in above line.
Now we’ll ltry to mount the above slice manually:
mount -F hsfs /dev/dsk/c0t1d0s2 /mnt/cdrom
hsfs mount: /dev/dsk/c1t0d0s1 is not an hsfs file system.
If this fails then we can try for another slice:
mount -F hsfs /dev/dsk/c1t0d0s0 /mnt/cdrom
And it works this time, meaning our cdrom was at s0 slice.