This is the second installment of the list of CLI commands that you need to know for the VCAP-DCA5 test.
Again this is not meant to explain the concepts behind the commands, for that read Jason Langer and Josh Coen’s Unoffical VCAP-DCA5 Study Guide or check out Chris Wahl’s #vbrownbag on Section 2. The purpose of this list is to be a quick reference when studying in your lab.
One note about networking with the CLI and the test: Pretty much the only thing you need are the commands for SNMP. However If you are super fast at the CLI and don’t want to use the C# Client the other commands have been listed for reference.
Listed below are the commands you should be familiar with the pertain to Section 2: of the VCAP-DCA Blueprint: “Implement and Manage Networking”.
Specify the communities and trap targets for SNMP
# vicfg-snmp –t <target hostname>@<port>/<community>
Enable the SNMP service
# vicfg-snmp –E
Send a test trap to verify that the agent is configure correctly
# vicfg-snmp –T
Commands to configure a vSwitch
esxcfg-vswitch – Examine and configure virtual switches
esxcfg-vswif – Examine and configure service console ports
esxcfg-vmknic – Examine and configure VMkernel ports
esxcfg-route – Examine and configure routing
esxcli Network Namespace
ip namespace – Commands to create/configure vmk nics
vswitch namespace – Command to manipulate virtual switches
nic namespace – Configuration of physical interfaces
To list and view all switches (vSS and vDS) on a host
# esxcfg-vswitch –l
Add an uplink to a DVPort on a DVSwitch
# esxcfg-vswitch –add-dvp-uplink=<vmnic> (or –P)
Delete an uplink from a DVPort on a DVSwitch (Must specify DVPort ID)
#esxcfg-vswitch –del-dvp-uplink=<vmnic> (or –Q)
#esxcfg-vswitch –dvp=<dvport> (or –V)