2016-04-21 05:34 AM
I am trying to write a command that will allow Domain Authentication at the cluster level in addition to assigning custom roles to those domain users. To do so requires domain tunneling and defining capabilities for roles. There doesn't seem to be an ZAPI or PoSH command to accomplish this. So, whats left? Is there a way to invoke CLI commands within WFA or does it require system-cli api commands?
Solved! See The Solution
2016-04-21 05:46 AM
Yes, there are ways to invoke CLI commands from the DataOntap Powershell Module.
Here is an example command that I have for setting up public keys. It uses the 'Invoke-NcSsh' posh commandlet:
Get-WFALogger -Info -message $("Setting up publickey for user '" + $username + "' on Vserver " + $Vserver)
$Cmd = "security login publickey create -vserver $Vserver -user $Username -publickey ""$SshKey""";
Get-WFALogger -Info -message $("Running: " + $Cmd)
$retVal = Invoke-NcSsh -Command $Cmd
Get-WFALogger -Info -message $retVal
Note: I'm not sure whether I created this one, or just copied someone else.