Effective December 3, NetApp adopts Microsoft’s Business-to-Customer (B2C) identity management to simplify and provide secure access to NetApp resources.
For accounts that did not pre-register (prior to Dec 3), access to your NetApp data may take up to 1 hour as your legacy NSS ID is synchronized to the new B2C identity.
To learn more, read the FAQ and watch the video.
Need assistance? Complete this form and select “Registration Issue” as the Feedback Category.

Microsoft Virtualization Discussions

Powershell & serial connection to NetApp?

LUKASPRELOVSKY

Hi community,

is it possible to create a powershell skript which send commands by a serial connection ? Or any other solutions for skripting over serial connection available?

Thank you,

Lukas

Best Regards,
Lukas
5 REPLIES 5

vinith

Please have a look at this thread https://communities.netapp.com/thread/11219

I would suggest that you can use Invoke-NaSsh to Send a Data ONTAP CLI command via SSH.

Invoke-NaSsh "<DataOntap CLI command>"

For more help on this cmdlet, you can type in

Get-Help Invoke-NaSsh -Detailed


LUKASPRELOVSKY

Hi,

Invoke-NaSsh -Port is to user for com1 oder com2 .... ?

Thank you,

Lukas

Best Regards,
Lukas

vinith

-Port refers to the TCPIP port for the ssh connection. It should only be used if ssh is not on port 22 for instance if traversing a proxy gateway, or serial concentrator,We can't talk to a serial port like com1/com2

LUKASPRELOVSKY

What a bummer! 😞 Thank you anyway for your answers.

BR,

Lukas

Best Regards,
Lukas

bloehlein

Hi Lukas,

the -Port option just let's you choose a non-default port on which the ssh-server is listening, default port is 22 (TCP-Port, not serial port)

The powershell toolkit currently doesn't support any communication other than http-api or ssh.

best regards,

Bernd

Announcements
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
Public