Tag Archives: cli

Dell EMC Unity Unisphere CLI Command Reference Guide (UEMCLI)

This is a list of syntax examples for using uemcli on a Unity array.  It covers system management, networking, host management, hardware,  storage management, data protection and mobility, events and alerts, andsystem maintenance.  Install the UEMCLI on your client machine or open an ssh session to the unity array as uemcli is already accessible there.

This post is designed to help quickly find the general syntax of uemcli commands and be short enough to print out a copy.  For details on all of the specific options for each of these commands I recommend downloading the (612 page long) Dell EMC CLI Reference Guide.

System Management
Displays the general settings for a physical system uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/general show -detail
Displays the general settings for a virtual system uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/general show
Disable automatic failback uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/general set –autoFailback off
Fail back all NAS servers that have failed over uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/general failback
Perform a health check of the system uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/general healthcheck
Displays the general setting information for the system uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/info show
Change System Information uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/info set -contactFirstName Zach -contactLastName Arnold -contactEmail x@mail.com -contactPhone 5559999 -location here -contactMobilePhone 987654321
Create a session to upgrade the system software uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/upgrade create –type software
creates a session to upgrade the storage processor uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/upgrade create –type sp –newSPModel SP500
Display details about the hardware upgrade session uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/upgrade show
Displays details about the software upgrade session uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/upgrade show
Resume upgrade uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/upgrade resume
Cancel upgrade session uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/upgrade cancel
Display security settings for the system uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/security show
Changes system security settings uemcli /sys/security set -fips140Enabled yes
Display system time uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/time show
System reboot uemcli /sys/time set -utc “2018-01-17 12:16:30” -force allowreboot
Display support configuration uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/support/config show
Display detailed support configuration uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/support/config show -detail
Specifies the support services proxy server parameters uemcli /sys/support/config set -supportProxyAddr 10.1.55.1 -supportProxyPort 8080 -supportProxyUser user1 -supportProxyPasswd password123 –supportProxyProtocol http
Displays support contracts uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/support/contract show
Refresh support conracts uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/support/contract refresh
Display Centralized ESRS configuration uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/support/esrsc show -detail
Check network connectivity from Centralized ESRS to EMC uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/support/esrsc checkNetwork -address 10.10.96.97
Displays the Integrated ESRS configuration uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/support/esrsi show -detail
Specifies the Integrated ESRS parameters uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/support/esrsi set -acceptEula yes
Displays network connectivity for Integrated ESRS uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/support/esrsi checkNetwork
Display Integrated ESRS policy Manager server config uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/support/esrsi/policymgr show -detail
Change the Policy Manager and proxy server attributes uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/support/esrsi/policymgr set -enable no
Show configuration details for Connect Home uemcli -d 10.1.55.1 -u admin -p Password /sys/support/connecthome show -detail
Enable Connect Home and specify SMTP server uemcli -d 10.1.55.1 -u local/username -p Password /sys/support/connecthome set –enable yes –smtpServer 10.10.99.99
Test email alert uemcli -d 10.1.55.1 -u local/username -p Password /sys/support/connecthome test
Displays a list of user roles on the system uemcli -d 10.1.55.1 -u Local/username -p passwd123 /user/role show -detail
Create user account with operator role uemcli -d 10.1.55.1 -u Local/username -p passwd123 /user/account create –name user1 –type local –passwd Password –role operator
Displays a list of all user accounts on the system uemcli -d 10.1.55.1 -u Local/username -p passwd123 /user/account show
Change password for user account user_user1 uemcli -d 10.1.55.1 -u Local/username -p passwd123 /user/account –id user_user1 set –passwd NewPassword –oldpasswd OldPassword
Delete user account user_user1 uemcli -d 10.1.55.1 -u Local/username -p passwd123 /user/account -id user_user1 delete
Display support credentials uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/support/account show
Display list of all feature licenses on the system uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/limit show -detail
Display list of all feature licenses on the system uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/lic show
This command accepts the EULA uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/eula set -agree yes
Create remote manager configuration uemcli /sys/ur create -addr 10.10.0.1 -certificate 2fd4e1c67a2d28fced849ee1bb76e7391b93eb12 -passphrase password
Display Unisphere Central manager configuration uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/ur show
Display settings for remote system logging uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/rlog show
Configure remote system logging with these settings uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/rlog set –enabled yes –host 10.64.74.12 –port 500 –protocol UDP -facility chicago
Delete X509 certificate uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/cert -id vasa_http-vc1-servercert-1 delete
Display details about all schedules uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/task/sched show
Delete schedule MySchedID uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/task/sched -id MySchedID delete
List details for all task rules assigned to protection schedule uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/task/rule –sched SCHD_3 show
Delete a task rule uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/task/rule –id RULE_1 delete
Display list of all jobs uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/task/job show {-detail}
Resume an existing job uemcli -d 10.1.55.1 -u Local/username -p passwd123 /sys/task/job -id N-23564 resume
Display list of steps of the specified job uemcli /sys/task/job/step -jobId N-23654 show {-detail}
Network
Create a NAS server uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/nas/server create -name NasSanguy_1 -sp spa -pool pool_0 -enablePacketReflect yes
Displayl details for a list of all configured NAS servers uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/nas/server show -detail
Uses LDAP as the Unix Directory Service uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/nas/server -id nas_1 set -mpSharingEnabled yes -unixDirectoryService ldap
Change replication settings for NAS server nas_1 uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/nas/server -id nas_1 set -replDest yes
Change storage processor to SPB for NAS server nas_1 uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/nas/server -id nas_1 set -sp spb
Delete NAS server nas_1 uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/nas/server –id nas_1 delete
Create user mapping report for NAS server nas_1 uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/nas/server -id nas_1 update -async -userMapping
View FTP or SFTP server settings for a NAS server uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/nas/ftp show
View LDAP settings of a NAS server uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/nas/ldap -server nas_1 show -detail
Create a new NAS interface uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/nas/if create -server nas_1 -port eth0_SPA -addr 10.1.55.1 -netmask 255.255.255.0
Display all NAS interfaces on the system uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/nas/if show
Change the gateway address for interface IF_1 uemcli -d 10.1.55.1 -u Local/username -p passwd123/net/nas/if –id IF_1 set -gateway 2001:db8:0:170:a:0:2:70
Delete interface IF_1 uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/nas/if –id IF_1 delete
Create a network route for interface if_1 uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/nas/route create -if if_1 -type net -target 10.64.200.10 ‑netmask 255.255.255.0 -gateway 10.64.74.1
Display all NAS routes on the system uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/nas/route show -detail
Delete route ‘route_1’ uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/nas/route -id route_1 delete
Configure a custom Kerberos realm for NAS server nas_1 uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/nas/kerberos -server nas_1 set -addr master.thesanguy.com,slave.thesanguy.com -realm domain.thesanguy.com
Show Kerberos settings for all NAS Servers uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/nas/kerberos show
Display information for VLANs that are in use uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/vlan show -from 100 -inUse yes
Create a CIFS server uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/nas/cifs create -server nas_0 -name CIFSserver1 -description “CIFS description” -domain domain.thesanguy.com -username user1 -passwd password1
Displays CIFS server settings uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/nas/cifs show
Delete a CIFS server uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/nas/cifs -id CIFS_0 delete
Create an NFS server on NAS server nas_1 with ID nfs_1 uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/nas/nfs create -server nas_1 -v4 yes -secure yes
Display NFS server settings uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/nas/nfs show -detail
Change credit cache retention period for an NFS server uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/nas/nfs -id nfs_1 set -credCacheRetention 20
Delete an existing NFS server uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/nas/nfs -id nfs_1 delete
View details about CAVA settings uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/nas/cava show
Modify CAVA settings uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/nas/cava -server nas_1 set -enabled yes
View details about CEPA configuration settings uemcli /net/nas/event/config -server nas_1 show -detail
Enable Event Publishing and set the post-event policy uemcli /net/nas/event/config -server nas_1 set -enabled yes -postEventPolicy accumulate
Create a CEPA pool and a list of post events to be notified on uemcli /net/nas/event/pool create -server nas_1 -name mypool1 -addr 10.1.2.100 -postEvents CreateFile,DeleteFile
View details about a CEPA pool uemcli /net/nas/event/pool -server nas_1 show
Change the name for a CEPA pool uemcli /net/nas/event/pool -id cepa_pool_1 set -name TestCepaPool
Delete a CEPA pool uemcli /net/nas/event/pool –id cepa_pool_1 delete
Create VMware protocol endpoints servers for File Vvols uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/nas/vmwarepe create -server nas_1 -if if_ 1
View VMware protocol endpoints servers for File Vvols uemcli -d 10.1.55.1 -u Local/username -p passwd123/net/nas/vmwarepe show -detail
Delete a VMware protocol endpoints server uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/nas/vmwarepe –id PES_0 delete
View details about the iSCSI configuration uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/iscsi/config show
List all iSCSI nodes on the system uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/iscsi/node show
Change the network interface alias assigned to the node uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/iscsi/node -id ISCSIN_1 set -alias “Sample iSCSI node”
View details about the network ports uemcli /net/port/eth show
sets the MTU size for Ethernet port 0 (eth0) on SP A to 9000b uemcli /net/port/eth –id spa_eth0 set –mtuSize 9000
View details about the FC ports uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/port/fc show -detail
Change the speed for FC port fc1 on SP A to 1 Gbps uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/port/fc –id spa_fc1 set –speed 1Gbps
View details about uncommited ports uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/port/unc show -detail
View a list of interfaces on the system uemcli /net/if/mgmt show
Change the settings for an interface uemcli /net/if/mgmt set -ipv4 static -addr 192.168.1.199 -netmask 255.255.255.0 -gateway 192.168.1.254
Create a replication interface uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/if create -type replication -port eth1_spb -addr 10.1.55.1 -netmask 255.255.255.0 -gateway 10.1.55.1
View a list of interfaces on the system uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/if show -detail
Change the gateway address for interface IF_1 uemcli -d 10.1.55.1 -u Local/username -p passwd123/net/if –id IF_1 set -gateway 2001:ac8:0:253:c:0:2:50
Delete an interface uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/if –id IF_1 delete
Create an IP route uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/route create –if IF_1 –type net –target 10.55.99.10 netmask 255.255.255.0 –gateway 10.55.99.254
View details about IP routes uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/route show -detail
Modify an existing IP route uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/route -id RT_1 set -target 10.55.99.99 ‑netmask 255.255.255.0 -gateway 10.55.99.254
Delete an IP route uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/route –id RT_1 delete
Create a link aggregation uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/la create -ports “eth0_SPA,eth1_SPA”
Show the link aggregations on the system uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/la show
Change the settings of a link aggregation uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/la –id la0_SPA set –mtuSize 9000
Delete a link aggregation uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/la –id la0_SPA delete
Configure the DNS settings for the storage system uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/dns/config set -nameServer “10.55.13.9,10.55.13.10”
View the DNS server addresses designated as a default uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/dns/config show
View details about configured DNS server domains uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/nas/dns -server nas_1 show -detail
Configure a DNS server domain uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/nas/dns –server nas_1 set -name “storage.thesanguy.com”
Create an NTP server to specify an IP address of each NTP server uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/ntp/server create –server ntp.thesanguy.com
View details about the NTP server uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/ntp/server show
Configure the NTP server setting uemcli -d 10.1.55.1 -u Local/username -p 12345 /net/ntp/server set –addr “10.55.9.1,10.55.9.2”
Delete an NTP server record to remove the NTP settings uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/ntp/server –id NTP_10.5.1.207 delete
View details about NIS server domains uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/nas/nis show -detail
Add NIS server addresses to an NIS server domain uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/nas/nis –id nis.thesanguy.com set –ip “10.55.1.38″
View the IP addresses of the SMTP servers uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/smtp show
Specify the IP addresses for the SMTP server setting uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/smtp -id default set -addr 10.55.1.36
View whether NDMP is enabled or disabled uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/nas/ndmp show
Enable NDMP uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/nas/ndmp -server nas_0 set –enabled yes –passwd “passwd123”
View details for configured LDAP settings uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/ldap show
Update a configured LDAP setting uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/ldap -id lDAP_1 set –server webhost.thesanguy.com –port 389
Verify the connection to the LDAP server uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/ldap –id LDAP_1 verify
Delete an LDAP setting uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/ldap –id LDAP_1 delete
Ping a remote host from the specified NAS server interface uemcli /net/util ping -srcIf if_0 -addr 10.1.55.1
Display the route from the specified interface to a remote host uemcli /net/util/traceroute -srcIf if_0 -addr 10.1.55.1
Displays DHSM settings uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/nas/dhsm show
Modify Distributed Hierarchical Storage Management settings uemcli -d 10.1.55.1 -u Local/username -p passwd123 /net/nas/dhsm –server nas_0 set –state Enabled –username newname –passwd newpassword
Create an HTTP connection uemcli /net/nas/dhsmconn create -filesystem fs_1 -secondaryUrl http://10.1.0.115/export/dhsm1
View details for DHSM connections uemcli /net/nas/dhsmconn –fs fs_1 show
Modify settings for an existing DHSM connection uemcli /net/nas/dhsmconn –id dhsmconn_1 modify -mode recallOnly
Deletes an existing HTTP connection uemcli /net/nas/dhsmconn –id dhsmconn_1 delete -recallPolicy no
Host Management
Create a host configuration uemcli -d 10.1.55.1 -u Local/username -p passwd123 /remote/host create –name MyHost –descr “accounting” -type host –addr 10.64.74.10 -osType winxp
View details about a host configuration uemcli -d 10.1.55.1 -u Local/username -p passwd123 /remote/host show -brief
Change the settings for a host configuration uemcli -d 10.1.55.1 -u Local/username -p passwd123 /remote/host –id 1014 set -descr “Storage Team” –osType winxp
Delete a host configuration uemcli -d 10.1.55.1 -u Local/username -p passwd123 /remote/host –id 999 delete
Lists all host LUNs on host Host_3 uemcli -d 10.1.55.1 -u Local/username -p passwd123 /remote/host/hlu -host Host_3 show -detail
Change the host LUN ID uemcli -d 10.1.55.1 -u Local/username -p passwd123 /remote/host/hlu -id Host_3_sv_2_prod set –lunid 0
Create an FC or iSCSI initiator and assign it to a host configuration uemcli -d 10.1.55.1 -u Local/username -p passwd123 /remote/initiator create -host 1014 -uid “20:00:00:00:A9:19:0A:CD:10:00:00:00:A9:19:CD:FD” -type fc
View a list of all initiators uemcli -d 10.1.55.1 -u Local/username -p passwd123 /remote/initiator show
Modify an already created initiator uemcli -d 10.1.55.1 -u Local/username -p passwd123 /remote/initiator -id 1058 set -host 1099
List all initiator paths on the system uemcli -d 10.1.55.1 -u Local/username -p passwd123 /remote/initiator/path show
Configures a remote system configuration for local access uemcli -d 10.1.55.1 -u Local/username -p passwd123 /remote/sys create –addr 10.55.1.98 –type VNX -dstUsername admin1 -dstPassword password12134
Verify the configuration settings for a remote system uemcli -d 10.1.55.1 -u Local/username -p passwd123 /remote/sys –id RS_1 verify
View the configuration for a remote system on the local system uemcli -d 10.1.55.1 -u Local/username -p passwd123 /remote/sys show -detail
Changes the configuration settings for a remote system uemcli -d 10.1.55.1 -u Local/username -p passwd123 /remote/sys –id RS_1 set –addr “10.55.2.98” -dstUsername Local/username -dstPassword password1234
Deletes the configuration for a remote system uemcli -d 10.1.55.1 -u Local/username -p passwd123 /remote/sys –id RS_1 delete
Add virtual center credentials uemcli -d 10.1.55.1 -u Local/username -p passwd123 /virt/vmw/vc create -addr 10.55.11.109 -username administrator@vsphere.local -passwd xxx -descr “Add vCenter”
Specify a new description for the VMware vCenter server uemcli /virt/vmw/vc -id VC_1 set -descr “This vCenter manages 5 Executive hosts”
Remove an existing VMware vCenter server and its ESXi hosts uemcli -d 10.1.55.1 -u Local/username -p passwd123 /virt/vmw/vc -id VC_1 delete
Displays a list of configured VMware vCenter servers uemcli -d 10.1.55.1 -u Local/username -p passwd123 /virt/vmw/vc show
Rescan details of all configured VMware vCenter servers. uemcli -d 10.1.55.1 -u Local/username -p passwd123 /virt/vmw/vc refresh -scanHardware
Adds a VMware ESXi host uemcli -d 10.1.55.1 -u Local/username -p passwd123 /virt/vmw/esx create -addr 10.1.1.1 -username root -passwd xxx -descr “Prod ESX”
Change ESXi host credentials and/or description. uemcli -d 10.1.55.1 -u Local/username -p passwd123 /virt/vmw/esx -id ESX_1 set -descr “New Description”
Delete ESXi host credentials uemcli -d 10.1.55.1 -u Local/username -p passwd123 /virt/vmw/esx -id ESX_1 delete
Display a list of all configured VMware ESXi hosts uemcli -d 10.1.55.1 -u Local/username -p passwd123 /virt/vmw/esx -vc VC_1 show
List all VMware ESXi hosts on the specified VMware vCenter server uemcli -d 10.1.55.1 -u Local/username -p passwd123 /virt/vmw/esx discover -vc VC_1
Rescan details of a VMware ESXi host uemcli -d 10.1.55.1 -u Local/username -p passwd123 /virt/vmw/esx refresh -scanHardware
Display a list of all existing virtual machines on existing ESXi hosts uemcli -d 10.1.55.1 -u Local/username -p passwd123 /virt/vmw/vm -esx ESX_1 show
Manage hard disk properties for VMware virtual machines uemcli -d 10.1.55.1 -u Local/username -p passwd123 /virt/vmw/vmdevice -vm VM_1 show
Hardware
View existing Storage Processors (SPs) uemcli -d 10.1.55.1 -u Local/username -p passwd123 /env/sp show
View existing drives uemcli -d 10.1.55.1 -u Local/username -p passwd123 /env/disk show
Display the details of all drives on the system uemcli -d 10.1.55.1 -u Local/username -p passwd123 /env/disk show -detail
Rescan the system for available virtual disks uemcli -d 10.0.0.2 -u Local/username -p passwd123 /env/disk rescan
Change settings of an existing disk uemcli -d 10.0.0.2 -u Local/username -p passwd123 /env/disk -id vdisk_1 set -name “extreme perf storage”
Display a list of system batteries uemcli -d 10.1.55.1 -u Local/username -p passwd123 /env/bat show
View a list of system power supplies uemcli -d 10.1.55.1 -u Local/username -p passwd123 /env/ps show
View a list of LCCs uemcli -d 10.1.55.1 -u Local/username -p passwd123 /env/lcc show
View a list of system SSDs uemcli -d 10.1.55.1 -u Local/username -p passwd123 /env/ssd show
View a list of system DAEs uemcli -d 10.1.55.1 -u Local/username -p passwd123 /env/dae show
View details of the system DPE uemcli -d 10.1.55.1 -u Local/username -p passwd123 /env/dpe show
View a list of system memory modules uemcli -d 10.1.55.1 -u Local/username -p passwd123 /env/mm show
View a list of System Status Cards (SSC) uemcli -d 10.1.55.1 -u Local/username -p passwd123 /env/ssc show -detail
View a list of system fan modules uemcli -d 10.1.55.1 -u Local/username -p passwd123 /env/fan show
View details about I/O modules in the system uemcli -d 10.1.55.1 -u Local/username -p passwd123 /env/iomodule show
Storage Management
Create a dynamic pool uemcli -d 10.1.55.1 -u Local/username -p passwd123 uemcli /stor/config/pool create -name MyPool -descr “dynamic pool” -diskGroup dg_2,dg_28 -drivesNumber 6,10 -storProfile profile_1,profile_2
Create a traditional pool in a model that support dynamic pools uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/config/pool create -name MyPool -descr “traditional pool” -diskGroup dg_3,dg_28 -drivesNumber 5,9 -storProfile tprofile_1,tprofile_2 -type traditional
Create a traditional pool that does not support dynamic pools uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/config/pool create -name MyPool -descr “my large pool” -storProfile profile_19,profile_20 -diskGroup dg_15,dg_16 -drivesNumber 5,9 -FASTCacheEnabled yes
Create a traditional pool with two virtual disks uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/config/pool create -name vPool -descr “my virtual pool” -disk vdisk_0,vdisk_2
Set the subscription alert threshold for pool_1 uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/config/pool -id pool_1 -set -alertThreshold 70 -FASTCacheEnabled no
Add new drives to a pool to increase its storage capacity uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/config/pool –id pool_1 extend –diskGroup dg_1 –drivesNumber 7 -storProfile profile_99
View a list of pools uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/config/pool show -detail
Show all pools for a model that supports dynamic pools uemcli -d 10.0.0.2 -u Local/username -p passwd123 /stor/config/pool show -detail
Shows details for all pools on a virtual system uemcli -d 10.0.0.2 -u Local/username -p passwd123 /stor/config/pool show -detail
Delete a pool uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/config/pool –id pool_1 delete
Modify FAST VP settings on an existing pool uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/config/pool/fastvp -pool pool_1 set -schedEnabled yes
View FAST VP settings on a pool uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/config/pool/fastvp –show -detail
Start data relocation on a pool uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/config/pool/fastvp -pool pool_1 start -endTime 09:00
Stop data relocation on a pool uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/config/pool/fastvp –pool pool_1 stop
Show tier details about the specified pool uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/config/pool/tier -pool pool_1 show -detail
shows details for all storage resources associated with the pool uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/config/pool/sr -pool pool_1 show -detail
Change FAST VP general settings uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/config/fastvp set -schedEnabled yes -days “Mon,Fri” -at 23:00 -until 09:00
View the FAST VP general settings uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/config/fastvp show -detail
Configure FAST Cache uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/config/fastcache create -diskGroup dg9 -drivesNumber 6 -enableOnExistingPools
View the FAST Cache parameters uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/config/fastcache show -detail
Extend the FAST Cache by adding more drives uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/config/fastcache extend -diskGroup dg9 -drivesNumber 6
Shrink the FAST Cache by removing storage objects uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/config/fastcache shrink –so rg_1
Delete the FAST Cache configuration uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/config/fastcache delete
View a list of all storage objects, including RAID groups and drives uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/config/fastcache/so show
Show details for storage profiles uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/config/profile -configurable show
View details about drive groups on the system uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/config/dg show -detail
View the current storage system capacity settings uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/general/system show
View the current system tier capacity settings uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/general/tier show
View details about a file system uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/prov/fs -id res_99 show
Specify Event Publishing protocols uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/prov/fs -id res_99 set -eventProtocols nfs,cifs
Delete a file system uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/prov/fs -id res_99 delete
creates a user quota (for user 201 on file system res_1) uemcli -d 10.1.55.1 -u Local/username -p passwd123 /quota/user create -fs res_1 -path /qtree_1 -userId 201 -softLimit 20G -hardLimit 50G
Change the user quota uemcli -d 10.1.55.1 -u Local/username -p passwd123 /quota/user -fs res_1 -path /qtree_1 unixName nasadmin show -detail
Create quota tree /qtree_1 on file system res_1 uemcli -d 10.1.55.1 -u Local/username -p passwd123 /quota/tree create -fs res_1 -path /qtree_1 -softLimit 500G -hardLimit 999G
Display space usage information for all quota trees (on res_1) uemcli -d 10.1.55.1 -u Local/username -p passwd123 /quota/tree -fs res_1 show -detail
Refresh quota information for all quota trees on res_1 fs uemcli -d 10.1.55.1 -u Local/username -p passwd123 /quota/tree -fs res_1 refresh /
Delete quota tree /qtree_1 on file system res_1 uemcli -d 10.1.55.1 -u Local/username -p passwd123 /quota/tree -fs res_1 -path /qtree_1 delete
List config info for quota tree /quota/config on res_1 fs uemcli -d 10.1.55.1 -u Local/username -p passwd123 /quota/config -fs res_1 show -detail
Create an NFS share to export a file system through NFS uemcli -u admin -p Password123! /stor/prov/fs/nfs create -name testnfs112 -fs res_26 -path “mypath”
View details of an NFS share uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/prov/fs/nfs show -detail
Delete an NFS share uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/prov/fs/nfs –id NFSShare_1 delete
Creates a CIFS share uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/prov/fs/cifs create –name CIFSshare -descr “a share” –fs fs1 -path ”/cifsshare” -enableContinuousAvailability yes -enableCIFSEncryption yes
List details for all CIFS network shares uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/prov/fs/cifs show
Set the description of CIFS share uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/prov/fs/cifs –id SMBShare_1 set -descr “a share”
Delete a CIFS (SMB) share uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/prov/fs/cifs –id CIFSShare_1 delete
Create a LUN uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/prov/luns/lun create -name “TheLUN” -descr “The LUN” -type primary -group group1 -pool pool_1 -size 999M
Display the list of existing LUNs uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/prov/luns/lun show
Change the settings of a LUN uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/prov/luns/lun -id lun_1 set -name NewName -descr “My new description” -size 150M
Delete a LUN uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/prov/luns/lun -id lun_1 delete
Refresh a LUN’s thin clone uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/prov/luns/lun -id lun_5_tc refresh -source SNAP_2 -copyName Backup1
Create a consistency group uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/prov/luns/group create -name GenericStorage01 -descr “MyStorage” -sched SCHD_1
Display the list of existing consistency groups uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/prov/luns/group show -detail
Change the settings for a consistency group uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/prov/luns/group -id group_1 set -name NewName -descr “New Descr” -sched SCHD_2 -schedPaused yes -fastvpPolicy startHighThenAuto
Delete a consistency group uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/prov/luns/group -id group_1 delete
Create an NFS datastore uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/prov/vmware/nfs create –name Executive –descr “Executive VMs” –server nas_1 –pool capacity –size 100G -rwHosts host1 -esxMountProtocol NFSv4 -minSecurity krb5 -nfsOwner john -defAccess na
View details about an NFS datastore uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/prov/vmware/nfs show
Change the settings for an NFS datastore uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/prov/vmware/nfs –id NFSDS_1 set –roHosts “HOST_1,HOST_2” -naHosts “HOST_3”
Delete an NFS datastore uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/prov/vmware/nfs -id NFSDS_1 delete
Create a VMFS datastore uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/prov/vmware/vmfs create –name “Banking 3” –descr “Banking Grp 3” –pool capacity -size 100G –thin yes –vdiskHosts “1166,1167”
Display the list of existing VMFS datastores uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/prov/vmware/vmfs show
Change the settings for a VMFS datastore uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/prov/vmware/vmfs –id VMFS1 set –name engineering2 –descr “Eng Grp 2”
Delete a VMFS datastore uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/prov/vmware/vmfs –id VMFS_1 delete
Refresh the thin clone of a VMFS datastore uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/prov/vmware/vmfs -id vmware_2_tc refresh -source snapshot2 -copyName Backup1
Display a list of existing protocol endpoints and their characteristics uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/prov/vmware/pe show detail
Changes the settings for a VMware protocol endpoint (iSCSI) uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/prov/vmware/pe set –id rfc9999.e53a24f1-3324-9999-80a3-c2cabb322a1c set –lunid 5
Create a datastore for VMware Vvols uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/prov/vmware/vvolds create –name “HR” –cp cp_1,cp_2 –size 10G, 12G –type file –hosts “HostA,HostB”
Display a list of existing VVol datastores and their characteristics uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/prov/vmware/vvolds show -detail
Modify an existing VVol datastore uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/prov/vmware/vvolds -id res_1 set -name MyNewName -descr “Descr” -addCp cp_1 -size 10G
Delete VVol datastores and their associated virtual volumes uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/prov/vmware/vvolds -id res_1 delete -force yes
Display existing VVol datastore allocations uemcli /stor/prov/vmware/vvolds/alloc -vvolds vvolds_1 -pool pool_1 show -detail
Display a list of existing VVol datastores and their characteristics uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/prov/vmware/vvol –vm VM_1 show -detail
Deletes the specified existing VVol objects uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/prov/vmware/vvol –id naa.6006016005603c009370093e194fca3f delete
Create a capability profile for VVol datastores uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/config/cp create -name “CapabilityProfile1” -pool pool_1 -usageTag “Prod”
Display a list of existing capability profiles and their characteristics uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/config/cp show -detail
Modify an existing capability profile uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/config/cp -id cp_1 set -name “CapabilityProfile2”
Deletes specified capability profiles uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/config/cp -id cp_1 delete
Create an I/O limit policy uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/config/iolimit create -name “SALES” -descr “for Sales Dept” -shared yes -type absolute -maxIOPS 500 -maxKBPS 1000
Delete an I/O limit policy uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/config/iolimit -id IOL_1 delete
Change the settings of an existing I/O limit policy uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/config/iolimit -id IOL_1 set -name “HR” -maxIOPS 1000 -noKBPS
Display the settings for the specified I/O limit policy uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/config/iolimit show -detail
Display the settings for the existing I/O limit configuration setting uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/config/iolimit/config show
Enforces the use of I/O limits on the system uemcli -d 10.1.55.1 -u Local/username -p passwd123 /stor/config/iolimit/config set -paused no
Data Protection
Create a snapshot of a storage resource uemcli -d 10.1.55.1 -u Local/username -p passwd123 /prot/snap create –name accounting –source FS_1 -keepFor 1d
View details about snapshots on the system uemcli -d 10.1.55.1 -u Local/username -p passwd123 /prot/snap show -detail
Attach snapshot SNAP_1 uemcli -d 10.1.55.1 -u Local/username -p passwd123 /prot/snap –id SNAP1 attach –type dynamic –roHosts HostA,HostB –rwHosts HostC,HostD
Refresh a block snapshot uemcli -d 10.1.55.1 -u Local/username -p passwd123 /prot/snap –id 38654705680 refresh –copyName copy1
Replicate snapshots after they have been created uemcli -d 10.1.55.1 -u Local/username -p passwd123 /prot/snap –id 38654705680 replicate -keepRemotelyFor 1d
Detaches snapshot SNAP_1 uemcli -d 10.1.55.1 -u Local/username -p passwd123 /prot/snap –id SNAP_1 detach
Restore Snapshot uemcli -d 10.1.55.1 -u Local/username -p passwd123 /prot/snap –id SNAP_1 restore
Delete Snapshot uemcli -d 10.1.55.1 -u Local/username -p passwd123 /prot/snap –id SNAP_1 delete
Copy a snapshot uemcli -d 10.1.55.1 -u Local/username -p passwd123 /prot/snap -id SNAP_1 copy –copyName SNAP_Copy
Change the settings of a snapshot uemcli -d 10.1.55.1 -u Local/username -p passwd123 /prot/snap -id SNAP_1 set -newName MySnap
Create a snapshot NFS share uemcli -d 10.1.55.1 -u Local/username -p passwd123 /prot/snap/nfs create –name NFSshare -descr “SHARENAME” –snap SNAP1 -path / -roHosts “HostA, HostB” -rwHosts “HostC”
Lists the existing snapshot NFS shares uemcli /prot/snap/nfs show -detail
Modifies an existing snapshot NFS share uemcli -d 10.1.55.1 -u Local/username -p passwd123 /prot/snap/nfs -id nfs_1 set -descr “SHARENAME”
Delete (destroy) a snapshot NFS share uemcli -d 10.1.55.1 -u Local/username -p passwd123 /prot/snap/nfs –id nfs_1 delete
Create a snapshot CIFS (SMB) share uemcli -d 10.1.55.1 -u Local/username -p passwd123 /prot/snap/cifs create –name CIFSshare -descr “SHARENAME” -path /
Lists the existing snapshot CIFS (SMB) shares uemcli /prot/snap/cifs show
Modifies an existing snapshot CIFS (SMB) share uemcli /prot/snap/cifs -id cifs_1 set -descr “My share”
Delete (destroy) a snapshot CIFS (SMB) share uemcli -d 10.1.55.1 -u Local/username -p passwd123 /prot/snap/cifs –id smb_1 delete
Create a replication session uemcli -d 10.1.55.1 -u Local/username -p passwd123 /prot/rep/session create -name REP1 -srcRes RS_1 –dstType remote -dstSys RS_2 –dstRes LUN_2 –syncType auto –rpo 02h30m
View details about replication sessions uemcli -d 10.1.55.1 -u Local/username -p passwd123 /prot/rep/session show {-detail}
Change the settings for a replication session uemcli /prot/rep/session –id 64518754321_AFCDEF34234A3B_0000_35674324567_ADCDF154321341_0000 set –srcSPAInterface if_1 –srcSPBInterface if_2 –dstSPAInterface if_3 –dstSPBInterface if_4
Manually synchronize a replication session uemcli -d 10.1.55.1 -u Local/username -p passwd123 /prot/rep/session –id REPS_1 sync
Delete a replication session uemcli -d 10.1.55.1 -u Local/username -p passwd123 /prot/rep/session –id 64518754321_AFCDEF34234A3B_0000_35674324567_ADCDF154321341_0000 delete
Fail over of a replication session uemcli -d 10.1.55.1 -u Local/username -p passwd123 /prot/rep/session –id 64518754321_AFCDEF34234A3B_0000_35674324567_ADCDF154321341_0000 failover
Fail back of a replication session uemcli -d 10.1.55.1 -u Local/username -p passwd123 /prot/rep/session –id 64518754321_AFCDEF34234A3B_0000_35674324567_ADCDF154321341_0000 failback
View the RPA CHAP account uemcli -d 10.1.55.1 -u Local/username -p passwd123 /remote/rpa/chap show
Modify the RPA CHAP account uemcli -d 10.1.55.1 -u Local/username -p passwd123 /remote/rpa/chap set -outUsername admin -outSecret abcdef123456
View Data at Rest Encryption settings uemcli -d 10.1.55.1 -u Local/username -p passwd123 /prot/encrypt show -detail
Enable encryption setting for KMIP support uemcli -d 10.1.55.1 -u Local/username -p passwd123 /prot/encrypt set -kmipEnabled yes
View settings for KMIP support uemcli -d 10.1.55.1 -u Local/username -p passwd123 /prot/encrypt/kmip show
Change key management server parameters for KMIP support uemcli -d 10.1.55.1 -u Local/username -p passwd123 /prot/encrypt/kmip set -username skoobee -passwd doobee -port 5696 -timeout 20 -addr 10.1.1.1
Verify the current connection to the KMIP server uemcli -d 10.1.55.1 -u Local/username -p passwd123 /prot/encrypt/kmip verify
Data Mobility
Displays all existing import sessions on the system uemcli -d 10.1.55.1 -u Local/username -p passwd123 /import/session show -detail
Create a block import session uemcli -d 10.1.55.1 -u Local/username -p passwd123 import/session/block create -name lun_17_import -srcSys RS_65596 -srcRes 17 -lunPoolPairs 17:pool_1 -importAsVMwareDatastore yes
Change the settings for a block import session uemcli -d 10.1.55.1 -u Local/username -p passwd123 /import/session/block –id import_1 set -name newName -throttle no -cutoverThreshold 5
Cut over block import session to the target system uemcli -d 10.1.55.1 -u Local/username -p passwd123 /import/session/block -id import_1 cutover
Cancel an existing block import session uemcli -d 10.1.55.1 -u Local/username -p passwd123 /import/session/block -id import_1 cancel
View details about import sessions for block uemcli -d 10.1.55.1 -u Local/username -p passwd123 /import/session/block show -detail
Create a NAS import session uemcli -d 10.1.55.1 -u Local/username -p passwd123 import/session/nas create -name MyName1 -srcSys RS_1 -srcRes src_vdm_to_migrate -targetResPool pool_1 -targetImportIf if_3 -productionIfPortPairs fsPoolPairs 100~200:pool_2,255:pool_3 -srcFsImportedAsVMWareDatastore 13,20~25,30 -skipServerParamCheckdefaultProductionPort spa_iom_0_eth0 -flrImport yes -unixDirectoryService directMatch -source_interface_1:spa_iom_0_eth1,source_interface_2:spa_iom_0_eth0 –
Change the settings for a NAS import session uemcli -d 10.1.55.1 -u Local/username -p passwd123 /import/session/nas –id import_1 set -name newName -targetResPool pool_2 -targetImportIf if_3 -productionIfPortPairs source_interface_1:spa_iom_0_eth1,source_interface_2:spa_iom_0_eth0 -fsPoolPairs 100~200:pool_2,255:pool_3 -srcFsImportedAsVMWareDatastore 17~20 – srcFsImportedWithCompressionEnabled 31,40~45
Cut over a NAS import session uemcli -d 10.1.55.1 -u Local/username -p passwd123 /import/session/nas -id import_1 cutover
Commit an existing NAS import session uemcli -d 10.1.55.1 -u Local/username -p passwd123 /import/session/nas -id import_1 commit
Cancel an existing NAS import session uemcli -d 10.1.55.1 -u Local/username -p passwd123 /import/session/nas -id import_1 cancel
View details about import sessions for NAS uemcli -d 10.1.55.1 -u Local/username -p passwd123 /import/session/nas show -detail
Display import status for the specified import session uemcli -d 10.1.55.1 -u Local/username -p passwd123 /import/session/element -importId import_2 show -detail
Create a LUN move session uemcli -d 10.1.55.1 -u Local/username -p passwd123 /move/session create -srcRes sv_1 –targetPool pool_1 -priority above –thin yes –compressed no
Display details for a LUN move session uemcli -d 10.1.55.1 -u Local/username -p passwd123 /move/session show -detail
Modify the settings of a move session uemcli -d 10.1.55.1 -u Local/username -p passwd123 /move/session –id MoveSession_1 set -priority below
Delete a LUN move session uemcli -d 10.1.55.1 -u Local/username -p passwd123 /move/session –id movesession_1 delete
Cancel a LUN move session that is in progress uemcli -d 10.1.55.1 -u Local/username -p passwd123 /move/session –id movesession_1 cancel
Events and Alerts
View a detailed log of system events uemcli -d 10.1.55.1 -u Local/username -p passwd123 /event/log show -fromTime “2017-01-05 00:00:00.000” –to “2017-01-05 23:59:59.999”
View a detailed list of all system alerts uemcli -d 10.1.55.1 -u Local/username -p passwd123 /event/alert/hist show
Acknowledge specific alerts uemcli -d 10.1.55.1 -u Local/username -p passwd123 /event/alert/hist -id alert_2 ack
Delete specific alerts uemcli -d 10.1.55.1 -u Local/username -p passwd123 /event/alert/hist -id alert_3 delete
View the settings for how the system handles alerts uemcli -d 10.1.55.1 -u Local/username -p passwd123 /event/alert/conf show
Configure the settings for how the system handles alerts uemcli -d 10.1.55.1 -u Local/username -p passwd123 /event/alert/conf set -emailFromAddr “from@mail.com” -emailToAddrs “x@mail.com,z@mail.com” –emailSeverity info -snmpSeverity error
Create an SNMP trap destination for system alerts uemcli -d 10.1.55.1 -u Local/username -p passwd123 /event/alert/snmp create –host 10.64.75.1 –port 333 –userName user1 authProto md5 -authPassword authpassword1234 –privProto des –privPassword passwd123
View details about SNMP destinations uemcli -d 10.1.55.1 -u Local/username -p passwd123 /event/alert/snmp show
Change the settings for an SNMP destination uemcli -d 10.1.55.1 -u Local/username -p passwd123 /event/alert/snmp –id Host1_323 set -authProto md5 -authPassword newauthpassword –privProto des –privPassword newpasswd
Delete an SNMP destination uemcli -d 10.1.55.1 -u Local/username -p passwd123 /event/alert/snmp -id Host1_323 delete
System Maintenance
Changes the service password uemcli -d 10.1.55.1 -u Local/username -p passwd123 /service/user set –passwd NewPassword456! –oldpasswd OldPassword456!
Restarts management software on the system uemcli -d 10.1.55.1 -u Local/username -p passwd123 /service/system restart
Shuts down the system uemcli -d 10.1.55.1 -u Local/username -p passwd123 /service/system shutdown
Reinitialize the storage system uemcli -d 10.1.55.1 -u Local/username -p passwd123 /service/system reinit
Collect service information uemcli -d 10.1.55.1 -u Local/username -p passwd123 /service/system collect -serviceInfo {-type perfAssessment}
Show a list of the system core dumps uemcli -d 10.1.55.1 -u local/serviceuser -p Password /service/system/dump –id “mspb:logDaemon_:2017-12-25_01_33_22_473_logDaemon.x” show
Delete a core dump uemcli -d 10.1.55.1 -u local/serviceuser -p Password /service/system/dump -id mspa:CP_:2018-01-22_15_11_39_13422_ECOM delete
Enable SSH access to the system uemcli -d 10.1.55.1 -u Local/username -p passwd123 /service/ssh set -enabled yes
Display SSH settings uemcli -d 10.1.55.1 -u Local/username -p passwd123 /service/ssh show
Switch the storage processor to the service mode uemcli -d 10.1.55.1 -u Local/username -p passwd123 /service/sp -id spa service
Reboot the storage processor uemcli -d 10.1.55.1 -u Local/username -p passwd123 /service/sp -id spa reboot
Reimage the storage processor uemcli -d 10.1.55.1 -u Local/username -p passwd123 /service/sp -id spa reimage
Manage Metrics
View the current metrics service settings uemcli -d 10.1.55.1 -u Local/username -p passwd123 /metrics/service show
Enable historical metrics collection uemcli -d 10.1.55.1 -u Local/username -p passwd123 /metrics/service set -historyEnabled yes
View information about supported metrics uemcli -d 10.1.55.1 -u Local/username -p passwd123 /metrics/metric show {-detail}
Displays all available real-time metric service settings uemcli -d 10.1.55.1 -u Local/username -p passwd123 /metrics/metric -availability real-time show
Displays metrics service settings for a specific path uemcli -d 10.1.55.1 -u Local/username -p passwd123 /metrics/metric -path sp.*.storage.lun.*.avgReadSize,sp.*.storage.filesystem.*.writesRate,sp.*.cifs.smb2.basic.readsRate show -detail
View historical metrics settings uemcli -d 10.1.55.1 -u Local/username -p passwd123 /metrics/value/hist -path sp.spa.storage.lun.sv_1.readsRate show -interval 60 -from 2017-01-24 01:42:00 -to “2017-01-24 04:1 4 :00”
View real-time metrics settings uemcli -d 10.1.55.1 -u Local/username -p passwd123 uemcli /metrics/value/rt -path sp.*.storage.lun.*.readsRate show -interval 10
Advertisements

