home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
OS2
/
LNVREM.ZIP
/
LNREMSRC.EXE
/
README.LCH
< prev
Wrap
Text File
|
1993-11-10
|
9KB
|
323 lines
REMOTE APPLICATION LAUNCH TOOL
The LAN NetView remote application launch tool is a user-written tool
that can be used by a LAN NetView Manage operator to launch applications
on remote OS/2 workstations which have LAN NetView Enabler installed.
HOW IT WORKS
The remote launch tool is registered with the LAN NetView View component
and called from the 'Application action' menu item of a management
collection or system object. If it is called from a system object, it
operates only on that system. If it is called from a management
collection object, it operates against all selected systems in the
management collection.
When the tool is invoked, it reads an ASCII file supplied by the user.
This file, which is described in detail below, contains commands to be
issued against a remote OS/2 workstation and descriptions of those
commands. The tool displays the descriptions and allows the system
administrator to select one. When that happens, the tool retrieves the
network id and system id from the View component and, if the system
contains a LAN NetView system agent, it calls the LAN NetView remote
command line interface command, SVRUNCMD, to execute the command which
corresponds to the selected command description.
For example, the command file may contain an entry to run MYBACKUP.CMD
with a corresponding label of "Run daily backup". The system
administrator will see only the label and, if it is selected, the tool
will use SVRUNCMD to run the MYBACKUP.CMD on the remote node.
RUNTIME PACKAGE
The runtime remote launch tool package consists of the following files:
readme.lch
This file.
lnremlch.hlp
The View help file.
lnremlch.reg
The View registration file.
lnremlch.dll
An execution file.
lnuiutil.dll
An execution file.
decode.dll
An execution file.
lnremlch.fil
The remote launch command file.
INSTALLING THE RUNTIME CODE
Follow these steps to install the remote launch tool runtime modules.
1. Copy the lnremlch.reg file to \lnv\bin.
2. Copy the .dll files to a directory in your LIBPATH.
3. Copy the lnremlch.hlp file to a directory defined by your HELP
environment variable.
4. Copy the lnremlch.fil file to a directory defined by your PATH
environment variable.
5. Ensure that the LAN NetView Manage View component is not running.
6. Change to the \lnv\bin directory and enter the command:
lnvreg lnremlch.reg
If the remote launch tool has been previously installed, this
command will fail with an appropriate message. That's OK, because
it should not be installed more than once.
7. Edit the lnremlch.fil file to add the command which you want to
issue.
COMMAND FILE (lnremlch.fil) FORMAT
The command file can be edited using your favorite ASCII editor. Each
line has the following syntax shown below. Note that parameters can be
specified in any order, the characters to the left of the = can be in
any case and the parameter delimiter can be either / or -.
/c="my cmd" /m="menu text" /s /o=output_file_path_and_name /t=timeout
Where:
/c="my cmd" is a required parameter that specifies the command
string to be executed on the remote node. If there are imbedded
spaces, then the command string must be bracketed with "". Any
command string acceptable to SVRUNCMD may be used.
/m="menu text" is an optional parameter that specifies the
description to be displayed for this command. If this parameter
is not specified, the command string will be used for the
description.
/s specifies that the SVRUNCMD session should stay alive after
SVRUNCMD returns. If this parameter is not specified, SVRUNCMD
will be executed in s session that ends as soon as SVRUNCMD
returns. If this parameter is specified, then SVRUNCMD will be
executed in a session that remains after SVRUNCMD has finished
execution. In this case the system administrator must enter
"exit" in order to end the session. This parameter is useful if
the command will return information that the system administrator
must review.
/o=output_file_path_and_name is an optional parameter that
specifies a file to receive the output from SVRUNCMD.
/t=timeout specifies the timeout that SVRUNCMD should use when
executing this command.
SOURCE PACKAGE
In addition to the runtime package, the source package contains these
files:
lnremlch.mak
The make file for the lnremlch.dll module.
lnremlch.csc
The SOM source file for the lnremlch.c file.
lnremlch.c
The source file for the lnremlch.dll file. This
file is originally produced by the SOM compiler
and modified to add the method logic.
lnremlch.h
The main include file for the lnremlch module.
This file is produced by the SOM compiler.
lnremlch.ih
The SOM implementation include file for the
lnremlch module. This file is produced by the
SOM compiler.
lnremlch.def
The module definition file for the lnremlch.dll
module. This file is created by the SOM
compiler and edited to add the statements
required by View.
lnremlch.lib
The import library for lnremlch.dll. This file
is created by running the IMPLIB utility against
lnremlch.def.
lnnosagt.dlg
A dialog file used to build the lnremlch
resource module.
lnnocmd.dlg
A dialog file used to build the lnremlch
resource module.
lnrcerr.dlg
A dialog file used to build the lnremlch
resource module.
lnremdlg.h
An include file used to build the lnremlch
resource module.
lnremlch.rc
The main source file for the lnremlch resource
module.
lnremlch.res
The lnremlch resource module, built by running
the resource compiler, RC, against the
lnremlch.rc file.
lnremlch.ipf
The IPFC source file used to build the .hlp
file.
lnh.h
A common include file.
lnuiutil.mak
The make file for the lnuiutil.dll module.
lnuiutil.c
The source file for the lnuiutil.dll module.
lnuiutil.def
The module definition file for the lnuiutil.dll
module.
lnuiutil.lib
The import library file for the lnuiutil.dll
module, produced by running IMPLIB against the
lnuiutil.def file.
gcdlg.dlg
A dialog file used to build the lnuiutil
resource module.
lnuidlg.h
An include file used to build the lnuiutil
resource module.
lnuiutil.rc
The main source file for the lnuiutil resource
module.
lnuiutil.res
The lnuiutil resource module, built by running
the resource compiler, RC, against the
lnuiutil.rc file.
decode.mak
The make file for the decode.dll module.
decode.c
The main source file for the decode.dll module.
decode.lnk
The link response file for the decode.dll
module.
decode.def
The module definition file for the decode.dll
module.
decode.lib
The import library for the decode.dll module,
built by running the IMPLIB utility against the
decode.def file.
INSTALLING THE SOURCE CODE
Copy the source files to your source directory.
BUILD INSTRUCTIONS
In order to build the modules which make up the tool it is necessary to
have the LAN NetView toolkit and the OS/2 2.0 or 2.1 toolkit installed
on the development machine. Before building the modules, edit the .mak
and .lnk files to make sure that the hard-coded paths point to the
appropriate directories on your build machine. Ensure that the
appropriate environment variables (INCLUDE, ETC, TMP, and the SOM
compiler environment variables) are set up. Refer to the LAN NetView
Programmers Guide and the LAN NetView User Interface Programmers Guide
for more information.
The lnremlch.dll module contains the SOM classes necessary to interface
with the View APIs. It uses class definitions from the \lnv\etc\sc
directory and include files from the \lnv\include directory. Build the
lnremlch.dll module using the information in the LAN NetView User
Interface Programmers Guide. Note that the make file for this module
assumes that the SOM compiler environment variables have been set and
that the SOM compiler has been executed against the lnremlch.csc file
at least once before the make file is executed. It also assumes that
the resource compiler has been used to create a .res file before the
make file is executed.
The lnuiutil.dll module is a Presentation Manager utility program module
which contains services called by the lnremlch.dll module. Use the PM
samples from the OS/2 toolkit as a reference when building this module.
Note that the make file for this module assumes that the resource
compiler has been executed to create a .res file before this make file
is executed.
The decode.dll module contains XOM routines to parse XMP parameter
structures. It uses the include files in the \lnv\include directory.
Build the decode.dll module using the information from the LAN NetView
Programmers Guide and the LAN NetView Programmers reference. Note that
the make file for this module uses a linker response file.