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.

General Discussion

Powershell cmdlets for event generate

Abhishar
2,013 Views

Hi,

 

I need help, need to run the below command in powershell.

 

event generate -node segotx01-01 -message-name tcpip.duplicate.ip -values 0.0.0.0 0.0.0.0

 

Please help

1 REPLY 1

donny_lang
1,974 Views

I was not able to find a PowerShell cmdlet in the Toolkit that satisfies your requirement, but you could run the native command using the "Invoke-NcSsh" cmdlet, like this: 

 

Invoke-NcSsh -Command "set d; y; event generate -node segotx01-01 -message-name tcpip.duplicate.ip -values 0.0.0.0 0.0.0.0"

 

 

Public