Skip to content

Commit d3131d9

Browse files
authored
feat: collect network interface statistics, configurations and parameters (#2328)
* chore: collect network interface statistics Signed-off-by: Evans Mungai <[email protected]> * Collect PCI device information Signed-off-by: Evans Mungai <[email protected]> * Add ethtool info to host support bundle Signed-off-by: Evans Mungai <[email protected]> * Fix support bundle spec indentation Signed-off-by: Evans Mungai <[email protected]> --------- Signed-off-by: Evans Mungai <[email protected]>
1 parent 827dd9d commit d3131d9

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

cmd/installer/goods/support/host-support-bundle.tmpl.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,53 @@ spec:
173173
collectorName: "ip-route-table"
174174
command: "ip"
175175
args: ["route"]
176+
- run:
177+
collectorName: "ip-address-stats"
178+
command: "ip"
179+
args: ["-s", "-s", "address"]
180+
- run:
181+
collectorName: "lspci"
182+
command: "lspci"
183+
args: ["-vvv", "-D"]
184+
- run:
185+
collectorName: "ethool-info"
186+
command: "sh"
187+
args:
188+
- -c
189+
- >
190+
interfaces=$(ls /sys/class/net);
191+
for iface in $interfaces; do
192+
echo "==============================================";
193+
echo "Interface: $iface";
194+
echo "==============================================";
195+
196+
echo
197+
echo "--- Basic Info ---"
198+
ethtool "$iface"
199+
200+
echo
201+
echo "--- Features (Offloads) ---"
202+
ethtool -k "$iface"
203+
204+
echo
205+
echo "--- Pause Parameters ---"
206+
ethtool -a "$iface"
207+
208+
echo
209+
echo "--- Ring Parameters ---"
210+
ethtool -g "$iface"
211+
212+
echo
213+
echo "--- Coalesce Settings ---"
214+
ethtool -c "$iface"
215+
216+
echo
217+
echo "--- Driver Info ---"
218+
ethtool -i "$iface"
219+
220+
echo
221+
echo
222+
done
176223
- run:
177224
collectorName: "sysctl"
178225
command: "sysctl"

0 commit comments

Comments
 (0)