What VAMI is and how to reach it
The vCenter Server Appliance is a Photon OS virtual machine. On Day 1 we looked at the vCenter services that run inside it. Underneath those services is an ordinary Linux system that needs a correct clock, working name resolution, somewhere to send its logs and controlled administrative access.
You manage that layer through the vCenter Server Management Interface, still widely called VAMI (Virtual Appliance Management Interface). It lives at https://<vcenter-fqdn>:5480, separate from the vSphere Client at /ui. VAMI is also where you patch the appliance, configure file-based backup and check appliance health.
There are three ways to change these settings:
- The VAMI web interface on port 5480. Good for one appliance and for checking things by eye.
- The vCenter REST API under
https://<vcenter-fqdn>/api/appliance/. Every setting in this article has a documented endpoint, which makes it the right tool for automation and for keeping several vCenters identical. - The appliance shell on the console or over SSH. Useful for troubleshooting, but not the place to manage configuration day to day.
Who can sign in: VAMI accepts the appliance root account and SSO users that are members of the SystemConfiguration.Administrators group. administrator@vsphere.local is a member by default. For automation, add a named administrative account or group to that SSO group rather than sharing the root password. The REST API on port 443 uses SSO accounts.
Why this matters: most hard-to-diagnose vCenter problems start at this layer. Clock drift breaks SSO token validation, a missing reverse DNS record breaks services and certificates, and logs that stay on the appliance are lost exactly when you need them for an investigation.
Time: synchronization, NTP and time zone
vCenter Single Sign-On issues signed tokens with a validity window. If the appliance clock, the ESXi hosts and Active Directory disagree by more than a small margin, logins fail, hosts disconnect and identity-source lookups break. Time is the first thing to get right.
| Setting | Options | What it does | Our recommendation |
|---|---|---|---|
| Time synchronization mode | NTP, Host, Disabled | NTP syncs the appliance with NTP servers. Host syncs with the ESXi host it runs on through VMware Tools. Disabled turns synchronization off. | NTP in production. Host mode makes vCenter only as accurate as whichever host it happens to be on. |
| NTP servers | List of FQDNs or IP addresses | The servers the appliance queries when the mode is NTP. Setting the list restarts the NTP daemon when NTP mode is active. | Two to four reliable sources, the same ones your ESXi hosts and domain controllers use. |
| Time zone | Time zone name, for example UTC | The appliance operating system time zone, which affects timestamps in appliance logs and the shell. | UTC, so logs line up across sites and with your SIEM. |
Design recommendations:
- Point vCenter, every ESXi host and Active Directory at the same time hierarchy. In most domains the PDC emulator syncs with an external source and everything else follows it or the same upstream servers.
- Use more than one NTP server. With a single server, a bad source is undetectable. With three or more, the NTP client can recognise and discard an outlier.
- Test reachability before you commit. NTP uses UDP 123, which is often blocked between management networks and the internet.
- Never combine NTP mode with periodic VMware Tools time sync on the vCenter VM. Two sources fighting over the clock cause step changes.
DNS servers and search domains
vCenter depends on DNS more than almost any other system. Its certificates are issued for its FQDN, ESXi hosts are added by name, and identity sources, backup targets and integrations are all addressed by name. Forward and reverse records must resolve from the appliance itself.
| Setting | Options | What it does | Our recommendation |
|---|---|---|---|
| DNS server mode | Static (is_static), DHCP (dhcp) | Whether DNS servers are entered manually or taken from DHCP. Switching to DHCP forces a DHCP refresh. | Static. vCenter should not depend on DHCP for anything. |
| DNS servers | List of IP addresses | Resolvers the appliance uses, in order. | At least two, ideally in different failure domains, that can resolve every host and service vCenter talks to. |
| Search domains | List of domain suffixes | Suffixes appended to short names. | Your infrastructure domain. Keep the list short; always use FQDNs in configuration anyway. |
| Hostname (PNID) | FQDN set at deployment | The system name of vCenter, used in certificates and SSO. | Treat as fixed. Changing it is possible but is a planned change with certificate and integration impact. |
Changing DNS servers is low risk provided the new servers resolve everything the old ones did. Before switching, resolve the vCenter FQDN, its reverse record, every ESXi host and your domain controllers against the new servers from a machine on the same network.
Syslog forwarding
By default, appliance and vCenter service logs stay on the appliance and rotate away. For security monitoring, troubleshooting and audit, forward them to a central collector such as a SIEM, VCF Operations for logs or any syslog server.
| Setting | Options | Notes |
|---|---|---|
| Server | FQDN or IP address | Up to three remote servers. A fourth is rejected. |
| Port | 1 to 65535 | Commonly 514 for UDP and TCP and 6514 for TLS. Use whatever your collector listens on. |
| Protocol | UDP, TCP, TLS | UDP is fire-and-forget and loses messages silently. TCP is reliable. TLS is reliable and encrypted. |
Recommendations: use TCP or TLS, send to two collectors if your logging platform is not itself highly available, and use the built-in test after every change. The test checks that each collector is reachable and can send a diagnostic message so you can confirm end to end that it arrived. Forwarding from ESXi hosts is configured separately on each host, which we cover on Day 8.
Access: SSH, BASH, console and DCUI
The Access page controls how administrators can reach the appliance operating system. Each option widens the attack surface, so the principle is simple: keep remote access off by default and switch it on only for a task.
| Setting | What it allows | Our recommendation |
|---|---|---|
| SSH login | Remote SSH sessions to the appliance shell. | Disabled. Enable temporarily for support work, then disable again. Some third-party tools and older procedures expect SSH, so check before you disable it on an existing system. |
| BASH shell | Running shell from the appliance CLI to reach BASH. Enabled with a timeout of up to 86,400 seconds (one day). | Leave at its default and enable only with a short timeout when a procedure requires it. |
| Console CLI | The appliance shell on the VM console. | Enabled. It is your break-glass access when the network is down, and the console is protected by vSphere permissions. |
| DCUI | The Direct Console User Interface on the VM console. | Enabled, for the same reason. |
Two related settings belong on your checklist even though they are managed elsewhere. First, the appliance root password expires after 90 days by default. When it expires you cannot sign in to VAMI as root, which tends to be discovered during an incident or upgrade. Keep expiry enabled, but record the date and set a reminder or monitor it. Second, VAMI firewall rules can restrict which networks reach the appliance. We cover hardening in detail on Day 28.
Health indicators
The VAMI summary page shows a set of health indicators, and the same values are available from the API. Each one reports a colour.
| Indicator | API name | What it watches |
|---|---|---|
| Overall health | system | The worst state of all components below. |
| Services | applmgmt | The appliance management services. |
| CPU load | load | Sustained CPU load on the appliance. |
| Memory | mem | Memory usage. |
| Swap | swap | Swap usage, a strong sign of an undersized appliance. |
| Storage | storage | Free space on the appliance partitions. |
| Database storage | database-storage | Space for the vCenter database, events, tasks and statistics. |
| Software packages | software-packages | Whether updates are available from the configured repository. |
The colours are green (healthy), yellow (healthy but with some problems), orange (degraded, may have serious problems), red (unavailable or about to stop working) and gray (no data). The overall indicator takes the worst component state. Gray needs attention too: if a component has no data and everything else is green, overall health reports gray rather than green.
Persistent yellow or orange on memory, swap or database storage usually means the appliance has outgrown its deployment or storage size from Day 1. Scaling up the size is the fix, not restarting services.
Common mistakes and troubleshooting
- Login failures after a time change. Errors about token validity, or AD users that cannot sign in, almost always mean clock skew. Compare the time on vCenter, a host and a domain controller before anything else.
- NTP configured but not used. The NTP server list can be set while the mode is still Host or Disabled. The list alone does nothing; check the mode.
- NTP servers unreachable. UDP 123 is blocked from the management network. The NTP test in the script below shows this before you commit the change.
- Missing reverse DNS. Forward lookups work and everything seems fine until a service validates the reverse record. Test both directions from the appliance.
- Syslog over UDP with nothing arriving. UDP gives no error when a firewall drops the traffic. Switch to TCP and run the forwarding test.
- SSO user cannot sign in to VAMI. The user works in the vSphere Client but is not in
SystemConfiguration.Administrators. Add the user or group to that SSO group. - Expired root password. Reset it from the appliance console following Broadcom's documented procedure, then track the expiry date.
- VAMI page not loading. Check that TCP 5480 is open from your workstation. If the port answers but the page fails, the appliance management service may need a restart from the appliance shell with
service-control --restart applmgmt.
vCenter 9 and VCF 9 notes
The appliance endpoints used in this article are documented in the vSphere Automation API reference for vCenter 8 and for vCenter 9.0 and 9.1, with the same paths and request bodies, so the script works against both. The management interface still runs on port 5480.
In a VCF 9 deployment, NTP and DNS for the management components are entered during bring-up in the VCF Installer, and consistency across the fleet matters more because NSX, VCF Operations and other components depend on the same time and name services. Use the script's report mode to confirm that every vCenter matches your standard, and follow the documented VCF procedure when changing settings that VCF manages for you.
On PowerShell: use VCF PowerCLI (Install-Module -Name VCF.PowerCLI), and do not load it alongside VMware.PowerCLI 13.x, as covered on Day 1.
Automation script: appliance baseline
This script calls the vCenter REST API from PowerShell 7. It opens an API session with POST /api/session, sends the session ID in the vmware-api-session-id header and closes the session at the end. It also connects with VCF PowerCLI to confirm the account and report the vCenter version.
- Run it with only
-VCenterand it is read-only: it reports time, DNS, syslog, access and every health indicator. - Add settings such as
-NtpServer,-DnsServer,-SyslogServeror-Ssh Disabledand it compares each one with the current value and changes only what differs. -WhatIfshows what would change without changing anything.- NTP servers are tested from the appliance before they are applied. If any is unreachable, NTP is left alone.
<#
.SYNOPSIS
Day 3 - Reports and configures vCenter appliance time, DNS, syslog, access and health via the REST API.
.DESCRIPTION
Uses the vCenter appliance REST API (/api/appliance/*) from PowerShell 7.
With no setting parameters it is a read-only report. Pass a setting (for example
-NtpServer) to configure it. Each setting is compared with the current value first,
only differences are changed, and -WhatIf shows what would change.
.EXAMPLE
./Set-VcsaApplianceBaseline.ps1 -VCenter vcenter01.corp.local
Read-only report of time, DNS, syslog, access and health.
.EXAMPLE
./Set-VcsaApplianceBaseline.ps1 -VCenter vcenter01.corp.local -NtpServer ntp1.corp.local, ntp2.corp.local -TimeZone UTC -SyslogServer siem01.corp.local -SyslogProtocol TCP -Ssh Disabled -WhatIf
Shows what would change. Run again without -WhatIf to apply.
.NOTES
Requires PowerShell 7+ and the VCF.PowerCLI module.
Sign in with an SSO account in SystemConfiguration.Administrators.
Part of the Virtual HyperInfra vCenter Configuration Series.
Test in a lab first. Provided as-is, without warranty.
#>
[CmdletBinding(SupportsShouldProcess)]
param(
[Parameter(Mandatory)]
[string]$VCenter,
[string[]]$NtpServer,
[string]$TimeZone,
[string[]]$DnsServer,
[string[]]$SearchDomain,
[ValidateCount(1, 3)]
[string[]]$SyslogServer,
[ValidateRange(1, 65535)]
[int]$SyslogPort = 514,
[ValidateSet('UDP', 'TCP', 'TLS')]
[string]$SyslogProtocol = 'TCP',
[ValidateSet('Unchanged', 'Enabled', 'Disabled')]
[string]$Ssh = 'Unchanged',
[string]$ReportPath,
[switch]$SkipCertificateCheck
)
$ErrorActionPreference = 'Stop'
Set-PowerCLIConfiguration -InvalidCertificateAction Warn -ParticipateInCeip $false `
-Scope Session -Confirm:$false -WhatIf:$false | Out-Null
$cred = Get-Credential -Message "SSO administrator for $VCenter"
$base = "https://$VCenter/api"
$rest = @{ SkipCertificateCheck = $SkipCertificateCheck.IsPresent; ContentType = 'application/json' }
$vc = $null
$headers = $null
function Invoke-Vami {
param([string]$Method = 'GET', [string]$Path, $Body)
$p = @{ Method = $Method; Uri = "$base$Path"; Headers = $headers } + $rest
if ($null -ne $Body) { $p.Body = ($Body | ConvertTo-Json -Depth 5) }
Invoke-RestMethod @p
}
function Test-SameList([string[]]$Current, [string[]]$Desired) {
(@($Current) -join ',') -eq (@($Desired) -join ',') # -eq is case-insensitive
}
function Set-Setting {
param([string]$Name, [bool]$InDesiredState, [scriptblock]$Apply)
if ($InDesiredState) { Write-Host " [ok] $Name" -ForegroundColor Green; return }
if ($PSCmdlet.ShouldProcess($VCenter, $Name)) {
& $Apply | Out-Null
Write-Host " [changed] $Name" -ForegroundColor Yellow
}
}
try {
$vc = Connect-VIServer -Server $VCenter -Credential $cred
Write-Host ("Connected to {0} - vCenter {1} (build {2})" -f $vc.Name, $vc.Version, $vc.Build) -ForegroundColor Green
# REST session: POST /api/session with basic auth, then use the vmware-api-session-id header
$token = Invoke-RestMethod -Method Post -Uri "$base/session" -Credential $cred -Authentication Basic @rest
$headers = @{ 'vmware-api-session-id' = $token }
# --- 1. Time: NTP servers (tested first), sync mode and time zone ---
if ($NtpServer) {
$test = @(Invoke-Vami -Method Post -Path '/appliance/ntp?action=test' -Body @{ servers = @($NtpServer) })
$test | ForEach-Object { Write-Host (" NTP test {0}: {1}" -f $_.server, $_.status) }
if (@($test | Where-Object status -ne 'SERVER_REACHABLE').Count -gt 0) {
Write-Warning 'One or more NTP servers are unreachable from the appliance. NTP was not changed.'
}
else {
Set-Setting -Name "NTP servers: $($NtpServer -join ', ')" `
-InDesiredState (Test-SameList (Invoke-Vami -Path '/appliance/ntp') $NtpServer) `
-Apply { Invoke-Vami -Method Put -Path '/appliance/ntp' -Body @{ servers = @($NtpServer) } }
Set-Setting -Name 'Time sync mode: NTP' `
-InDesiredState ((Invoke-Vami -Path '/appliance/timesync') -eq 'NTP') `
-Apply { Invoke-Vami -Method Put -Path '/appliance/timesync' -Body @{ mode = 'NTP' } }
}
}
if ($TimeZone) {
Set-Setting -Name "Time zone: $TimeZone" `
-InDesiredState ((Invoke-Vami -Path '/appliance/system/time/timezone') -eq $TimeZone) `
-Apply { Invoke-Vami -Method Put -Path '/appliance/system/time/timezone' -Body @{ name = $TimeZone } }
}
# --- 2. DNS servers (static) and search domains ---
if ($DnsServer) {
$dns = Invoke-Vami -Path '/appliance/networking/dns/servers'
Set-Setting -Name "DNS servers (static): $($DnsServer -join ', ')" `
-InDesiredState ($dns.mode -eq 'is_static' -and (Test-SameList $dns.servers $DnsServer)) `
-Apply { Invoke-Vami -Method Put -Path '/appliance/networking/dns/servers' -Body @{ mode = 'is_static'; servers = @($DnsServer) } }
}
if ($SearchDomain) {
Set-Setting -Name "DNS search domains: $($SearchDomain -join ', ')" `
-InDesiredState (Test-SameList (Invoke-Vami -Path '/appliance/networking/dns/domains') $SearchDomain) `
-Apply { Invoke-Vami -Method Put -Path '/appliance/networking/dns/domains' -Body @{ domains = @($SearchDomain) } }
}
# --- 3. Syslog forwarding (up to three servers) ---
if ($SyslogServer) {
$desired = @($SyslogServer | ForEach-Object { @{ hostname = $_; port = $SyslogPort; protocol = $SyslogProtocol } })
$current = @(Invoke-Vami -Path '/appliance/logging/forwarding')
$curKey = ($current | ForEach-Object { '{0}:{1}/{2}' -f $_.hostname, $_.port, $_.protocol }) -join ', '
$newKey = ($desired | ForEach-Object { '{0}:{1}/{2}' -f $_.hostname, $_.port, $_.protocol }) -join ', '
Set-Setting -Name "Syslog forwarding: $newKey" -InDesiredState ($curKey -eq $newKey) `
-Apply { Invoke-Vami -Method Put -Path '/appliance/logging/forwarding' -Body @{ cfg_list = $desired } }
if (-not $WhatIfPreference) {
Invoke-Vami -Method Post -Path '/appliance/logging/forwarding?action=test' -Body @{ send_test_message = $true } |
ForEach-Object { Write-Host (" Syslog test {0}: {1}" -f $_.hostname, $_.state) }
}
}
# --- 4. SSH access ---
if ($Ssh -ne 'Unchanged') {
$wantSsh = $Ssh -eq 'Enabled'
Set-Setting -Name "SSH login: $Ssh" `
-InDesiredState ([bool](Invoke-Vami -Path '/appliance/access/ssh') -eq $wantSsh) `
-Apply { Invoke-Vami -Method Put -Path '/appliance/access/ssh' -Body @{ enabled = $wantSsh } }
}
# --- 5. Read-only report: configuration and health ---
$dnsNow = Invoke-Vami -Path '/appliance/networking/dns/servers'
$config = [pscustomobject]@{
vCenter = $VCenter
TimeSyncMode = Invoke-Vami -Path '/appliance/timesync'
NtpServers = @(Invoke-Vami -Path '/appliance/ntp') -join ', '
TimeZone = Invoke-Vami -Path '/appliance/system/time/timezone'
DnsMode = $dnsNow.mode
DnsServers = @($dnsNow.servers) -join ', '
SearchDomains = @(Invoke-Vami -Path '/appliance/networking/dns/domains') -join ', '
SyslogTargets = @(Invoke-Vami -Path '/appliance/logging/forwarding' | ForEach-Object { '{0}:{1}/{2}' -f $_.hostname, $_.port, $_.protocol }) -join ', '
SshEnabled = Invoke-Vami -Path '/appliance/access/ssh'
BashEnabled = (Invoke-Vami -Path '/appliance/access/shell').enabled
ConsoleCli = Invoke-Vami -Path '/appliance/access/consolecli'
Dcui = Invoke-Vami -Path '/appliance/access/dcui'
}
$health = foreach ($c in 'system', 'applmgmt', 'load', 'mem', 'swap', 'storage', 'database-storage', 'software-packages') {
$state = try { Invoke-Vami -Path "/appliance/health/$c" } catch { 'error' }
[pscustomobject]@{ Component = $c; Health = $state }
}
$config | Format-List
$health | Format-Table -AutoSize
if ($ReportPath) {
$config | Export-Csv -Path $ReportPath -NoTypeInformation -Append
Write-Host "Configuration row appended to $ReportPath" -ForegroundColor Green
}
}
finally {
if ($headers) { try { Invoke-Vami -Method Delete -Path '/session' | Out-Null } catch { } }
if ($vc) { Disconnect-VIServer -Server $vc -Confirm:$false -WhatIf:$false }
}
How to run it
- Open PowerShell 7 and save the script as
Set-VcsaApplianceBaseline.ps1. Make sure VCF PowerCLI is installed (Day 1). - Run the report first:
./Set-VcsaApplianceBaseline.ps1 -VCenter vcenter01.corp.local. Sign in with an account inSystemConfiguration.Administrators. If vCenter still uses a certificate your workstation does not trust, add-SkipCertificateCheckfor now; Day 26 fixes that properly. - Preview your standard with
-WhatIf, for example:./Set-VcsaApplianceBaseline.ps1 -VCenter vcenter01.corp.local -NtpServer ntp1.corp.local,ntp2.corp.local -TimeZone UTC -DnsServer 10.0.0.10,10.0.0.11 -SyslogServer siem01.corp.local -SyslogProtocol TCP -Ssh Disabled -WhatIf - Review the
What iflines, then run the same command without-WhatIf. Lines marked[ok]were already compliant;[changed]lines were updated. - For several vCenters, run the report with
-ReportPath appliance-baseline.csvagainst each one to build a single comparison file.
Order of changes: change DNS on its own first and confirm that the vSphere Client, hosts and identity sources still work. Then apply time, syslog and access settings. If something breaks, you know which change caused it.
Verifying the result
- Report mode: run the script again with only
-VCenter. Every value should match your standard and the time sync mode should readNTP. - VAMI: open
https://<vcenter-fqdn>:5480and check the Time, Networking, Syslog and Access pages, and that the Summary page shows green health. - Syslog: search your collector for the diagnostic test message the script sent. If nothing arrived but the test reported the server as up, check the collector's input for that port and protocol.
- Time: compare the appliance time with an ESXi host and a domain controller. They should agree to within a second or two.
- Health: anything other than green in the health table deserves a look today, especially swap and database storage.
What's next
Day 4: vCenter Single Sign-On and Active Directory identity sources over LDAPS, with password and lockout policies set from PowerShell. See the full 30-day series plan.
Want this done for your environment?
We design, deploy and automate vCenter and its alternatives, and can run a full health check of your estate.
Scripts are provided as-is for learning and should be tested in a non-production environment first. VMware, vSphere, vCenter and PowerCLI are trademarks of Broadcom.