Changes the hostname of a device. Used for all ethernet based drivers.

Permission Type: Device Management

Client access to this scripting function is blocked to users that do not meet the role/zone requirements for the above permission type. This function is unaffected when run in the Gateway scope.

system.device.setDeviceHostname(deviceName, hostname)

  • Parameters

String deviceName - The name of the device in Ignition.

String hostname - The new IP address or hostname.

  • Returns


  • Scope

Gateway, Vision Client, Perspective Session

# Example 1:
system.device.setDeviceHostname("CLX", "")

system device setDeviceHostname, device.setDeviceHostname