# S140OVMS.def: Collects Oracle VM Server Information # $Id: S140OVMS.def,v 1.3 2008/02/22 17:08:19 mschenke Exp $ # ARCS: $Header: /home/cvs/repository/RDA_4/src/scripting/lib/modules/S140OVMS.def,v 1.3 2008/02/22 17:08:19 mschenke Exp $ # # Change History # 20080222 MSC Fix the description. =head1 NAME S140OVM - Collects Oracle VM Server Information =head1 DESCRIPTION This module collects information about Oracle VM Server. The following reports can be generated and are regrouped in C: =cut echo tput('bold'),'Processing Oracle VM Server module ...',tput('off') # Initialization var $TAIL = getSetting('RDA_TAIL',1000) var $TOC = '%TOC%' var $TOP = '[[#Top][Back to top]]' pretoc '1:Oracle VM Server' # Load common macros run library() =head2 xm_list - C Gathers C output. =cut if findCommand('xm') {var $cmd = concat(last,' list -l') debug ' Inside OVM module, getting xm list information' report xm_list prefix {write '---+ xm list' write '---## Using: ',$cmd } call writeCommand($cmd) if hasOutput(true) {write $TOP toc '2:[[',getFile(),'][rda_report][xm list]]' } } =head2 xenstore - Xenstore Information Xenstore is an information storage space (centralised configuration database) that is shared between Oracle VM domains. RDA collects this information using the C and C commands. =cut debug ' Inside OVM module, getting xenstore information' macro get_data {var ($x_l,$x_r,$itm,$sep) = @arg loop $sub (command(concat($x_l,' ',$itm))) call get_data($x_l,$x_r,join($sep,$itm,$sub),'/') if $sep {var ($val) = command(concat($x_r," ",$itm)) if !match($val,'^\(') write '|',$itm,' |',$val,' |' } } report xenstore prefix {write '---+ Xenstore Information' write '---## Using: xenstore-list and xenstore-read' write '|*Key*|*Value*|' } if findCommand('xenstore-list') call get_data(last,findCommand('xenstore-read'),'/','') if hasOutput(true) {write $TOP toc '2:[[',getFile(),'][rda_report][Xenstore Information]]' } =head2 Configuration Files Gathers configuration files in the following directory structure: =over 4 =item o F =back =cut debug ' Inside OVM module, collecting the configuration files' pretoc '2:Configuration Files' call sort_files(3,$TAIL,grepDir('/etc/xen','^\.+$','vp')) unpretoc =head2 Log Files Gathers log files in the following directory structure: =over 4 =item o F =back =cut debug ' Inside OVM module, collecting the log files' pretoc '2:Log Files' call sort_files(3,$TAIL,grepDir('/var/log/xen','^\.+$','vr')) unpretoc 2 =head1 SEE ALSO See also L. =begin credits =over 10 =item RDA 4.11: Guido Tijskens. =back =end credits =head1 COPYRIGHT NOTICE Copyright (c) 2002-2008, Oracle. All rights reserved. =head1 TRADEMARK NOTICE Oracle, JD Edwards, PeopleSoft, and Siebel are registered trademarks of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. =cut