Enable cdp on all vswitchs

ESXi Hypervisor
Post Reply
thockman
Site Admin
Posts: 104
Joined: Thu Dec 15, 2005 5:51 pm
Location: Kansas City
Contact:

Enable cdp on all vswitchs

Post by thockman » Wed Feb 22, 2012 1:44 pm

This for loop will enable cdp on all vswitchs on ESXi servers.

Code: Select all

for i in $(esxcfg-vswitch -l | grep vSw | awk '{print $1}'); do esxcfg-vswitch -B both $i; done

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest