Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - qnet host aliases ?: (4 Items)
   
qnet host aliases ?  
Hi all

is it possible to force a remote host seen across the qnet to be aliased with a hostname valid only locally?

Maybe an example will be more effective:

after qnet hosts auto-discovery (local host named foo.foo) I can see:

$ ls /net
foo     bar.bar

I whould like to access (both under /net and with C calls like netmgr_strtond() for example) to "bar.bar" with an alias 
"foo2", valid only locally.
Something like a symlink /net/foo2 pointing to /net/bar.bar.
I tried with a "ln -sP" command but, as explained in the docuemntation, no symlink can be created into /net.

Is it possible in any other way?

thanks
Davide



RE: qnet host aliases ?  
Do you have to create the symlink in /net  ?

--
aboyd
Re: RE: qnet host aliases ?  
Yes, since I have a complex environment (lot of software and scripts) looking for a particular set of names under /net, 
but now I want to make it work with a remote QNX box where it would be nice to keep the current (and unuseful!) host and
 domain name.

Davide
RE: RE: qnet host aliases ?  
IIRC you can tell qnet to use something other than 
/net to store hostnames in, with a cmd line option.

Suggestion: start qnet, telling it to use another directory
so you can set up /net yourself with whatever symlinks
mapping whatever names to whatever hosts.

--
aboyd