ALT Linux Bugzilla
– Attachment 9163 Details for
Bug 39620
Добавить утилиту для вывода списка и состояния интерфейсов (ethlist ?)
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
Концепт-скрипт
ethlist (text/plain), 703 bytes, created by
Sergey Y. Afonin
on 2021-01-28 18:00:17 MSK
(
hide
)
Description:
Концепт-скрипт
Filename:
MIME Type:
Creator:
Sergey Y. Afonin
Created:
2021-01-28 18:00:17 MSK
Size:
703 bytes
patch
obsolete
>#!/bin/bash > >#for ETH in `ls -d /sys/class/net/*/device | awk -F "/" '{print $5}'`; do > >for ETH in `ls -d /sys/class/net/*/device | awk -F "/" '{print $5}' | sed "s/\([a-z]*\)\([0-9]\+\)/\1.\2/" | sort -n -t . -k 2.1 | sed "s/\.//"`; do > > LINK=`ethtool $ETH | grep "Link detected:" | sed "s/^[[:space:]]*//"` > SPEED=`ethtool $ETH | grep "Speed:" | sed "s/^[[:space:]]*//"` > DUPLEX=`ethtool $ETH | grep "Duplex:" | sed "s/^[[:space:]]*//"` > DRIVER=`ethtool -i $ETH | grep "driver:" | sed "s/^.*[[:space:]]//"` > BUS=`ethtool -i $ETH | grep "bus-info:" | sed "s/^.*[[:space:]]//"` > > printf "%-12s %-15s : %-18s %-15s %-22s\n" "$BUS" "$ETH ($DRIVER)" "$LINK" "$SPEED" "$DUPLEX" > >done >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 39620
:
9163
|
9992
|
15025