SHIFT

--- Sjoerd Hooft's InFormation Technology ---

User Tools

Site Tools


Sidebar

Sponsor:

Would you like to sponsor this site?
Or buy me a beer?:


Recently Changed Pages:

View All Pages
View All Q Pages


View All Tags


Sign up for Q to post comments.





WIKI Disclaimer: As with most other things on the Internet, the content on this wiki is not supported. It was contributed by me and is published “as is”. It has worked for me, and might work for you.
Also note that any view or statement expressed anywhere on this site are strictly mine and not the opinions or views of my employer.


Terms And Conditions for Q users


Pages with comments

PageDateDiscussionTags
2018/11/10 11:24 2 Comments
2017/04/20 16:35 1 Comment
2017/04/20 15:28 1 Comment
2017/04/20 15:23 1 Comment
2017/04/19 14:59 1 Comment
2017/04/19 14:45 3 Comments
2017/04/19 14:44 1 Comment
2017/04/17 20:10 1 Comment
2017/04/17 20:07 1 Comment
2017/04/17 19:58 1 Comment
2017/04/17 19:52 1 Comment

View All Comments

vmwarevmxfile

Script: ESX: Grep Info From All VMX Files

I used this small command/script to grep all nic devices from all the virtual devices that are registered on the host:

for vm in `vmware-cmd -l`; do grep -i displayname "$vm"; grep -i 'ethernet..virtualdev' "$vm" ; done

This could also be implemented in a script to make it more readable:

for vm in `vmware-cmd -l`; 
   do grep -i displayname "$vm"; 
   grep -i 'ethernet..virtualdev' "$vm" ; 
done

This will give you an output like this:

displayName = "SLES11-PROXY"
ethernet0.virtualDev = "vmxnet3"
ethernet1.virtualDev = "vmxnet3"
ethernet2.virtualDev = "vmxnet3"
displayName = "W2K8-Template"
ethernet0.virtualDev = "vmxnet3"
displayName = "W2K3-REPORTS"
ethernet0.virtualDev = "e1000"
displayName = "WINXP-RDP-SJOERD"
displayName = "SLES11-REVPROXY"
ethernet0.virtualDev = "vmxnet3"
ethernet1.virtualDev = "vmxnet3"
ethernet2.virtualDev = "vmxnet3"
Note: The Windows XP box listed does have a network card, being the “flexible” adapter. This card however is not listed in the VMX file.
You could leave a comment if you were logged in.
vmwarevmxfile.txt · Last modified: 2013/04/20 13:30 by sjoerd