Active IQ Unified Manager Discussions

powershell code and wfa

SrikanthReddy
4,546 Views

if most of powershell commands work in wfa 

could not get transcript output to local txt file  with Start-Transcript/Stop Transcript 

was using this for testing code 

was able to get output from download logs ,if this is by design of WFA that all logs/output is only available from download logs 

 

if there is list of all WFA commandlets not in Powershell ONTAP 

 

Connect-WfaController
Get-WFALogger

1 ACCEPTED SOLUTION

mbeattie
4,524 Views

Hi There,

 

I'm not certain if this answers your question...but you can easily find a list of the available PowerShell CmdLets (functions) in WFA by searching the XML help and .psm1 files. For example:

 

C:\Program Files\NetApp\WFA\PoSH\Modules\WFA>find /i "<command:name>" wfa.dll-Help.xml

---------- WFA.DLL-HELP.XML
                        <command:name>Add-WfaWorkflowParameter</command:name>
                        <command:name>Get-WFALogger</command:name>
                        <command:name>Get-WfaCredentials</command:name>
                        <command:name>Get-WfaRestParameter</command:name>
                        <command:name>Get-WfaInputPassword</command:name>
                        <command:name>Get-WfaWorkflowParameter</command:name>
                        <command:name>Get-WfaVendor</command:name>
                        <command:name>Set-WfaCommandProgress</command:name>
                        <command:name>Get-WfaVersion</command:name>

C:\Program Files\NetApp\WFA\PoSH\Modules\WFAWrapper>find /i "function " WFAWrapper.psm1 | find /v "#"

---------- WFAWRAPPER.PSM1
function Get-OntapVersionFromString
function Compare-OntapVersions
function Invoke-WfaScript
function Invoke-WfaCommand
function Get-Parameter
function Test-CredentialSecure{
function Test-Credential{
function Connect-WfaController{
function Connect-WfaCluster{
function Set-WfaAcl
function Connect-WfaDfm{
function Connect-WfaVIServer{
function Test-Connect-WfaVIServer{
function New-WfaZapiServer{
function Invoke-WfaCli
function Invoke-WfaClusterCli
function checkConnection{
function ConvertFromSecureToPlain {
function HandleControllerExceptions {
function TestConnection {
function WaitFor-NcJob($secondsToWait, $jobId, $errorMessage) {
function Get-CachedController{
function Add-CachedController{
function Get-CacheFile{
function Invoke-WfaMock
function Connect-Controller {
function Invoke-MySqlQuery {
Export-ModuleMember -alias imysql -function Invoke-MySqlQuery

 

Hope that helps

 

/matt

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

View solution in original post

2 REPLIES 2

mbeattie
4,525 Views

Hi There,

 

I'm not certain if this answers your question...but you can easily find a list of the available PowerShell CmdLets (functions) in WFA by searching the XML help and .psm1 files. For example:

 

C:\Program Files\NetApp\WFA\PoSH\Modules\WFA>find /i "<command:name>" wfa.dll-Help.xml

---------- WFA.DLL-HELP.XML
                        <command:name>Add-WfaWorkflowParameter</command:name>
                        <command:name>Get-WFALogger</command:name>
                        <command:name>Get-WfaCredentials</command:name>
                        <command:name>Get-WfaRestParameter</command:name>
                        <command:name>Get-WfaInputPassword</command:name>
                        <command:name>Get-WfaWorkflowParameter</command:name>
                        <command:name>Get-WfaVendor</command:name>
                        <command:name>Set-WfaCommandProgress</command:name>
                        <command:name>Get-WfaVersion</command:name>

C:\Program Files\NetApp\WFA\PoSH\Modules\WFAWrapper>find /i "function " WFAWrapper.psm1 | find /v "#"

---------- WFAWRAPPER.PSM1
function Get-OntapVersionFromString
function Compare-OntapVersions
function Invoke-WfaScript
function Invoke-WfaCommand
function Get-Parameter
function Test-CredentialSecure{
function Test-Credential{
function Connect-WfaController{
function Connect-WfaCluster{
function Set-WfaAcl
function Connect-WfaDfm{
function Connect-WfaVIServer{
function Test-Connect-WfaVIServer{
function New-WfaZapiServer{
function Invoke-WfaCli
function Invoke-WfaClusterCli
function checkConnection{
function ConvertFromSecureToPlain {
function HandleControllerExceptions {
function TestConnection {
function WaitFor-NcJob($secondsToWait, $jobId, $errorMessage) {
function Get-CachedController{
function Add-CachedController{
function Get-CacheFile{
function Invoke-WfaMock
function Connect-Controller {
function Invoke-MySqlQuery {
Export-ModuleMember -alias imysql -function Invoke-MySqlQuery

 

Hope that helps

 

/matt

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

sinhaa
4,484 Views

WFA3.0 has added web-based documentation for all Powershell cmdlets and Perl Methods which can be viewed from your browser itself. You can see the cmdlet description, details and examples on how to use them.

 

Login to WFA -> Help -> Support Links

 

WFA Support Links.png

 

 

 

sinhaa

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.
Public