If you need to find the version of Samba installed on the Solaris 10 server use the command smbstatus. # /usr/sfw/bin/smbstatus Samba version 3.0.35 PID Username Group Machine ——————————————————————- 1962 andrew users mypc (162.10.21.100) Service pid machine Connected at ——————————————————-…
Tag: Solaris
Using grep/egrep to find out which file contains a word or string in Unix or Linux
If you need to find out which file in a directory contains a specific word then the grep command is your friend. Here is an example, if you wanted to find out which file in the directory /home contains the…
Success, failure of the tar command recorded with time and date stamp
I needed to determine the amount of time it would take to archive large amount of data on my unix server. If I had infinite amount of free time I could sit in front of the screen with a stop…
How to delete a file or directory with special characters using the inode in Unix or Linux
My fat fingers inadvertently created a directory on my unix server with special characters. I could not access this directory nor could I delete it. When I listed the directory using the command ls –b, I could see all the…
How to change the hostname in Solaris 10
To change the hostname in Solaris 10 you need to edit 3 files and appply the new name. /etc/nodename /etc/hostname.*interface, e.g. hostname.bge0 /etc/inet/hosts this file is a hard link to /etc/inet/ipnodes. You will need to make /etc/inet/ipnodes writable before editing…
How to create a ZFS filesystem on two striped disk drives
I ran out of space on my SAN drive on the Solaris 10 SPARC server. Since I had two spare disk drives sitting in the server that were not being used, I decided to create a single striped volume out…
List files by size in reverse numerical order in Linux or Unix.
The root drive on my Solaris server was full and I needed to find out what file was the largest. The du command can list the size of the files in a directory, you can then use the sort command…
Solaris 10 installation fails with disk drive does not have a valid label.
When installing Solaris 10 I received this error. This disk (c1t50060E800429C458d7) cannot be used to install Solaris software. This disk drive does not have a valid label. If you want to use this disk for the install, exit the Solaris…
How to change the host ID for Solaris 10 global/non-global zones and Solaris 8/9 containters.
In Solaris 10 you cannot change the host ID of the server without doing some major hardware replacement. I will explain a workaround hack to change the hostid for Solaris 10 later in this article. Some applications will not run…
Managing the services in Solaris.
The svcs command will report the status of servics in Solaris. The svcadm command is used for service management such as starting, stopping and restoring services. To display all services with their state information, use the svcs command with the…