Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Tutorials and FAQs
»
Getting interface duplex from API
« previous
next »
Print
Pages: [
1
]
Author
Topic: Getting interface duplex from API (Read 1268 times)
opn69a
Newbie
Posts: 23
Karma: 1
Getting interface duplex from API
«
on:
February 08, 2023, 03:22:42 am »
Hi there,
Is there any way to get the interfaces 'duplex' from the API? I tried a few of the `api/diagnostics/interface` endpoints with no luck (or I just didn't see it) and trying to just hit `/status_interface.php` with the api key doesn't work.
If not, is there a way to setup the logs to report which duplex is actively used?
I had my one cat5e cable show "100baseTX" suddenly. Re-plugging it in gave me the correct "1000baseT" it should have been before. I wanted to add in my monitoring and alerts for if this happens again to know if it was just a loose cable or if I'm going to have to replace this cable (or reclamp) due to it going faulty.
Preferably if I can get it into the logs and just have my grafana instance alert me on it, that'd be better. But if not, then an API endpoint would be the next step. Any assistance would be appreciated
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Tutorials and FAQs
»
Getting interface duplex from API