NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Microsoft Virtualization Discussions

Collect system logs with powershell

papersaltserver
9,168 Views

Hello,

I want to collect logs from my FAS8040 in cluster mode for audit purposes. The only suitable cmdlet I've found is Get-NaSystemLog, which is not suitalbe for cluster mode. Is there any way to collect logs from powershel, without sending them via syslog, or email? Which cmdlet should I use?

1 ACCEPTED SOLUTION

asulliva
9,078 Views

The equivalent to "event log show" on the cluster is the Get-NcEmsMessage cmdlet.

 

Hope that helps.

 

Andrew

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

View solution in original post

4 REPLIES 4

asulliva
9,079 Views

The equivalent to "event log show" on the cluster is the Get-NcEmsMessage cmdlet.

 

Hope that helps.

 

Andrew

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

GLENYU5820
8,651 Views
Hi Andrew, Possible to collect other logs beside ems ? such as sktlogd.log Thanks Glen

asulliva
8,604 Views

Hi Glen,

 

Yes, you can use the "Read-NcFile" cmdlet so long as you know the full path to the file...

 

Read-NcFile -VserverContext $NodeName -Path /vol/vol0/etc/log/mlog/sktlogd.log

Vidad Cosonok has a very useful listing of the files in /etc/log and /etc/log/mlog here.

Hope that helps.

 

Andrew

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

GLENYU5820
8,584 Views
Hi Andrew, Confirmed it works. Thanks Glen
Public