Here's an example of a ARF file we use to launch a webpage from a NT
Client.
Application "TOPS_webtools" {
Description { "Web Tools" }
Version "V1.0";
Copyright {
"Richard Nixon",
"",
}
MenuBar "TOPS" _G {
"Node Status" _o f.action NodeStatus;
}
Action NodeStatus {
Command "cmd /c C:/Progra~1/Intern~1/IEXPLORE.EXE
http://topsweb/cgi-bin/nodestat.tcl?serversList=%OVwSelections%&funcList=StdNodeStatus"
;
SelectionRule ( isNode ) ;
}
}
This creates a menu bar called "TOPS", and a menu item called "Node
Status", and the command it launches. If you are going to run a
executable you don't need the "CMD /C". If you we to run a batch file,
you have to insert "CMD /C" which launches a NT Command line Window.
To make it easy, I just put it in there any way. The %OVwSelection% is
the DNS name or IP address of the selected object.
For more info, look under /usr/ov/doc/sdkarf.wri, or I think Chapter 3
of the programmer's guide.
Hope this helps
Xu He
Network Solutions, Inc
--- Leslie Clark <lclark@US.IBM.COM> wrote:
> A registration file puts things on the menu. It has
> a place to specify
> selection
> criteria for which the menu-pick would be enabled.
> You specify the
> command, which
> would be an invocation of the browser, or some
> script that calls the
> browser, with
> parameters. The Selection Name of the selected node
> is available to the
> registration
> file as a variable. The Selection Name is the
> resolved hostname of the
> node, if it is
> resolved (/etc/hosts or DNS), or it is the ip
> address by which Netview
> first found the
> node, if it is not resolved. So the user would
> select a node on the map,
> then pick
> the new menu option, and the browser would be
> launched for that device's
> home
> page. I do not personally know the syntax for
> launching a browser with a
> url on the
> commandline, but that is what is needed and should
> be straight-forward.
>
> This kind of customization is often provided by
> vendors of device-specific
> management appliations that run on top of Netview or
> other platforms. As
> Phil points out, CiscoView does this, and Nways does
> this. Others may as
> well,
> and if they don't, you can add it easily enough.
>
> Cordially,
>
> Leslie A. Clark
> IBM Global Services - Systems Mgmt & Networking
>
>
> Dear Leslie,
>
> thank's for your help.
> For the application, you are talking about a
> registration file.
> Is this file generic to a family of devices or to a
> specific device that
> has
> to be indicated?
> is the IP address of the device passed in parameter?
>
> Thank's.
>
> -Youcef
>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
|