Instance Discovery - Network Interfaces with ()

Started by Tursiops, March 27, 2016, 01:54:47 PM

Previous topic - Next topic

Tursiops

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

Marco Incalcaterra

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

Victor Kirhenshtein

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

Marco Incalcaterra

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

Tursiops