A sample text widget

Etiam pulvinar consectetur dolor sed malesuada. Ut convallis euismod dolor nec pretium. Nunc ut tristique massa.

Nam sodales mi vitae dolor ullamcorper et vulputate enim accumsan. Morbi orci magna, tincidunt vitae molestie nec, molestie at mi. Nulla nulla lorem, suscipit in posuere in, interdum non magna.

Killing process by name except root

How to kill apache process which are not owned by root.

Kill -9 `ps -eaf | grep apache | grep -v root | awk ‘{print $2}’`

HBA port status on Solaris

How to find status of Solaris

fcinfo hba-port

mpathadm lu

Convert Solaris block to bytes

You always deal with blocks on solaris and if you want to convert to bytes. Here is the size for a block.

512 bytes = 1 block

solaris boot problem with metadb and quick fix – boot with one metadb

If your sun solaris using SVM and if there is a boot problem due to state database, you can do a quick fix. The system will panic if fewer than half of the state database replicas available. For an example if you have 3 copies and if 2 fails, then system will panic and if […]

How to start and stop services/daemons in Unix/Lnux System

You may need to restart services after you changed the configuration files. You can use the following methods to restart services.

RedHat, CentOS and Fedora Core Linux /sbin/service sshd restart

Suse linux /etc/rc.d/sshd restart

Debian/Ubuntu /etc/init.d/sshd restart

Solaris 9 and below /etc/init.d/sshd stop /etc/init.d/sshd start

Solaris 10 svcadm disable ssh svcadm enable ssh

AIX stopsrc […]

Sun Solaris multipath explanation to find devices

When you have multi paths for devices, you will see that number of devices in format command. For an example, if you have 4 paths for a single lun, you will see for devices in format command.

To determine what devices are behind these virtual devices run the following command:

# stmsboot -L non-STMS device […]