# S318IWPS.def: Collects Oracle iPlanet Web Proxy Server Information # $Id: S318IWPS.def,v 1.4 2012/01/03 13:34:45 mschenke Exp $ # ARCS: $Header: /home/cvs/cvs/RDA_4/src/scripting/lib/modules/S318IWPS.def,v 1.4 2012/01/03 13:34:45 mschenke Exp $ # # Change History # 20120103 MSC Change the copyright notice. =head1 NAME S318IWPS - Collects Oracle iPlanet Web Proxy Server Information =head1 DESCRIPTION This module collects Oracle iPlanet Web Proxy Server-related information. The module covers Oracle iPlanet Web Proxy Server Release 4.x and later. The following reports can be generated and are regrouped under C: =cut echo tput('bold'),'Processing IWPS module ...',tput('off') # Initialization var $INS_HOME = getSetting('IWPS_INSTANCE_HOME','') var $IWPS_HOME = getSetting('IWPS_HOME','') var $TAIL = getSetting('RDA_TAIL',1000) var $TOC = '%TOC%' var $TOP = '[[#Top][Back to top]]' pretoc '1:iPlanet Web Proxy Server' # Load the common macros run library() =head1 IPLANET WEB PROXY SERVER INFORMATION =head2 version_info - Version Information Gathers Oracle iPlanet Web Proxy Server version information. =cut debug ' Inside IWPS module, gathering version information' pretoc '2:Server Information' if testFile('fx',catFile($IWPS_HOME,'bin','proxy','bin',${AS.EXE:'proxyd'})) {report version_info var $cmd = concat(lastCommand(),' -v') prefix {write '---+ Oracle iPlanet Web Proxy Server Version Information' write '---## Using: ',encode($cmd) } call writeCommand(concat($cmd,' 2>&1')) if isCreated(true) toc '3:[[',getFile(),'][rda_report][Version Information]]' } =head2 Configuration Files Gathers Administration Server-related configuration files. =cut if testDir('d',$IWPS_HOME) {debug ' Inside IWPS module, collecting the admin configuration files' pretoc '3:Configuration Files' call sort_files(4,0,\ grepDir(catDir($IWPS_HOME,'proxy-admserv','config'),'^\.+$','pv')) unpretoc =head2 Log Files Gathers Administration Server-related log files. =cut debug ' Inside IWPS module, collecting the admin log files' pretoc '3:Log Files' call sort_files(4,$TAIL,\ grepDir(catDir($IWPS_HOME,'proxy-admserv','logs'),'^\.+$','pv')) unpretoc } unpretoc =head1 WEB PROXY SERVER INSTANCE INFORMATION =head2 Configuration Files Gathers Web Proxy Server instance-related configuration files. =cut if testDir('d',$INS_HOME) {debug ' Inside IWPS module, collecting the instance configuration files' pretoc '2:Instance Information' pretoc '3:Configuration Files' call sort_files(4,0,grepDir(catDir($INS_HOME,'config'),'^\.+$','pv')) unpretoc =head2 Log Files Gathers Web Proxy Server instance-related log files. =cut debug ' Inside IWPS module, collecting the instance log files' pretoc '3:Log Files' call sort_files(4,$TAIL,grepDir(catDir($INS_HOME,'logs'),'^\.+$','pv')) unpretoc 2 } unpretoc =head1 SEE ALSO L =begin credits =over 10 =item RDA 4.26: Jeff Brown. =back =end credits =head1 COPYRIGHT NOTICE Copyright (c) 2002, 2012, 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