• Home
  • News
  • Technical Guides
  • Troubleshooting
  • Download
  • Videos
  • Top Bloggers!
  • About

VirtualVCP IT Virtualization

rynardtspies: Worst day on the job by far! 1 day ago from TwInbox

esxcfg-advcfg PDF Print E-mail
User Rating: / 0
PoorBest 
Written by Rynardt Spies   
Thursday, 25 June 2009 14:43

The CLI command line tool esxcfg-advcfg can be used to query and modify advanced options for a wide variety of different aspects of the ESX 3/4 VMkernel, such as resources, networking, storage and global settings. Note that this page is written for ESX 4 and not all commands may work with ESX 3.

Options

Option

Alternative Option

Description

-g--getGet the value of a specified configuration item
-s--setSet the value of a specific configuration item. This may fail silently, if the value given is constrained by other options or VMkernel settings.
-d--defaultSet the value of a specified configuration item to the default value defined by the VMkernel.
-q--quietPerform any of the other options but don’t print the output to stdout
-k--set-kernelSet a VMkernel boot parameter
-j--get-kernel Get the value of a VMkernel boot parameter
-h--helpPrint a command usage message
-r --restoreRead the contents of the configuration file, and perform a set for each of the advanced options in the file
-c--get-config Get the value of a specific line in esx.conf
-m--set-message Set DCUI welcome message
-u--uuid Ensure the VMkernel system UUID is set and print it
-U--user-varThe name of the user variable to use for:
--get-user-var, --set-user-var, and --del-user-var
-G--get-user-var Get the value of a user specified generic value. Requires the --user-var option
-S--set-user-var Set the value of a user specified generic value. Requires the --user-var option
-D--del-user-var Delete the value of a user specified generic value. Requires the --user-var option
-A--add-option <name>This adds and advanced variable to /UserVars tree of the Advanced Options.
This is different to the --user-var options, which do not show in the VCUI and only contain simple user vars for use at boot time.
An advanced option requires the --add-type, --add-desc, --add-default, --add-name and --add-min, --add-max if type in int.
-T--add-typeThe type of user advanced option to add, must be either string or int
-E--add-desc The description of the user advanced option to add
-F--add-default The default value of the user advanced option to add
-N--add-min The min value of the user advanced option to add (int only)
-M--add-maxThe max value of the user advanced option to add (int only)
-H--add-hidden <value>The hidden value of the user advanced option to add. Must be either true or false. Default = false
-L--del-option <name>Delete a UserVars advanced option added with the -A command
-V--has-option <name>Return 0 from the command if the option exists return 1 otherwise


Examples:
Get the VMkernel System UUID:

esxcfg-advcfg -u

List the VMkernel NIC currently selected to use with VMotion:

esxcfg-advcfg -g /Migrate/vmknic

Set the VMkernel NIC to be used for VMotion to vmk0:

esxcfg-advcfg -s vmk0 /Migrate/vmknic

 

*To list all configured VMkernel NICs available for VMotion, use esxcfg-vmknic -l (Lowercase L)

< Prev   Next >
 
SocialTwist Tell-a-Friend

vmw-vcp_logo_260x40

vmw-vexpert_logo_223x40

 

View Rynardt Spies's profile on LinkedIn

 

Poll

ESX or ESXi in Production Environment?
 

What's the latest?

  • vSphere 4.1: VPXA Holds ESX Host at Ransom
  • Replacing vSphere SSL Certificates
  • The London UK VMware User Group Meeting on 15 July 2010
  • My thoughts on the VCDX Enterprise Admin Exam
  • New vSphere Patches Released on 10 June 2010

Popular

  • ESX 3i: Host in HA Cluster must have userworld swap enabled
  • ESX 3.5 on HP Proliant ML115 G5
  • VMware ESXi 3.5 on HP Proliant ML110 G5
  • Patching ESX 3.5 Using esxupdate
  • Cheap and quiet solution for a home-based ESX Server

Where Am I Today?

calendar_icon_s

Login to VirtualVCP

In order to leave comments, please log in.



  • Forgot your password?
  • Forgot your username?

Support VirtualVCP!

Information and Resources on this site are 100% free, however it costs money to run this site. Please help support this site by giving a donation.

Amount: 

RSS Feeds

VirtualVCP Virtualization Blog - ATOM Feed
VirtualVCP Virtualization Blog - RSS 0.91 Feed
VirtualVCP Virtualization Blog - RSS 2.0 Feed
VirtualVCP IT Virtualization, Powered by Joomla!; Joomla templates by SiteGround vBulletin hosting provider!

valid xhtml valid css