OPNsense Forum

Archive => 21.7 Legacy Series => Topic started by: bubbagump on January 21, 2022, 01:22:31 AM

Title: Monitoring MTU via the API (or other means)
Post by: bubbagump on January 21, 2022, 01:22:31 AM
I have an odd problem where my WAN MTU gets set to weird values like 596 even though the interface is hard coded to 1500. While I try to track down what the root cause is I want to monitor the interface's MTU. The API seems very limited in this regard or I am not understanding something fundamental. I know the API works as I use it to enable/disable aliases and some other firewall rules. Any hints or better ways to get this value out of the box?

curl -k -u "user":"key" 'https://someip/api/interfaces/vxlan_settings/get'   

As well as /loopback_settings/get and getItem give me 401s. I figure I need to query and find a UUID to then use the UUID to get current state parameters as I do with other items. Any thoughts?
Title: Re: Monitoring MTU via the API (or other means)
Post by: Fright on January 21, 2022, 10:00:32 AM
/api/diagnostics/interface/getInterfacestatistics ?

imho getInterfaceConfig call is added to 22.1