# OSsunos.def: Solaris Specific Code # $Id: OSsunos.def,v 1.45 2008/02/25 17:32:55 mschenke Exp $ # ARCS: $Header: /home/cvs/repository/RDA_4/src/scripting/lib/modules/OSsunos.def,v 1.45 2008/02/25 17:32:55 mschenke Exp $ # # Change History # 20080225 MSC Change the copyright notice. =head1 NAME OSsunos - Sub Module Specific to the Solaris Operating System =cut # Make the module persistent keep $KEEP_BLOCK,@SHARE_MACROS var @SHARE_MACROS = ('ping_command') # Get the calling module var $MODULE = $arg[0] import $TOC,$TOP =head1 DESCRIPTION This module determines the Solaris version and the F command format. =cut if !$OS {keep $OS,$OSA,$OSM,$OSN,$OSP,$OSV var $OS = true # Determine the ps command format var $OSP = testCommand('ps -ef','/bin/ps -ef','/usr/bin/ps -ef') var $OSA = concat($OSP,' -o comm,args') # Determine the solaris version var $OSN = uname('s') var $OSV = replace(uname('r'),'^5','2') var $OSM = field('\.',1,$OSV) } #------------------------------------------------------------------------------ =head1 CONTRIBUTION TO THE INI MODULE Nothing required yet. =cut if compare('eq',$MODULE,'INI') {# Nothing required yet } #------------------------------------------------------------------------------ =head1 CONTRIBUTION TO THE END MODULE =head2 report - Report Settings Determines the operating system version and its bit size. =cut elsif compare('eq',$MODULE,'END_report') {#Determine for the end report the operating system version and its bit size. debug ' Inside END module, determining OS characteristics' var $bit = 32 if expr('>=',$OSM,7) {var ($str) = command('isainfo -v') if match($str,'^64-bit') var $bit = 64 } # Load the system settings write '|Platform|',$bit,'-bit Sun|' write '|O/S Version|',$OSV,'|' } =head2 system - System information Extracts the system information such as CPU, memory, and swap information. =cut elsif compare('eq',$MODULE,'END_system') {prefix write '|*Item*|*Value*|' debug ' Inside END module, getting CPU information (sunos)' var $cnt = 0 loop $lin (grepCommand('psrinfo -v','processor operates at')) {incr $cnt var ($cpu[$cnt],$mhz[$cnt]) = \ match($lin,'The (.*) processor operates at (.*) MHz') } if $cnt {var ($off,$str) = (0,concat($cnt,' Processor(s) Installed')) while expr('<',$off,$cnt) {incr $off var $str = sprintf('%s%%BR%%[%02d]: %s %d MHz',$str,$off,\ $cpu[$off],$mhz[$off]) } write '|Processor(s)|',$str,'|' } debug ' Inside END module, getting memory information (sunos)' var ($lin) = grepCommand('prtconf','Memory size\:','f') if $lin {var $siz = replace(field('\:\s*',1,$lin),'Megabytes','MiB') write '|Total Physical Memory|',$siz,'|' } debug ' Inside END module, getting swap information (sunos)' var ($lin) = grepCommand('swap -s','\dk used,\s+\d+k available','f') if $lin {var ($use,$fre) = match($lin,'\s(\d+)k used,\s+(\d+)k available') var $tot = expr('+',$use,$fre) write sprintf('|Swap: Max Size|%d MiB|', expr('/',$tot,1024)) write sprintf('|Swap: Available|%d MiB|',expr('/',$fre,1024)) write sprintf('|Swap: In Use|%d MiB|', expr('/',$use,1024)) } if !hasOutput(true) write 'Information not available' } #------------------------------------------------------------------------------ =head1 CONTRIBUTION TO THE OS MODULE =cut elsif compare('eq',$MODULE,'OS') { =head2 cpu_info - CPUs Gets CPU information. =cut debug ' Inside OS module, getting CPU information (solaris)' report cpu_info write '---+ CPU Information' write '---## Using: psrinfo -v' call writeCommand('psrinfo -v') toc '2:[[',getFile(),'][rda_report][CPUs]]' =head2 memory_info - Memory Gets information about the physical memory. =cut debug ' Inside OS module, about physical memory (solaris)' report memory_info write '---+ Physical Memory Installed' write '---## Using: prtconf | grep "Memory size"' write '' loop $lin (grepCommand('prtconf','Memory size')) write $lin write '' toc '2:[[',getFile(),'][rda_report][Memory]]' =head2 ism_info - Intimate Shared Memory Gets Intimate Shared Memory (ISM) usage. Version 2.8 of Solaris identifies ISM attachments correctly. =cut if expr('>=',$OSM,8) {debug ' Inside OS module, about Intimate Shared Memory (ISM) usage (solaris)' report ism_info write '---+ Intimate Shared Memory (ISM) Usage' write 'To determine Intimate Shared Memory (ISM) usage use the instructions \ in [[http://metalink.oracle.com/metalink/plsql/showdoc?db=NOT&\ id=68281.1&blackframe=0][_blank][Note 68281.1]] to determine the \ Shared Memory Segment for the Oracle instance. Look at the \ associated line from the $ISM_Info command output. The ISMATTCH \ column shows the number of ISM attaches to shared memory segments, \ so a value greater than 0 means ISM is in use.' if expr('>=',$OSM,10) var $cmd = 'ipcs -imJ' else var $cmd = 'ipcs -im' write '---## Using: ',$cmd call writeCommand($cmd) toc '2:[[',getFile(),'][rda_report][Intimate Shared Memory]]' } =head2 disk_info - Disk Drives Gets information about the disks. =cut debug ' Inside OS module, about disks (solaris)' report disk_info write '---+!! Disk Information' write $TOC write '---+ Disk Mounts' call writeCommand('mount') write $TOP write '---+ Disk Free' call writeCommand('df -k') write $TOP write '---+ Swap' call writeCommand('swap -l') write $TOP toc '2:[[',getFile(),'][rda_report][Disk Drives]]' =head2 ipc_info - Kernel Tables and IPC Gets the kernel tables and IPC information. =cut report kernel_info write '---+!! Kernel Tables and IPC' write $TOC write '---+ Kernel Tables' call writeCommand('sar -v 1 1') write $TOP write '---+ Semaphores' if expr('>=',$OSM,10) var $cmd = 'ipcs -saJ' else var $cmd = 'ipcs -sa' call writeCommand($cmd) write $TOP write '---+ Shared Memory' if expr('>=',$OSM,10) var $cmd = 'ipcs -maJ' else var $cmd = 'ipcs -ma' call writeCommand($cmd) write $TOP toc '2:[[',getFile(),'][rda_report][Kernel Tables and IPC]]' =head2 projects - Projects List all projects and reports their dynamic settings. Only projects with settings are reported in the second section. (Applies to Solaris 2.10 and later only) =cut if expr('>=',$OSM,10) {debug ' Inside OS module, getting project information' report projects write '---+!! Project Information' write $TOC # Get the project list and permanent settings var $cmd = 'projects -l' write '---+ Project List' write '---## Using: ',$cmd call writeCommand($cmd) write $TOP # Get the current settings var $ttl = '---+ Current Project Settings' loop $prj (grepCommand($cmd,'^\S')) {var $cmd = concat('prctl -i project ',$prj) prefix {if $ttl {write $ttl var $ttl = undef } write '---++ Project ',$prj write '---### Using: ',$cmd } call writeCommand($cmd) if hasOutput(true) write $TOP } toc '2:[[',getFile(),'][rda_report][Projects]]' } =head2 zones - Zones Gets the zone information. (Applies to Solaris 2.10 and later only) =cut if expr('>=',$OSM,10) {debug ' Inside OS module, getting zone information' report zones var $cmd = 'zoneadm list -i -v' write '---+ Zone Information' write '---## Using: ',$cmd call writeCommand($cmd) toc '2:[[',getFile(),'][rda_report][Zones]]' } =head2 packages - Operating System Packages Lists all operating system packages. =cut debug ' Inside OS module, getting operating system package information' report packages var $cmd = 'pkginfo -l' write '---+ Operating System Package Information' write '---## Using: ',$cmd call writeCommand($cmd) toc '2:[[',getFile(),'][rda_report][Operating System Packages]]' =head2 patches - Operating System Patches Lists the operating system patches installed. Some Sun patches have long requirement lists, which cause awk to throw "too many fields" errors. RDA extracts data from the first 7 fields, thus limiting the output from showrev to 200 bytes, which prevents these errors. =cut debug ' Inside OS module, getting operating system patches' report patches prefix {write '---+ Operating System Patches Information' write '---## Using: showrev -p' } loop $lin (command('showrev -p 2>/dev/null')) {var ($f1,$f2,$f3,$f4,$f5,$f6,$f7) = split('\s+',$lin,8) write $f1,' [[http://sunsolve.sun.com/pub-cgi/getpatch.pl?documentId=',$f2,\ '][_blank][',$f2,']] ',$f4,' ',$f5,' ',$f6,' ',$f7,'%BR%' } if isCreated(true) toc '2:[[',getFile(),'][rda_report][Operating System Patches]]' =head2 sysdef - System/Kernel Settings Gets the system/kernel settings. =cut debug ' Inside OS module, getting system/kernel settings' report sysdef write '---+!! Display of System/Kernel Settings' write $TOC var $src = '/etc/sysdef' if loadCommand($src) {macro get_kernel {var ($nam,$src,$flg) = @arg var $val = field('\s+',0,grepLastFile(uc($nam),'f')) if and($flg,not(defined($val))) {var $src = '/etc/system' var $val = value(grepFile($src,$nam,'if')) } write '|',$nam,'| ',$val,'|',$src,'|' } write '---+ Main Kernel Parameters' write '|*Parameter*| *Value*|*Source*|' if match($OSV,'^2\.8$') {call get_kernel('noexec_user_stack',$src,true) call get_kernel('semmni',$src) call get_kernel('semmns',$src) call get_kernel('semmsl',$src) call get_kernel('semvmx',$src) call get_kernel('shmmax',$src) call get_kernel('shmmin',$src) call get_kernel('shmmni',$src) call get_kernel('shmseg',$src) } elsif match($OSV,'^2\.9$') {call get_kernel('noexec_user_stack',$src,true) call get_kernel('semmni',$src) call get_kernel('semmns',$src) call get_kernel('semmsl',$src) call get_kernel('semvmx',$src) call get_kernel('shmmax',$src) call get_kernel('shmmni',$src) } elsif match($OSV,'^2\.10$') {macro chk_param {var ($cmd,$prj) = @arg var ($lin) = grepCommand(concat($cmd,' -n ',$prj,' $$'),\ '(basic|privileged|system)','if') if match($lin,'\b(\d+(\.\d*)?)(\w*)\b') var ($siz,undef,$typ) = (last) return join('',$siz,uc($typ)) } var $cmd = findCommand('prctl') call get_kernel('noexec_user_stack',$src,true) write '|semmni| ',chk_param($cmd,'project.max-sem-ids'),'|',$cmd,'|' write '|semmsl| ',chk_param($cmd,'process.max-sem-nsems'),'|',$cmd,'|' write '|shmmax| ',chk_param($cmd,'project.max-shm-memory'),'|',$cmd,'|' write '|shmmni| ',chk_param($cmd,'project.max-shm-ids'),'|',$cmd,'|' } write $TOP } var $cmd = '/usr/sbin/sysdef | grep -v instance | grep -v drv | tail -77' write '---+ System/Kernel Settings' write '---## Using: ',$cmd write '' loop $lin (grepCommand('/usr/sbin/sysdef','(instance|drv)','v',-77)) write $lin write '' write $TOP toc '2:[[',getFile(),'][rda_report][System/Kernel Settings]]' =head2 system_error_log - System Error Log Collects system error log data. =cut report system_error_log write '---+!! System Error Log Data' write $TOC write '---+ Using: dmesg | tail -1000' call loadCommand('dmesg 2>&1',true,1,-1000) call writeLastFile() write $TOP write '---+ Contents of System Log File' var $fil = '/var/adm/messages' write 'Log File Name is ',$fil if !testFile('e',$fil) write $fil,' does not exist%BR%' elsif testFile('r',$fil) {call loadFile($fil,-1000) call writeLastFile() } else {write 'Unable to read ',$fil,'%BR%\ May be file permission problem.%BR%\ Permissions are:%BR%' call statFile('b',$fil) write 'User: ',id(),'%BR%' } write $TOP toc '2:[[',getFile(),'][rda_report][System Error Log]]' =pod Identifies useful platform-related links. =cut var \@LINKS = $arg[1] var @LINKS = ('http://www.sun.com/products-n-solutions/hardware/index.html',\ 'http://sunsolve.Sun.COM/pub-cgi/show.pl?\ target=patches/patch-access',\ 'http://docs.sun.com') } #------------------------------------------------------------------------------ =head1 CONTRIBUTION TO THE PERF MODULE =cut elsif compare('eq',$MODULE,'PERF') {# Produce the performance report report perf_over write '---+!! Performance Overview' write $TOC =pod Gets the system uptime. =cut debug ' Inside PERF module, about to execute uptime command' prefix write '---+ Uptime' call writeCommand('uptime') if hasOutput(true) write $TOP =pod Gets a process overview in terms of running databases, users logged on, and top CPU users. =cut if loadCommand($OSP) {debug ' Inside PERF module, about to gather user and process counts' write '---+ Process Overview' var $cnt = grepLastFile('oracle') write '|*Oracle Processes*|', $cnt,' |' var $cnt = grepLastFile('tnslsn','i') write '|*Listeners Processes*|', $cnt,' |' var $cnt = grepLastFile('DESCRIPTION=') write '|*Background Processes*|',$cnt,' |' var $cnt = grepLastFile('root') write '|*Root Processes*|', $cnt,' |' var $cnt = getLastLength() write '|*Total Processes*|', $cnt,' |' var $cnt = command('who') write '|*Number Users*|', $cnt,' |' var ($hdr) = getLines(0,0) call sortLastFile('ps_time') debug ' Inside PERF module, about to determine running databases' prefix {write '---+ Running Databases' write 'Note: the CPU usage in minutes' write '' write $hdr } loop $lin (grepLastFile('pmon')) write $lin if hasOutput(true) {write '' write $TOP } debug ' Inside PERF module, about to determine users logged on' write '---+ Who is Logged On?' call writeCommand('who | sort') write $TOP debug ' Inside PERF module, about to determine CPU hogs' var $cnt = getSetting('PERF_TOP_PS',15) write '---+ Current CPU Hogs / Top ',$cnt,' by CPU Time' call writeLastFile(0,$cnt) write $TOP debug ' Inside PERF module, about to determine CPU hogs by %CPU' write '---+ Current TOP 10 CPU by %CPU (via /usr/ucb/ps)' call writeCommand('/usr/ucb/ps aux | head -11') debug ' Inside PERF module, about to determine root CPU hogs' var $cnt = getSetting('PERF_TOP_ROOT',5) write '---+ Root CPU Hogs / Top ',$cnt,' by CPU Time' write '' write $hdr loop $lin (grepLastFile('root')) {next match($lin,'ckunix') write $lin decr $cnt break !$cnt } write '' write $TOP } =pod Gets a disk overview in terms of free space, disk I/O, disk errors, paging, and swapping. =cut debug ' Inside PERF module, about to gather File System Free Space' write '---+ File System Free Space in KiB' call writeCommand('df -k') write $TOP debug ' Inside PERF module, about to gather disk throughput in MiB' write '---+ Throughput MiB/sec, Transfers/sec, avg Service Time milliseconds' write '---## Using: iostat -M 10 3' call writeCommand('iostat -M 10 3') write $TOP debug ' Inside PERF module, about to gather disk throughput in KiB' write '---+ Disks Throughput' write '100 I/O per sec imples seek time 10 ms since most access is seek \ time%BR%Disks on PC capable of sustained 8-16 Mbit/sec and UNIX 32-40 \ Mbit/sec' write '---## Using: iostat -d 10 3' call writeCommand('iostat -d 10 3') write $TOP debug ' Inside PERF module, about to gather extended disk statistics' write '---+ Extended Disk Statistics' write 'Look for disks more than 30 % busy and service times of more than \ 50ms iostat -x.b > 30% && iostat -x.svc_t > 50ms == busy disk%BR%\ Look for overloaded scsi bus iostat -x.w >= 5% == busy scsi bus%BR%\ Stripping filesytems and tablespaces over multiple disks and \ controllers can spread I/O over multiple spindles.' write '---## Using: iostat -xe 10 3' call writeCommand('iostat -xe 10 3') write $TOP debug ' Inside PERF module, about to gather disk error reports' write '---+ Disk Error Reports' write '---## Using: iostat -e' call writeCommand('iostat -e') write $TOP var $out = quote($OSN) debug ' Inside PERF module, about to gather paging statistics' write '---+ Paging Activities' write '---## Using: sar -g 1 4 | grep -v ',$OSN write '' loop $lin (grepCommand('sar -g 1 4 2>&1',$out,'v')) write $lin write '' write $TOP debug ' Inside PERF module, about to gather swapping activity (solaris)' write '---+ Swap Activities' write '---## Using: swap -l' call writeCommand('swap -l') write '---## Using: swap -s' call writeCommand('swap -s') write $TOP =pod Gets a system overview in terms of CPU usage, top processes, system calls, memory, message, and semaphore statistics. =cut debug ' Inside PERF module, about to gather CPU per-processor stats' write '---+ CPU per-Processor Statistics' write '---## Using: mpstat 1 3 -v' call writeCommand('mpstat 1 3 -v 2>&1') write $TOP debug ' Inside PERF module, about to gather CPU usage stats' write '---+ CPU Usage Statistics' write '---## Using: sar -u 1 4 | grep -v ',$OSN write '' loop $lin (grepCommand('sar -u 1 4 2>&1',$out,'v')) write $lin write '' write $TOP debug ' Inside PERF module, about to echo top command output' write '---+ Top Report Usage' call writeCommand('/usr/local/bin/top 40 1') write $TOP debug ' Inside PERF module, about to gather system calls' write '---+ System Calls' write '---## Using: sar -c 1 4 | grep -v ',$OSN write '' loop $lin (grepCommand('sar -c 1 4 2>&1',$out,'v')) write $lin write '' write $TOP debug ' Inside PERF module, about to gather memory statistics' write '---+ Memory Statistics' write '---## Using: vmstat -s' call writeCommand('vmstat -s') write $TOP debug ' Inside PERF module, about to gather message and semaphore statistics' write '---+ Message and Semaphore Statistics' write '---## Using: sar -m 1 4 | grep -v ',$OSN write '' loop $lin (grepCommand('sar -m 1 4 2>&1',$out,'v')) write $lin write '' write $TOP toc '2:[[',getFile(),'][rda_report][Overview]]' } #------------------------------------------------------------------------------ =head1 CONTRIBUTION TO THE NET MODULE Determines the F and F command format. =cut elsif compare('eq',$MODULE,'NET') {# Define the ping and ps command format var (undef,\$PING,\$NETSTAT,\$PS_ARG,\$PS_EF) = @arg var $PING = 'ping -s -v -R %s %d 10' var $NETSTAT = 'netstat' var $PS_ARG = $OSA var $PS_EF = $OSP =head2 ifconfig - Interface Configuration Gets the network interface configuration. =cut debug ' Inside NET module, getting network interface configuration' report ifconfig var $cmd = 'ifconfig -a' write '---+ Interface Configuration' write '---## Using: ',$cmd call writeCommand($cmd) write $TOP toc '2:[[',getFile(),'][rda_report][Interface Configuration]]' =head2 tcpip_settings - TCP/IP Settings Gets the TCP/IP settings. =cut debug ' Inside NET module, getting tcp/ip settings (solaris)' report tcpip_settings write '---+ TCP/IP Settings' write '---## Using: ndd' write '' write 'Note: See the actual value settings after the permissions.' write ' They will be listed in name=value pairs.' write loop $key (command('ndd /dev/tcp \?')) {next match($key,'write only') var ($key) = split('\s*\(',$key,2) next compare('eq',$key,'?') next compare('eq',$key,'tcp_status') next match($key,'_hash$') next match($key,'obsoleted') write $key,'=',command(concat('ndd -get /dev/tcp ',$key)) } write '' if isCreated() toc '2:[[',getFile(),'][rda_report][TCP/IP Settings]]' =head2 udp_settings - UDP Settings Gets the UDP settings. =cut debug ' Inside NET module, getting udp settings (solaris)' report udp_settings write '---+ UDP Settings' write '---## Using: ndd' write '' write 'Note: See the actual value settings after the permissions.' write ' They will be listed in name=value pairs.' write loop $key (command('ndd /dev/udp \?')) {next match($key,'write only') var ($key) = split('\s*\(',$key,2) next compare('eq',$key,'?') next compare('eq',$key,'udp_status') next match($key,'_hash$') next match($key,'obsoleted') write $key,'=',command(concat('ndd -get /dev/udp ',$key)) } write '' if isCreated() toc '2:[[',getFile(),'][rda_report][UDP Settings]]' } #------------------------------------------------------------------------------ =head1 CONTRIBUTION TO THE DEV MODULE Sets up the shared library path for Oracle Forms and Reports. =cut elsif compare('eq',$MODULE,'DEV') {# Setup the shared library path for Forms and Reports var (undef,\%ENV,\$PS_EF) = @arg var $ora = getSetting('ORACLE_HOME') var $key = getSetting('RDA_SHLIB') if and($ora,$key) {var $lib = getEnv($key,undef,true) call setEnv($key,\ join(':',concat($ora,'/network/jre11/lib/sparc/native_threads'),\ $lib)) var $ENV{$key} = $lib } var $PS_EF = $OSP } #------------------------------------------------------------------------------ =head1 CONTRIBUTION TO THE RAC MODULE =cut elsif compare('eq',$MODULE,'RAC') {import $ORA_CRS_HOME # So CLUSTER_DETECTED is assumed to mean "vendor clusterware detected". # Thus, if CLUSTER_DETECTED is false and ORA_CRS_HOME is defined, then CRS # is the clusterware and CLUSTER_DETECTED is forced to true. var $CLUSTER_DETECTED = false var $CLUSTER_READY = false var $CLUSTER_WARNING = false =pod When not available from the environment, it extracts C from the init file. =cut if $ORA_CRS_HOME {var $CLUSTER_DETECTED = true } elsif value(grepFile('/etc/init.d/init.cssd','ORA_CRS_HOME=')) {var $ORA_CRS_HOME = last var $CLUSTER_DETECTED = true } =head2 cluster_status_file - Cluster Status Detects the status of the cluster and verifies that it is up and ready for RAC. Because Oracle Database 10g works with CRS, CRS may be used instead of vendor clusterware. =cut debug ' Inside RAC module, processing Cluster status (solaris)' report cluster_status_file write '---+ Status of the Cluster' prefix write '---++ Verify cluster exists' if testFile('f','/usr/cluster/bin/scconf') {# SUN cluster=3X var $CLUSTER_DETECTED = true write 'Cluster has been detected.%BR%' call loadCommand('/usr/cluster/bin/scstat -n') var $cnt = grepLastFile('Cluster node:') var $cup = grepLastFile('Online') if $cup {write 'You have ',$cnt,' cluster members configured and ',\ $cup,' are currently up.' var $CLUSTER_READY = true } else {write 'No members of your cluster are in the UP status.' var $CLUSTER_WARNING = true } } elsif testFile('f','/opt/SUNWcluster/bin/get_node_status') {# SUN cluster=2X var $CLUSTER_DETECTED = true write 'Cluster has been detected.%BR%' var $cnt = command("/opt/SUNWcluster/bin/get_node_status | \ grep 'membership:' | awk '{print $NF + 1}'") var $cup = command("/opt/SUNWcluster/bin/get_node_status | \ grep 'membership:' | awk '{print $NF + 1}'") if $cup {write 'You have ',$cnt,' cluster members configured and ',\ $cup,' are currently up.' var $CLUSTER_READY = true } else {write 'No members of your cluster are in the UP status.' var $CLUSTER_WARNING = true } } else {# SUN cluster=none } unprefix write '---++ Real Application Cluster Option Verification' if $CLUSTER_DETECTED {write 'A vendor clusterware has been detected.' if $CLUSTER_READY write 'That cluster is up.' else write 'That cluster is not up.' } else write 'A cluster was not detected.' if $CLUSTER_WARNING write '%BR%A partial cluster has been detected which could cause the RAC \ option problems.' toc '2:[[',getFile(),'][rda_report][Cluster Status]]' =head2 net - Network Looks for network and interconnect settings at the operating system level. =cut debug ' Inside RAC module, looking for network and interconnect settings' report cluster_net write '---+ Network Settings' write '---++ UDP Settings' write '' write 'Current setting for udp_xmit_hiwat is ',\ command('/usr/sbin/ndd -get /dev/udp udp_xmit_hiwat') write 'Current setting for udp_recv_hiwat is ',\ command('/usr/sbin/ndd -get /dev/udp udp_recv_hiwat') write '' toc '2:[[',getFile(),'][rda_report][Network]]' # Set the list of operating specific configuration and log files var (undef,\@ini,\@tbl) = @arg var @ini = ('/etc/inittab',\ '/etc/init.d/init.crs',\ '/etc/init.d/init.crsd',\ '/etc/init.d/init.cssd',\ '/etc/init.d/init.evmd') var @tbl = ('/etc/opt/SUNWcluster/conf/udlm.conf',\ '/etc/cluster/clpl',\ '/etc/cluster/ccr',\ '/etc/nsswitch.conf',\ '/var/adm/messages',\ '/var/cluster/logs/install',\ '/var/cluster/ucmm/ucmm_reconfig.log') } #------------------------------------------------------------------------------ elsif compare('eq',$MODULE,'PS') {# Pass the command format of the ps variants import $PS_ARG,$PS_EF var $PS_ARG = $OSA var $PS_EF = $OSP } #------------------------------------------------------------------------------ # Return a ping command macro ping_command return concat('ping -s -v -R ',$arg[0],' ',nvl($arg[1],56),' 10') =head1 OPERATING SYSTEM COMMANDS USED The main operating system commands used in the data collection include the following: =over 16 =item o F =item o F =item o F =item o F =item o F =item o F =item o F =item o F =item o F =item o F =item o F =item o F =item o F =item o F =item o F =item o F =item o F =item o F =item o F =item o F =item o F =item o F (F) =item o F =item o F =item o F =item o F =item o F =item o F =item o F =item o F =item o F =item o F =item o F =item o F =item o F =back =begin credits =over 10 =item RDA 4.0: Andy Parkman. =item RDA 4.1: Noriyuki Kamei. =item RDA 4.2: Jack Connolly, Roger Snowden. =item RDA 4.9: Tom Holden. =item RDA 4.10: Roberta Librone. =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