git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove guestfs_wait_ready (turn it into a no-op).
[libguestfs.git]
/
cat
/
virt-cat.pl
diff --git
a/cat/virt-cat.pl
b/cat/virt-cat.pl
index
6a50280
..
8db5348
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
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
Find out what packages were recently installed:
virt-cat mydomain /var/log/yum.log | tail
@@
-112,8
+116,8
@@
at all.
=cut
GetOptions ("help|?" => \$help,
=cut
GetOptions ("help|?" => \$help,
- "version" => \$version,
- "connect|c=s" => \$uri,
+
"version" => \$version,
+
"connect|c=s" => \$uri,
) or pod2usage (2);
pod2usage (1) if $help;
if ($version) {
) or pod2usage (2);
pod2usage (1) if $help;
if ($version) {
@@
-136,7
+140,6
@@
if ($uri) {
}
$g->launch ();
}
$g->launch ();
-$g->wait_ready ();
# List of possible filesystems.
my @partitions = get_partitions ($g);
# List of possible filesystems.
my @partitions = get_partitions ($g);