This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

connect-swis and VMAN

I can connect to VMAN using SWQL(https://<vmanhost>:443/swvm/services/InformationService​, java over http) , but have not been able to connect using the connect-swis cmdlet.

Is this supported?  Do i need to use REST instead?

Thanks.

  • Yes, you can talk to VMan from PowerShell. Like this:

    $vman = connect-swis -Soap12 https://vmanhost/swvm/services/InformationService -UserName guest -Password guest -IgnoreSslErrors

  • Thanks for adding to documentation.

    This is what i was trying earlier, but i must have been just been trying to hit at the wrong time(appliance busy maybe?).  Seems to work fine now.

    What i was seeing earlier. *id/password and hostname removed to protect the innocent.

    $swis = Connect-Swis -username id -password password -IgnoreSslErrors -Soap12 https://vmanserver/swvm/services/InformationService

    Get-SwisData -Query "Select name from VMAN.LUN" -SwisConnection $swis

    Get-SwisData : An error occurred while receiving the HTTP response to

    https://vmanserver/swvm/services/InformationService. This could be due to the service endpoint binding not using the

    HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the

    service shutting down). See server logs for more details.

    At line:1 char:1

    + Get-SwisData -Query "Select name from VMAN.LUN" -SwisConnection $swis

    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

        + CategoryInfo          : NotSpecified: (:) [Get-SwisData], CommunicationException

        + FullyQualifiedErrorId : System.ServiceModel.CommunicationException,SwisPowerShell.GetSwisData