10
[email protected] :: MDS-SERIES (CISCO) COMMANDS :: http://www.cisco.com/en/US/products/ps5989/prod_command_reference_list.html MDS-SERIES Switch Commands ip address 191.168.123.234 255.255.255.0 View = ~ show running-config show environment ~ shows status of all installed hardware components show flogi database ~ shows database list of all FLOGI events show fcns database ~ shows database list of all N-ports logged in show vsan membership ~ shows list of VSAN members show interface brief ~ lists the interfaces and status MDS-SERIES Zoning Commands config terminal ~Enters configuration terminal fcalias ~creates an alias for a member zone name TestZone1 vsan 4 ~ creates a zone member pwwn 10:01:10:01:10:ab:cd:ef ~ adds node to the zone above no member pwwn <colon separated wwn> ~deletes member from zone zoneset name Zoneset1 vsan 4 ~ creates a zoneset member <zone name> ~adds zone to the ZoneSet above no zone name <zone name> vsan <vsan Id> ~ Deletes a zone zoneset activate name Zoneset1 vsan 4 zone copy active-zoneset full-Zoneset1 vsan 4 copy running-config start-up config ~ copy from source to startup configuration vsan database ~ go into vsan configuration mode vsan 4 interface fc3/21 ~move port 21 on module 3 to vsan 4 show zoneset ~ shows all zonesets that are active show zone vsan <#> ~ shows all zones active in vsan show zoneset active ~ displays the active zoneset show vsan ~ shows the vsans on the switch show zoneset active vsan <vsan Id> ~ Shows active zoneset :: B-SERIES (BROCADE) COMMANDS :: http://powerlink.emc.com/km/appmanager/km/secureDesktop?internalId=0b01406680024e88 B-SERIES Switch Commands ipAddrSet ~set the IP address of a Brocade switch SetContext <VF Number> ~choose which Virtual Fabric all the commads to be run in switchShow ~ display switch info supportShow ~ full detailed switch info portShow # ~ display port info nsShow ~ Name server contents nsAllShow ~ NS for full fabric fabricShow ~ fabric information ad --create ~create a new Admin Domain. B-SERIES Zoning Commands aliCreate “Alias”, “20:00:00:e0:69:40:07:08” zoneCreate “Zone1”, “20:00:00:e0:69:40:07:08; 50:06:04:82:b8:90:c1:8d” cfgCreate “Test_cfg”, “Zone1; Zone2” cfgSave ~ saves zoning information across reboots cfgEnable “Test_cfg” ~enable a zoneset config, zoneShow or cfgShow ~ shows defined and effective zones and configurations zoneAdd ~ adds a member to a zone zoneRemove ~ removes a member from a zone zoneDelete ~ deletes a zone cfgAdd ~ adds a zone to a zone configuration cfgRemove ~ removes a zone from a zone configuration

commands v2.3.1

Embed Size (px)

Citation preview

Page 1: commands v2.3.1

[email protected]

:: MDS-SERIES (CISCO) COMMANDS :: http://www.cisco.com/en/US/products/ps5989/prod_command_reference_list.html

MDS-SERIES Switch Commands

ip address 191.168.123.234 255.255.255.0

View = ~ show running-config

show environment ~ shows status of all installed hardware components

show flogi database ~ shows database list of all FLOGI events

show fcns database ~ shows database list of all N-ports logged in

show vsan membership ~ shows list of VSAN members

show interface brief ~ lists the interfaces and status

MDS-SERIES Zoning Commands

config terminal ~Enters configuration terminal

fcalias ~creates an alias for a member

zone name TestZone1 vsan 4 ~ creates a zone

member pwwn 10:01:10:01:10:ab:cd:ef ~ adds node to the zone above

no member pwwn <colon separated wwn> ~deletes member from zone

zoneset name Zoneset1 vsan 4 ~ creates a zoneset

member <zone name> ~adds zone to the ZoneSet above

