krisnaa1980 has asked for the wisdom of the Perl Monks concerning the following question:
HI All,
I have installed DBI, FreeTDS and DBD::Sybase modules and written this below script:
The available DBD drivers are: DBM ExampleP File Gofer Multiplex Proxy Sponge Sybase.
Summary --> GENERAL EVENT: Link down due to oper down ZEndPoint:cncrnhso09w-cs-p1 PortNumber=TenGigE0/0/0/2
</body></html>
But from GUI, nothing is displayed. Any help is apprecaited.
regards,
Krishna
I have installed DBI, FreeTDS and DBD::Sybase modules and written this below script:
From Command Line if i run, i see the below result:#!/usr/bin/perl -w BEGIN { $ENV{"SYBASE"} = "/usr/local/freetds"; $ENV{"DSQUERY"} = "NCOT6P"; $ENV{"OMNIHOME"} = qw(/opt/app/netcool/omnibus); $ENV{"LD_LIBRARY_PATH"} = "/usr/local/freetds/lib"; } use strict; use CGI; use DBI; use DBD::Sybase; print "Content-type: text/html\n\n"; print <<HTML; <html> <head> </head> <title>Suppress Alarms</title> <body> HTML my (@available_drivers, $dbh, $sql_statement, $sth, @array) = (); @available_drivers = DBI->available_drivers; print ("\nThe available DBD drivers are: @available_drivers.\n"); $dbh = DBI->connect('dbi:Sybase:NCOT6P;interfaces:$ENV{OMNIHOME}/etc/i +nterfaces.solaris2;loginTimeout=10;timeout=120', "dsybase", "dsybase" +, { RaiseError=> 0 , PrintError => 0, AutoCommit => 0 } ); my $select_sql = "select Summary from alerts.status where ServerSerial + = 16238215"; $sth = $dbh->prepare("$select_sql"); $sth->execute(); while (my $summary = $sth->fetchrow_array) { print "\nSummary --> $summary\n"; } $sth->finish; $dbh->disconnect; print "</body></html>";
$=>perl SuppAlarms.cgi Content-type: text/html <html> <head> </head> <title>Suppress Alarms</title> <body>
The available DBD drivers are: DBM ExampleP File Gofer Multiplex Proxy Sponge Sybase.
Summary --> GENERAL EVENT: Link down due to oper down ZEndPoint:cncrnhso09w-cs-p1 PortNumber=TenGigE0/0/0/2
</body></html>
But from GUI, nothing is displayed. Any help is apprecaited.
regards,
Krishna
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Content not display on GUI
by marto (Cardinal) on Mar 18, 2011 at 09:40 UTC | |
Re: Content not display on GUI
by JavaFan (Canon) on Mar 18, 2011 at 10:15 UTC | |
by krisnaa1980 (Initiate) on Mar 19, 2011 at 07:54 UTC | |
Re: Content not display on GUI
by tweetiepooh (Hermit) on Mar 18, 2011 at 13:02 UTC | |
by krisnaa1980 (Initiate) on Mar 19, 2011 at 07:51 UTC |
Back to
Seekers of Perl Wisdom