Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
21.7 Legacy Series
»
Monitoring MTU via the API (or other means)
« previous
next »
Print
Pages: [
1
]
Author
Topic: Monitoring MTU via the API (or other means) (Read 1539 times)
bubbagump
Newbie
Posts: 39
Karma: 5
Monitoring MTU via the API (or other means)
«
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?
Logged
Fright
Hero Member
Posts: 1777
Karma: 164
Re: Monitoring MTU via the API (or other means)
«
Reply #1 on:
January 21, 2022, 10:00:32 am »
/api/diagnostics/interface/getInterfacestatistics ?
imho getInterfaceConfig call is added to 22.1
«
Last Edit: January 21, 2022, 10:03:03 am by Fright
»
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
21.7 Legacy Series
»
Monitoring MTU via the API (or other means)