Closed shivamurthyshastri closed 3 weeks ago
SOL session manager https://github.com/openbmc/phosphor-net-ipmid/blob/8425624a9046f5a853e8596cc74441e622028494/sol/sol_manager.cpp#L179
Creates a unix socket connection to \0bmc-console
https://github.com/openbmc/phosphor-net-ipmid/blob/8425624a9046f5a853e8596cc74441e622028494/sol/sol_manager.cpp#L33
https://github.com/openbmc/phosphor-net-ipmid/blob/8425624a9046f5a853e8596cc74441e622028494/sol/sol_manager.hpp#L23
Which is the unix domain socket here https://github.com/openbmc/obmc-console?tab=readme-ov-file#underlying-design
I don't know if you could check the status through the change property interface , but it looks like netstat -x
considering abstract sockets listing replace \0
with@
should work https://unix.stackexchange.com/questions/598886/is-there-a-command-to-list-all-abstract-unix-sockets-currently-open
The mentioned ss
tool might require a kernel option https://github.com/openbmc/linux/blob/04b28a15e7e85be5a18b561988f8f36b233b577c/net/unix/Kconfig#L29
But you should be able to attach least look at ls /proc/NN/fd
of the impi net instance to compare how many sockets are open.
Maybe lsof +E -p $(pidof netipmid)
?
Note there's a instance per interface (if you have a dual network BMC)
SOL session manager https://github.com/openbmc/phosphor-net-ipmid/blob/8425624a9046f5a853e8596cc74441e622028494/sol/sol_manager.cpp#L179 Creates a unix socket connection to
\0bmc-console
https://github.com/openbmc/phosphor-net-ipmid/blob/8425624a9046f5a853e8596cc74441e622028494/sol/sol_manager.cpp#L33 https://github.com/openbmc/phosphor-net-ipmid/blob/8425624a9046f5a853e8596cc74441e622028494/sol/sol_manager.hpp#L23Which is the unix domain socket here https://github.com/openbmc/obmc-console?tab=readme-ov-file#underlying-design
I don't know if you could check the status through the change property interface , but it looks like
netstat -x
considering abstract sockets listing replace\0
with@
should work https://unix.stackexchange.com/questions/598886/is-there-a-command-to-list-all-abstract-unix-sockets-currently-openThe mentioned
ss
tool might require a kernel option https://github.com/openbmc/linux/blob/04b28a15e7e85be5a18b561988f8f36b233b577c/net/unix/Kconfig#L29 But you should be able to attach least look atls /proc/NN/fd
of the impi net instance to compare how many sockets are open.
Thank you @mdmillerii. My issue is fixed with "netstat -x".
Hi all,
Do we have any way to identify status of IPMI SOL connection status in the BMC?
Example: for SSH SOL we can verify connection status using "netstat -tn" with port number 2200. Do we have something like this for IPMI SOL?
Note: we can not get any status with netstat tool for IPMI SOL.
Thanks, Shiva