Data Domain CLI Command Reference Guide

Other CLI Reference Guides:
Isilon CLI  |  EMC ECS CLI  |  VNX NAS CLI | ViPR Controller CLINetApp Clustered ONTAP CLI  |  Brocade FOS CLI | EMC XTremIO CLI

This is a Data Domain CLI Command Reference Guide for the commands that are more commonly used.

If you’re looking to automate reports for your Data Domain, see my post Easy Reporting on Data Domain using the Autosupport Log.

Alerting
# alerts notify-list create <group-name> Creates a notification list and subscribes to events belonging to the specified list of classes and severity levels.
# alerts notify-list add <group-name> Adds to a notification list and subscribes to events belonging to the specified list of classes and severity levels.
# alerts notify-list del <group-name> Deletes members from a notification list, a list of classes, a list of email addresses.
# alerts notify-list destroy <group-name> Destroys a notification list
# alerts notify-list reset Resets all notification lists to factory default
# alerts notify-list show Shows notification lists’ configuration
# alerts notify-list test Sends a test notification to alerts notify-list
CIFS and NFS
# cifs share create share path {max-connections max connections | clients clients | users users | comment comment}
# cifs status Check CIFS Status
# cifs disable Disable CIFS Service
# cifs enable Enable CIFS Service
NFS
# nfs add path client-list [(option-list)] Add NFS clients to an Export
# nfs show active List clients active in the past 15 minutes and the mount path for each
# nfs show clients list NFS clients allowed to access the Data Domain system and the mount path and NFS options for each
# nfs show detailed-stats display NFS cache entries and status to facilitate troubleshooting
# NFS Status Display NFS Status
# NFS Enable Enable NFS Service
# NFS disable Disable NFS Service
DD Boost
# ddboost enable Enable DDBoost
# ddboost status show DDBoost status
# ddboost set user-name <user-name> Set DD Boost user
# ddboost access add clients <client-list> Add clients to DD Boost access list
# ddboost storage-unit create <storage-unit-name> Create storage-unit, setting quota limits
# ddboost storage-unit delete <storage-unit-name> Delete storage-unit
# ddboost storage-unit show [compression] [<storage-unit-name>] List the storage-units and images in a storage-unit:
# ddboost storage-unit create <storage-unit> user <user-name> Create a storage unit, assign tenant, and set quota and stream limits
# ddboost storage-unit delete <storage-unit> Delete a specified storage unit, its contents, and any DD Boost assocaitions
# ddboost storage-unit rename <storage-unit> <new-storage-unit> Rename a storage-unit
# ddboost storage-unit undelete <storage-unit> Recover a deleted storage unit
# ddboost option reset Reset DD Boost options
# ddboost option set distributed-segment-processing {enabled|disabled} Enable or disable distributed-segment-processing for DD Boost
# ddboost option set virtual-synthetics {enabled | disabled} Enable or disable virtual-synthetics for DD Boost
# ddboost option show Show DD Boost options
# ddboost option set fc {enabled | disabled} Enable or disable fibre-channel for DD Boost
# ddboost fc dfc-server-name set DDBoost Fibre-Channel set Server Name
# ddboost fc dfc-server-name show Show DDBoost Fibre-Channel Server Name
# ddboost fc status DDBoost Fibre Channel Status
# ddboost fc group show list [<group-spec>] [initiator<initiator-spec>] List configured DDBoost FC groups
# ddboost fc group create <group-name> Create a DDBoost FC group
# ddboost fc group add <group-name> initiator <initiator-spec> Add initiators to a DDBoost FC group
# ddboost fc group add <group-name> device-set Add DDBoost devices to a DDBoost FC group
Encryption and File system Locking
# filesys enable Enables the file system
# filesys disable Disables the file system
# filesys encryption enable Enables encryption. Enter a passphrase when prompted
# filesys encryption disable Disables encryption.
# filesys encryption show Checks the status of the encryption feature
# filesys encryption lock Locks the system by creating a new passphrase and destroying the cached copy of existing passphrase
# filesys encryption passphrase change Changes the passphrase for system encryption keys
# filesys encryption unlock Prepares the encrypted file system for use after it has arrived at its destination
Licensing
# license add <license-code> [<license-code> …] Adds one or more licenses for features and storage capacity.
# license show [local] Displays license codes currently installed.
# license del <license-code> Deletes one or more licenses.
# license reset Removes all licenses and requires confirmation before deletion.
Network
# net show settings Displays the interface’s network settings
# net show hardware Displays the interface’s hardware configuration
# net show config Displays the active network configuration
# net show domainname Displays the domain name associated with this device
# net show searchdomain Lists the domains that will be searched when only the host name is provided for a r command
# net show dns Lists the domain name servers used by this device.
# net show stats Provides a number of different networking statistics
# net show all Combines the output of several other net show CLI commands
Replication, Throttling, LBO, Encryption
# replication enable {<destination> | all} Enables replication
# replication disable {<destination> | all} Disables replication
# replication add source <source> destination <destination> Creates a replication pair
# replication break {<destination> | all} Removes the source or destination DD system from a replication pair
# replication initialize <destination> Initialize replication on the source (configure both source and destination first)
# replication modify <destination> {source-host | destination-host} <new-host-name> Modifies connection host, hostname
# replication modify <destination> connection-host <new-host-name> [port <port>] Modifies port
# replication add … low-bw-optim enabled Adds LBO
# replication modify … low-bw-optim enabled Modify LBO
# replication modify … low-bw-optim disabled Disable
# replication add … encryption enabled Add encryption over wire
# replication modify … encryption enabled Enable encryption over wire
# replication modify … encryption disabled Disable encryption over wire
# replication option set listen-port <port> Modify listening port  [context must be disabled before the connection port can be modified]
# replication option reset listen-port Reset listening port  [context must be disabled before the connection port can be modified]
# replication throttle add <sched-spec> <rate> Add a throttle schedule
# replication throttle add destination <host> <sched-spec> <rate> Add a destination specific throttle
# replication throttle del <sched-spec> Delete a throttle schedule
# replication throttle reset {current | override | schedule | all} Reset throttle configuration
# replication throttle set current <rate> Set a current override
# replication throttle set override <rate> Set a permanent override
# replication throttle show [KiB] Show throttle onfiguration
Retention Lock
# mtree retention-lock enable mtree_name Enables the retention-lock feature for the specified MTree
# mtree retention-lock disable mtree_name Disables the retention-lock feature for the specified MTree
# mtree retention-lock reset Resets the value of the retention period for the specified MTree to its default
# mtree retention-lock revert Reverts the retention lock for all files on a specified path
# mtree retention-lock set Sets the minimum or maximum retention period for the specified MTree
# mtree retention-lock show Shows the minimum or maximum retention period for the specified MTree
#mtree retention-lock status mtree_name Shows the retention-lock status for the specified MTree
Sanitization
#system sanitize abort Aborts the sanitization process
#system sanitize start Starts sanitization process immediately
#system sanitize status Shows current sanitization status
#system sanitize watch Monitors sanitization progress
SMT MTree stats
# mtree list List List the Mtrees on a Data Domain system
# mtree show stats Collect MTree real-time performance statistics
# mtree show performance Collect performance statistics for MTrees associated with a tenant-unit
# mtree show compression Collect compression statistics for MTrees associated with a tenant-unit
# quota capacity show List capacity quotas for MTrees and storage-units
# ddboost storage-unit modify Adjust or modify the quotas after the initial configuration
System Performance
# system show stats interval [interval in seconds] Shows system stats (Disk, IOs,…etc)
# system show performance [ {hr | min | sec} [ {hr | min | sec} ]] Show System Performance
NDMP
# ndmpd enable Enable the NDMP daemon
# ndmpd show devicenames Verify that the NDMP daemon sees the devices created in the TapeServer access group
# ndmpd user add ndmp Add an NDMP user
# ndmpd option show all Check the options for the ndmpd daemon
# ndmpd option set authentication md5 Set the ndmpd service authentication to MD5
# ndmpd option show all Verify the serivce authentication

