X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=inspector%2Fvirt-inspector.pod;h=df9dfdad0ed1815f1518c12389ecb78047fde648;hb=663b99950daeaa2b023520aae756a3a28969c493;hp=4d916a1b43a7b0f80ab0a65b79639f8b17200460;hpb=76bd81820f50a390b7e853d65f41b29a37e63f43;p=libguestfs.git diff --git a/inspector/virt-inspector.pod b/inspector/virt-inspector.pod index 4d916a1..df9dfda 100755 --- a/inspector/virt-inspector.pod +++ b/inspector/virt-inspector.pod @@ -329,22 +329,25 @@ installer, or one part of a multipart CD. For example: =head1 USING XPATH -You can use the XPath query language, and/or the xpath tool, in order -to select parts of the XML. +You can use the XPath query language to select parts of the XML. We +recommend using C to perform XPath queries from the +command line. For example: - $ virt-inspector -d Guest | xpath //filesystems - Found 1 nodes: - -- NODE -- + $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems' ext4 - [etc] + [...] $ virt-inspector -d Guest | \ - xpath "string(//filesystem[@dev='/dev/sda1']/type)" - Query didn't return a nodeset. Value: ext4 + xmlstarlet sel -t -c "string(//filesystem[@dev='/dev/sda1']/type)" + ext4 + + $ virt-inspector -d Guest | \ + xmlstarlet sel -t -v '//icon' | base64 -i -d | display - + [displays the guest icon, if there is one] =head1 SHELL QUOTING @@ -369,12 +372,18 @@ versions of virt-inspector with different names: virt-inspector Old Perl version. virt-inspector2 New C version. +=head1 EXIT STATUS + +This program returns 0 if successful, or non-zero if there was an +error. + =head1 SEE ALSO L, L, L, L, +L, L. =head1 AUTHORS