FDB from Script

Started by blingblouw, September 26, 2019, 04:33:01 PM

Previous topic - Next topic

blingblouw

Hi. I am trying to find a way to do the following.

I have the MAC addresses of most devices connected to my switches on an external server.

What I am hoping to achieve is something like this in a script

1) On configuration poll, loop through device FDB
2) If there is a single MAC address on an interface, do an external call to a REST API to get a "name" for that port
3) Rename the interface in NetXMS

The reason I want to do this is that the devices connected to the switches are not running SNMP and currently NetXMS will report a specific port went offline, which is great, however it will be super helpful if it would tell me *what* went down as I have that information on a seperate server.

So my question is, is it possible to loop through the FDB from a script?

Victor Kirhenshtein

Hi,

there is no built-in function specifically for FDB retrieval but you can do SNMP walk and retrieve FDB that way. I see more problems with calling external REST API. Alternatively you can do everything from nxshell script - get FDB, do REST call, and rename interface.

Best regards,
Victor

blingblouw

Hi.

Thanks for the response. Does NetXMS offer some paid support where I can request and pay someone to do this for me?

Filipp Sudanov

Hi!

Yes, paid support is provided. Please send a request to [email protected]