Adding a Celerra to a Clariion storage domain from the CLI

If you’re having trouble joining your Celerra to the storage domain from Unisphere, there is an EMC service Workaround for Joining it from the Navisphere CLI. When attempting it from Unisphere, it would appear to work and allow me to join but would never actually show up on the domain list.  Below is a workaround for the problem that worked for me. Run these commands from the Control Station.

Run this first:

curl -kv “hps://<Celerra_CS_IP>/cgi-bin/set_incomingmaster?master=<Clariion_SPA_DomainMaster_IP>,”

Next, run the following navicli command to the domain master in order to add the Celerra Control Station to the storage domain:

/nas/sbin/naviseccli -h 10.3.215.73 -user <userid> -password <password> -scope 0 domain -add 10.32.12.10

After a successful Join the /nas/http/domain folder should be populated with the domain_list, domain_master, and domain_users files.

Run this command to verify:

ls -l /nas/http/domain

You should see this output:

-rw-r–r– 1 apache apache 552 Aug  8  2011 domain_list
-rw-r–r– 1 apache apache  78 Feb 15  2011 domain_master
-rw-r–r– 1 apache apache 249 Oct  5  2011 domain_users
 

You can also check the domain list to make sure that an entry has been made.

Run this command to verify:

/nas/sbin/naviseccli -h <Clariion_SPA_DomainMaster_IP> domain -list

