cat: Example of finding DHCP IP address of a VM.
authorRichard Jones <rjones@trick.home.annexia.org>
Fri, 17 Jul 2009 08:37:37 +0000 (09:37 +0100)
committerRichard Jones <rjones@trick.home.annexia.org>
Fri, 17 Jul 2009 08:37:37 +0000 (09:37 +0100)
cat/virt-cat.pl

index 6a50280..1ac720c 100755 (executable)
@@ -61,6 +61,10 @@ List syslog messages from a VM:
 
  virt-cat mydomain /var/log/messages | tail
 
+Find out what DHCP IP address a VM acquired:
+
+ virt-cat mydomain /var/log/messages | grep 'dhclient: bound to' | tail
+
 Find out what packages were recently installed:
 
  virt-cat mydomain /var/log/yum.log | tail