The following post is part based on the earlier post from
1st January: Clustered
ONTAP Storage Admins' Health Checks. Here we present a few Clustered ONTAP
Storage Admins daily health checks (really there’s too much for a daily checks list
…) Please feel free to modify as you see fit. Some of the commands quite nicely
display the power of the Clustershell CLI.
Note:
## Two hashes or
more is a comment
# One hash you can
unhash (for Data ONTAP 8.2+/ where the command needs a date/ where the command
needs the local cluster name)
##############################
## CDOT DAILY CHECKS SCRIPT ##
##############################
rows 0
set diag
y
###########################
## Analyze The Event Log ##
###########################
event log show -severity
emergency
event log show -severity alert
event log show -severity
critical
event log show -severity error
event log show -severity
warning
## example for the last 24
hours
# event log show -time
"01/21/2014 09:00:00".."01/22/2014 09:00:00" -severity !informational,!notice,!debug
#############################
## Display Some Dashboards ##
#############################
dashboard alarm show
dashboard performance show
####################
## Cluster Checks ##
####################
cluster show
storage failover show
## 2-Node Clusters
# cluster ha show
date
## CDOT 8.2+
# cluster date show
###############################################
## License Checks (not really a
daily check) ##
###############################################
system license show -fields
expiration-date
#################
## Node Checks ##
#################
node show -fields health
system health alert show
-fields indication-time
## ... and if they're old
alerts you can delete them with
# system health alert delete
-node * -monitor * -alert-id * -alerting-resource *
system node run -node *
-command fru_led status
###############################################
## NDMPD check for jobs running
and snapshot ##
###############################################
ndmpd status -fields
data-state,data-operation,mover-state,mover-mode
snapshot show -snapshot
snapshot_for_backup.* -fields create-time
########################
## Autosupport checks ##
########################
system node autosupport show
-state !enable
system node autosupport history
show -status !ignore -fields status,last-update
###############################
## Aggregate and Disk Checks ##
###############################
storage aggregate show -state
!online
storage aggregate show
-aggregate * -percent-used >75
storage aggregate show
-aggregate * -raidstatus !”raid_dp,normal”
storage disk show -state broken
storage disk show -container
unassigned
sto disk show -container-type
aggregate -average-latency > 20 -fields average-latency,aggregate
###################
## Volume Checks ##
###################
vol show -state !online
vol show -vserver * -volume *
-percent-used >79 -fields state,size,available,percent-used,space-guarantee
-type RW
vol show -vserver * -volume * -percent-used <33 -fields state,size,available,percent-used,space-guarantee -type RW
vol show -snapshot-policy none -type RW -fields volume,size,available,used
vol show -snapshot-policy none -type RW -fields volume,size,available,used
vol show -snapshot-space-used
> 99 -type RW -fields percent-snapshot-space,snapshot-space-used
vol show -space-guarantee
volume -type RW -fields volume,size,available,used
vol show
-is-sis-logging-enabled true -type RW -fields volume,sis-space-saved-percent
vol show
-is-sis-logging-enabled false -type RW -volume !vol0 -fields volume,size,used
df -i -vserver * -volume *
-percent-inodes-used >79
vol efficiency show -fields
progress,schedule,policy,last-op-end,state
#####################
## Snapshot Checks ##
#####################
## CDOT 8.2+
# vol show -snapshot-count 0
## CDOT 8.2+
# vol show -snapshot-count >
200
## CHANGE THE DATE - use
http://www.timeanddate.com/date/dateadd.html
# vol snap show -create-time
<"Wed Oct 09 00:00:00 2013" -fields state,size,create-time,owners
vol snap show -snap
!hourly.*,!weekly.*,!daily.*,!snapmirror.*,!*smvi*,!eloginfo*,!exchsnap*
-fields state,size,create-time,owners
####################
## Network Checks ##
####################
net port show -link !up
net int show -is-home false
net int show -status-oper !up
################
## SAN Checks ##
################
lun show -mapped unmapped -lun
!*rws,!*aux
lun show -lun *.rws # Example -
SMBR flexclones
lun show -lun *.aux # Example -
failed SME jobs
fcp int show -status-oper !up
iscsi int show -status-oper !up
#######################
## SnapMirror Checks ##
#######################
snapmirror show -healthy false
snapmirror show -status !Idle
snapmirror show -state
!snapmirrored
## CHANGE THE LOCAL to CLUSTER
you're running the command from
## ... for the snapmirror
command below since schedule displays on destination cluster only!
# snapmirror show -schedule
"-" -fields state,status -source-cluster !LOCAL
## Compare the following two
outputs, should roughly have same number of not RW vols as snapmirrors to this
cluster
# snapmirror show
-destination-cluster LOCAL -fields destination-volume
# vol show -type !RW
i like your article such a helpful article
ReplyDeletePuritan Pride Coupon Code
am new into cdot, its very usefull. Thank you!!
ReplyDeleteAlso am looking cdot-administration commands and performance and cdot-ontap upgrade cmds. (solaipoovan@yahoo.com)
I appreciate your help!
Hi. First of all you have really great blog. Thanks for your posts.
ReplyDeleteCan you explain me syntaxis of this row line "vol show -vserver * -volume * -percent-used <33 -fields="" -type="" available="" o:p="" percent-used="" rw="" size="" space-guarantee="" state="">"
It's not clear for me.
Hello Smasher, afraid it was blogger not liking the less than sign. Should be corrected now. Cheers, vCosonok
DeleteThis was a shocking post. It has some look at here fundamental data on this subject. Navodaya Result 2021 6th
ReplyDeleteThanks for Nice and Informative Post. This article is really contains lot more information about This Topic. avenue south residence showflat
ReplyDeleteHealth is not just physical or mental, health covers the whole person, together with the environment - and their interaction. To have a functioning social life is an important, and perhaps even crucial, part of the concept of health. This means participating in a social context, and in return having something to give to other people. Energy Supplements
ReplyDeleteA very awesome blog post. We are really grateful for your blog post. You will find a lot of approaches after visiting your post. I was exactly searching for. Thanks for such post and please keep it up. Great work SAP Material Management SAP MM
ReplyDeleteWe believe in empowering women, bringing them joy, helping them feel happier in their own skin, and celebrating their bodies. nude photography
ReplyDeleteI truly welcome this superb post that you have accommodated us. I guarantee this would be valuable for the vast majority of the general population. Urdu translation
ReplyDeleteYou make so many great points here that I read your article a couple of times. Your views are in accordance with my own for the most part. This is great content for your readers. Weight loss fat loss related
ReplyDeletedefinately enjoy every little bit of it and I have you bookmarked to check out new stuff of your blog a must read blog! Cooking Games
ReplyDeleteYour post is very helpful to get some effective tips to reduce weight properly.
ReplyDeleteYou have shared various nice photos of the same. I would like to thank you for sharing these tips.
Surely I will try this at home. Keep updating more simple tips like this.
HoneyMoon
You have made some decent points there. I looked on the internet for more information about the issue and found most people will go along with your views on this web site. latest hindi news
ReplyDeleteYou guardians do an astounding web diary, and have some unfathomable substance. Continue doing extraordinary. Pinterest
ReplyDeleteInteresting topic for a blog. I have been searching the Internet for fun and came upon your website. Fabulous post. Thanks a ton for sharing your knowledge! It is great to see that some people still put in an effort into managing their websites. I'll be sure to check back again real soon. understanding art 11th edition
ReplyDelete