NetXMS Support Forum

English Support => General Support => Topic started by: blingblouw on September 26, 2019, 04:33:01 PM

Title: FDB from Script
Post by: blingblouw on September 26, 2019, 04:33:01 PM
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?
Title: Re: FDB from Script
Post by: Victor Kirhenshtein on September 27, 2019, 06:57:46 PM
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
Title: Re: FDB from Script
Post by: blingblouw on October 04, 2019, 11:39:50 AM
Hi.

Thanks for the response. Does NetXMS offer some paid support where I can request and pay someone to do this for me?
Title: Re: FDB from Script
Post by: Filipp Sudanov on October 04, 2019, 04:28:11 PM
Hi!

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