Mostly used Networking and Storage related VMware shell commands

Networking related shell commands

esxcli network nic list–List VMNIC’s

esxcli network vswitch standard list–List vSwitches

esxcli network vswitch dvs vmware list–List vDistributed Switches

esxcli network vswitch standard portgroup list–List vSwitch port groups

esxcli network ip interface list–List vm kernel ports

esxcli network ip interface ipv4 get–List vm kernel interfaces

esxcfg-route–List vm kernel default gateway

esxcli system hostname get–List hostname

esxcli network ip dns server list–List DNS servers

esxcli network ip dns search list–List DNS search domain

Storage related shell commands

esxcli storage core adapter rescan–Rescan SCSI HBA’s

esxcli storage core path list–List all SCSI paths

esxcli storage filesystem list–Map VMFS volumes to devices/partitions

esxcli storage vmfs snapshot list–List unresolved snapshots or replicas of volumes

esxcli storage core claimrule list–List all claim rules

esxcli storage core device list–List storage devices with properties/filters

esxcli storage core adapter list–List HBA drivers and information

esxcli iscsi adapter list–List iSCSI adapters

esxcli iscsi session list–Show current iSCSI session

esxcli iscsi adapter discovery rediscover–Discover iSCSI devices

esxcli iscsi software get–Check if software iSCSI is enabled

esxcli storage nfs list–List the NFS filesystems & mounts

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s