ONTAP Discussions

NetApp Root Account Login History


Hi All,


Is there a command I can input into my 7-mode filer's CLI to interrogate / display the root account login history, when the root username & password have been used to to access the filer's CLI.


Apparrently, the filer root account has never been used to access the filer since initial config.


I'd appreciate any suggestions


Tks In Advamce




Check /etc/log/auditlog. Any CLI session and commands issued is logged here.


Hi Yishikawa,


Thanks very much for the /etc/log/auditlog tip.


I ran the above command you suggested on the NetApp site and found the following NetApp library link entitled "Understanding Audit Logging"




In the above link, it is suggested that the filer saves audit-log files for six weeks, (unless any audit-log file reaches the maximum size) after which the oldest audit-log file is discarded.


I suspect any of the root account logon attempts I wanted to track will already have been deleted. 


I don't suppose there's any system shell commands that could accomplish the same aim?


Thanks for your response


C.J.(aka Millsy64)


Hello team.



As i requested  to you!



I jest wanted know the root user loging history can you please assist on it 






Hello Dear,



Try checking in the autosupports sent to Netapp

You could also check in myautosupport not sure their retention but worth giving it a try




That works, though it does make you dependant on NetApp for storing your data. Which is fine all the time you have an active support contract.



Unfortunately, no other commands & logs.
As you referred, auditlog is recycled so you need to keep it on remote hosts before it is recycled.Consider to copy auditlog* to remote host via NFS or CIFS. Or,as Millsy64 wrote, consider to use syslog, some relevant KB articles are published.


One suggestion would be to keep 52 weeklys on your vol0 vol...


If you want to save the audit logs for longer than the filer saves them, you can always setup a syslog server and have the filer forward the messages. If you have multiple filers you can forward all their logs to that one central sysog server and have one place to search. You can also save the logs for as long as you like.



NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner