#PowerShell on RHEL

1 messages · Page 1 of 1 (latest)

proud cipher
#

I'm looking for a method to isolate my footprint further from hosts that are allowed to contact our arrays versus not.

I have two hosts right now that have 443 access, one is our management box and the other is an Ansible node to execute workbooks given to it.
Theres a lot of PowerShell in use and I'd hate to convert to something more RHEL friendly, but I will if I need to.

My question really is. Will the toolkit for NA play nicely on a RHEL install utilizing this supported feature => https://learn.microsoft.com/en-us/powershell/scripting/install/install-rhel?view=powershell-7.4

Thaaaanks!

fresh nova
#

The installation guide for Netapp.ONTAP PowerShell Toolkit 9.13 has instructions for using the module with RedHat 7. The 'old' 9.8 and earlier releases are specific to Windows PowerShell and do not work with Linux systems.

karmic marten
#

I moved all my ONTAP Powershell scripts from Windows 2012 to RHEL 8 about 6 months ago. There were some modifications necessary from native Windows Powershell 4 to Powershell 7, but I found it very easy to migrate. Depends on the amount of code I think. 😅

obtuse vessel
#

I previously had a dependency conflict between NetApp.ONTAP and VMware.PowerCLI on PWSH 6+ on Windows and Ubuntu (unlikely OS-related) but that appears to have since been resolved. I develop the Lab on Demand in-house powershell module and test on both PowerShell Desktop (5.x) and PowerShell Core (6+ current LTS version). Because of PWSH 7+ easy parallelism, I encourage my team to use PWSH 7+ LTS.

All that to say: The NetApp.ONTAP on PWSH 7+ LTS is working well here. Be cautious with version 9.11.x.y. It appears RBAC regarding REST in ONTAP requires reassessment...

proud cipher
#

My colleagues will hate me for this.
I love it.

Time to get this stuff migrated tomorrow.

obtuse vessel
#

Ask ONTAP-specific questions here. Search the internet (or the powershell Reddit) for the invite link for the Powershell Discord server for general powershell questions. I’m on there too.

#

There’s no reason to hate on PWSH Core. It has crazy nice functionality. It can also be run in WSL and containerized using Podman. I’ve started testing and using PWSH via Podman and VSCode’s devcontainer.

proud cipher
obtuse vessel
#

How'd it go?

proud cipher
#

So far so good!
Have to make some tweaks to a script that was writing straight to unc paths, going to entire it to an NFS4.1 enabled path instead.
Additionally, non-root account and add-nccredential don't play nicely

obtuse vessel
#

Be sure to make use of Join-Path, $([System.IO.Path]::PathSeparator), and [IO.Path]::Combine() to create context accurate paths where appropriate. Of course, if running an ONTAP command on Windows, that's a Unix path that you'll have to manually override with the correct slashes...