cno211cno
Contributor
Contributor

Vcenter 4 Settings Audit

Jump to solution

Hello everyone, I am building 20 vCenter 4.x servers and am trying to find a way to extract the Advanced Settings information indicated below. Would any of you be able to give me a hand?

ads.checkInterval 1440

ads.checkIntervalEnabled TRUE

ads.maxFetch 5000

ads.maxFetchEnabled TRUE

ads.timeout 60

AgentUpgrade.checkPeriodSeconds 30

alarms.upgraded TRUE

client.timeout.long 120

client.timeout.normal 30

cleint.VerifySSLCertificates TRUE

event.maxAge 180

event.maxAgeEnabled FALSE

instance.id 28

LicenseServer.matchHostToVirtualCenter TRUE

log.level Information

mail.sender

mail.smtp.port 25

mail.smtp.server

Perf.Stats.MaxCollectionThreads 2

schema.version.major 1

schema.version.minor 0

snmp.receiver.1.community public

snmp.receiver.1.enabled TRUE

snmp.receiver.1.name localhost

snmp.receiver.1.port 162

snmp.receiver.2.community

snmp.receiver.2.enabled FALSE

snmp.receiver.2.name

snmp.receiver.2.port 162

snmp.receiver.3.community

snmp.receiver.3.enabled FALSE

snmp.receiver.3.name

snmp.receiver.3.port 162

snmp.receiver.4.community

snmp.receiver.4.enabled FALSE

snmp.receiver.4.name

snmp.receiver.4.port 162

SSL.Version All

task.maxAge 180

task.maxAgeEnabled FALSE

VirtualCenter.CacheSize 314572800

VirtualCenter.DBPassword

VirtualCenter.InstanceName hostname.domain.com

VirtualCenter.LDAPAdminPrincipal Administrators

VirtualCenter.ManagedIP

VirtualCenter.MaxDBConnection 50

VirtualCenter.VimApiUrl https://hostname.domain.com:443/sdk

VirtualCenter.VimPasswordExpirationInDays 30

VirtualCenter.VimWebServicesUrl https://hostname.domain.com:8443/vws

vpxd.httpClientIdleTimout 900

vpxd.motd

vpxd.npivWwnGeneration.portWwnNumber 4

vpxd.npivWwnGeneration.singleNodeWwn TRUE

vpxd.usageStats.duration 1209600

vpxd.usageStats.level 0

vpxd.usageStats.persist TRUE

vpxd.vod.persist TRUE

WebService.Ports.http 80

WebService.Ports.https 443

wwn.instance.id 0

config.vpxd.filterOverheadLimitIssues TRUE

config.vpxd.das.slotMemMinMB 0

config.vpxd.das.slotCpuMinMHz 256

condig.vpxd.das.serializeadds TRUE

config.vmacore.threadPool.TaskMax 30

config.vmacore.threadPool.IoMax 200

config.vmacore.cacheProperties TRUE

config.level[VMCheck].logName VmCheck

config.level[VMCheck].logLevel info

config.level[CpuFeatures].logName CpuFeatures

config.level[CpuFeatures].logLevel info

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership

Replace the Format-Table cmdlet with an Export-Csv cmdlet.

Like this.

$si = Get-View ServiceInstance
$vpxSettings = Get-View $si.Content.Setting
$vpxSettings.Setting | Select Key,Value | Export-Csv "C:\vpxSettings.csv" -NoTypeInformation -UseCulture

____________

Blog: LucD notes

Twitter: lucd22


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

View solution in original post

0 Kudos
4 Replies
LucD
Leadership
Leadership

Sure, try this

$si = Get-View ServiceInstance
$vpxSettings = Get-View $si.Content.Setting
$vpxSettings.Setting | Select Key,Value | ft

____________

Blog: LucD notes

Twitter: lucd22


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

0 Kudos
cno211cno
Contributor
Contributor

Thank you LucD but am still a little confused on how to actually export that out to a csv or text file. I have tried Export-CSV as well as just piping to > "c:\text.txt" with horrible results. Is there a way to send off to a file I can report on?

0 Kudos
LucD
Leadership
Leadership

Replace the Format-Table cmdlet with an Export-Csv cmdlet.

Like this.

$si = Get-View ServiceInstance
$vpxSettings = Get-View $si.Content.Setting
$vpxSettings.Setting | Select Key,Value | Export-Csv "C:\vpxSettings.csv" -NoTypeInformation -UseCulture

____________

Blog: LucD notes

Twitter: lucd22


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

View solution in original post

0 Kudos
cno211cno
Contributor
Contributor

Very Nice. Thank you. You are always a great asset to my team Smiley Happy

0 Kudos