nv-l
[Top] [All Lists]

Re: [nv-l] Opening a web page (on a different server) via the web consol

To: nv-l@lists.us.ibm.com
Subject: Re: [nv-l] Opening a web page (on a different server) via the web console
From: don.turrentine@amsouth.com
Date: Fri, 15 Jul 2005 10:21:39 -0500
Delivery-date: Fri, 15 Jul 2005 16:23:23 +0100
Envelope-to: nv-l-archive@lists.skills-1st.co.uk
In-reply-to: <OF6A1FD0A7.CFB5F6C7-ON8525703F.004F1237-8525703F.004F57EE@ca.ibm.com>
Reply-to: nv-l@lists.us.ibm.com
Sender: owner-nv-l@lists.us.ibm.com
Francois,

I assume I use this shell script as the command to launch (second value in
the val array) from my actions.xml file (in my case ReportActions.xml).  Is
there a different ActionHandler or MethodName I should use?  Currently they
are LaunchServerAppHandler and
com.tivoli.netview.client.NetViewApplet.launchServerApp, respectively.
When I do as described above I get a browser window with the text echo'd to
it as if you had ran the shell file from the command line.  I did modify
the script to read as below since the webserver I am trying to connect to
is on a different server.

#! /bin/ksh

myurl="http://sdw2kpoc/crystal/enterprise9/ePortfolio";
#node=$1

echo "<html>"
echo "<head>"
echo "<meta http-equiv=\"Content-Type\" content=\"text/html;
charset=iso-8859-1\
">"
echo "</head>"
echo "<script>"
echo "document.location = \"${myurl}\";"
echo "</script>"
echo "</html>"

Thanks,

-Don



                                                                           
             "Francois Le Hir"                                             
             <flehir@ca.ibm.co                                             
             m>                                                         To 
             Sent by:                  nv-l@lists.us.ibm.com               
             owner-nv-l@lists.                                          cc 
             us.ibm.com                                                    
                                                                   Subject 
                                       Re: [nv-l] Opening a web page (on a 
             07/15/2005 09:26          different server) via the web       
             AM                        console                             
                                                                           
                                                                           
             Please respond to                                             
             nv-l@lists.us.ibm                                             
                   .com                                                    
                                                                           
                                                                           








Don,

You can configure a script like the sample below in the menu, to redirect
to another URL. In that example, on the same server where the script will
be running but on port 80 instead of the port 8080.



#! /bin/ksh

thewebhost=`hostname -s`
myurl="http://${thewebhost}.aircanada.ca/network/Maintenance.htm";
node=$1

echo "<html>"
echo "<head>"
echo "<meta http-equiv=\"Content-Type\" content=\"text/html;
charset=iso-8859-1\">"
echo "</head>"
echo "<script>"
echo "document.location = \"${myurl}?Node=${node}\";"
echo "</script>"
echo "</html>"


Salutations, / Regards,

Francois Le Hir
Network Projects & Consulting Services
IBM Global Services
Phone: (514) 964 2145



             don.turrentine@am
             south.com
             Sent by:                                                   To
             owner-nv-l@lists.         nv-l@lists.us.ibm.com
             us.ibm.com                                                 cc

                                                                   Subject
             07/14/2005 06:05          [nv-l] Opening a web page (on a
             PM                        different server) via the web
                                       console

             Please respond to
                   nv-l







I have been able to add commands to the web menu and execute them
successfully.  (I would still like to get rid of the unnecessary web page
but that is another issue.)  I would like to now open a browser window and
connect to another webserver via a menu item on the web console.  My
NetView server is AIX, all my web console clients are Windows 2000 or XP,
the mandated browser is IE 6.  I would like to allow users to open up a
connection to my Crystal Enterprise server to view reports.

---
Don Turrentine
BH-0302
AmSouth Bank
P.O. Box 11007
Birmingham, AL 35288
(205) 261-6351












<Prev in Thread] Current Thread [Next in Thread>

Archive operated by Skills 1st Ltd

See also: The NetView Web