Get IP address of remote node?

If I’m on node A, and I’ve got Q-Net connectivity across a local subnet to
node B, but I don’t know node B’s IP address, how can I determine it?
Everything I’ve tried using “on” returns information about node A.


Marty Doane
Siemens Dematic

Marty Doane <marty.doane@rapistan.com> wrote:

If I’m on node A, and I’ve got Q-Net connectivity across a local subnet to
node B, but I don’t know node B’s IP address, how can I determine it?
Everything I’ve tried using “on” returns information about node A.

I believe you need to set the SOCK environment variable.


cburgess@qnx.com

Marty Doane <marty.doane@rapistan.com> wrote:

If I’m on node A, and I’ve got Q-Net connectivity across a local subnet to
node B, but I don’t know node B’s IP address, how can I determine it?
Everything I’ve tried using “on” returns information about node A.

if you are using tiny stack.

cat /net/nodeB/proc/ipstats

if it’s npm-tcpip.so

SOCK=/net/nodeB netstat -ni

This will have netstat run locally (in nodeA), but talk to nodeB’s
stack, and return you what you want.

Another way is, (if you have Momentics 6.2), “on -f /net/nodeB netstat -ni”.

-xtang

Perfect - thanks a bunch!

Marty Doane
Siemens Dematic

“Xiaodan Tang” <xtang@qnx.com> wrote in message
news:abc2ij$302$2@nntp.qnx.com

Marty Doane <> marty.doane@rapistan.com> > wrote:
If I’m on node A, and I’ve got Q-Net connectivity across a local subnet
to
node B, but I don’t know node B’s IP address, how can I determine it?
Everything I’ve tried using “on” returns information about node A.

if you are using tiny stack.

cat /net/nodeB/proc/ipstats

if it’s npm-tcpip.so

SOCK=/net/nodeB netstat -ni

This will have netstat run locally (in nodeA), but talk to nodeB’s
stack, and return you what you want.

Another way is, (if you have Momentics 6.2), “on -f /net/nodeB
netstat -ni”.

-xtang