CLI – Some commands line to manage your ESXi

1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 5.00 out of 5)
Loading...

By | 16 June 2017

This article is just a memo of some commands line that i use everyday to manage my virtuals environments. I hope will help you !

I will try to group the different commands lines by categories. These commands can be either PowerCLI or CLI.

STORAGE :

Set RDM LUNs to Perennially Reserved – Fixes slow boot of ESXi :

Via SSH

More information – KB

Via PowerCLI

Script on definit.co.uk

 

Enable Round Robin path policy on all LUN :

CHECK NO RR : This command line check LUN’s are not configure with RR

SETUP RR : Enable RR on all hosts

SETUP RR : Enable RR on all hosts in a specific cluster

 

List all parameters of a LUN :

Adding an NFS share to multiple hosts :

 

Convert a disk to eagerzeroedthick while keeping the data :

More information – KB

Add dynamic discovery iSCSI Target :

 

Rescan all HBA :


NETWORK :

Add a VLAN to all nodes in a cluster :

Delete a VLAN on all nodes in a cluster :


OTHERS :

List all PoweredOff VM with disk space and export to CSV :

 Check Logs live ESX

If you have any questions don’t hesitate to post a comment, or to contact me

If you like this post, don't hesitate to share it !

Hi ! I’m Maxime. Founder and independant author of vDays.net. I have worked in service IT since 3 years ago, after a 5 years’ internship. Via this blog, I would like share and discuss with you on new technologies, especially on virtualization and VMware.

Leave a Reply

Your email address will not be published. Required fields are marked *