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

flameproof
Member
 
Posts: 22
Joined: Thu Sep 24, 2015 6:04 am
Has thanked: 0 time
Been thanked: 1 time

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

Tue Mar 12, 2019 3:32 am

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.

flameproof
Member
 
Posts: 22
Joined: Thu Sep 24, 2015 6:04 am
Has thanked: 0 time
Been thanked: 1 time

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

Tue Mar 12, 2019 4:27 am

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.

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 39 guests