This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# datapath flows by source IP address | |
cat sos_commands/openvswitch/ovs-dpctl_dump-flows_-m | gawk '{ match ($0, /ipv[46]\(src=[[:alnum:]:.]+,/, ip); print ip[0]} ' | sort | uniq -c | sort -k 1 -n -r |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
IMAGE="docker://cilium/startup-script" | |
print_mediatypes(){ | |
echo "Media types of manifest at $1" | |
info=$(sudo skopeo inspect --raw $1) | |
echo "Manifest MediaType $(echo $info | jq -r '.config.mediaType')" | |
echo "Layers:" | |
echo $info | jq -r '.layers[]| " Layer: \(.digest) MediaType = \(.mediaType)"' | |
} |