ViCFG-AdvCfg.pl Tutorial

The commands vicfg-advcfg.pl (esxcfg-advcfg.pl) are used to change Advanced Settings for your host as you would with the VI client (see Configuration \ Advanced Settings. Typically these settings would be changed only under the guidance of VMware Support or a knowledge base article. The vicfg-advcfg.pl command has the following options.

--quiet (-s) - suppresses output from the command
--get <option> (-g <option>) - get the value of a specified setting given its identifying path (e.g. LVM.DisallowSnapshotLun or VMkernel.Boot.ACPI).
--get-kernel <boot-option> (-j <boot-option>) - get the value of a VMkernel boot parameter. The option is specified as just ACPI for example instead of VMkernel.Boot.ACPI.
--set <option> (-s <option>) - set a value for the specified option. If using the -s option, the --set option will fail silently.
--set-kernel <boot-option> (-k <boot-option> - set a value for a VMkernel boot option
--default <option> (-d <option>) - set the value of a specific configuration item to the default value defined by the VMkernel

Sample session

vicfg-advcfg.pl –server esx10.mishchenko.net –get LVM.DisallowSnapshot (invalid option used)
Option LVM.DisallowSnapshot not found.

vicfg-advcfg.pl –server esx10.mishchenko.net –get LVM.DisallowSnapshotLun
Value of DisallowSnapshotLun is 1

vicfg-advcfg.pl –server esx10.mishchenko.net –set 2 LVM.DisallowSnapshotLun (value is not valid for this option)

SOAP Fault:
———–
Fault string: A specified parameter was not correct.

Fault detail: InvalidArgumentFault
End Disconnect

vicfg-advcfg.pl –server esx10.mishchenko.net –quiet –set 0 LVM.DisallowSnapshotLun

vicfg-advcfg.pl –server esx10.mishchenko.net –set 0 LVM.DisallowSnapshotLun
Value of DisallowSnapshotLun is 0

vicfg-advcfg.pl –server esx10.mishchenko.net –default LVM.DisallowSnapshotLun
DisallowSnapshotLun reset to default
Value of DisallowSnapshotLun is 1

vicfg-advcfg.pl –server esx10.mishchenko.net –get-kernel techSupportMode
Value of VMkernel.Boot.techSupportMode is true

vicfg-advcfg.pl –server esx10.mishchenko.net –set-kernel false techSupportMode
Value of VMkernel.Boot.techSupportMode is false

vicfg-advcfg.pl –server esx10.mishchenko.net –default VMkernel.Boot.techSupportMode
VMkernel.Boot.techSupportMode reset to default
Value of VMkernel.Boot.techSupportMode is 1

These options can also be configured with the VI client.

Leave a Comment

Your email address will not be published. Required fields are marked *