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.

Software Development Kit (SDK) and API Discussions

Checking /etc/messages periodically using PSTK script

netappwala
2,370 Views

Hi,

 

Please give me an Idea that how can I automate checking /etc/messages file periodically using PSTK script?

 

are there any special cmdlets available for this taks?

 

 

Thanks,

Sri Charan M

1 REPLY 1

asulliva
2,360 Views

Hi Sri Charan,

 

You can use the "Read-NaFile" cmdlet to do this.

 

Read-NaFile /vol/vol0/etc/messages

Hope that helps.

 

Andrew

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