- show mac-address-table
- show interface status
Script along with shell wrappers are available on GITHUB here https://github.com/davidpasek/vdscli
and output of the command
vdscli.pl --server=vc01.home.uw.cz --username readonly --password readonly --cmd show-mac-address-table
So now we have Perl scripts to get information from VMware Distributed Virtual Switch which is nice, however, we would like to have Interactive CLI to have the same user experience as we have on physical switches CLI, right? For Interactive CLI I have decided to use Python ishell (https://github.com/italorossi/ishell) to emulate Cisco like CLI. To start interactive VDSCLI shell you must have Python with iShell installed and then you can simply run script
which is just a wrapper around vdscli.pl The screenshot of VDSCLI shell is in the figure below
|VDSCLI Interactive Shell|
|VDSCLI Interactive Shell over SSH|
"CLI for VMware Virtual Distributed Switch - implementation procedure".
Hope somebody else in VMware community will find it useful.