Skip to content

Commit

Permalink
Add ethtool (#1261)
Browse files Browse the repository at this point in the history
  • Loading branch information
tzneal authored Apr 10, 2023
1 parent 1efc3d6 commit 9456c6a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
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
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

0 comments on commit 9456c6a

Please sign in to comment.