You should then see a list of all domain members.  The output will look like this:

Node:                     <DNS Name of Celerra>
IP Address:           <Celerra_CS_IP>
Name:                    <DNS Name of Celerra>
Port:                        80
Secure Port:          443
IP Address:           <Celerra_CS_IP>
Name:                    <DNS Name of Celerra>
Port:                        80
Secure Port:          443

Undocumented Celerra / VNX File commands

vnx1

The .server_config command is undocumented from EMC, I assume they don’t want customers messing with it. Use these commands at your own risk. 🙂

Below is a list of some of those undocumented commands, most are meant for viewing performance stats. I’ve had EMC support use the fcp command during a support call in the past.   When using the command for fcp stats,  I believe you need to run the ‘reset’ command first as it enables the collection of statistics.

There are likely other parameters that can be used with .server_config but I haven’t discovered them yet.

TCP Stats:

To view TCP info:
.server_config server_x -v “printstats tcpstat”
.server_config server_x -v “printstats tcpstat full”
.server_config server_x -v “printstats tcpstat reset”

Sample Output (truncated):
TCP stats :
connections initiated 8698
connections accepted 1039308
connections established 1047987
connections dropped 524
embryonic connections dropped 3629
conn. closed (includes drops) 1051582
segs where we tried to get rtt 8759756
times we succeeded 11650825
delayed acks sent 537525
conn. dropped in rxmt timeout 0
retransmit timeouts 823

