ONTAP Discussions

Mroot access on C-DOT


Is there anyway of getting access via CIFS to the mroot directory in CDOT?  In 7-mode it was easy, but now it seems only the web interface is available for mroot, is there another way?


Re: Mroot access on C-DOT


No NAS access.


only ways are the GUI or systemshell and then scp out of mroot.

Re: Mroot access on C-DOT


Do you have instructions on how to accomplish this via scp from the cli?

Re: Mroot access on C-DOT




First you access the systemshell of the node where the logs live.


This requires unlocking the diag user:



::> set diag

::*> systemshell -local nodename


diag@'s password: {password you set}

Warning: The system shell provides access to low-level
diagnostic tools that can cause irreparable damage to
the system if not used properly. Use this environment
only when directed to do so by support personnel.




From here, you cd to the log dir:


% cd /mroot/etc/log


Find the file you want to move out and use scp to copy it. "log" has packet traces, node logs, etc. mlog has management logs (like secd, mgwd).


Windows uses WinSCP:



Linux uses basic scp.


This is scp from the ONTAP systemshell:


% scp
usage: scp [-346BCpqrTv] [-c cipher] [-F ssh_config] [-i identity_file]
[-J destination] [-l limit] [-o ssh_option] [-P port]
[-S program] source ... target


This is an example of using it:

% cd /mroot/etc/mlog

% scp secd.log root@x.x.x.x:/node1.secd.log
root@x.x.x.x's password:


[root@centos7 /]# ls -la | grep secd
-rw-r--r-- 1 root root 403636 Apr 5 09:48 node1.secd.log


View solution in original post

Re: Mroot access on C-DOT


interesting.  thank you, I will give this a try.

Re: Mroot access on C-DOT


Be extremely careful in the systemshell. It is a dangerous way to really screw up your filer's configuration and cause any kind of issues. If you're not sure, don't do it.

Re: Mroot access on C-DOT


Also, I should add you can rdfile/wrfile, ls, and rm files from the node shell in advanced mode.

Earn Rewards for Your Review!
GPI Review Banner
All Community Forums