alf@melmac
11th October 2004, 17:53
Hi Unix-Goeroe´s,

env. HP-UX 11.00 with BaanIVb4

since a while we have connected some clients over VPN to Baan. Some of them have variable IP-adresses; means DHCP give them at every login a new adress. But we cannot print then, as always these new adresses needs be maintained in /etc/hosts. The printers itself are defined as remote printers.

Any idea to fix that problem ? If I am right I only remember to AIX this is quite normal (but could be solved with -c option in rexecd), but on HP-UX ???

Thanks for any input !!!

Regards,
Hardy

NPRao
11th October 2004, 19:42
Hardy,
Some of them have variable IP-adresses; means DHCP give them at every login a new adress.
Are you trying to maintain local or network/direct printers. It seems you are trying to setup the local printers attached to the client PCs to the /etc/hosts.
You dont have to do that and you have a work-around by setting up a single local printer in the device data.
Refer to the threads - Windows Printer (http://www.baanboard.com/baanboard/showthread.php?t=14470&highlight=bwprint)
Printing BaaN Device using Printer's IP Address (http://www.baanboard.com/baanboard/showthread.php?t=5353&highlight=printer)

Markus Schmitz
12th October 2004, 11:49
Rao's method is certainly the most simple way to do it: Use windows printer.

If you need network printer, then maybe the follwoing would help. The DHCP server normally is able to integrate with the DNS server to resolve the dynamically created IP adresses. Now you point your HP-Box to use the DNS server on the DHCP box and finished.

Regards

Markus

alf@melmac
12th October 2004, 15:24
Hi Rao - Hi Markus

unfortunately it`s BaanIVb (not c) - so devicetype WINDOWS is not available. Any idea if someone has managed to get WINDOWS-Printing under IVb running? But I suppose that the Tools-Standardprogramm is not able to handle this in IVb ...

Markus: Your idea looks good. I have just spoken to our Admin, then with the Network-man. And got more infos. There is no DHCP within our environment (sorry for the before wrong info) configured. And not planned to setup. So this is no way for me to go. Sorry.
This fact that VPN-clients exists with dynamic IP-adresses is due to a misconfiguration from our Internet-provider, which they could not solve now for a long time. But we will force them now to get all VPN-clients running on static IP-adress and we will then solve more problems (seen local network again, IT could better trigger activities and so on).

Thanks for your inputs.

Regards,
Hardy

~Vamsi
13th October 2004, 01:09
Hardy,

You should be able to roll your own "Windows" device type.

What is involved?
- write a wrapper program for ttstpconv (look in the Code & Utilities forum)
- in this wrapper, capture the device independant spool file
- transfer this file to the client PC (server2client)
- launch this file with BWPrint

Too much work?
- Just implement the vanilla pdf printing in Code & Utilities forum.
- ofcourse the downside to this effort is getting ghostscript to compile for your OS.

norwim
19th October 2004, 16:25
Hi there,

I remember having fixed a similar problem in the following way:
I wrote a little shell script, that grep'd the ip-adress of a user (last argument of 'who am i') and added it to /etc/host (if not already present). Then I created a user that did nothing much more than issuing this command and exited again.
Without much effort on the client windows machine an automated telnet session was started, login in as that user. Thus the new IP-adress automagically got added to /etc/hosts.
Could for sure been done in more artful ways ... but it did the job.

hth

Norbert