Quantcast
Channel: All Data Protection posts
Viewing all articles
Browse latest Browse all 3476

Re: SnapCreator Powerhell cannot connect to snapcreator 4.3.0P3 Server

$
0
0

Hi,

 

Can you please try connecting using the following code. This will provide verbose output of the exception. Can you please post a screenshot of it?

I'd like to see the stack trace property of the error object to trace the source code.

 

#'------------------------------------------------------------------------------
Param(
   [Parameter(Mandatory=$True, HelpMessage="The hostname or IP Address of the SnapCenter server")]
   [String]$HostName,
   [Parameter(Mandatory=$True, HelpMessage="The SnapCenter Port Number")]
   [Int]$PortNumber,
   [Parameter(Mandatory=$True, HelpMessage="The credentials to authenticate the to SnapCreator server")]   
   [System.Management.Automation.PSCredential]$Credentials
)
#'------------------------------------------------------------------------------
Import-Module SnapCreator -ErrorAction SilentlyContinue
Try{
   Connect-ScServer -Name $HostName -Port $PortNumber -Credential $credentials -ErrorAction Stop | Out-Null
   Write-Host "Connected to SnapCenter ""$HostName"" on port number ""$PortNumber"""
}Catch{
   Write-Warning -Message $("Failed connecting to SnapCenter ""$HostName"" on port number ""$PortNumber"". Error " + $_.Exception.Message)echo $_.Exception | Format-List -Force
}
#'------------------------------------------------------------------------------

Thanks

 

/Matt


Viewing all articles
Browse latest Browse all 3476

Trending Articles