QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
Changing node number |
Ref. No. |
QNX.000000878 |
Category(ies) |
Network, Kernel, Configuration |
Issue |
We are trying to change the logical node number for our machine. Where does the $NODE environment variable get defined and how can we change it?
|
Solution |
The Process Manager (Proc32) defines the $NODE environment variable. It is set using the -l<node> option at boot time and is read only.
To change a machines node number($NODE), modify the boot image by changing the argument passed with the -l option to Proc, rebuild using buildqnx, and re-boot.
sys/Proc32 $ Proc32 -l $(lnode)
More than likey, if the node number of a machine is being changed, netowkring will be a concern, so be sure to update the /etc/config/netmap file.
For a more detailed description of building QNX4 images see the QNX OS Installation & Configuration Manual, chapter 2 on Building an OS Image.
See Also: Proc man page in the QNX OS Utilities Reference -- N to Z |
|