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
Hi,
I have developed a custom command in the WFA as below
param (
[parameter(Mandatory=$true, HelpMessage="Cluster IP address")]
[string]$Cluster,
[parameter(Mandatory=$true, HelpMessage="Storage Virtual Machine name")]
[string]$VserverName
)
# connect to controller
Connect-WfaCluster $Cluster
# create the export policy
Get-WFALogger -Info -message $("Getting status of Avscanner '" +$VserverName + "'")
Get-NcVscanConnection -VserverContext $VserverName -ErrorAction Stop
when i am testing it, this is executing successfully, but i am not getting any output as expected(status of vscan)
can someone please help me on this
i manually use vserver vscan connection-status show this command to get the status.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you connect to your controller with Connect-NcController in a normal PowerShell session and then run your Get-NcVscanConnection cmdlet manually outside of WFA, do you get the proper output back?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Danny,
sorry for the late reply.
yes, i am getting the status information when i am running Get-NcVscanConnection cmdlet manually outside of WFA,
but when i am trying to use the same api in WFA (in custom command), i am not getting any errors(command is executing successfully) and also i am not getting any output.
