NetXMS Support Forum

English Support => Feature Requests => Topic started by: Sack-C-Fix on August 16, 2023, 10:07:45 AM

Title: Change IP address/Primary Hostname from NXSL
Post by: Sack-C-Fix on August 16, 2023, 10:07:45 AM
Hello,

for some purposes it would be beneficial to be able to change the address of a node via NXSL.

Maybe this function already exists, but I didn't find anything in the documentation.


Thanks

Andreas
Title: Re: Change IP address/Primary Hostname from NXSL
Post by: keenoar on August 24, 2023, 02:12:12 PM
Hello,

Due to security reasons, from NXSL you can read the primary host name using $node->primaryHostName but cannot change or set it.

Can you explain what you are trying to do, maybe there is another way to do it.

Thanks,
Kanan