VMware VS4-STD-C Evaluator Guide - Page 47

The New esxcli Command, esxcli Command-Line Syntax - versions

Page 47 highlights

VMware vSphere 5.0 Evaluation Guide - Volume One The New esxcli Command For the first time, the new esxcli command is unified for both local and remote command-line administration. In addition, the esxcli command has been enhanced to perform many tasks previously only performed with the vicfg- commands. However, it does not yet perform all the tasks. When performing configuration tasks from the command line, the esxcli command is the preferred command. Only fall back to the vicfg- and other vCLI commands when there is no esxcli command available. Moving forward, all the vCLI commands are scheduled to be replaced by esxcli commands. NOTE: In vSphere 5.0, the esxcli command does not yet provide a full set of command capabilities. Continue to use the esxcli command in conjunction with the vicfg- and other vCLI commands (that is, vmware-cmd, vmkfstools, and vifs). The esxcli command in vSphere 5.0 is not backward compatible with earlier versions of the command, because it introduces a new syntax that is different from earlier vSphere releases. esxcli Command-Line Syntax The esxcli command is made up of a hierarchy of namespaces. At each level of the hierarchy there are additional namespaces and commands. This provides for a user-friendly CLI interface that allows for the easy discovery of the command syntax. Figure 49. esxcli Namespace Hierarchy The preceding figure provides a graphic illustration of the command to query the ESXi firewall. The user invokes the esxcli command with the network namespace, the firewall sub-namespace, and the get command. The following is an example of this command: Figure 50. esxcli network firewall get Command TECHNICAL WHITE PAPER / 47

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106

TECHNICAL WHITE PAPER / 47
VMware vSphere 5.0 Evaluation Guide –
Volume One
The New esxcli Command
For the first time, the new esxcli command is unified for both local and remote command-line administration. In
addition, the esxcli command has been enhanced to perform many tasks previously only performed with the
vicfg-
commands. However, it does not yet perform all the tasks. When performing configuration tasks from
the command line, the esxcli command is the preferred command. Only fall back to the
vicfg-
and other vCLI
commands when there is no esxcli command available. Moving forward, all the vCLI commands are scheduled to
be replaced by esxcli commands.
NOTE:±In±vSphere±³²´,±the±esxcli±command±does±not±yet±provide±a±full±set±of±command±capabilities²±Continue±to±
use±the±esxcli±command±in±conjunction±with±the±vicfg-±and±other±vCLI±commands±(that±is,±vmware-cmd,±
vmkfstools,±and±vifs)²±The±esxcli±command±in±vSphere±³²´±is±not±backward±compatible±with±earlier±versions±of±
the±command,±because±it±introduces±a±new±syntax±that±is±different±from±earlier±vSphere±releases²
esxcli Command-Line Syntax
The esxcli command is made up of a hierarchy of namespaces. At each level of the hierarchy there are additional
namespaces and commands. This provides for a user-friendly CLI interface that allows for the easy discovery of
the command syntax.
Figure 49.
esxcli Namespace Hierarchy
The preceding figure provides a graphic illustration of the command to query the ESXi firewall. The user invokes
the
esxcli
command with the
network
namespace, the
firewall
sub-namespace, and the get command.
The following is an example of this command:
Figure 50.
esxcli network firewall get Command