Saturday, August 21, 2010

Brocade Switch command

Brocade Switch command
----------------------

switchshow == show switch details

cfgshow (overall zone config file name) == list the config file details

nsaliasshow == list all aliases

nsshow

alicreate "alias name", "WWN"

zonecreate "zone name", "alias name"

cfgadd "overall zone config file name", "new zone name"

cfgsave

cfgenable "overall zone config file name"

Linux and Solaris HBA


Solaris
----------
fcinfo hba-port == display WWN for HBA
prtpicl -v |grep -i WWN == display WWN for HBA

luxadm -e port == HBA port status and port physical path
luxadm probe == see what devices are connected
luxadm -e dump_map == get more details of HBA port
luxadm -e forcelip == perform loop connection (LIP)
cfgadm -c unconfigure/configure == configure controller
luxadm display == more details about that WWN
cfgadm -o show_FCP_dev -alv == more details about the controller
iostat -En

Linux
---------
echo 1 > /sys/class/fc_host/hostN/issue_lip == Loop connection for FC (LIP)
echo "- - -" > /sys/class/scs_host/hostN/scan == scan for new SCSI devices

echo "scsi-qlascan" > /proc/scsi// == qlogic card rescan

echo "scsi add-single-device 0 1 2 3" > /proc/scsi/scsi == scsi mid layer rescan

export PATH=$PATH:/usr/openv/netbackup/bin:/usr/openv/netbackup/bin/goodies:/usr/openv/netbackup/bin/admincmd:/usr/openv/volmgr/bin

Netapp and NDMP

Netapp
---------
sysconfig -a == shows everything in the system

storage show adapter == display adapter

storage show tape == show connected tapes
storage show mc == show connected changers

sysconfig -t == display connected tape drives
display connected == display connected tape drives
sysconfig -m == display connected medium changer

storage stats tape == more details about tape

storage show tape supported == list tape drives which is supported

fcadmin link_stats == ??

storage disable adapter == disable adapater
storage enable adapter == enable adapter


NDMP
----
ndmpd status == check ndmp sessions

ndmpd kill

ndmp killall


Solaris
-------
set_ndmp_attr -probe fillername == rescan and probe drives

set_ndmp_attr -verify fillername== check if you can login to the netapp from the server