Feature #8861
closedShow SFP module details on ``status_interfaces.php``
100%
Description
Looking at the output of ifconfig -v
, there is more info we could be showing on status_interfaces.php.
At a minimum, on supported interfaces such as ix
, it will display information about connected SFP modules.
ix0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=e400bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6> ether 00:XX:XX:00:00:00 hwaddr 00:XX:XX:00:00:00 inet6 fe80::XXXX:XXXX:XXXX:0%ix0 prefixlen 64 scopeid 0x5 inet X.X.X.182 netmask 0xffffff00 broadcast X.X.X.255 nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> media: Ethernet autoselect (10Gbase-Twinax <full-duplex,rxpause,txpause>) status: active plugged: SFP/SFP+/SFP28 Unknown (Copper pigtail) vendor: OEM PN: SFP-10GB-CU1M SN: XXXXXXXXXXX DATE: 2011-09-26
Wireless interfaces also show much more information, though it's debatable how useful that level of detail is in this case.
status_interfaces.php uses get_interface_info()
to pull the info, which in turn pulls it from pfSense_get_interface_stats()
which is provided by the pfSense module, so this change would need to be made there.
Files
Updated by Viktor Gurov almost 5 years ago
also add optional 'description' field,
like
vtnet1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 description: connected to R1 (Gi0/0) ...
Updated by Anonymous about 4 years ago
- Assignee set to Viktor Gurov
- Priority changed from Normal to Low
Updated by Anonymous about 4 years ago
- Assignee changed from Viktor Gurov to Anonymous
- Target version changed from 2.5.0 to Future
Requires work in devel/php56-pfSense-module/files/pfSense.c so reassigning it
Updated by Viktor Gurov almost 3 years ago
Updated by Jim Pingle almost 3 years ago
- Status changed from New to Pull Request Review
- Assignee changed from Anonymous to Viktor Gurov
- Target version changed from Future to CE-Next
- Plus Target Version set to 22.05
Updated by Jim Pingle over 2 years ago
- Target version changed from CE-Next to 2.7.0
Updated by Viktor Gurov over 2 years ago
- Status changed from Pull Request Review to Feedback
- % Done changed from 0 to 100
Applied in changeset fc455333eedb53ce6fcad1db01d5a736467c997b.
Updated by Glenn Hall over 2 years ago
I am now receiving the following PHP errors when I view the Status-->Interfaces page while running 2.7.0.a.20220308.0600:
Crash report begins. Anonymous machine information:
amd64
12.3-STABLE
FreeBSD 12.3-STABLE devel-12-n226751-5a8a2c2b449 pfSense
Crash report details:
PHP Errors:
[08-Mar-2022 22:31:31 America/Detroit] PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in /usr/local/www/status_interfaces.php on line 83
[08-Mar-2022 22:31:31 America/Detroit] PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in /usr/local/www/status_interfaces.php on line 83
[08-Mar-2022 22:31:31 America/Detroit] PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in /usr/local/www/status_interfaces.php on line 83
[08-Mar-2022 22:31:31 America/Detroit] PHP Warning: htmlspecialchars() exp_ ects parameter 1 to be string, array given in /usr/local/www/status_interfaces.php on line 83
No FreeBSD crash data found.
Updated by Viktor Gurov over 2 years ago
- Status changed from Feedback to New
Glenn Hall wrote in #note-9:
I am now receiving the following PHP errors when I view the Status-->Interfaces page while running 2.7.0.a.20220308.0600:
Crash report begins. Anonymous machine information:
amd64
12.3-STABLE
FreeBSD 12.3-STABLE devel-12-n226751-5a8a2c2b449 pfSenseCrash report details:
PHP Errors:
[08-Mar-2022 22:31:31 America/Detroit] PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in /usr/local/www/status_interfaces.php on line 83
[08-Mar-2022 22:31:31 America/Detroit] PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in /usr/local/www/status_interfaces.php on line 83
[08-Mar-2022 22:31:31 America/Detroit] PHP Warning: htmlspecialchars() expects parameter 1 to be string, array given in /usr/local/www/status_interfaces.php on line 83
[08-Mar-2022 22:31:31 America/Detroit] PHP Warning: htmlspecialchars() exp_ ects parameter 1 to be string, array given in /usr/local/www/status_interfaces.php on line 83No FreeBSD crash data found.
fix:
https://gitlab.netgate.com/pfSense/pfSense/-/merge_requests/663
Updated by Jim Pingle over 2 years ago
- Status changed from New to Pull Request Review
Updated by Viktor Gurov over 2 years ago
- Status changed from Pull Request Review to Feedback
Updated by Glenn Hall over 2 years ago
I just applied this patch and it fixed the issue. Thanks!
Updated by Jim Pingle over 2 years ago
- Subject changed from Show more detail on status_interfaces.php to Show SFP module details on ``status_interfaces.php``
- Status changed from Feedback to In Progress
- Assignee changed from Viktor Gurov to Jim Pingle
There is a small error keeping it from displaying the RX/TX signal levels from an SFP. To me, I have a fix.
Updated by Jim Pingle over 2 years ago
- Status changed from In Progress to Feedback
Fix committed, 9f534f4b7af51600ce37e10978f3f1eb977768f3
Updated by Jim Pingle over 2 years ago
- File 2022-05-11_16-13.png 2022-05-11_16-13.png added
- Status changed from Feedback to Resolved
Looks great now:
Updated by Chad Wagner 11 months ago
- File clipboard-202312212205-vqti0.png clipboard-202312212205-vqti0.png added
- File clipboard-202312212207-be4ds.png clipboard-202312212207-be4ds.png added
Is there a reason I would not be seeing the same on my 6100 with 23.09.1? I just switched from SFP+ DACs to 10GTek SFP+ Fiber transceivers. If I run ifconfig -v I can see temperature and voltage etc but my interfaces status page does not display the information like shown above or in the pfSense documentation.
Updated by Jim Pingle 11 months ago
Chad Wagner wrote in #note-17:
Is there a reason I would not be seeing the same on my 6100 with 23.09.1? I just switched from SFP+ DACs to 10GTek SFP+ Fiber transceivers. If I run ifconfig -v I can see temperature and voltage etc but my interfaces status page does not display the information like shown above or in the pfSense documentation.
Possibly the output format in the OS changed and the code needs to be updated to follow it again. If it's showing in the ifconfig
output it should be showing in the GUI. Since this issue is closed and tagged for an older version, you should open a new Redmine issue since it's a regression that happened since this was fixed the last time. The screenshot/output you have there is sufficient, but it would be more helpful if you copy/pasted the text of that ifconfig
output rather than using a screenshot. The GUI screenshot of the status page is OK.
Thanks!