VMware Cloud Community
apolta
Contributor
Contributor
Jump to solution

Get-Baseline Failing to Connect to Remote Server

Hello,

I am encountering an issue with the Get-Baseline commandlet in PowerCLI. I am able to connect to the VI-Server I am looking to retrieve baselines from with Connect-VIServer and most other commands I have tried (Get-VM, Get-VMHost, Set-Cluster, etc.) work without issue - however, Get-Baseline does not work, and gives me the error message "Unable to Connect to the Remote Server." We have multiple VCenter servers on this network (some within the same subnet), and Get-Baseline works on some servers but not others. I am able to connect to each of these VCenters and run other commands with no issue; this appears to be the only problem command.

 

We're trying to figure out if this is a firewall/proxy issue of some sort - does Get-Baseline require additional ports to be enabled that other commands do not, or have any additional requirements?

get-baseline -server "<servername>" -name "*security*"
get-baseline : 2/14/2023 3:07:06 PM Get-Baseline Unable to connect to the remote server
At line:1 char:1
+ get-baseline -server "<servername>" -name "*security*"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-Baseline], VimException
+ FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VumAutomation.Commands.GetBaseline
get-baseline -server "<otherserver>" -name "*security*"

Name Description Id Type Targe LastUpdateTime Numbe
tType rOfPa
tches
---- ----------- -- ---- ----- -------------- -----
Host Security Pat... A predefined base... 5 Patch Host 9/16/2022 9:38:03 AM 142
<continues>

 

1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Is port TCP 8084 to the VUM Server (probably the vCenter) open?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

5 Replies
LucD
Leadership
Leadership
Jump to solution

Is port TCP 8084 to the VUM Server (probably the vCenter) open?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

apolta
Contributor
Contributor
Jump to solution

Luc,

That may be it. I can telnet on 8084 to the working VCenter, but not to the VCenters where we're having issues. Does that port need to be open for Get-Baseline (and by extension, Update-Entity) to work?

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

Yes, that seems to be an "undocumented" requirement


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

apolta
Contributor
Contributor
Jump to solution

Perfect, thank you. That narrows down our problem. I assume there's no way to specify another port for those commands?

LucD
Leadership
Leadership
Jump to solution

Not that I know off.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference