With the help of this document, we can check the logs in NetApp storage. It will very helpful for troubleshooting of the issues. we can easily take the decision to act on the current issue by analysing the logs.
How to see the event and audit logs through ( gui and cli) in cluster ontap netapp storage system
1. HOW TO SEE EVENT and AUDIT LOGSIN CLUSTER ONTAP NETAPP STORAGE SYSTEM THROUGH GUI
AND CLI (Graphical user Interface and command line)
Through web-browser-(GUI-Graphical UserInterface)
log files (http:// or https://) https://cluster-mgmt-ip/spi/node-name/etc/log/
Through web-browser-:
2. core dump files (http:// or https://) https://cluster-mgmt-ip/spi/node-name/etc/crash/
***If there is an issue on your cluster NetApp storage system you want to analyze, troubleshoot or want to
find the solid reason for RCA (Root Cause Analysis) then log file plays a vital role.
There are multiple log files in Clustered Data ONTAP. When reading log files, the EMS (Event
Management System) log file should be referenced first, as it provides a centralized log location for all
subsystems within the cluster, vservers, and nodes.
Through CLI(command line)-:
Login into your cluster system and execute the below
command. (EMS events can be viewed from the cluster-shell)
Nodename ::>eventlogshow
It will show you all the eventlogsand press space key to page down or use Enter keyto one line down
or press q to quit. (Youcan analyze the logsif there is any error persists)
Example-:
CMODE_AA::> eventlogshow
Time Node Severity Event
------------------- ---------------- ------------- ---------------------------
7/27/2017 04:24:39 Cluster-Name NOTICE rdb.ha.verified:Verifiedthatclusterhighavailability(HA) isconfigured
4. Press<space> to page down, <return> for next line,or 'q' to quit...
How to viewlog filesovera specifictime in ClusteredData ONTAP
Syntex-:
CMODE_AA:>::> eventlog show-time <"MM/DD/YYYY HH:MM:SS">
Example-:
CMODE_AA::>eventlogshow-time "07/12/2017 00:00:00"
EMs events can be viewed by specifying the exact dates that you would like to view:
CMODE_AA::>event log show -time 11/7/2012 *|11/6/2012 *|11/5/2012 *|11/4/2012 *|11/3/2012 *|11/2/2012 *|11/1/2012
EMS events can also be viewed by specifying a date range that you would like to view:
CMODE_AA::> event log show -time "11/01/2012 00:00:00".."11/08/2012 00:00:00"
EMS logs can be viewed from clustershell over a period of elapsed time, example, 5 minutes:
CMODE_AA::> event log show -time >5m
Time Node Severity Event
Note-Take the output of the eventlogs and search the reasonfor the issue
How to getaudit log in the clustermode NetAppsystem?
By default,the audit log getrequestsare disable
CMODE_AA: :> securityauditshow
AuditingState for AuditingState for
SetRequests: Get Requests:
------------------ ------------------
CLI: on off
ONTAPI: on off
5. Thenwe needto enable itasbelow.
CMODE_AA::> securityauditmodify -cliget on
CMODE_AA::> securityauditshow
AuditingState for AuditingState for
SetRequests: Get Requests:
------------------ ------------------
CLI: on on
ONTAPI: on off
Note-setrequestscanbe foundin the command-history.log file (/mroot/etc/log/mlog/command-history.log)
Get requests can be found in the /mroot/etc/log/mlog/mgwd.log