no zone name <zone name> vsan <vsan Id> ~ Deletes a zone

zoneset activate name Zoneset1 vsan 4

zone copy active-zoneset full-Zoneset1 vsan 4

copy running-config start-up config ~ copy from source to startup configuration

vsan database ~ go into vsan configuration mode

vsan 4 interface fc3/21 ~move port 21 on module 3 to vsan 4

show zoneset ~ shows all zonesets that are active

show zone vsan <#> ~ shows all zones active in vsan

show zoneset active ~ displays the active zoneset

show vsan ~ shows the vsans on the switch

show zoneset active vsan <vsan Id> ~ Shows active zoneset

:: B-SERIES (BROCADE) COMMANDS :: http://powerlink.emc.com/km/appmanager/km/secureDesktop?internalId=0b01406680024e88

B-SERIES Switch Commands

ipAddrSet ~set the IP address of a Brocade switch

SetContext <VF Number> ~choose which Virtual Fabric all the commads to be run in

switchShow ~ display switch info

supportShow ~ full detailed switch info

portShow # ~ display port info

nsShow ~ Name server contents

nsAllShow ~ NS for full fabric

fabricShow ~ fabric information

ad --create ~create a new Admin Domain.

B-SERIES Zoning Commands

aliCreate “Alias”, “20:00:00:e0:69:40:07:08”

zoneCreate “Zone1”, “20:00:00:e0:69:40:07:08; 50:06:04:82:b8:90:c1:8d”

cfgCreate “Test_cfg”, “Zone1; Zone2”

cfgSave ~ saves zoning information across reboots

cfgEnable “Test_cfg” ~enable a zoneset config,

zoneShow or cfgShow ~ shows defined and effective zones and configurations

zoneAdd ~ adds a member to a zone

zoneRemove ~ removes a member from a zone

zoneDelete ~ deletes a zone

cfgAdd ~ adds a zone to a zone configuration

cfgRemove ~ removes a zone from a zone configuration

Page 2: commands v2.3.1

[email protected]

::Veritas VM HOST COMMANDS :: http://www.symantec.com/business/support/documentation.jsp?language=english&view=manuals&pid=15273

Veritas VM Device Commands

vxdisk list ~ List all disks under volume manager control and give there status.

vxdiskadd c1t2d3 ~ add or bring a disk under volume manager control

vxdiskadmin ~ Interactive front end to the vxdisk program

Veritas VM Filesystem commands

vxdisk init ~ Initialize Physical Volume

vxdg init mydg mydg-01=c1t11d0 ~ Create Disk Group

vxassist -g mydg make myvol <size> ~ Create Logical Volume

mkfs -F vxfs /dev/vx/rdsk/mydg/myvol ~ create file system

vxvol -g mydg stopall ~ stop a volume

vxdg deport mydg ~ deport disk group

vxdg import mydg ~ import disk group

vxvol -g mydg startall ~ starting a imported volume

::VMware ESX HOST COMMANDS :: http://www.vmware.com/support/developer/vcli/

VMware ESX Device Commands

esxcfg-info Print out device configurations

esxcfg-module -l List modules loaded in the service console

vmkfstools (-P, -q, -g) ~RDM Target LUN information

esxcfg-advcfg

esxcfg-resgrp

esxcfg-auth ~A uthentication configuration

VMware ESX Storage commands

esxcfg-info –s ~General Storage Info

vdf -h ~Disk Space Utilization

fdisk /dev/sdX ~

esxcfg-scsidevs -A ~prints a mapping between the HBA and the devices

esxcfg-nas -a ~Adds a new NAS file system to the ESX/ESXi host.

esxcfg-boot Manage the boot partitions

esxcfg-dumppart -l Manage the vmkdump partition

esxcfg-mpath –l ~Path information

esxcfg-vmhbadevs –m ~VMKernel-to-Service Console Device Mapping

