git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
963576e
)
cat: Example of finding DHCP IP address of a VM.
author
Richard Jones
<rjones@trick.home.annexia.org>
Fri, 17 Jul 2009 08:37:37 +0000
(09:37 +0100)
committer
Richard Jones
<rjones@trick.home.annexia.org>
Fri, 17 Jul 2009 08:37:37 +0000
(09:37 +0100)
cat/virt-cat.pl
patch
|
blob
|
history
diff --git
a/cat/virt-cat.pl
b/cat/virt-cat.pl
index
6a50280
..
1ac720c
100755
(executable)
--- a/
cat/virt-cat.pl
+++ b/
cat/virt-cat.pl
@@
-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