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.
[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
- 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
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.
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.
2 posts
Page 1 of 1
Who is online
Users browsing this forum: Google [Bot] and 40 guests