SCSI Stats:

To view SCSI IO info:
.server_config server_x -v “printstats scsi”
.server_config server_x -v “printstats scsi reset”

Sample Output:
This output needs to be in a fixed width font to view properly.  I can’t seem to adjust the font, so I’ve attempted to add spaces to align it.
Ctlr: IO-pending Max-IO IO-total Idle(ms) Busy(ms) Busy(%)
0:      0         53    44925729       122348758     19159954   13%
1:      0                                           1 1 141508682       0          0%
2:      0                                           1 1 141508682       0          0%
3:      0                                           1 1 141508682       0          0%
4:      0                                           1 1 141508682       0          0%

File Stats:

.server_config server_x -v “printstats filewrite”
.server_config server_x -v “printstats filewrite full”
.server_config server_x -v “printstats filewrite reset”

Sample output (Full Output):
13108 writes of 1 blocks in 52105250 usec, ave 3975 usec
26 writes of 2 blocks in 256359 usec, ave 9859 usec
6 writes of 3 blocks in 18954 usec, ave 3159 usec
2 writes of 4 blocks in 2800 usec, ave 1400 usec
4 writes of 13 blocks in 6284 usec, ave 1571 usec
4 writes of 18 blocks in 7839 usec, ave 1959 usec
total 13310 blocks in 52397489 usec, ave 3936 usec

FCP Stats:

To view FCP stats, useful for checking SP balance:
.server_config server_x -v “printstats fcp”
.server_config server_x -v “printstats fcp full”
.server_config server_x -v “printstats fcp reset”

Sample Output (Truncated):
This output needs to be in a fixed width font to view properly.  I can’t seem to adjust the font, so I’ve attempted to add spaces to align it.
Total I/O Cmds: +0%——25%——-50%——-75%—–100%+ Total 0
FCP HBA 0 |                                                                                            | 0%  0
FCP HBA 1 |                                                                                            | 0%  0
FCP HBA 2 |                                                                                            | 0%  0
FCP HBA 3 |                                                                                            | 0%  0
# Read Cmds: +0%——25%——-50%——-75%—–100%+ Total 0
FCP HBA 0 |                                                                                            | 0% 0
FCP HBA 1 |                                                                                            | 0% 0
FCP HBA 2 |                                                                                            | 0% 0
FCP HBA 3 |  XXXXXXXXXXX                                                          | 25% 0

Usage:

‘fcp’ options are:       bind …, flags, locate, nsshow, portreset=n, rediscover=n
rescan, reset, show, status=n, topology, version

‘fcp bind’ options are:  clear=n, read, rebind, restore=n, show
showbackup=n, write

Description:

Commands for ‘fcp’ operations:
fcp bind <cmd> ……… Further fibre channel binding commands
fcp flags ………….. Show online flags info
fcp locate …………. Show ScsiBus and port info
fcp nsshow …………. Show nameserver info
fcp portreset=n …….. Reset fibre port n
fcp rediscover=n ……. Force fabric discovery process on port n
Bounces the link, but does not reset the port
fcp rescan …………. Force a rescan of all LUNS
fcp reset ………….. Reset all fibre ports
fcp show …………… Show fibre info
fcp status=n ……….. Show link status for port n
fcp status=n clear ….. Clear link status for port n and then Show
fcp topology ……….. Show fabric topology info
fcp version ………… Show firmware, driver and BIOS version

Commands for ‘fcp bind’ operations:
fcp bind clear=n ……. Clear the binding table in slot n
fcp bind read ………. Read the binding table
fcp bind rebind …….. Force the binding thread to run
fcp bind restore=n ….. Restore the binding table in slot n
fcp bind show ………. Show binding table info
fcp bind showbackup=n .. Show Backup binding table info in slot n
fcp bind write ……… Write the binding table

NDMP Stats:

To Check NDMP Status:
.server_config server_x -v “printstats vbb show”

CIFS Stats:

This will output a CIFS report, including all servers, DC’s, IP’s, interfaces, Mac addresses, and more.

.server_config server_x -v “cifs”

Sample Output:

1327007227: SMB: 6: 256 Cifs threads started
1327007227: SMB: 6: Security mode = NT
1327007227: SMB: 6: Max protocol = SMB2
1327007227: SMB: 6: I18N mode = UNICODE
1327007227: SMB: 6: Home Directory Shares DISABLED
1327007227: SMB: 6: Usermapper auto broadcast enabled
1327007227: SMB: 6:
1327007227: SMB: 6: Usermapper[0] = [127.0.0.1] state:active (auto discovered)
1327007227: SMB: 6:
1327007227: SMB: 6: Default WINS servers = 172.168.1.5
1327007227: SMB: 6: Enabled interfaces: (All interfaces are enabled)
1327007227: SMB: 6:
1327007227: SMB: 6: Disabled interfaces: (No interface disabled)
1327007227: SMB: 6:
1327007227: SMB: 6: Unused Interface(s):
1327007227: SMB: 6:  if=172-168-1-84 l=172.168.1.84 b=172.168.1.255 mac=0:60:48:1c:46:96
1327007227: SMB: 6:  if=172-168-1-82 l=172.168.1.82 b=172.168.1.255 mac=0:60:48:1c:10:5d
1327007227: SMB: 6:  if=172-168-1-81 l=172.168.1.81 b=172.168.1.255 mac=0:60:48:1c:46:97
1327007227: SMB: 6:
1327007227: SMB: 6:
1327007227: SMB: 6: DOMAIN DOMAIN_NAME FQDN=DOMAIN_NAME.net SITE=STL-Colo RC=24
1327007227: SMB: 6:  SID=S-1-5-15-7c531fd3-6b6745cb-ff77ddb-ffffffff
1327007227: SMB: 6:  DC=DCAD01(172.168.1.5) ref=2 time=0 ms
1327007227: SMB: 6:  DC=DCAD02(172.168.29.8) ref=2 time=0 ms
1327007227: SMB: 6:  DC=DCAD03(172.168.30.8) ref=2 time=0 ms
1327007227: SMB: 6:  DC=DCAD04(172.168.28.15) ref=2 time=0 ms
1327007227: SMB: 6: >DC=SERVERDCAD01(172.168.1.122) ref=334 time=1 ms (Closest Site)
1327007227: SMB: 6: >DC=SERVERDCAD02(172.168.1.121) ref=273 time=1 ms (Closest Site)
1327007227: SMB: 6:
1327007227: SMB: 6: CIFS Server SERVERFILESEMC[DOMAIN_NAME] RC=603
1327007227: UFS: 7: inc ino blk cache count: nInoAllocs 361: inoBlk 0x0219f2a308
1327007227: SMB: 6:  Full computer name=SERVERFILESEMC.DOMAIN_NAME.net realm=DOMAIN_NAME.NET
1327007227: SMB: 6:  Comment=’EMC-SNAS:T6.0.41.3′
1327007227: SMB: 6:  if=172-168-1-161 l=172.168.1.161 b=172.168.1.255 mac=0:60:48:1c:46:9c
1327007227: SMB: 6:   FQDN=SERVERFILESEMC.DOMAIN_NAME.net (Updated to DNS)
1327007227: SMB: 6:  Password change interval: 0 minutes
1327007227: SMB: 6:  Last password change: Fri Jan  7 19:25:30 2011 GMT
1327007227: SMB: 6:  Password versions: 2, 2
1327007227: SMB: 6:
1327007227: SMB: 6: CIFS Server SERVERBKUPEMC[DOMAIN_NAME] RC=2 (local users supported)
1327007227: SMB: 6:  Full computer name=SERVERbkupEMC.DOMAIN_NAME.net realm=DOMAIN_NAME.NET
1327007227: SMB: 6:  Comment=’EMC-SNAS:T6.0.41.3′
1327007227: SMB: 6:  if=172-168-1-90 l=172.168.1.90 b=172.168.1.255 mac=0:60:48:1c:10:54
1327007227: SMB: 6:   FQDN=SERVERbkupEMC.DOMAIN_NAME.net (Updated to DNS)
1327007227: SMB: 6:  Password change interval: 0 minutes
1327007227: SMB: 6:  Last password change: Thu Sep 30 16:23:50 2010 GMT
1327007227: SMB: 6:  Password versions: 2
1327007227: SMB: 6:
 

Domain Controller Commands:

These commands are useful for troubleshooting a windows domain controller connection issue on the control station.  Use these commands along with checking the normal server log (server_log server_2) to troubleshoot that type of problem.

To view the current domain controllers visible on the data mover:

.server_config server_2 -v “pdc dump”

Sample Output (Truncated):

1327006571: SMB: 6: Dump DC for dom='<domain_name>’ OrdNum=0
1327006571: SMB: 6: Domain=<domain_name> Next trusted domains update in 476 seconds1327006571: SMB: 6:  oldestDC:DomCnt=1,179531 Time=Sat Oct 15 15:32:14 2011
1327006571: SMB: 6:  Trusted domain info from DC='<Windows_DC_Servername>’ (423 seconds ago)
1327006571: SMB: 6:   Trusted domain:<domain_name>.net [<Domain_Name>]
   GUID:00000000-0000-0000-0000-000000000000
1327006571: SMB: 6:    Flags=0x20 Ix=0 Type=0x2 Attr=0x0
1327006571: SMB: 6:    SID=S-1-5-15-d1d612b1-87382668-9ba5ebc0
1327006571: SMB: 6:    DC=’-‘
1327006571: SMB: 6:    Status Flags=0x0 DCStatus=0x547,1355
1327006571: SMB: 6:   Trusted domain: <Domain_Name>
1327006571: SMB: 6:    Flags=0x22 Ix=0 Type=0x1 Attr=0x1000000
1327006571: SMB: 6:    SID=S-1-5-15-76854ac0-4c527104-321d5138
1327006571: SMB: 6:    DC=’\\<Windows_DC_Servername>’
1327006571: SMB: 6:    Status Flags=0x0 DCStatus=0x0,0
1327006571: SMB: 6:   Trusted domain:<domain_name>.net [<domain_name>]
1327006571: SMB: 6:    Flags=0x20 Ix=0 Type=0x2 Attr=0x0
1327006571: SMB: 6:    SID=S-1-5-15-88d60754-f3ed4f9d-b3f2cbc4
1327006571: SMB: 6:    DC=’-‘
1327006571: SMB: 6:    Status Flags=0x0 DCStatus=0x547,1355
DC=DC0x0067a82c18 <Windows_DC_Servername>[<domain_name>](10.3.0.5) ref=2 time(getdc187)=0 ms LastUpdt=Thu Jan 19 20:45:14 2012
    Pid=1000 Tid=0000 Uid=0000
    Cnx=UNSUCCESSFUL,DC state Unknown
    logon=Unknown 0 SecureChannel(s):
    Capa=0x0 Nego=0x0000000000,L=0 Chal=0x0000000000,L=0,W2kFlags=0x0
    refCount=2 newElectedDC=0x0000000000 forceInvalid=0
    Discovered from: WINS

To enable or disable a domain controller on the data mover:

.server_config server_2 -v “pdc enable=<ip_address>”  Enable a domain controller

.server_config server_2 -v “pdc disable=<ip_address>”  Disable a domain controller

MemInfo:

 .server_config server_2 -v “meminfo”

Sample Output (truncated):

CPU=0
3552907011 calls to malloc, 3540029263 to free, 61954 to realloc
Size     In Use       Free      Total nallocs nfrees
16       3738        870       4608   161720370   161716632
32      18039      17289      35328   1698256206   1698238167
64       6128       3088       9216   559872733   559866605
128       6438      42138      48576   255263288   255256850
256       8682      19510      28192   286944797   286936115
512       1507       2221       3728   357926514   357925007
1024       2947       9813      12760   101064888   101061941
2048       1086        198       1284    5063873    5062787
4096         26        138        164    4854969    4854943
8192        820         11        831   19562870   19562050
16384         23         10         33       5676       5653
32768          6          1          7        101         95
65536         12          0         12         12          0
524288          1          0          1          1          0
Total Used     Total Free    Total Used + Free
all sizes   18797440   23596160   42393600

MemOwners:

.server_config server_2 -v “help memowners”

Usage:
memowners [dump | showmap | set … ]

