Operating System - HP-UX
1850225 Members
3570 Online
104053 Solutions
New Discussion

HPUX server network identification

 
D Waghorn
Occasional Advisor

HPUX server network identification

I currently have a server running on two different networks concurrently using DNS (two databases) and logical instances on a single lan card. I'm trying to find some way to tell the server to operate exclusively on one network until I tell it to switch to the other, this is to ensure the correct client addresses are issued. The domain must remain the same. Could I place all network processes under a pair of hostnames and use these to switch? Any ideas?
My head hurts!
6 REPLIES 6
Brian Hackley
Honored Contributor

Re: HPUX server network identification

Hello,

I saw you posted this question and another similar posting a few days ago and not received any replies. That is probably because none of us can think of a way to implement what you want to do in a standard or supported configuration.

The only other idea that I had is to run each instance of your application in a different MC/ServiceGuard package. That way you can stop and start the application from listening on a specific (virtual) IP.

Regards,

-> Brian Hackley
Ask me about telecommuting!
D Waghorn
Occasional Advisor

Re: HPUX server network identification

Thanks Brian,

My head hurts!
D Waghorn
Occasional Advisor

Re: HPUX server network identification

Brian

I've done some tinkering and now have a script
to change the IP address of the server from restricted SAM and reboot. The resolver then picks this up for the correct DNS database.

However DHCP still appears to issue the wrong client subnet addresses, using the first range listed, not the correct one. Any ideas? All clients connect locally through a hub.
My head hurts!
Mark van Hassel
Respected Contributor

Re: HPUX server network identification

Hi,

If you want your server to operate exclusively on one network, why don't you bring down the other IP address using ifconfig ? If oyu want to switch, bring it up and bring the other IP address down.

HtH,
Mark
The surest sign that life exists elsewhere in the universe is that none of it has tried to contact us

Re: HPUX server network identification

You don't say what your database software is... If its Oracle, its possible to configure 'failover' connections in the tnsnames.ora file of your clients (assuming you connect to the database via SQLNet/Net8) - Using this along with a combination of adding/removing the IP addresses on the fly should give you the desired functionality.

HTH

Duncan

I am an HPE Employee
Accept or Kudo
D Waghorn
Occasional Advisor

Re: HPUX server network identification

Thanks Mark and Duncan

Tried the ifconfig 'switch'. Interesting. For some reason the software distributor daemon then fails and Oracle (the db Duncan) won't start. Bringing the original lan instance back up re-enables the software dist. daemon, but Ora still refuses.

Unfortunately our NT4 clients are 'dumb' on a rembo image. They call a URL in IE5 to access ORA(Apache). Everything is on the server.

Thought I had my dual DNS databases and resolver sorted, but using an ifconfig 'switch' seems to kill this as well.

Thanks for all your ideas guys, I seem to be having a problem assigning points, but all your help is much appreciated.
My head hurts!