# MCovsagt.ctl:272: Collects Oracle Virtual Machine Server Agent Information # $Id: MCovsagt.ctl,v 1.3 2013/11/05 13:56:05 RDA Exp $ # ARCS: $Header: /home/cvs/cvs/RDA_8/src/scripting/lib/collect/EXPLORER/MCovsagt.ctl,v 1.3 2013/11/05 13:56:05 RDA Exp $ # # Change History # 20131105 MSC Improve code consistency. =head1 NAME EXPLORER:MCovsagt - Collects Oracle Virtual Machine Server Agent Information =head1 DESCRIPTION Collects information on Oracle Virtual Machine Server Agent for Logical Domains (SPARC Solaris 11 and later). =cut use Mrc # Initialization var $VALIDATE = true keep $VALIDATE section begin var $ERR = '---## Associated Errors' var $TOC = '%TOC%' var $TOP = '[[#Top][Back to top]]' run EXPLORER:XPLRlib('OVSagent') #------------------------------------------------------------------------------ # XPLR_ovsagt section #------------------------------------------------------------------------------ section XPLR_ovsagt # Validate the execution context if !${OS.solaris} return if !${B_GLOBAL:true} return if compare('ne',get_arc(),'sparc') return call log_run('Processing OVSAGT sections ...') if !is_ips_installed('ovm/ovs-agent') return log_info('Oracle VM Agent for LDoms not installed') pretoc '2:Oracle Virtual Machine Server Agent on Logical Domains' =head2 ovsagt_cmd - Commands Gathers the Oracle Virtual Machine Server Agent for Logical Domains information using the following commands: =over 2 =item o C =item o C =item o C =item o C =item o C =item o C =item o C =back =cut debug ' Inside OVSAGT collection, gathering command outputs' report ovsagt_cmd title '---+!! Oracle Virtual Machine Server Agent Commands' title $TOC call do_exec(\ ['ovsagt/ovs-agent-db_dump_db_aproc',\ '/usr/sbin/ovs-agent-db','dump_db aproc',\ '---+ Asynchronous Processes Information'],\ ['ovsagt/ls-1R_OVS',\ '/usr/bin/ls','-1R /OVS',\ '---+ Contents of /OVS Directory'],\ ['ovsagt/ls-1R_nfsmnt',\ '/usr/bin/ls','-1R /nfsmnt',\ '---+ Contents of /nfsmnt Directory'],\ ['ovsagt/ls-1R_poolfsmnt',\ '/usr/bin/ls','-1R /poolfsmnt',\ '---+ Contents of /poolfsmnt Directory'],\ ['ovsagt/ovs-agent-db_dump_db_exports',\ '/usr/sbin/ovs-agent-db','dump_db exports',\ '---+ Exports Information'],\ ['ovsagt/ovs-agent-db_dump_db_repository',\ '/usr/sbin/ovs-agent-db','dump_db repository',\ '---+ Repository Information'],\ ['ovsagt/ovs-agent-db_dump_db_server',\ '/usr/sbin/ovs-agent-db','dump_db server',\ '---+ Server Information']) if isCreated(true) toc '3:[[',getFile(),'][rda_report][Commands]]' =head2 ovsagt_fil - Files Gathers the following Oracle Virtual Machine Server Agent for Logical Domains files: =over 2 =item o F (recursive) =item o F =back =cut debug ' Inside OVSAGT collection, collecting files' report ovsagt_fil title '---+!! Oracle Virtual Machine Server Agent Files' prefix {write ' * Links point to files that have been collected in their original \ format. Opening them directly in your browser can present \ risks. To prevent them, access the file outside the browser or \ use the link to save them and use an adequate viewer.' write '|*File Path*| *Size*|*Last Modified Date*|' } call do_collect_dir('ovsagt/etc/ovs-agent/network','/etc/ovs-agent/network',\ true) call do_collect_fil(['ovsagt/var/svc/log/ovm-ovs-agent:default.log',\ '/var/svc/log/ovm-ovs-agent:default.log']) if isCreated(true) {write $TOP toc '3:[[',getFile(),'][rda_report][Files]]' } # Adjust the table of content unpretoc =head1 SEE ALSO L, L =head1 COPYRIGHT NOTICE Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved. =head1 TRADEMARK NOTICE Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners. =cut