Friday, August 21, 2009

EMC: inq usage to find LUN details

inq usage:

# inq -
Inquiry utility, Version V7.3-915 (Rev 0.0) (SIL Version V7.0.0.0 (Edit Level 915)Copyright (C) by EMC Corporation, all rights reserved.

For help type inq -h.

ERROR: - is an invalid option.

Usage: inquiry
display types:
-h : display this help screen
-et : display emulation and type info (Symmetrix only)
-ckd : display CKD device info (Symmetrix only)
-page0 : display detailed page0 (only valid with -dev option)
-pagec0 : display detailed pagec0 (only valid with -dev option and on CLARiiON devices)
-parent : display both PowerPath and OS device relationships
-celerra : display Celerra lable devices
-sid : display Symmetrix Serial Number
-sym_wwn : display Symmetrix device wwn and Serial Number
-clariion : display CLARiiON device information
-clar_wwn : display CLARiiON WWN and Serial Number
-showvol : display Symmetrix Volume Number.
-compat : display old format
-btl : display Bus Target and Lun
-sw_wwn : display StorageWorks WWN and Serial Id
-hds_wwn : display HDS WWN and Serial Id
-s80_wwn : display S80 WWN and Serial Id
-invista_wwn : display Invista WWN and Serial Id
-shark_wwn : display IBM Shark WWN and Serial Id
-compaq_wwn : display Compaq WWN and Serial Id
-netapp_wwn : display Netapp WWN and Serial Id
-hba : display HBA info only. See options below
-identifier : display device identifier info (EMC devices only)
-mapinfo : display target mapping information

filter options:
-no_filters : show every device even if no data available
-f_powerpath : filter - only powerpath devices
-f_pseudo : filter - only pseudo devices
-f_real : filter - only real devices
-f_emc : filter - only EMC devices
-f_ckd : filter - only ckd devices
-f_celerra : filter - only Celerra devices
-f_4k : filter - only Symmetrix volumes <>: filter - only show devices with <= size in kbytes

query options:
-skipread : do not request Read Capacity
-skipinq : do not request Inquiry data
-skipboth : do not request Read Capacity or Inquiry data
device options:
-dev : do inquiry on specified device
-symmvol : show devices with Symm HEX volume #=
-clar_file : show clariion devices in file

other options:
-no_dots : do not display status dots
-sortoff : do not perform ANY sorting
-sortsymm : sort by Symmetrix serial number (Symmetrix only)
sym_wwn options:
-sid_wwn : the 12 digit SID of the symm for which you want wwn's
-symdev : the device for which you want the wwn

HBA specific options:
-hba : display HBA info only
-fibre : display FC HBA info only
-iscsi : display ISCSI HBA info only
-scsi : display SCSI HBA info only
-hba_file : external HBA file to use. -fibre only
-create : create external HBA file specified by -hba_file
Usage :
inquiry -hba [-fibre [-hba_file ] [-create]] [-scsi] [-iscsi]
Release notes:
Only options listed above are supported, although other options may continue to work, they are subject to change or removal.

the following parameter changes have occurred
-nodots -> -no_dots
-c -> -ckd
-v -> -page0
-r -> -dev
-s SymmVolumeNumber -> -symmvol SymmVolumeNumber
-xr -> -f_pseudo
-xps -> -f_real
-system -> no longer exists

_________________________________________________________
I assume no responsibity if using the contents of this page; Breaks your systems into pieces.

Let Villagers be Happy!!

Wednesday, August 19, 2009

To check HBA FC Information on the System

Incomplete Page Yet to be Completed
Incomplete Page Yet to be Completed
Incomplete Page Yet to be Completed
Incomplete Page Yet to be Completed
Incomplete Page Yet to be Completed

AIX:

This page is a referrence page to get the details of System Adapter (HBA), Fiber-channel Devices configured in the system for me and the people who want to run some stupid commands to check the status of the said devices.

# To get the Machine Model:
> lscfg -vpl sysplanar0 grep -i "Model:"
# To list the FC Adapters
> lsdev -Cc adapter -spci grep fcs
fcs0 Available 05-08 FC Adapter
fcs1 Available 06-08 FC Adapter

# To Check the Current microcode level of FC adapter e.g. for fcs0
> lsmcode -cd fcs0
The current microcode level for fcs0 is 191105.

# To check the Firmware level of the FC e.g. for fcs0
> lscfg -vl fcs0 grep Z9
Device Specific.(Z9)........TS1.91A5

# To check the Driver Name of FC
> lsdev -C -Ftype,name grep -i fcs
df1000fa,fcs0
df1000fa,fcs1

# To check the installed Software
$ lslpp -l grep -i hba
devices.common.IBM.fc.hba-api
5.3.7.0 COMMITTED Common HBA API Library
devices.common.IBM.fc.hba-api
5.3.7.0 COMMITTED Common HBA API Library
$ lslpp -l grep "FC Software"
devices.common.IBM.fc.rte 5.3.7.0 COMMITTED Common IBM FC Software
5.3.0.60 COMMITTED Common IBM FC Software



# To get the WWN of FC: e.g. fcs0
lscfg -vl fcs0 grep Z8

Referrences for AIX man page(s) : lsmcode , lscfg , lsdev , lslpp

HPUX

To check the existing FS Adapter/Driver:
# ioscan -kfnC fc
There is a utility available to get the details for FC HBA under : /opt/fcms/bin/fcmsutils
Referrence for HP man pages : fcmsutil

Incomplete Page Yet to be Completed