NetXMS Support Forum

English Support => General Support => Topic started by: Tursiops on March 27, 2016, 01:54:47 PM

Title: Instance Discovery - Network Interfaces with ()
Post by: Tursiops on March 27, 2016, 01:54:47 PM
Hi,

I have been wondering why I had several systems constantly come back with BytesOut/BytesIn being unsupported on their interfaces.
However after going through them, I found all of them had brackets in their names, i.e. "RAS (Dial In)" or "Ethernet (Production)".

So I am guessing this is actually an issue with using "Net.InterfaceNames" for Instance Discovery, i.e. it does not escape the brackets properly?
Or is there something else I am missing?

Cheers
Title: Re: Instance Discovery - Network Interfaces with ()
Post by: Marco Incalcaterra on March 28, 2016, 01:10:33 PM
Quote from: Tursiops on March 27, 2016, 01:54:47 PM
So I am guessing this is actually an issue with using "Net.InterfaceNames" for Instance Discovery, i.e. it does not escape the brackets properly?
Or is there something else I am missing?

Well, I didn't notice before, but I have the same problem!  :-\

Marco
Title: Re: Instance Discovery - Network Interfaces with ()
Post by: Victor Kirhenshtein on March 30, 2016, 07:32:32 PM
Hi,

you can put interface names in double quotes (it will work for instance discovery as well), like this:

Net.Interface.BytesIn("{instance}")

which will be expanded into

Net.Interface.BytesIn("RAS (Dial In)")

and should work correctly.

Best regards,
Victor
Title: Re: Instance Discovery - Network Interfaces with ()
Post by: Marco Incalcaterra on March 30, 2016, 08:13:30 PM
Quote from: Victor Kirhenshtein on March 30, 2016, 07:32:32 PM
which will be expanded into

Net.Interface.BytesIn("RAS (Dial In)")

and should work correctly.

Best regards,
Victor

Yes, it works! Thank you :)

Regards,
Marco
Title: Re: Instance Discovery - Network Interfaces with ()
Post by: Tursiops on April 04, 2016, 08:45:32 AM
Yes, that worked for me as well.

Thanks :)