# BCsunos.ctl: Solaris Specific Code for Background Collection (Sampling) # $Id: BCsunos.ctl,v 1.3 2015/05/28 16:56:14 RDA Exp $ # ARCS: $Header: /home/cvs/cvs/RDA_8/src/scripting/lib/collect/SAMPLE/BCsunos.ctl,v 1.3 2015/05/28 16:56:14 RDA Exp $ # # Change History # 20150527 KRA Improve the documentation. =head1 NAME SAMPLE:BCsunos - Submodule for Solaris-Specific Background Collections =head1 DESCRIPTION This module contains the operating system-specific code for the sampling modules. =cut # Make the module persistent keep $KEEP_BLOCK # Get the calling module var ($MODULE,$FACTOR) = @arg import $TOC,$TOP #------------------------------------------------------------------------------ =head1 CONTRIBUTION TO THE NPRF MODULE Collected information: =over 4 =item o C =item o C =item o C =item o C =item o C =item o C =item o C =item o C =item o The last F raw data file if C setting value is true =back =cut if compare('eq',$MODULE,'NPRF') {# Collect the performance information thread {import $FACTOR report iostat call writeCommand('iostat -n 1 1',true,$FACTOR) } thread {import $FACTOR report lsof call writeCommand('lsof -S 2',true,$FACTOR) } thread {import $FACTOR report mpstat call writeCommand('mpstat -P ALL',true,$FACTOR) } thread {import $FACTOR report netstat call writeCommand('netstat -s',true,$FACTOR) } thread {import $FACTOR report ps call writeCommand('ps -elf',true,$FACTOR) } thread {import $FACTOR report top call writeCommand('top -d1',true,$FACTOR) } thread {import $FACTOR report uptime call writeCommand('uptime',true,$FACTOR) } thread {import $FACTOR report vmstat call writeCommand('vmstat 1 1',true,$FACTOR) } # Get the last sar raw data file if and(${B_SAR_DATA},not(isFiltered())) {var ($fil) = grepDir('/var/adm/sa','^sa\d+$','pt') if $fil {data basename($fil) call writeData($fil) } } # Specify the trace route command var \$CMD = $arg[2] var $CMD = 'traceroute -r -F %s 2>&1' } #------------------------------------------------------------------------------ =head1 CONTRIBUTION TO THE RPRF MODULE Not available =cut elsif compare('eq',$MODULE,'RPRF') { } #------------------------------------------------------------------------------ =begin credits =over 14 =item OSwatcher: Carl Davis. =item shtriage: Greg Marsden. =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