#!/usr/local/bin/perl =pod =head1 NAME $RCSfile: runlog.cgi,v $ Display the run log =head1 VERSION =over =item Author Andrew DeFaria =item Revision $Revision: 1.11 $ =item Created: Mon Oct 25 11:10:47 PDT 2008 =item Modified: $Date: 2011/06/02 06:10:02 $ =back =head1 SYNOPSIS Usage runlog.cgi: [-u|sage] [-ve|rbose] [-d|ebug] Where: -u|sage: Displays usage -ve|rbose: Be verbose -d|ebug: Output debug messages =head2 DESCRIPTION This script displays the run log =cut use strict; use warnings; use FindBin; use Getopt::Long; use CGI qw (:standard :cgi-lib *table start_Tr end_Tr); use CGI::Carp 'fatalsToBrowser'; use lib "$FindBin::Bin/lib", "$FindBin::Bin/../lib"; use Clearadm; use ClearadmWeb; use Display; use Utils; my $VERSION = '$Revision: 1.11 $'; ($VERSION) = ($VERSION =~ /\$Revision: (.*) /); my $clearadm; my %opts = Vars; $opts{start} ||= 0; $opts{page} ||= 10; # Main GetOptions ( usage => sub { Usage }, verbose => sub { set_verbose }, debug => sub { set_debug }, ) or Usage 'Invalid parameter'; # Announce ourselves verbose "$FindBin::Script v$VERSION"; $clearadm = Clearadm->new; my $title = 'Run Log'; heading $title; $opts{task} ||= 'All'; $opts{system} ||= 'All'; $opts{not} ||= 0; $opts{status} ||= 'All'; display h1 {class => 'center'}, $title; displayRunlog (%opts); footing; =pod =head1 CONFIGURATION AND ENVIRONMENT DEBUG: If set then $debug is set to this level. VERBOSE: If set then $verbose is set to this level. TRACE: If set then $trace is set to this level. =head1 DEPENDENCIES =head2 Perl Modules L L L L =head2 ClearSCM Perl Modules =begin man Clearadm ClearadmWeb Display Utils =end man =begin html
Clearadm
ClearadmWeb
Display
Utils
=end html =head1 BUGS AND LIMITATIONS There are no known bugs in this script Please report problems to Andrew DeFaria . =head1 LICENSE AND COPYRIGHT Copyright (c) 2010, ClearSCM, Inc. All rights reserved. =cut