How to Change the Host Name of Linux Real-Time Target

Updated Jun 3, 2026

Reported In

Software

  • LabVIEW Real-Time Module

Issue Details

How can I change the host name of the Linux Real-Time target such as CompactRIO or PXI Controller?

Solution

There are several ways to change the host name, either manually or programmatically.

 

NI MAX

To change the host name in NI MAX, navigate to the Real-Time target under Remote Systems and enter a new name under "Hostname" string box. After finishing, press Refresh button to lock the new name.

 

NI Hardware Configuration Utility

The following is the steps to modify the host name in NI Hardware Configuration Utility.

  1. Click on the Pull-Down menu on top left that displays the computer name of your host PC.
  2. Click Add hardware to add a remote system target.
     
  3. Click Add for the target you like to modify the host name.
     
  4. Click on the button next to the current host name displayed on top right section.
     
  5. Change to a new host name.
     
  6. Restart the target to save the new name.
     

 

LabVIEW

You may open NI Example Finder from LabVIEW under Help > Find Examples and navigate to Hardware Input and Output > System Configuration > Format Real-Time Target.vi. You will see that you can change the host name with the property node.

 

SSH

Using an SSH Client such as PuTTY, log into your Real-Time target and enter the following command to set the host name.

/usr/local/natinst/bin/nirtcfg --set section="SYSTEMSETTINGS",token="host_name",value="new host name"

You can check to see if your new setting was applied by executing the following command.

/usr/local/natinst/bin/nirtcfg --get section="SYSTEMSETTINGS",token="host_name"