current node number

Well, I’m a bit puzzled. Can anyone tell me
how to find out the node number of a QNX6 machine ??
I tryed ‘uname -a’ and ‘pidin in’ no luck.

cheers,
Igor

“Igor Levko” <no_spam@nihrena.net> wrote in message
news:a1v1og$m2n$1@inn.qnx.com

Well, I’m a bit puzzled. Can anyone tell me
how to find out the node number of a QNX6 machine ??

From the user`s point of view there is no node number,
there is only a hostname which you can obtain via the “hostname” utility.

Since internaly the system uses a nid (node it) there are c fonction to
translate from nid to hostname and viceversa, check nid*()

I tryed ‘uname -a’ and ‘pidin in’ no luck.

cheers,
Igor

Igor Levko <no_spam@nihrena.net> wrote:

Well, I’m a bit puzzled. Can anyone tell me
how to find out the node number of a QNX6 machine ??
I tryed ‘uname -a’ and ‘pidin in’ no luck.

If you know the hostname of the remote node,
then netmgr_strtond() will return the nd.

If you are asking “nd for myself”, it always,
ND_LOCAL_NODE.

-xtang