Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[networking] Capture more networking commands #3710

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions sos/report/plugins/networking.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def setup(self):
self.add_cmd_output([
"nstat -zas",
"netstat -s",
"netstat -s -6",
f"netstat {self.ns_wide} -agn",
"networkctl status -a",
"ip -6 route show table all",
Expand Down Expand Up @@ -169,6 +170,8 @@ def collect_ss_ip_ethtool_info(self):
required={'kmods': 'all'})
self.add_cmd_output(ss_cmd, pred=ss_pred, changes=True)

ss_stats_cmd = "ss -s"
self.add_cmd_output(ss_stats_cmd, pred=ss_pred, changes=True)
# Get ethtool output for every device that does not exist in a
# namespace.
_ecmds = [f"ethtool -{opt}" for opt in self.ethtool_shortopts]
Expand Down
Loading