esxcfg-rescan <vmkernel adpter> ~scan for new disks

esxcfg-swiscsi –e ~enable iSCSI initiator

esxcfg-rescan ~Rescan LUNs on SCSI device

esxcfg-resgrp ~Create, delete and list resource groups

vmkpcidivy –q vmhba_devs ~map canonical name to Vmware file system

VMware ESX Networking commands

esxcfg-firewall

esxcfg-nics ~Presents physical NIC information

esxcfg-route ~Enable or disable routing for vmknics

esxcfg-swscsi ~Configures software iSCSIadapters

esxcfg-vmhbadevs ~Maps COS device files to vmhbanames

esxcfg-vmknic ~Create & configure VMkernel NICs

esxcfg-vswif ~Create & configure vswifsfor the COS

esxcfg-vswitch ~Create & configure virtual switches andport groups

Page 3: commands v2.3.1

[email protected]

:: Windows HOST COMMANDS :: http://support.microsoft.com/default.aspx/ph/3198?sid=26

Windows 2003 server SP1 Device Commands

SystemInfo ~ Displays detailed configuration information about a computer and its operating system

Shutdown /r /f ~ forced reboot

Netstat ~ Displays active TCP connections, ports on which the computer is listening

mstsc /v: 255.255.255.255 /console ~ launches a Remote desktop Connection

net use \\ComputerName\ShareName\volume ~ Connects a computer to a computer shared resource

FC ~ compares two files and displays the differences

ChkDsk ~ check and repair disk problems

Recover ~ Recover a damaged file from a defective disk.

fcinfo /details ~ if fcinfo is installed ,this will list the HBA’s wwns

Windows 2003 server SP1 LVM Commands

Diskpart rescan ~ Locates new disks that may have been added to the computer

Diskpart list disk ~ Displays a list of disks and information about them,

Diskpart detail disk ~ Displays the properties of the selected disk and the volumes on that disk.

wmic partition get BlockSize, StartingOffset, Name, Index ~find the starting offset Diskpart create partition primary align=64 ~create a properly offset partition

MountVol ~ Creates, deletes, or lists a volume mount point.

Diskpart assign ~ Assigns a drive letter or mount point to the volume with focus.

Diskpart extend ~ Extends the volume with focus into next contiguous unallocated space

Diskpart import ~ Imports a foreign disk group into the local computer's disk group

Format /FS:filesystem ~ Specifies the type of the file system (FAT, FAT32, or NTFS).

FSutil volume dismount

:: VI COMMANDS :: Cursor movements

h ~ left one character

l ~ right one character

j ~ down one line

k ~ up one line

w ~ right one word

b ~ back one word

Deleting, Yanking, and Pasting

d ~ delete

x ~ delete character cursor is on

r ~ replace one character

y ~ yank (copy into temporary buffer)

Y ~ yank line cursor is on

p ~ paste below cursor line (deleted or copied text)

Saving and Exiting

u ~ undo last editing command

ZZ ~ save and exit (hold down shift and press "z" twice)

:wq! ~ write and quit even if it is read-only

:: FTP COMMANDS :: open <IP address> ~ undo last editing command

close <IP address> ~ save and exit (hold down shift and press "z" twice)

bin ~set to transfer for binary and text files

hash ~display progress during get

mget ~mutiple get – download files in to current directory

mput ~multiple pu – upload files from current directory

Page 4: commands v2.3.1

[email protected]

:: AIX/IBM HOST COMMANDS :: http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic

AIX Software Installation

/usr/lpp ~ Software Directory

lslpp -L all ~ List installed software

lslpp -f fileset ~ List all files

instfix –i ~ List installed patches

cp *.lpp /usr/sys/inst.images ~ copy lpp software to the install directory

smit installp ~ Install a software package

rmdev ~ Remove a device

AIX Device Commands

lscfg ~ lists all comfigured components

smit or smitty ~ system management utility

