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: Francois Le Hir <flehir@ca.ibm.com>
Date: Fri, 15 Jul 2005 11:37:28 -0400
Delivery-date: Fri, 15 Jul 2005 16:36:52 +0100
Envelope-to: nv-l-archive@lists.skills-1st.co.uk
In-reply-to: <OF25057C3B.005275C7-ON8625703F.00536F44-8625703F.00546154@AMSOUTH.COM>
Reply-to: nv-l@lists.us.ibm.com
Sender: owner-nv-l@lists.us.ibm.com
Don,

Here is what I am using in MyAction.xml:
Make sure you have the "output=html". I am not sure about the different "
ActionHandler". do you know what the difference is between the two ?


<Action id="launchMaintenanceMode" securityConstraint="RelaxedAccess"
roles="Administrator,Operator,SuperUser,User">
      <Name>Maintenance Mode</Name>
      <!--  this doesn't have to match id   -->
      <Mnemonic>M</Mnemonic>
      <ShortDescription>Put an object in Maintenance
Mode</ShortDescription>
      <LongDescription>Put an object in Maintenance Mode</LongDescription>
      <SelectionRule minSelected="1" expr="isNode OR isInterface" />
      <ActionHandler name="LaunchServerAppHandler" output="html">
        <Method>

<MethodName>com.tivoli.netview.client.NetViewApplet.launchServerApp</MethodName>
          <ArgList>
            <Val>
              <Array>
                <!--  first Val acts as a key - can be anything. Must be
unique among all   -->
                <!--  ActionHandlers named LaunchServerAppHandler in all
Actions XML files  -->
                <Val>key9</Val>
                <!--  Second val must be fully-qualified pathname of
executable     -->
                <Val>/usr/IBM/Netview/Scripts/maintenance</Val>
                <Var>OVwSelections</Var>
              </Array>
            </Val>
          </ArgList>
        </Method>
      </ActionHandler>
    </Action>


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/15/2005 11:21          Re: [nv-l] Opening a web page (on a 
             AM                        different server) via the web       
                                       console                             
                                                                           
             Please respond to                                             
                   nv-l                                                    
                                                                           
                                                                           
                                                                           





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