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

Install ethtool #1261

Merged
merged 2 commits into from
Apr 10, 2023
Merged
Show file tree
Hide file tree
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
10 changes: 9 additions & 1 deletion log-collector-script/linux/eks-log-collector.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export LANG="C"
export LC_ALL="C"

# Global options
readonly PROGRAM_VERSION="0.7.4"
readonly PROGRAM_VERSION="0.7.5"
readonly PROGRAM_SOURCE="https://github.com/awslabs/amazon-eks-ami/blob/master/log-collector-script/"
readonly PROGRAM_NAME="$(basename "$0" .sh)"
readonly PROGRAM_DIR="/opt/log-collector"
Expand Down Expand Up @@ -526,6 +526,14 @@ get_networking_info() {
fi

cp /etc/resolv.conf "${COLLECT_DIR}"/networking/resolv.conf

# collect ethtool -S for all interfaces
INTERFACES=$(ip -o a | awk '{print $2}' | sort -n | uniq)
for ifc in ${INTERFACES}; do
echo "Interface ${ifc}" >> "${COLLECT_DIR}"/networking/ethtool.txt
dims marked this conversation as resolved.
Show resolved Hide resolved
ethtool -S ${ifc} >> "${COLLECT_DIR}"/networking/ethtool.txt 2>&1
echo -e "\n" >> "${COLLECT_DIR}"/networking/ethtool.txt
done
ok
}

Expand Down
1 change: 1 addition & 0 deletions scripts/install-worker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ sudo yum install -y \
conntrack \
curl \
ec2-instance-connect \
ethtool \
ipvsadm \
jq \
nfs-utils \
Expand Down