lscfg –v l <interface> ~ lists all attributes (WWN’s) for a device

emc_cfgmgr ~ configures symmetrix devices

mkbcv ~ makes BCV visable to AIX to avoid locking during boot

(1) chdev -l fcsX -a init_link=pt2pt –P ~ “To change INIT Link flags parameter”

(2) chdev -l fscsiX -a fc_err_recov=fast_fail –P ~ “Fabric Event Error RECOVERY Policy”

(3) cfgmgr –v ~ cofigures devices and optionally installs device software

AIX NFS Commands

exportfs ~Lists all exported filesystems

exportfs -a ~Exports all fs's in /etc/exports file

exportfs -u (filesystem) ~Un-exports a filesystem

mknfs ~Configures and starts NFS services

rmnfs ~Stops and un-configures NFS services

mknfsexp -d /directory ~Creates an NFS export directory

mknfsmnt ~Creates an NFS mount directory

mount hostname:/filesystem /mount-point ~Mount an NFS filesystem

nfso -a ~Display NFS Options

AIX iSCSI Commands

smit iscsi

AIX Filesystem Commands http://the-welters.com/professional/aix/jfs-lvm.html

lsdev –Cc disk ~ Device Listing and status

mkdev ~ configures a disk device masking sue it is available as a physical volume

chdev -l hdisk# -a pv=yes ~ Initialize Physical Volume

lspv -l hdisk# ~ Disk Label

mkvg -y myvg -s 16 hdisk2 ~ groups one or more physical devices into a volume group

mirrorvg ~Creates mirror volumes for all volumes in a volume group. extendvg myvg hdisk3 hdisk4 ~ Extend Volume Goup

lsvg –l vgname ~ displays volumes, with a specified volume group

mklv -y mylv myvg 16 ~ Make logical volume

mklvcopy hd1 2 hdisk1 ~(2) makes a copy of lv should be followed up by syncvg command lslv ~ List Logical Volume

chfs -a freeze ~writes all dirty file system metadata and user data to the disk (use before BC & DR)

crfs –v jfs –d mylv –m /myfs

mount ~ mounts a filesystem

varyoffvg myvg ~ Deactivate Volume Group

exportvg myvg ~ Export Volume Group

importvg -y myvg -f /dev/hdisk9 ~ Import Volume Group

varyonvg myvg ~ Activate Volume Group

Page 5: commands v2.3.1

[email protected]

:: HP/UX HOST COMMANDS :: http://www.docs.hp.com/en/B2355-90681/index.html

HP/UX Software Installation

sysdef ~ analyzes current running system

swlist –l bundle ~ displays version and type of HP-UX

swlist -l patch ~ List installed patches

swreg –l depot /full/path/to/your/depot_file ~ Register a depot package for install

swinstall ~ Install the Software depot

HP/UX Device Commands

insf –e ~ install special device files

ioscan -fnC disk ~ scans system hardware

sam ~ System administration tool

dd if=/dev/rdsk/c34t15d0 of=/dev/zero count=1 ~ makes HP register with a Clariion thru LUNZ device

navicli –h <SP IP> register ~registers host with Clariion and tests agent install

lsdev –C disk ~ list device drivers in the system

mknod ~ makes a directory, special, or ordinary file

/stand/system ~ system configuration file

HP SAN Commands

fcmsutil /dev/fcd0 ~ List HBA wwn

tdutil /dev/td0 ~ List HBA wwn

HP iSCSI Commands

http://docs.hp.com/en/T1452-90011/T1452-90011.pdf

HP NFS Commands

/etc/exports ~file controls which file systems are exported to remote hosts and specify options

/exported/directory example.emc.com ~Exports directory to host example.emc.com (found in /etc/exports)

exportfs –a ~command to read /etc/export and export filesystem

mount shadowman.emc.com:/misc/export /misc/local ~mount an NFS export from shadowman.emc.com to the dir /misc/local

