Home | Troubleshooting |  Quick Setup  |  Cisco How to  |  Wireless  |  Forums   | Site Map | Services  | About Us | Chicagotech MVP  | Search  | Contact Us  |              

 

 

Useful VMware command lines

 

Use |more option to display command result in ESX

To add a IP address

To delete host IP address

To list your vswifs

To restart the network

To update the default gateway
To check storage

To check log

 

 

To add a IP address, for example: "esxcfg-vswif -a vswif0 -p Service\ Console -i 192.168.10.7 -n 255.255.255.0 -b 192.168.10.255". Note: -i is the new IP adresse; -n is your new subnet;
-b is your broadcast

 

To delete host IP address: "esxcfg-vswif -d vswif0". Note: 1. vswif0 is default interface. 2. You may receive nothing to flush. That is OK.

 

To list your vswifs: #esxcfg-vswif -l

 

To restart the network: service network start

To update the default gateway: “nano /etc/sysconfig/network file”

To check storage

[BLIN@ESX4TEST ~]$ cd /vmfs/volumes

[BLIN@ESX4TEST volumes]$ ls

4b5f301d-0847aa30-c06c-00101835904f Storage1

[BLIN@ESX4TEST volumes]$ cd Storage1

[BLIN@ESX4TEST Storage1]$ ls

esxconsole-4b5ed16a-3c61-9640-d388-00101835904f Win7-VM xp

[BLIN@ESX4TEST Storage1]$ cd xp

[BLIN@ESX4TEST xp]$ ls -l

total 20984384

-rw-r--r-- 1 root root 45990 Feb 7 22:08 vmware-2.log

-rw-r--r-- 1 root root 82577 Feb 8 11:57 vmware-3.log

-rw-r--r-- 1 root root 46920 Feb 8 20:01 vmware-4.log

-rw-r--r-- 1 root root 47966 Feb 8 21:40 vmware-5.log

-rw-r--r-- 1 root root 46990 Feb 8 21:42 vmware-6.log

-rw-r--r-- 1 root root 82540 Feb 9 10:07 vmware-7.log

-rw-r--r-- 1 root root 58909 Feb 9 10:13 vmware.log

-rw------- 1 root root 21484431360 Feb 6 21:32 xp-flat.vmdk

-rw------- 1 root root 8684 Feb 9 10:13 xp.nvram

-rw------- 1 root root 436 Feb 6 21:30 xp.vmdk

-rw------- 1 root root 0 Feb 6 14:54 xp.vmsd

-rwxr-xr-x 1 root root 3554 Feb 9 10:13 xp.vmx

-rw------- 1 root root 257 Feb 9 10:09 xp.vmxf

To check log,

[BLIN@ESX4TEST xp]$ tail -f vmware.log

Feb 09 10:13:26.901: vmx| Vix: [104391 mainDispatch.c:3254]: VMAutomation: Ignoring ReportPowerOpFinished because the VMX is shutting down.

Feb 09 10:13:26.901: vmx| Transitioned vmx/execState/val to poweredOff

Feb 09 10:13:26.941: vmx| VMX idle exit

Feb 09 10:13:26.947: vmx| Vix: [104391 mainDispatch.c:599]: VMAutomation_LateShutdown()

Feb 09 10:13:26.948: vmx| Vix: [104391 mainDispatch.c:549]: VMAutomationCloseListenerSocket. Closing listener socket.

Feb 09 10:13:26.952: vmx| Flushing VMX VMDB connections

Feb 09 10:13:26.956: vmx| IPC_exit: disconnecting all threads

Feb 09 10:13:26.956: vmx| VMX exit (0).

Feb 09 10:13:26.956: vmx| AIOMGR-S : stat o=3 r=7 w=0 i=2 br=100352 bw=0

Feb 09 10:13:26.956: vmx| VMX has left the building: 0.

 

 

 

 

Post your questions, comments, feedbacks and suggestions

Contact a consultant

Related Topics


 

 


 

 

Hit Counter   This web is provided "AS IS" with no warranties.
Copyright © 2002-2017 ChicagoTech.net, All rights reserved. Unauthorized reproduction forbidden.