Category Archives: VMware

VMware ESXi – Get VM’s by VLAN ID with PowerCLI

Often when when working in large environments you’ll get interesting requests. These may be to assist in troubleshooting, auditing, reporting or any other reason. I was recently requested to provide a list of mac addresses for every VM with a vNIC in a specific vlan. I had a feeling this was going to be a repeated request… Read More »

EMC VNX – Self Help using “MyDocs”

I’m a big believer in “helping yourself”. By researching and actually doing things, we learn, grow and become more self-sufficient. I’ve blogged before about what I sometimes refer to as hidden gems, in particular MiTrend. There are other tools from EMC that are very useful. The first is My Documents (MyDocs), which is targeted at… Read More »

VMware ESXi,Nexus 1000v: Add New vDS Port-Group + error “spec.numPorts exceeds the limit..”

If you’re familiar with Cisco IOS and networking in general, creating a new PortGroup on a Nexus1000v is pretty straightforward. Here I’m going to add a new Port-Profile, of type ‘vmware port-group‘ called “VM_Prod_29” with VLAN ID “29 “. Login to the active VSM and first create the VLAN;

Then create the Access PortGroup and… Read More »

VMware PowerCLI – What are you waiting for ?

I still talk to people who are reluctant to jump in and learn some basic scripting techniques. Usually their response is that it’s easy in the gui or “scripting is hard” or the “I’m not a developer so why bother ?”. Meh, make it happen. The facts is, learning some basic scripting techniques will save you… Read More »

ESXi – An oldie but a goodie – CDP info via PowerCLI and Host CLI

When you don’t use something for a while, you tend to forget how valuable it can be. Even from its very early iterations, ESXi has been able to display CDP information so you can quickly establish “what’s patched where “.  Easy to get from the gui, but far more useful from the shell or cli.… Read More »

EMC VPLEX Metro: Cluster Witness Server Maintenance

Although it’s not mandatory, the Cluster Witness Server (CWS) in a  VPLEX Metro Cluster serves a very important purpose as the arbitrator between inter-cluster network partition failures and actual cluster/site failures. It’s a lightweight (<3GB) VMware vm deployed from an OVA that establishes itself in a 3 way VPN between both VPLEX clusters and monitors heartbeats… Read More »

EMC RecoverPoint- Standalone VM Recovery

RecoverPoint is one of my favourite products. It’s unique, reliable and has helped me out of trouble on more than one occasion. Whilst most VM admins associate it with SRM and thus Site/LUN/Datastore recovery, it can also fill in an often overlooked gap in data protection. Pre and Post backup coverage. The ability to recover… Read More »

vSphere/ESXi: When good tasks go bad – Fix with ESXCLI via PowerCLI

Most of the time, tasks we start in vSphere just work. That’s why we love it. Queue ’em up, and move onto something else. Sometimes though, they go bad. They freeze, stick, die or just plain error out. This happened to me last week. After changing the scratch location for hosts in a dev cluster,… Read More »