Page 1 of 1

[SOLVED] No mactable.json, cannot get switch to generate it

Posted: Tue Mar 12, 2019 3:32 am
by flameproof
Hi all,

I have several switches in the field, some of which have an empty MAC table in the GUI, and the file /tmp/mactable.json does not even exist. If I use switch -F on the cmdline, I'm told "Flushed MAC table", but the MAC table is still empty in the GUI, and no mactable.json can be found.

In some cases, visiting the "MAC table" page on the GUI gets the JSON file generated and the table populated, but it's hit and miss.

Is there any setting that would prevent a MAC table from being generated at all?

Switches are on 1.5.0.

Re: [SOLVED] No mactable.json, cannot get switch to generate

Posted: Tue Mar 12, 2019 4:27 am
by flameproof
Have solved it. Found a function buried deep in utils.php, which generates the MAC tables if the JSON file is not found, by executing:

pkill -USR2 -f -o "vtss_appl -l"

My script now checks for output of "cat /tmp/mactables.json" and if empty/not found, executes, the above, a couple of seconds later the table is generated.