[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference netcad::hub_mgnt

Title:DEChub/HUBwatch/PROBEwatch CONFERENCE
Notice:Firmware -2, Doc -3, Power -4, HW kits -5, firm load -6&7
Moderator:NETCAD::COLELLADT
Created:Wed Nov 13 1991
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:4455
Total number of notes:16761

2590.0. "telnet and Hubwatch/Win" by VNABRW::PARGFRIEDER () Mon Jul 31 1995 08:18

Hello!


There is a nice feature in Hubwatch V4.0 for Terminal-Servers.
( Start a terminal-session from the T.S window )

But with Hubwatch f. DOS/Win and HP-OpenView I have problems to
launch a terminal-session. Hubwatch can't find sethost.pif and
sethost.exe.  I have tried to copy these files to the Hubwatch
directory, but it seems that the terminal-icon only work with
PATHWORKS.

My question now, can I launch a different terminal application 
from Hubwatch, e.g. a TNVT windows application shipped with
HP-OpenView?
If yes, how can I change the default sethost application?


Thanks for any help
Alfred

T.RTitleUserPersonal
Name
DateLines
2590.1SuggestionSTEVEV::VINGERHOETMon Jul 31 1995 17:3349
Alfred,

You can try the following. No guarantees though:

SETHOST.PIF can be modified to launch any DOS application or batch file.
Hubwatch assumes it is invoking SETHOST.EXE, which it passes the following 
command string:
    
    telnet: <ip address>

where the ip address is determined by the Hubwatch management code.

If SETHOST.PIF is set up to invoke a different terminal application, the app
will likely want only the ip address, so the trick lies in stripping off
the "telnet:" argument. This can be done by indirectly launching the terminal
app via a batch file. Here's how:

1) Make a backup of SETHOST.PIF. Modifications described below must be made
on the "live" version.

2) Create a batch file (e.g. LAUNCHER.BAT) which invokes your terminal app
as follows:
    
    MYAPP.EXE %2

where MYAPP.EXE is a DOS terminal application. (The app must be a DOS app; 
Windows apps cannot be launched via a PIF file.) The %2 argument will be 
replaced by the ip address passed by Hubwatch. You should provide any 
additional arguments required by the terminal app. If necessary, provide 
the full path to the terminal app. You may want to directly invoke the 
batch file from the command line to see if it works. Pass a dummy value 
for argument 1.

3) Use the Windows PIF editor (PIFEDIT.EXE) to change the program filename 
in SETHOST.PIF from SETHOST.EXE to the name of your batch file, e.g.:
    
    Program filename: LAUNCHER.BAT

4) Save the modified SETHOST.PIF file.


The SETHOST.PIF and LAUNCHER.BAT files should both reside in the same 
directory as Hubwatch. 

Note that the DOS box window title will still say "telnet". Hubwatch uses 
this window title to keep track of the DOS box.

Steve
HUBwatch