# DCrperf.ctl:E801:Samples Performance Information (root privileges required) # $Id: DCrperf.ctl,v 1.3 2015/01/19 15:29:08 RDA Exp $ # ARCS: $Header: /home/cvs/cvs/RDA_8/src/scripting/lib/collect/SAMPLE/DCrperf.ctl,v 1.3 2015/01/19 15:29:08 RDA Exp $ # # Change History # 20150119 MSC Change the factor setting. =head1 NAME SAMPLE.RPERF - Samples Performance Data (root privileges required) =head1 DESCRIPTION This module performs the operating system performance data sampling for the RDA process. Root privileges are required to use this module. =cut # Only execute the module in sampling mode as root if !match(id(),'^uid=0\(') return if !${RUN.SAMPLE.N_CURRENT} return # Initialization var $FACTOR = ${R_FACTOR:1} var $TOC = '%TOC%' var $TOP = '[[#Top][Back to top]]' =head2 System Performance Gets a performance overview (platform-specific code). =cut run &{check(getOsName(),\ 'aix', 'SAMPLE:BCaix',\ 'darwin', 'SAMPLE:BCdarwin',\ 'dec_osf', 'SAMPLE:BCosf',\ 'dynixptx', 'SAMPLE:BCptx',\ 'hpux', 'SAMPLE:BChpux',\ 'linux', 'SAMPLE:BClinux',\ 'solaris', 'SAMPLE:BCsunos',\ cond(isCygwin(), 'SAMPLE:BCunix',\ isUnix(), 'SAMPLE:BCunix',\ isWindows(), 'SAMPLE:BCwin32'))}('RPRF',$FACTOR) =head1 SEE ALSO L, L, L, L, L, L, L, L, L, L =begin credits =over 10 =item RDA 4.1: John Peeken. =back =end credits =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