Friday, 6 May 2011

how to extract file .gz and install driver in linux

# 1: Uncompress tarball

To uncompress them, execute the following command(s) depending on the extension:
$ tar zxf file.tar.gz
$ tar zxf file.tgz
$ tar jxf file.tar.bz2
$ tar jxf file.tbz2

Now change directory
$ ls
$ cd path-to-software/

# 2: Build and install software

Generally you need to type 3 commands as follows for building and compiling software:
# ./configure
# make
# make install

Tuesday, 3 May 2011

command to check hba wwn and hba vendor name

cat /sys/class/scsi_host/hostn/device/fchost\:hostn/port_name

or

cd /sys/class/fc_host/host1/device/fc_host:host1
more port_name

vendor name :

lspci |grep -i -e fib -e hba