Netapp cmode cli commands

Netapp cluster-mode cli commands

cluster commands
To display overall cluster status
cluster show
To display cluster node status
node show
To check storage system health
system health status show
Check the cluster’s license
license show
To check system version
system version show
To check locks on a volume
vserver locks show -vserver "vserver_name" -path /volume_name/*
To break locks on a volume, go to advanced mode
set advanced
vserver locks break -vserver "vserver_name" -vol volume_name -lif "lif_name" -path lock_path.lck
aggregate commands
To show aggregate details
aggregate show
aggr show "aggregate_name"  -fields size,usedsize,availsize
To create an aggregate
aggregate create -aggregate  -diskcount  -size
To expand an aggregate
aggregate add-disks -aggregate  -diskcount
Disk commands
To list failed disks
storage show disk -broken
To list unassigned disks
storage disk show -container-type unassigned
To list unassigned disks
storage disk assign -disk "2.12.0" -owner "owner_node_name"
Volume commands
To create a new volume in Netapp without snapshot space
volume create -vserver "vserver_name" -volume "volume_name" -aggregate "aggregate_name" -size "volume_size" -percent-snapshot-space 0 -snapshot-policy none
To display/show a volume information
volume show "volume_name"
To list the volumes in a aggregate
vol show -aggregate "aggregate_name"
Mount a volume to junction path
volume mount -vserver "vserver_name" -volume "volume_name" -junction-path "/junction_path"
To increase a volume size by 100G
vol size -vserver "vserver_name" -volume "volume_name" +100GB
To increase a volume size to 100G
vol size -vserver "vserver_name" -volume "volume_name" -new-size 100GB
To show volume quota
volume quota show -volume "volume_name"
To add exportpolicy to a volume
volume modify -vserver "vserver_name" -volume "volume_name" -policy "policy_name"
To check access of volume to a client
check-access -vserver "vserver_name" -volume "volume_name"  -client-ip "client_ip_address" -authentication-method sys -protocol nfs3  -access-type read-write
To show volume statistics
statistics volume show -interval 5 -iterations 1 -max 25 -volume "volume_name"
To move a volume from one aggregate to another aggregate, it’s validate the possibilty of move
volume move start -vserver "vserver_name" -volume "volume_name" -destination-aggregate "destination_aggregate" -perform-validation-only true
To move a volume from one aggregate to another aggregate
volume move start -vserver "vserver_name" -volume "volume_name" -destination-aggregate "destination_aggregate"
Volume snapshot commands
To create a snapshot for a volume
volume snapshot create -vserver "vserver_name" -volume "volume_name" -snapshot "snapshot_name"-comment "comment for snapshot (optional)"
To show the snapshot of a volume
volume snapshot show -vserver "vserver_name" -volume "volume_name"
To show the snapshot of a volume
volume snapshot delete -vserver "vserver_name" -volume "volume_name" -snapshot "snapshot_name"
To create a snapshot policy
snapshot policy create -policy "policy_name_dail_week_retention" -enabled true -schedule1 daily -count1 7
snapshot policy create -policy "policy_name_dail_3days_retention" -enabled true -schedule1 daily -count1 3
LUN commands
To create a new LUN
lun create -vserver  -path  -size  -type
To display/show LUN information
lun show
To map a LUN to a host
lun map -vserver  -path  -igroup
To unmap a LUN
lun unmap -vserver  -path  -igroup
export-policy commands
To create a export policy
export-policy create -vserver "vserver_name" -policyname "policy_name"
To display information of export policies
export-policy rule show
To create a new export policy
export-policy rule create -vserver "vserver_name" -policyname "policy_name" -client-match "client_ip -rorule sys -rwrule sys -superuser sys -protocol nfs
To modify an existing export policy
export-policy rule modify -vserver "vserver_name" -policyname "policy_name" -ruleindex "_"  -client-match "client_ip -read-write
To display export details for a nfs client
export-policy rule show -vserver * -policyname * -client-match "client_ip
Snapmirror commands
To check SnapMirror status
snapmirror show

For more Netapp related content, go to Netapp

You may also like...

1 Response

  1. Raviteja says:

    Thanks

Leave a Reply

Your email address will not be published. Required fields are marked *