Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
1 ACCEPTED SOLUTION
joshuag has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
Connect-WfaCluster $Cluster
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. 😉
1 REPLY 1
joshuag has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
Connect-WfaCluster $Cluster
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. 😉