Description:
memowners [dump] – prints memory owner description table
memowners showmap – prints a memory usage map
memowners memfrag [chunksize=#] – counts free chunks of given size
memowners set priority=# tag=# – changes dump priority for a given tag
memowners set priority=# label=’string’ – changes dump priority for a given label
The priority value can be set to 0 (lowest) to 7 (highest).

Sample Output (truncated):

1408979513: KERNEL: 6: Memory_Owner dump.
nTotal Frames 1703936 Registered = 75,  maxOwners = 128
1408979513: KERNEL: 6:   0 (   0 frames) No owner, Dump priority 6
1408979513: KERNEL: 6:   1 (3386 frames) Free list, Dump priority 0
1408979513: KERNEL: 6:   2 (40244 frames) malloc heap, Dump priority 6
1408979513: KERNEL: 6:   3 (6656 frames) physMemOwner, Dump priority 7
1408979513: KERNEL: 6:   4 (36091 frames) Reserved Mem based on E820, Dump priority 0
1408979513: KERNEL: 6:   5 (96248 frames) Address gap based on E820, Dump priority 0
1408979513: KERNEL: 6:   6 (   0 frames) Rmode isr vectors, Dump priority 7

Reporting on the state of VNX auto-tiering

 

To go along with my previous post (reporting on LUN tier distribution) I also include information on the same intranet page about the current state of the auto-tiering job.  We run auto-tiering from 10PM to 6AM in the morning to avoid the movement of data during business hours or our normal backup window in the evening.

Sometimes the auto-tiering job will get very backed up and would theoretically never finish in the time slot that we have for data movement.  I like to keep tabs on the amount of data that needs to move up or down, and the amount of time that the array estimates until it’s completion.  If needed, I will sometimes modify the schedule to run 24 hours a day over the weekend and change it back early on Monday morning.  Unfortunately, EMC did not design the auto-tiering scheduler to allow for creating different time windows on different days. It’s a manual process.

This is a relatively simple, one line CLI command, but it provides very useful info and it’s convenient to add it to a daily report to see it at a glance.

I run this script at 6AM every day, immediately following the end of the window for data to move:

naviseccli -h clariion1_hostname autotiering -info -state -rate -schedule -opStatus > c:\inetpub\wwwroot\clariion1_hostname.autotier.txt

naviseccli -h clariion2_hostname autotiering -info -state -rate -schedule -opStatus > c:\inetpub\wwwroot\clariion2_hostname.autotier.txt

naviseccli -h clariion3_hostname autotiering -info -state -rate -schedule -opStatus > c:\inetpub\wwwroot\clariion3_hostname.autotier.txt

naviseccli -h clariion4_hostname autotiering -info -state -rate -schedule -opStatus > c:\inetpub\wwwroot\clariion4_hostname.autotier.txt

 ....
 The output for each individual clariion looks like this:
Auto-Tiering State: Enabled
Relocation Rate: Medium

Schedule Name: Default Schedule
Schedule State: Enabled
Default Schedule: Yes
Schedule Days: Sun Mon Tue Wed Thu Fri Sat
Schedule Start Time: 22:00
Schedule Stop Time: 6:00
Schedule Duration: 8 hours
Storage Pools: Clariion1_SPB, Clariion2_SPA

Storage Pool Name: Clariion2_SPA
Storage Pool ID: 0
Relocation Start Time: 12/05/11 22:00
Relocation Stop Time: 12/06/11 6:00
Relocation Status: Inactive
Relocation Type: Scheduled
Relocation Rate: Medium
Data to Move Up (GBs): 1854.11
Data to Move Down (GBs): 909.06
Data Movement Completed (GBs): 2316.00
Estimated Time to Complete: 9 hours, 12 minutes
Schedule Duration Remaining: None

Storage Pool Name: Clariion1_SPB
Storage Pool ID: 1
Relocation Start Time: 12/05/11 22:00
Relocation Stop Time: 12/06/11 6:00
Relocation Status: Inactive
Relocation Type: Scheduled
Relocation Rate: Medium
Data to Move Up (GBs): 1757.11
Data to Move Down (GBs): 878.05
Data Movement Completed (GBs): 1726.00
Estimated Time to Complete: 11 hours, 42 minutes
Schedule Duration Remaining: None
 
 

Reporting on LUN auto-tier distribution

We have auto-tiering turned on in all of our storage pools, which all use EFD, FC, and SATA disks.  I created a script that will generate a list of all of our LUNs and the current tier distribution for each LUN.  Note that this script is designed to run in unix.  It can be run using cygwin installed on a Windows server if you don’t have access to a unix based server.

You will first need to create a text file with a list of the hostnames for your arrays (or the IP to one of the storage processors for each array).  Separate lists must be made for VNX vs. older Clariion arrays, as the naviseccli output was changed for VNX.  For example, “Flash” in the text output on a CX was changed to “Extreme Performance” as the output from a VNX when you run the same command.  I have one file named san.list for the older arrays, and another named san2.list for the VNX arrays.

As I mentioned in my previous post, our naming convention for LUNs includes the pool ID, LUN number, server name, filesystem/drive letter, last four digits of the array’s serial number, and size (in GB). Having all of this information in the LUN name makes for very easy reporting.  This information is what truly makes this report useful, as simply having a list of LUNs gives me all the information I need for reporting.  If I need to look at tier distribution for a certain server from this report, I simply filter the list in the spreadsheet for the server name (which is included in the LUN name).

Here’s what our LUN names looks like: P1_LUN100_SPA_0000_servername_filesystem_150G

As I said earlier, because of output differences from the naviseccli command on VNX arrays vs. older CX’s, I have two separate scripts.  I’ll include the complete scripts first, then explain in more detail what each section does.

Here is the script for CX series arrays:

for san in `/bin/cat /reports/tiers/san.list`
do
naviseccli -h $san lun -list -tiers |grep LUN |awk '{print $2}' > $san.out 
     for lun in `cat $san.out`
        do
        sleep 2
        echo $san
        naviseccli -h $san -np lun -list -name $lun -tiers > $lun.$san.dat &
     done 

mv $san.report.csv $san.report.`date +%j`.csv 
echo "LUN Name","FLASH","FC","SATA" > $san.report.csv 
     for lun in `cat  $san.out`
        do
        echo $lun
        echo `grep Name $lun.$san.dat |awk '{print $2}'`","`grep -i flash $lun.$san.dat |awk '{print $2}'`","`grep -i fc $lun.$san.dat |awk '{print $2}'`","`grep -i sata $lun.$san.dat |awk '{print $2}'` >> $san.report.csv
     done
 done

./csv2htm.pl -e -T -i /reports/clariion1_hostname.report.csv -o /reports/clariion1_hostname.report.html

./csv2htm.pl -e -T -i /reports/clariion2_hostname.report.csv -o /reports/clariion2_hostname.report.html

./csv2htm.pl -e -T -i /reports/clariion3_hostname.report.csv -o /reports/clariion3_hostname.report.html

Here is the script for VNX series arrays:

for san in `/bin/cat /reports/tiers2/san2.list`
do
naviseccli -h $san lun -list -tiers |grep LUN |awk '{print $2}' > $san.out
   for lun in `cat $san.out`
     do
     sleep 2
     echo $san.Generating-LUN-List
     naviseccli -NoPoll -h $san lun -list -name $lun -tiers > $lun.$san.dat &
  done

mv $san.report.csv $san.report.`date +%j`.csv
echo "LUN Name","FLASH","FC","SATA" > $san.report.csv
   for lun in `cat  $san.out`
      do
      echo $lun
      echo `grep Name $lun.$san.dat |awk '{print $2}'`","`grep -i extreme $lun.$san.dat |awk '{print $3}'`","`grep -i Performance $lun.$san.dat |grep -v Extreme|awk '{print $2}'`","`grep -i Capacity $lun.$san.dat |awk '{print $2}'` >> $san.report.csv
   done
 done

./csv2htm.pl -e -T -i /reports/VNX1_hostname.report.csv -o /reports/VNX1_hostname.report.html

./csv2htm.pl -e -T -i /reports/VNX2_hostname.report.csv -o /reports/VNX2_hostname.report.html

./csv2htm.pl -e -T -i /reports/VNX3_hostname.report.csv -o /reports/VNX3_hostname.report.html
 Here is a more detailed explanation of the script.

Section 1:

The entire script runs in a loop based on the SAN hostname entries.   We’ll use this list in the next section to get the LUN information from each SAN that needs to be monitored.

for san in `/bin/cat /reports/tiers/san.list`

do

naviseccli -h $san lun -list -tiers |grep LUN |awk '{print $2}' > $san.out
 Section 2:

This section will run the naviseccli command for every lun in each of the <san_hostname>.out files, and output a single text file with the tier distribution for every LUN.  If you have 500 LUNs, then 500 text files will be created in the same directory that your run the script in.

     for lun in `cat $san.out`
        do
        sleep 2
        echo $san
        naviseccli -h $san -np lun -list -name $lun -tiers > $lun.$san.dat &
     done
 Each file will be named <lun_name>.dat, and the contents of the file looks like this:
LOGICAL UNIT NUMBER 962
Name:  P1_LUN962_0000_SPB_servername_filesystem_350G
Tier Distribution: 
Flash:  4.74%
FC:  95.26%
 Section 3:

This line simply makes a copy of the previous day’s output file for archiving purposes.  The %j adds the Julian date to the file (which is 1-365, the day of the year), so the files will automatically be overwritten after one year.  It’s a self cleaning archive directory.  🙂

mv $san.report.csv $san.report.`date +%j`.csv

Section 4:

This section then processes each individual LUN file pulling out only the tier information that we need, and then combines the list into one large output file in csv format.

The first line creates a blank CSV file with the appropriate column headers.

echo "LUN Name","FLASH","FC","SATA" > $san.report.csv

This block of code parses each individual LUN file, doing a grep for each column item that we need added to the report, and awk to only grab the specific text that we want from that line.  For example, if the LUN output file has “Flash:  4.74%” in one line, and we only want the “4.74%” and the word “Flash:” stripped off, we would do an awk ‘{print $2}’ to grab only the second line item.

     for lun in `cat  $san.out`
        do
        echo $lun
        echo `grep Name $lun.$san.dat |awk '{print $2}'`","`grep -i flash $lun.$san.dat |awk '{print $2}'`","`grep -i fc $lun.$san.dat |awk '{print $2}'`","`grep -i sata $lun.$san.dat |awk '{print $2}'` >> $san.report.csv
     done
done
 Once every LUN file has been processed and added to the report, I run the csv2html.pl perl script (from http://www.jpsdomain.org/source/perl.html) to add to our intranet website.  The csv files are also added as download links on the site.
./csv2htm.pl -e -T -i /reports/clariion1_hostname.report.csv -o /reports/clariion1_hostname.report.html

./csv2htm.pl -e -T -i /reports/clariion2_hostname.report.csv -o /reports/clariion2_hostname.report.html

./csv2htm.pl -e -T -i /reports/clariion3_hostname.report.csv -o /reports/clariion3_hostname.report.html
 And finally, the output looks like this:
LUN Name FLASH FC SATA
P0_LUN101_0000_SPA_servername_filesystem_100G

24.32%

67.57%

8.11%

P0_LUN102_0000_SPA_servername_filesystem_100G

5.92%

58.77%

35.31%

P1_LUN103_0000_SPA_servername_filesystem_100G

7.00%

81.79%

11.20%

P1_LUN104_0000_SPA_servername_filesystem_100G

1.40%

77.20%

21.40%

P0_LUN200_0000_SPA_servername_filesystem_100G

5.77%

75.06%

19.17%

P0_LUN201_0000_SPA_servername_filesystem_100G

6.44%

71.21%

22.35%

P0_LUN202_0000_SPA_servername_filesystem_100G

4.55%

90.91%

4.55%

P0_LUN203_0000_SPA_servername_filesystem_100G

10.73%

80.76%

8.52%

P0_LUN204_0000_SPA_servername_filesystem_100G

8.62%

88.31%

3.08%

P0_LUN205_0000_SPA_servername_filesystem_100G

10.88%

82.65%

6.46%

P0_LUN206_0000_SPA_servername_filesystem_100G

7.00%

81.79%

11.20%

P0_LUN207_0000_SPA_servername_filesystem_100G

1.40%

77.20%

21.40%

P0_LUN208_0000_SPA_servername_filesystem_100G

5.77%

75.06%

19.17%

Reporting on Trespassed LUNs

 

All of our production clariions are configured with two large tiered storage pools, one for LUNs on SPA and one for LUNs on SPB.  When storage is created on a server, two identical LUNs are created (one in each pool) and are striped at the host level.  I do it that way to more evenly balance the load on the storage processors.

I’ve noticed that LUNs will occassionally trespass to the other SP.  In order to keep the SP’s balanced how I want them, I will routinely check and trespass them back to their default owner.  Our naming convention for LUNs includes the SP that the LUN was initially configured to use, as well as the pool ID, server name, filesystem/drive letter, last four digits of serial number, and size.  Having all of this information in the LUN name makes for very easy reporting.  Having the default SP in the LUN name is required for this script to work as written.

Here’s what our LUN names looks like:     P1_LUN100_SPA_0000_servername_filesystem_150G

To quickly check on the status of any mismatched LUNs every morning, I created a script that generates a daily report.  The script first creates output files that list all of the LUNs on each SP, then uses simple grep commands to output only the LUNs whose SP designation in the name does not match the current owner.   The csv output files are then parsed by the csv2html perl script, which converts the csv into easy to read HTML files that are automatically posted on our intranet web site.  The csv2html perl script is from http://www.jpsdomain.org/source/perl.html and is under a GNU General Public License.  Note that this script is designed to run in unix.  It can be run using cygwin installed on a Windows server if you don’t have access to a unix based server.

Here’s the shell script (I have one for each clariion/VNX):

naviseccli -h clariion_hostname getlun -name -owner |grep -i name > /reports/sp/lunname.out

sleep 5

naviseccli -h clariion_hostname getlun -name -owner |grep -i current >  /reports/sp/currentsp.out

sleep 5

paste -d , /reports/sp/lunname.out /reports/sp/currentsp.out >  /reports/sp/clariion_hostname.spowner.csv

./csv2htm.pl -e -T -i /reports/sp/clariion_hostname.spowner.csv -o /reports/sp/clariion_hostname.spowner.html

#Determine SP mismatches between LUNs and SPs, output to separate files

cat /reports/sp/clariion_hostname.spowner.csv | grep 'SP B' > /reports/sp/clariion_hostname_spb.csv

grep SPA /reports/sp/clariion_hostname_spb.csv > /reports/sp/clariion_hostname_spb_mismatch.csv

cat /reports/sp/clariion_hostname.spowner.csv | grep 'SP A' > /reports/sp/clariion_hostname_spa.csv

grep SPB /reports/sp/clariion_hostname_spa.csv > /reports/sp/clariion_hostname_spa_mismatch.csv

#Convert csv output files to HTML for intranet site

./csv2htm.pl -e -d -T -i /reports/sp/clariion_hostname_spa_mismatch.csv -o /reports/sp/clariion_hostname_spa_mismatch.html

./csv2htm.pl -e -d -T -i /reports/sp/clariion_hostname_spb_mismatch.csv -o /reports/sp/clariion_hostname_spb_mismatch.html
 The output files look like this (clariion_hostname_spa_mismatch.html from the script):
Name: P1_LUN100_SPA_0000_servername_filesystem1_150G       Current Owner: SPB

Name: P1_LUN101_SPA_0000_servername_filesystem2_250G      Current Owner: SPB

Name: P1_LUN102_SPA_0000_servername_filesystem3_350G      Current Owner: SPB

Name: P1_LUN103_SPA_0000_servername_filesystem4_450G
Current Owner: SPB

Name: P1_LUN104_SPA_0000_servername_filesystem5_550G      
Current Owner: SPB
 The 0000 represents the last four digits of the serial number of the Clariion.

That’s it, a quick and easy way to report on trespassed LUNs in our environment.

VNX replication monitoring script

This script allows me to quickly monitor and verify the status of my replication jobs every morning.  It will generate a csv file with six columns for file system name, interconnect, estimated completion time, current transfer size,current transfer size remaining, and current write speed.

I recently added two more remote offices to our replication topology and I like to keep a daily tab on how much longer they have to complete the initial seeding, and it will also alert me to any other jobs that are running too long and might need my attention.

Step 1:

Log in to your Celerra and create a directory for the script.  I created a subdirectory called “scripts” under /home/nasadmin.

Create a text file named ‘replfs.list’ that contains a list of your replicated file systems.  You can cut and paste the list out of Unisphere.

The contents of the file should should look something like this:

Filesystem01
Filesystem02
Filesystem03
Filesystem04
Filesystem05
 Step 2:

Copy and paste all of the code into a text editor and modify it for your needs (the complete code is at the bottom of this post).  I’ll go through each section here with an explanation.

1: The first section will create a text file ($fs.dat) for each filesystem in the replfs.list file you made eariler.

for fs in `cat replfs.list`
         do
         nas_replicate -info $fs | egrep 'Celerra|Name|Current|Estimated' > $fs.dat
         done
 The output will look like this:
Name                                        = Filesystem_01
Source Current Data Port            = 57471
Current Transfer Size (KB)          = 232173216
Current Transfer Remain (KB)     = 230877216
Estimated Completion Time        = Thu Nov 24 06:06:07 EST 2011
Current Transfer is Full Copy      = Yes
Current Transfer Rate (KB/s)       = 160
Current Read Rate (KB/s)           = 774
Current Write Rate (KB/s)           = 3120
 2: The second section will create a blank csv file with the appropriate column headers:
echo 'Name,System,Estimated Completion Time,Current Transfer Size (KB),Current Transfer Remain (KB),Write Speed (KB)' > replreport.csv

3: The third section will parse all of the output files created by the first section, pulling out only the data that we’re interested in.  It places it in columns in the csv file.

         for fs in `cat replfs.list`

         do

         echo $fs","`grep Celerra $fs.dat | awk '{print $5}'`","`grep -i Estimated $fs.dat |awk '{print $5,$6,$7,$8,$9,$10}'`","`grep -i Size $fs.dat |awk '{print $6}'`","`grep -i Remain $fs.dat |awk '{print $6}'`","`grep -i Write $fs.dat |awk '{print $6}'` >> replreport.csv

        done
 If you’re not familiar with awk, I’ll give a brief explanation here.  When you grep for a certain line in the output code, awk will allow you to output only one word in the line.

For example, if you want the output of “Yes” put into a column in the csv file, but the output code line looks like “Current Transfer is Full Copy      = Yes”, then you could pull out only the “Yes” by typing in the following:

 nas_replicate -info Filesystem01 | grep  Full | awk '{print $7}'

Because the word ‘Yes’ is the 7th item in the line, the output would only contain the word Yes.

4: The final section will send an email with the csv output file attached.

uuencode replreport.csv replreport.csv | mail -s "Replication Status Report" user@domain.com

Step 3:

Copy and paste the modified code into a script file and save it.  I have mine saved in the /home/nasadmin/scripts folder. Once the file is created, make it executable by typing in chmod +X scriptfile.sh, and change the permissions with chmod 755 scriptfile.sh.

Step 4:

You can now add the file to crontab to run automatically.  Add it to cron by typing in crontab –e, to view your crontab entries type crontab –l.  For details on how to add cron entries, do a google search as there is a wealth of info available on your options.

Script Code:

for fs in `cat replfs.list`

         do

         nas_replicate -info $fs | egrep 'Celerra|Name|Current|Estimated' > $fs.dat

        done

 echo 'Name,System,Estimated Completion Time,Current Transfer Size (KB),Current Transfer Remain (KB),Write Speed (KB)' > replreport.csv

         for fs in `cat replfs.list`

         do

         echo $fs","`grep Celerra $fs.dat | awk '{print $5}'`","`grep -i Estimated $fs.dat |awk '{print $5,$6,$7,$8,$9,$10}'`","`grep -i Size $fs.dat |awk '{print $6}'`","`grep -i Remain $fs.dat |awk '{print $6}'`","`grep -i Write $fs.dat |awk '{print $6}'` >> replreport.csv

         done

 uuencode replreport.csv replreport.csv | mail -s "Replication Status Report" user@domain.com
 The final output of the script generates a report that looks like the sample below.  Filesystems that have all zeros and no estimated completion time are caught up and not currently performing a data synchronization.
Name System Estimated Completion Time Current Transfer Size (KB) Current Transfer Remain (KB) Write Speed (KB)
SA2Users_03 SA2VNX5500 0 0 0
SA2Users_02 SA2VNX5500 Wed Dec 16 01:16:04 EST 2011 211708152 41788152 2982
SA2Users_01 SA2VNX5500 Wed Dec 16 18:53:32 EST 2011 229431488 59655488 3425
SA2CommonFiles_04 SA2VNX5500 0 0 0
SA2CommonFiles_03 SA2VNX5500 Wed Dec 16 10:35:06 EST 2011 232173216 53853216 3105
SA2CommonFiles_02 SA2VNX5500 Mon Dec 14 15:46:33 EST 2011 56343592 12807592 2365
SA2commonFiles_01 SA2VNX5500 0 0 0

How to scrub/zero out data on a decommissioned VNX or Clariion

datawipe

Our audit team needed to ensure that we were properly scrubbing the old disks before sending our old Clariion back to EMC on a trade in.  EMC of course offers scrubbing services that run upwards of $4,000 for an array.  They also have a built in command that will do the same job:

navicli -h zerodisk -messner B E D
B Bus
E Enclosure
D Disk

usage: zerodisk disk-names [start|stop|status|getzeromark]

sample: navicli -h 10.10.10.10 zerodisk -messner 1_1_12

This command will write all zero’s to the disk, making any data recovery from the disk impossible.  Add this command to a windows batch file for every disk in your array, and you’ve got a quick and easy way to zero out all the disks.

So, once the disks are zeroed out, how do you prove to the audit department that the work was done? I searched everywhere and could not find any documentation from emc on this command, which is no big surprise since you need the engineering mode switch (-messner) to run it.  Here were my observations after running it:

This is the zeromark status on 1_0_4 before running navicli -h 10.10.10.10 zerodisk -messner 1_0_4 start:

 Bus 1 Enclosure 0  Disk 4

 Zero Mark: 9223372036854775807

 This is the zeromark status on 1_0_4 after the zerodisk process is complete:

(I ran navicli -h 10.10.10.10 zerodisk -messner 1_0_4 getzeromark to get this status)

 Bus 1 Enclosure 0  Disk 4

Zero Mark: 69704

 The 69704 number indicates that the disk has been successfully scrubbed.  Prior to running the command, all disks will have an extremely long zero mark (18+ digits), after the zerodisk command completes the disks will return either a 69704 or 69760 depending on the type of disk (FC/SATA).  That’s be best I could come up with to prove that the zeroing was successful.  Running the getzeromark option on all the disks before and after the zerodisk command should be sufficient to prove that the disks were scrubbed.

Use the CLI to determine replication job throughput

This handy command will allow you to determine exactly how much bandwidth you are using for your Celerra replication jobs.

Run this command first, it will generate a file with the stats for all of your replication jobs:

nas_replicate -info -all > /tmp/rep.out

Run this command next:

grep "Current Transfer Rate" /tmp/rep.out |grep -v "= 0"

The output looks like this:

Current Transfer Rate (KB/s)   = 196
 Current Transfer Rate (KB/s)   = 104
 Current Transfer Rate (KB/s)   = 91
 Current Transfer Rate (KB/s)   = 90
 Current Transfer Rate (KB/s)   = 91
 Current Transfer Rate (KB/s)   = 88
 Current Transfer Rate (KB/s)   = 94
 Current Transfer Rate (KB/s)   = 89
 Current Transfer Rate (KB/s)   = 112
 Current Transfer Rate (KB/s)   = 108
 Current Transfer Rate (KB/s)   = 91
 Current Transfer Rate (KB/s)   = 117
 Current Transfer Rate (KB/s)   = 118
 Current Transfer Rate (KB/s)   = 119
 Current Transfer Rate (KB/s)   = 112
 Current Transfer Rate (KB/s)   = 27
 Current Transfer Rate (KB/s)   = 136
 Current Transfer Rate (KB/s)   = 117
 Current Transfer Rate (KB/s)   = 242
 Current Transfer Rate (KB/s)   = 77
 Current Transfer Rate (KB/s)   = 218
 Current Transfer Rate (KB/s)   = 285
 Current Transfer Rate (KB/s)   = 287
 Current Transfer Rate (KB/s)   = 184
 Current Transfer Rate (KB/s)   = 224
 Current Transfer Rate (KB/s)   = 82
 Current Transfer Rate (KB/s)   = 324
 Current Transfer Rate (KB/s)   = 210
 Current Transfer Rate (KB/s)   = 328
 Current Transfer Rate (KB/s)   = 156
 Current Transfer Rate (KB/s)   = 156

Each line represents the throughput for one of your replication jobs.  Adding all of those numbers up will give you the amount of bandwidth you are consuming.  In this case, I’m using about 4.56MB/s on my 100MB link.

This same technique can of course be applied to any part of the output file.  If you want to know the estimated completion date of each of your replication jobs, you’d run this command against the rep.out file:

grep "Estimated Completion Time" /tmp/rep.out

That will give you a list of dates, like this:

Estimated Completion Time      = Fri Jul 15 02:12:53 EDT 2011
 Estimated Completion Time      = Fri Jul 15 08:06:33 EDT 2011
 Estimated Completion Time      = Mon Jul 18 18:35:37 EDT 2011
 Estimated Completion Time      = Wed Jul 13 15:24:03 EDT 2011
 Estimated Completion Time      = Sun Jul 24 05:35:35 EDT 2011
 Estimated Completion Time      = Tue Jul 19 16:35:25 EDT 2011
 Estimated Completion Time      = Fri Jul 15 12:10:25 EDT 2011
 Estimated Completion Time      = Sun Jul 17 16:47:31 EDT 2011
 Estimated Completion Time      = Tue Aug 30 00:30:54 EDT 2011
 Estimated Completion Time      = Sun Jul 31 03:23:08 EDT 2011
 Estimated Completion Time      = Thu Jul 14 08:12:25 EDT 2011
 Estimated Completion Time      = Thu Jul 14 20:01:55 EDT 2011
 Estimated Completion Time      = Sun Jul 31 05:19:26 EDT 2011
 Estimated Completion Time      = Thu Jul 14 17:12:41 EDT 2011

Very useful stuff. 🙂

 

Use the CLI to quickly determine the size of your Celerra checkpoint filesystems

Need to quickly figure out which checkpoint filesystems are taking up all of your precious savvol space?  Run the CLI command below.  Filling up the savvol storage pool can cause all kinds of problems besides failing checkpoints.  It can also cause filesystem replication jobs to fail.

To view it on the screen:

nas_fs -query:IsRoot==False:TypeNumeric==1 -format:’%s\n%q’ -fields:Name,Checkpoints -query:TypeNumeric==7 -format:’   %40s : %5d : %s\n’ -fields:Name,ID,Size

To save it in a file:

nas_fs -query:IsRoot==False:TypeNumeric==1 -format:’%s\n%q’ -fields:Name,Checkpoints -query:TypeNumeric==7 -format:’   %40s : %5d : %s\n’ -fields:Name,ID,Size > checkpoints.txt

vi checkpoints.txt   (to view the file)

Here’s a sample of the output:

UserFilesystem_01
ckpt_ckpt_UserFilesystem_01_monthly_001 :   836 : 220000
ckpt_ckpt_UserFilesystem_01_monthly_002 :   649 : 220000

UserFilesystem_02
ckpt_ckpt_UserFilesystem_02_monthly_001 :   836 : 80000
ckpt_ckpt_UserFilesystem_02_monthly_002 :   649 : 80000

The numbers are in MB.

 

Celerra Health Check with CLI Commands

Here are the first commands I’ll type when I suspect there is a problem with the Celerra, or if I want to do a simple health check.

1. <watch> /nas/sbin/getreason.  This will quickly give you the current status of each data mover. 5=up, 0=down/rebooting.  Typing watch before the command will run the command with continuous updates so you can monitor a datamover if you are purposely rebooting it.

10 – slot_0 primary control station
5 – slot_2 contacted
5 – slot_3 contacted

2. nas_server -list.  This lists all of the datamovers and their current state.  It’s a good way to quickly tell which datamovers are active and which are standby.

1=nas, 2=unused, 3=unused, 4=standby, 5=unused, 6=rdf

id      type  acl  slot groupID  state  name
1        1    0     2                         0    server_2
2        4    0     3                        0    server_3

3. server_sysstat.  This will give you a quick overview of memory and CPU utilization.

server_2 :
threads runnable = 6
threads blocked  = 4001
threads I/J/Z    = 1
memory  free(kB) = 2382807
cpu     idle_%   = 70

4. nas_checkup.   This runs a system health check.

Check Version:  5.6.51.3
Check Command:  /nas/bin/nas_checkup
Check Log    :  /nas/log/checkup-run.110608-143203.log

————————————-Checks————————————-
Control Station: Checking if file system usage is under limit………….. Pass
Control Station: Checking if NAS Storage API is installed correctly…….. Pass

5. server_log server_2.  This shows the current alert log.  Alert logs are also stored in /nas/log/webui.

6. vi /nas/jserver/logs/system_log.   This is the java system log.

7. vi /var/log/messages.  This displays system messages.

VNX NAS CLI Command Reference Guide

vnx1.jpg

Other CLI Reference Guides:
Isilon CLI  |  EMC ECS CLI  |  VNX NAS CLI  |  ViPR Controller CLI  NetApp Clustered ONTAP CLI  |  Data Domain CLI  |  Brocade FOS CLI

This VNX NAS CLI reference guide includes command syntax samples for more commonly used commands at the top, and a list of available commands at the bottom with a brief description of their function.  Here are some other posts on my blog that provide more specific examples of using some CLI commands, with additional detail and some scripting examples:

Undocumented VNX CLI Commands
Using the Database Query option with the VNX NAS CLI
Celerra Health Check CLI Commands
Testing Disaster Recovery with VDM’s and CIFS Servers
Checking Replication Job Throughput with the CLI
Collecting info on Actives Shares, Clients, Protocols, & Authentication with the CLI
Listing and Counting Multiprotocol File Systems from the CLI

VNX NAS CLI Command Reference (Updated January 2018):

NAS Commands:
nas_disk   -list Lists the disk table
nas_checkup Runs a system health check.
nas_pool   -size -all Lists available space on each defined storage pool
nas_replicate  -info –all | grep <fs> Info about each filesystem’s replication status, grep to view just one.
nas_replicate  -list A list of all current replications
nas_server  -list Lists all datamovers. 1=primary,4=standby,6=rdf (remote data facility)
<watch> /nas/sbin/getreason Shows current status of each datamover. 5=up, 0=down or rebooting
nas_fs Creates, deletes, extends, modifies, and lists filesystems.
nas_config Control station configuration (requires root login)
nas_version View current nas revision
nas_ckpt_schedule Manage  checkpoint schedule
nas_storage -list List the attached backend storage systems (with ID’s)
nas_storage -failback id=<x> Fail back failed over SP’s or disks
nas_server  -vdm <vdm_name> -setstate loaded Loads a VDM
nas_server  -vdm <vdm_name> -setstate mounted Unloads a VDM
/nas/sbin/t2reset pwron -s Powers on a data mover that has been shut down.
Server commands:
server_cpu server_<x> -r now Reboots a datamover
server_ping <IP> Ping any IP from the control station
server_ifconfig server_2 –all View all configured interfaces
server_route server_2 {-list,flush,add,delete} Routing table commands
server_mount Mount a filesystem
server_export Export a filesystem
server_stats Provides realtime stats for a datamover, many different options.
server_sysconfig Modifies hardware config of the data movers.
server_devconfig Configures devices on the data movers.
server_sysstat Shows current Memory, CPU, and thread utilization
server_log server_2 Shows current log
vi /nas/jserver/logs/system_log Java System log
vi /var/log/messages System Messages
server_ifconfig server_2 <interface_name> up Bring up a specific interface
server_ifconfig server_2 <interface_name> down Take a specific interface down
server_date Sets system time and NTP server settings
server_date <server_X> timesvc start ntp Starts NTP on a data mover
server_date <server_X> timesvc stats ntp To view the status of NTP.
server_date <server_X> timesvc update ntp Forces an update of NTP
server_file FTP equivalent command
server_dns Configure DNS
server_cifssupport Support services for CIFS users
nas_ckpt_schedule -create <ckpt_fs_name> -filesystem -recurrence once To create a single Checkpoint
fs_ckpt <ckpt_fs_name> -name -Create -readonly n To create a Read/Write copy of a single Checkpoint
server_export [vdm] -P cifs -name [filesystem]_ckpt1 -option netbios=[cifserver] [filesystem]_ckpt1_writeable1 To export a Read/Write checkpoint copy to a CIFS Share
server_cifs server_2 -Join compname=SERVERNAME,domain=DOMAIN.COM,admin=ADMINID Join a CIFS Server to the domain
server_cifs server_2 -Unjoin compname=SERVERNAME,domain=DOMAIN.COM,admin=ADMINID Unjoin a CIFS Server to the domain
 .server_config server_2 -v “pdc dump” To view the current domain controllers visible on the data mover
.server_config server_2 -v “pdc enable=<ip_address>” Enable a domain controller
.server_config server_2 -v “pdc disable=<ip_address>” Disable a domain controller
server_setup server_2 -P cifs -o stop Stop CIFS Service
server_setup server_2 -P cifs -o start Start CIFS Service
server_iscsi server_2 -service -start Start iSCSI service
server_iscsi server_2 -service -stop Stop iSCSI service
server_iscsi server_2 -service -status Check the status of the iSCSI service
.server_config  server_x  “logsys set  severity  NDMP=LOG_DBG2” Enable NDMP Logging [run both of these commands]
.server_config  server_x  “logsys set  severity  PAX=LOG_DBG2” Enable NDMP Logging [run both of these commands]
.server_config  server_x  “logsys  set severity  NDMP=LOG_ERR” Disable NDMP Logging [run both of these commands]
.server_config  server_x  “logsys set severity   PAX=LOG_ERR” Disable NDMP Logging [run both of these commands]
server_netstat server_x -i               Interface statistics Gather interface performance statistics
server_sysconfig server_x -v         Lists virtual devices List Virtual Devices
server_sysconfig server_x -v -i vdevice_name  Informational stats on the virtual device Informational stats on the virtual device
server_netstat server_x -s -a tcp  Retransmissions Retransmissions
server_nfsstat server_x                    NFS SRTs NFS SRTs
server_nfsstat server_x -zero        Reset NFS stats Reset NFS Stats
To view HBA Statistics:
.server_config server_2 -v “printstats fcp reset” View HBA Stats:  Toggles the service on/off
.server_config server_2 -v “printstats fcp full” View HBA Stats:  View stats table (must wait for some stats to collect before viewing)
Filesystem specific commands:
fs_ckpt Manage Checkpoints
fs_dhsm Manage File Mover
fs_group Manage filesystem groups
Complete List of  “nas_”  Commands:
nas_acl Creates, lists, and displays information for access control level entries within the table
nas_ckpt_schedule Manages SnapSure checkpoint scheduling for the VNX
nas_dbtable Displays the table records of the Control Station.
nas_emailuser Manages email notifications for serious system events
nas_inventory Provides detailed information about hardware components
nas_pool Manages the user-defined and system-defined storage pools
nas_slice Manage Slices
nas_task Manages in-progress or completed tasks
nas_automountmap Creates and displays an automount map containing all permanently exported file systems
nas_cmd nas_cmd
nas_devicegroup Manages an established MirrorView/Synchronous consistency group
nas_event Provides a user interface to system-wide events
nas_license Enables software packages.
nas_quotas Manages quotas for mounted file systems.
nas_stats Manages Statistics Groups.
nas_version Displays the software version running on the Control Station.
nas_cel Performs management of remotely linked VNX or a linked pair of Data Movers.
nas_copy Creates a replication session for a one-time copy of a file system.
nas_disk Manages the disk table.
nas_fs Manages local file systems for the VNX.
nas_logviewer Displays the content of nas_eventlog generated log files.
nas_replicate Manages loopback, local, and remote VNX Replicator sessions.
nas_storage Controls storage system access and performs some management tasks
nas_volume Manages the volume table.
nas_checkup Provides a system health checkup for the VNX.
nas_cs Manages the configuration properties of the Control Station.
nas_diskmark Queries the system, manages and lists the SCSI devices configuration.
nas_fsck Manages fsck and aclchk utilities on specified file systems.
nas_message Displays message description.
nas_server Manages the Data Mover (server) table.
nas_symm nas_symm
nas_xml nas_xml
Complete list of  “server_”  Commands:
server_archive Reads and writes file archives, and copies directory hierarchies.
server_cifssupport Provides support services for CIFS users.
server_file Copies files between the Control Station and the specified Data Movers.
server_log Displays the log generated by the specified Data Mover.
server_name Manages the name for the specified Data Movers.
server_ping6 Checks the IPv6 network connectivity for the specified Data Movers.
server_sysconfig Manages the hardware configuration for the specified Data Mover(s).
server_vtlu Configures a virtual tape library unit (VTLU) on the specified Data Movers
server_arp Manages the Address Resolution Protocol (ARP) table for the Data Movers.
server_cpu Performs an orderly, timed, or immediate halt or reboot of a Data Mover.
server_ftp Configures the FTP server configuration for the specified Data Movers.
server_mgr server_mgr (deprecated?)
server_netstat Displays the network statistics for the specified Data Mover.
server_rip Manages the Routing Information Protocol (RIP) configuration
server_sysstat Displays the operating system statistics for the specified Data Movers.
server_cdms Provides File Migration Service for VNX functionality
server_date Displays or sets the date and time for a Data Mover, and synchronizes time
server_http Configures the HTTP configuration file for independent services
server_mount Mounts file systems and manages mount options
server_nfs Manages the NFS service, including secure NFS and NVSv4
server_route Manages the routing table for the specified Data Movers.
server_tftp Manages the Trivial File Transfer Protocol (TFTP)
server_cepp Manages the Common Event Publishing Agent (CEPA) service
server_dbms Enables backup and restore of databases, displays database environment statistics.
server_ifconfig Manages the network interface configuration
server_mountpoint Manages mount points for the specified Data Movers.
server_nfsstat server_nfsstat (deprecated?)
server_security Manages GPO Policy settings for CIFS Servers
server_umount Unmounts file systems
server_certificate Manages VNX for file system’s Public Key Infrastructure (PKI)
server_devconfig Queries, saves, and displays the SCSI over Fibre Channel device configuration
server_ip Manages the IPv6 neighbor cache and route table for VNX.
server_mpfs Sets up and configures MPFS protocol.
server_nis Manages the Network Information Service (NIS) configuration
server_setup Manages the type and protocol component for the specified Data Movers.
server_uptime Displays the length of time that a specified Data Mover has been running since the last reboot
server_checkup Checks the configuration parameters, and state of a Data Mover and its dependencies
server_df Reports free and used disk space and inodes for mounted file systems
server_iscsi server_iscsi (deprecated?)
server_mpfsstat server_mpfsstat (deprecated?)
server_param Manages parameter information for the specified Data Movers.
server_snmpd Manages the Simple Network Management Protocol (SNMP) config values
server_usermapper Provides an interface to manage the Internal Usermapper service.
server_cifs Manages the CIFS configuration for the specified Data Movers or VDMs
server_dns Manages the Domain Name System (DNS) lookup server config
server_kerberos Manages the Kerberos configuration within the specified Data Movers.
server_mt Manages the magnetic tape drive for the specified Data Mover.
server_pax Displays and resets backup and restore statistics and file system information for a backup session already in progress.
server_standby Manages the standby and RDF relationships for the specified Data Movers.
server_version Displays the software version running on the specified Data Movers.
server_cifsstat server_cifsstat (deprecated?)
server_export Exports file systems and manages access on the specified Data Movers for NFS/CIFS clients
server_ldap Manages the LDAP-based directory client configuration and LDAP over SSL
server_muxconfig server_muxconfig (deprecated?)
server_ping Checks the network connectivity for the specified Data Movers.
server_stats Displays sets of statistics that are running on the specified Data Mover.
server_viruschk Manages the virus checker configuration for the specified Data Movers.
Complete list of  “fs_” Commands:
fs_ckpt Manages checkpoints using the EMCSnapSure functionality.
fs_dedupe Manages filesystem deduplication state.
fs_dhsm Manages the VNX FileMover file system connections.
fs_group Creates a file system group from the specified file systems or a single file system
fs_rdf Manages the Remote Data Facility (RDF) functionality for a file system residing on RDF drives.
fs_timefinder Manages the TimeFinderTM/FS functionality for the specified filesystem

A Roundup of Storage Startups

Blockchain and Enterprise Storage