So, BASH, ESXi, and NSX Walk Into a Bar.....
I recently took some time off and wanted to learn a bit about how I might automate my job duties. One thing that I find myself doing every day is packet capturing network traffic for VMware virtual machines. I do it so often, I have the packet capture command structure memorized despite the fact its around 80 characters long. Even so, why not automate it? For those who want to go strait to the automation, check out my Githup pages : Packet capture script template: https://github.com/allend2092/BASH_SCRIPTS_VMWARE/blob/0acd67f24df3d398b34c7973ba8b5bc5a9c176e5/simultaneous_pcap_files Generate packet capture commands: https://github.com/allend2092/BASH_SCRIPTS_VMWARE/blob/0acd67f24df3d398b34c7973ba8b5bc5a9c176e5/make_pkt_cpt_commands.sh For a little more explanation, here are the resources a person can use to understand the packet capture commands for an ESXi hypervisor: https://docs.vmware.com/en/VMware-vSphere/7.0/vsphere-esxi-vcenter-server-703-networking-guide.pdf Page 224 has a headi...