NxShell Interaction Help - Strange error in script
-
Hello everyone!
I'm creating a script to populate nodes from my network, getting them from a ".csv" file. It's working pretty fine, but I can't use the method "setIpAdress()" from NXCObjectCreationData. In the method call bellow "cd" is a NXCObjectCreationData object and "objectIp" is a string with the IP formated such as in "192.168.2.1".
cd.setIpAddress(InetAddress.getByName(objectIp))When I execute the script I get the following error:
TypeError: setIpAddress(): 1st arg can't be coerced to org.netxms.base.InetAddressEx
I couldn't find the class org.netxms.base.InetAddressEx on the API and it's stated on the NCXObjectCreationData reference that "setIpAdress()" should receive an InetAdress instance.
Could you guys help me on this?
Thanks in advance!
Edit: I'm using the 2.0.M4 version.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login