# S800NPRF.def: Samples Performance Data (root not required) # $Id: S800NPRF.def,v 1.16 2008/02/25 17:32:56 mschenke Exp $ # ARCS: $Header: /home/cvs/repository/RDA_4/src/scripting/lib/modules/S800NPRF.def,v 1.16 2008/02/25 17:32:56 mschenke Exp $ # # Change History # 20080225 MSC Change the copyright notice. =head1 NAME S800NPRF - Samples Performance Data (root not required) =head1 DESCRIPTION This module performs the operating system performance data sampling for the RDA process. In most platforms, you can run this module without root privileges. =cut # Only execute the module in sampling mode if !getSetting('SMPL_CURRENT') return # Initialization var $NPRF_NET_FACTOR = getSetting('NPRF_NET_FACTOR',1) var $NPRF_OS_FACTOR = getSetting('NPRF_OS_FACTOR',1) var $TRACEROUTE var $TOC = '%TOC%' var $TOP = '[[#Top][Back to top]]' =head2 System Performance Gets a performance overview (platform-specific code). =cut run &{check(getOsName(),\ 'aix', 'BCaix',\ 'darwin', 'BCdarwin',\ 'dec_osf', 'BCosf',\ 'dynixptx', 'BCptx',\ 'hpux', 'BChpux',\ 'linux', 'BClinux',\ 'solaris', 'BCsunos',\ cond(isUnix(), 'BCunix',\ isWindows(), 'BCwin32'))}('NPRF',$NPRF_OS_FACTOR,\$TRACEROUTE) =head2 Trace Route Information Optionally, you can collect trace route information to specified hosts. Those tests are not necessarily executed for each sample. =cut if getSetting('NPRF_TRACEROUTE',0) {if !expr('%',getSetting('SMPL_COUNT',0),getSetting('NPRF_RATE',5)) {job {if lock('trc',true) {output SF,trace write '---+ ', getSetting('SMPL_CURRENT') loop $val (split('\|',getSetting('NPRF_HOSTS'))) call writeCommand(sprintf($TRACEROUTE,$val),true,$NPRF_NET_FACTOR) call unlock('trc') } } } } =head1 SEE ALSO See also L, L, L, L, L, L, L, L, L. =begin credits =over 14 =item OSwatcher: Carl Davis. =item shtriage: Greg Marsden. =item sys_watcher: John Sobecki. =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