HP/UX Filesystem commands

pvcreate /dev/rdsk/c1t0d2 ~ creates a physical volume within a LVM volume group

pvdisplay ~ display info about physical volumes within an LVM volume group

ls -l /dev/*/group ~list the minor number of each vg in 6th field (all not listed are available)

mkdir /dev/myvg ~Create directory entry in /dev for Volume Group

mknod /dev/myvg/group c 64 0x010000 ~ Create a file for Volume Group

vgcreate -s 16 /dev/myvg /dev/dsk/c1t0d0 ~ creates a LVM volume group

vgextend /dev/myvg /dev/dsk/c1t0d1 ~ add disk to VG

vgchange -a y myvg ~ Avtivate VG

vgscan ~ scan physical volumes for LVM volume groups

vgdisplay ~ displays info about LVM volume groups

lvcreate -l 16 -n mylv /dev/myvg ~ creates LVM logical volumes

lvcreate -m mylv /dev/myvg ~ creates mirrored logical volumes

lvdisplay ~ displays LVM logical volumes

newfs /dev/myvg/rmylv ~ Create file system

mount /dev/myvg/mylv /myfs ~ Mount file system

vgchange -a n myvg ~ Deactivate Volume Group

vgexport myvg ~ Export Volume Group

vgimport /dev/myvg /dev/dsk/c1t0d0 ~ Import Volume Group

Page 6: commands v2.3.1

[email protected]

:: Linux HOST COMMANDS :: http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/en-US/

Linux Software Installation

rpm –hiv

Linux Device Commands

modeinfo lpfc | grep parm ~Emulex hba parameters

modprobe -r lpfc ~unload Emulex driver

lsmod | grep lpfc ~

modprobe lpfc ~ discover new disk /sys/class/scsi_host/host1/issue_lip ~ discover new disk

dmesg |grep scsi ~list scsi devices

echo "- - -" > /sys/class/scsi_host/host0/scan ~ discover new disk

/sys/class/scsi_host/host1/scan ~ discover new disk

/usr/sbin/lpfc lun_scan all

Linux FC SAN Commands

hbacmd list ~list Emulex hba

hbacmd allnodeinfo xx:xx:xx:xx:xx:xx:xx:xx ~detail hba wwn info & device list

more /sys/class/scsi_host/hostX/port_name ~ wwn on RHEL4

more /sys/class/fc_host/hostX/port_name ~ wwn on RHEL5

Linux iSCSI Commands

yum install iscsi-initiator-utils ~install iSCSI soft initiator

rpm -q srvadmin-deng iscsi-initiator-utils ~install iSCSI soft initiator

rpm -ql iscsi-initiator-utils ~confiure iSCSI soft initiator

iscsi-iname ~discover iqn

iscsi-ls ~list adapters

iscsiadm -m discovery -t -p 192.168.1.100 ~discover iSCSI target

iscsiadm --mode node --targetname iqn ~

Linux NFS Commands

/etc/exports ~file controls which file systems are exported to remote hosts and specify options

/exported/directory example.emc.com ~Exports directory to host example.emc.com (found in /etc/exports)

exportfs –a ~command to read /etc/export and export filesystem

mount shadowman.example.com:/misc/export /misc/local ~mount an NFS export

Linux Filesystem commands http://linux.about.com/od/commands/l/blcmdl_8m.htm

pvcreate /dev/emcpowerX ~ initializes PhysicalVolume for later use by the Logical Volume Manager

vgcreate VG_Name /dev/emcpowerX ~ creates a new volume group

lvcreate --size 2000m --name LV_Name /dev/VG_Name ~creates 2000MB logical volume

mkfs -t ext2 /dev/VG_Name/LV_Name ~ Make a file system on a logical volume

mount -t ext2 /dev/VG_Name/LV_Name /mnt/FS_MountPoint ~ mount File system

df –a ~display filesystems

Fdisk /dev/sda ~ partition table manipulation

pvdisplay ~ allows you to see the attributes of one or more physical volumes

pvscan ~ scans all supported LVM block devices in the system for physical volumes

vgdisplay ~display attributes of volume groups

vgextend ~ allows you to add one or more initialized physical volumes

vgscan ~ scan physical volumes for LVM volume groups

vgexport ~make volume groups unknown to the system

vgimport ~make volume groups known to the system

lvdisplay ~display attributes of a logical volume lvextend ~ Extend logigal volume

fsck ~Command used to check and repair a Linux filesystem

Page 7: commands v2.3.1

[email protected]

:: SUN/SOLARIS HOST COMMANDS :: http://developers.sun.com/openstorage/articles/opensolaris_storage_server.html

SOLARIS Software Installation

ptree –a ~ Shows all running processes in a tree format

showrev –p ~ Displays currently installed Solaris patches

prtconf ~ prints system configurations

pkginfo ~ lists installed software packages

pkgadd ~ install software packages

pkgrm ~ removes installed software packages

Solaris Device Commands

cfgadm –a ~ list all

cfgadm –c configure c4 ~ configure StorEdge Leadville driver.(Search for new devices)

devfsadm –vC ~ searches for devices and also cleans up old

update_drv -f sd -d –I ~ searches for devices

drvconfig ~ generates special device files

isainfo –kv ~ list the architecture of the physical box.

reboot -- -r ~ reboots system to discover configuration changes, and rebuild special files

/etc/system ~ system files

/kernel/drv/sd.conf ~ lists of available target ids and luns

/kernel/drc/lpfc.conf ~ used for persistent binding on Emulex (qla22xx.conf for Qlogic)

/var/adm/messages ~ system messages

Solaris iSCSI Commands

iscsiadm add static-config iqn.1999-08.com.array:sn.01234567,192.168.1.3:3260 ~map target

iscsiadm add discovery-address 192.168.1.13:3260

iscsiadm modify discovery --isns enable

iscsiadm list target –vS Target: iqn.1986-03.com

devfsadm -Cv -i iscsi

Solaris FC SAN Commands

fcinfo hba-port ~ Lists information and WWNs

fcinfo remote-port -p 10000000c937694f –ls ~ Lists the remote-port information

fcadm create-fcoe-port -t nxge0 ~Creates a FCoE target port

Solaris NFS Commands

share -F nfs -d "Cartman dir" / share2

mount -F nfs cartman:/share2 /cartman

share -F nfs -o ro=sun.ucs.indiana.edu,rw=teak.uwsg.indiana.edu /reports ~ export (share) /reports

/etc/dfs/dfstab ~ file to edit to make a share permanent

shareall –F nfs ~ command to excute that will read /etc/dfs/dfstab and share to the network

SOLARIS Filesystem Commands *** Format and lable all devices before using zpool *** zpool create spoon c3t6d9 ~create & mounts storage pool named spoon and mounts it at /spoon (no slice #)

zpool create spoon mirror emcpower3c emcpower4c ~create a RAID1 storage pool mounted at /spoon

zpool destroy –f spoon ~destroy a zpool

zfs create spoon/fs ~creates ZFS file system spoon/fs, automatically mounted at /spoon/fs.

zpool list ~list pools

format ~ Disk partitioning and maintenance program

sysdef ~ Device Listing

prtvtoc ~ Disk Label

metadevadm ~ Checks device ID configuration.

metainit ~ Configures volumes.

metastat ~ Displays the status of volumes or hot spare pools.

metaset ~ Administers disk sets.

newfs –v ~ makes a UFS filesystem on disk drive or partition within a diskdrive

zfs snapshot pool/filesystem@Thursday ~Take a read-only snapshot of a file system

zfs rollback pool/filesystem@Thursday ~Rollback live filesystem to snapshot

Page 8: commands v2.3.1

[email protected]

:: SOLUTIONS ENABLER COMMANDS :: https://support.emc.com/products/2071

Commands to see devices

syminq ~ list all devides seen by host OS

syminq -cids ~ list Clariion devices

syminq hba –fibre ~ list HBA

syminq –pdevfile ~List the location of devices

sympd list ~ lists the Symmetrix devices that the host OS can see

symdev list pd ~ lists the Symmetrix devices that the host OS can see

symdisk

Symdev Commands

symdev list ~ list all devices on symm

symdev –sa –p list ~ list devices maped to that one FA

symdev list –noport ~ list devices not mapped to any FE ports

symdev list –clariion

symdev show 0123 -v ~ vebose listing of one device

Symcfg Commands

symcfg discover ~ discover the storage environment

symcfg list ~ list local and remote symmetrixes

symcfg list –FA all list ~ lists all fibre directors in a Symmetrix system

symcfg list -dir all -address -available ~ sid 6196 ~ returns the next available LUN address

symcfg list -lockn all ~ list of visible Symm exclusive locks

symcfg -sid <sid> -lockn 15 release ~ release a lock on a Symmetrix array.

Symconfigure Commands symconfigure –sid <sid> -f <filename> preview ~ checks file to make sure it is ok to exe

symconfigure –sid <sid> -f <filename> commit ~ makes the changes from file

symconfigure –sid <sid> -f <filename> prepare

Symmaskdb Commands

symmaskdb list devs ~ lists all devices accessible to an HBA on a specified Symmetrix system

symmaskdb remove ~ removes the meta member devices

symmaskdb backup ~ backs up a database to a specified file

symmaskdb init ~ deletes and creates a new VCMDB

symmaskdb list assignment ~lists deives already assigned

symmaskdb list no_assignment ~lists deives not yet assigned

Symaccess Commands

symaccess -sid <sid> -file <BackupFileName> backup ~

symaccess list hba -v ~

symaccess -sid <sid> list assignment -v ~

symaccess -sid <sid> list logins ~

symaccess create -name <GroupName> -type initiator -wwn <wwn> ~

symaccess create -name <GroupName> -type port -dirport <Dir>:<Port> ~

symaccess create -name <GroupName> -type storage devs <SymDevStart:SymDevEnd> ~

symaccess create view -name <GroupsAndViewName> -wwn ~

Symmask Commands

symmask add devs ~ adds a device to the list of devices that a WWN can access in the database

symmask remove devs ~ removes a device from the list of devices that a WWN can access in the database

symmask refresh ~ refresh vcmdb to all FA ports

symmask login ~ lists for each Fibre director which hosts and HBA’s are logged in to a Symmetrix system

symmask list HBA’s ~ lists the WWN of the Fibre HBAs on this host

symmask -sid <sid> -wwn 50060B000024F9F6 -dir 16C -p 1 set heterogeneous on HP_UX

Page 9: commands v2.3.1

[email protected]

Other SYMCLI Commands

symsan ~list ports and LUN WWNs seen from a specific Symmetrix director and port

symdg ~ creates/deletes/renames device groups

symld ~ addes & removes devices to a deivce group

symbcv ~ associates/disassociate BCV with device groups

symmir ~ performs (split/establish/restore) BCV mirror commands against device groups

symclone ~ performs (split/establish/restore/activate/terminate/recreate)

symsnap ~ performs (restore/activate/terminate/recreate)

symrdf ~ performs (split/establish/restore/failover/update/failback/suspend/resume) against RDF device groups

symcg ~ Performs operations on a Symmetrix RDF composite group

symrslv ~ Displays logical-to-physical mapping information about a logical object that is stored on a disk.

symstat ~ Displays statistics information about a Symmetrix, any or all directors, a device group, a disk, or a device.

symioctl ~ sends I/O control commands to application

:: VNX for BLOCK COMMANDS :: https://support.emc.com/docu47580_VNX_Command_Line_Interface_Reference_for_Block_5.33.pdf?language=en_US

aviseccli –h <SP IP> getsp ~ verify connectivity

naviseccli –h <SP IP> register ~registers host with Clariion and tests agent install

naviseccli –h <SP IP> storagegroup ~ list all info about existing groups

naviseccli –h <SP IP> getrg -lunlist ~ list all existing raid groups and LUNS

naviseccli –h <SP IP> getdisk ~ shows numbers of disks in storage array

naviseccli –h <SP IP> getrg <rg id> ~ shows the number of raid groups

naviseccli –h <SP IP> get lun <lun id> ~ lists all the disks

naviseccli –h <SP IP> storagegroup -list ~ displays storage groups

naviseccli –h <SP IP> getcache ~ shows the cache

naviseccli –h <SP IP> port –list –sp ~list all the SP port’s wwpn

naviseccli –h <SP IP> createrg ~create a raid group

naviseccli –h <SP IP> bind –rg –cap –aa ~bind a lun

naviseccli –h <SP IP> storagegroup –create –gname <name> ~ creates a new storage group

naviseccli –h <SP IP> storagegroup –addhlu –gname <name> -hlu <#> -alu <#> ~ assigns LUNs to storage group

naviseccli –h <SP IP> storagegroup –connecthost –host <hname> -gname <gname> ~ assigns host to storage group

:: VNX for FILE COMMANDS :: https://support.emc.com/docu47567_VNX_Command_Line_Interface_Reference_for_File_8.1.pdf?language=en_US

nas_server – list ~Lists Data Mover id, type,state, name, and slot number

server_standby server_<server #> -activate mover ~Manually fails over Data Mover to standby

o When failed over primary will be renamed to server_<primary#>.faulted server_<standby#>

o When failed over standby will be renamed to the server name it is replacing: server_<primary#>

server_standby server_<server#> -restore mover ~Manually fails back primary Data Mover from standby

server_version ALL ~Current code version on the Data Movers

server_cpu server_<server#> -reboot now ~ Reboots Data Mover

server_standby ALL –verify mover ~DM status

nas_server –info –all ~Detailed info on DM’s

nas_version ~Checks current code level on CS

/nas/sbin/cs_standby –failover ~Fails over CS0 from CS0 to CS1

/nasmcd/sbin/cs_standby –takeover ~Fails over CS0 from CS1 to CS1

/nasmcd/getreason ~Shows current status of Control Stations and Data Movers

watch /nasmcd/getreason ~monitor status of Control Stations and Data Movers evey 2 seconds (ctrl-C)

Page 10: commands v2.3.1

[email protected]

:: POWERPATH COMMANDS :: http://powerlink.emc.com/km/appmanager/km/secureDesktop?internalId=0b01406680025034

powermt ~ manage powerpath environment

powercf ~ configure powerpath devices

powermt display dev=all ~display PowerPath controlled devices

powermt check

powermt config

emcpreg ~ manage powerpath license registration

emcpupgrade ~ convert powerpath configuration files

:: INQ :: ftp://ftp.lss.emc.com/pub/symm3000/inquiry/

inq –h ~ list options and syntax

inq –mapinfo ~display target mapping info

inq –hba ~ display HBA info

inq –fibre ~display FC HBA info only

inq –iscsi ~display ISCSI HBA info only

inq –showvol ~ display Symmetrix Volume Number.

inq –parent ~display PowerPath and OS device relationship

inq –winvol ~ show Windows filesystems

inq -clariion ~ display CLARiiON device information (ALU & HLU)

inq –clar_wwn ~display wwn (UID) of VNX devices

inq –sym_wwn ~display symm dev wwn & serial number

inq -dev \\.\physicaldrive1 -page0 ~ Raw unformatted data on a single device

inq -dev \\.\physicaldrive21 -pagec0 ~Raw formatted info on a Clariion volume