Skip to content

Instantly share code, notes, and snippets.

@akoidan
Created May 30, 2017 16:30
Show Gist options
  • Select an option

  • Save akoidan/e0712c32f9e0bbbe3c86e9bf27b80d80 to your computer and use it in GitHub Desktop.

Select an option

Save akoidan/e0712c32f9e0bbbe3c86e9bf27b80d80 to your computer and use it in GitHub Desktop.
atc
curl https://raw.githubusercontent.com/facebook/augmented-traffic-control/master/utils/dump_system_info.sh | bash -s - ap0 enp61s0
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 570 100 570 0 0 2069 0 --:--:-- --:--:-- --:--:-- 2065
######### uname -a #########
Linux msi 4.10.13-1-ARCH #1 SMP PREEMPT Thu Apr 27 12:15:09 CEST 2017 x86_64 GNU/Linux
######### cat /etc/os-release #########
NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
ID_LIKE=archlinux
ANSI_COLOR="0;36"
HOME_URL="https://www.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"
######### python -V #########
Python 3.6.1
######### pip freeze #########
alabaster==0.7.10
appdirs==1.4.3
atc-thrift==0.1.6
atcd==0.1.6
Babel==2.4.0
Brlapi==0.6.6
chardet==2.3.0
Cython==0.25.2
daemonize==2.4.7
decorator==4.0.11
Django==1.9.12
django-atc-api==0.1.6
django-atc-demo-ui==0.1.6
django-atc-profile-storage==0.1.6
django-bootstrap-themes==3.3.6
django-redis-sessions==0.5.6
django-sslserver==0.19
django-static-jquery==1.11.1
djangorestframework==3.6.3
docutils==0.13.1
enum34==1.1.6
httplib2==0.10.3
imagesize==0.7.1
isc==2.0
Jinja2==2.9.6
louis==3.0.0
MarkupSafe==1.0
mysqlclient==1.3.9
oauth2client==4.0.0
packaging==16.8
pyasn1==0.2.2
pyasn1-modules==0.0.8
Pygments==2.2.0
pygobject==3.24.1
pyotp==1.4.1
pyparsing==2.2.0
pyroute2==0.3.3
python-libtorrent==1.1.3
pytz==2017.2
pyxdg==0.25
ranger==1.8.1
redis==2.10.5
requests==2.13.0
rsa==3.4.2
selenium==3.0.2
simplejson==3.10.0
six==1.10.0
slip==0.6.4
slip.dbus==0.6.4
snowballstemmer==1.2.1
sparts==0.7.1
Sphinx==1.5.5
sphinx-rtd-theme==0.2.4
team==1.0
texas==0.5.2
thrift==0.10.0
tornado==4.4.2
tornado-redis==2.4.18
urllib3==1.21
websocket-client==0.40.0
######### ip r #########
default via 192.168.0.1 dev enp61s0 proto static metric 100
192.168.0.0/24 dev enp61s0 proto kernel scope link src 192.168.0.226 metric 100
192.168.12.0/24 dev ap0 proto kernel scope link src 192.168.12.1
######### iptables-save #########
Failed to list table names in /proc/net/ip_tables_names: Permission denied
######### ip r #########
default via 192.168.0.1 dev enp61s0 proto static metric 100
192.168.0.0/24 dev enp61s0 proto kernel scope link src 192.168.0.226 metric 100
192.168.12.0/24 dev ap0 proto kernel scope link src 192.168.12.1
######### ip a #########
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp61s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc htb state UP group default qlen 1000
inet 192.168.0.226/24 brd 192.168.0.255 scope global dynamic enp61s0
valid_lft 38254sec preferred_lft 38254sec
valid_lft forever preferred_lft forever
3: wlp62s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc htb state DOWN group default qlen 1000
4: ap0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc htb state UP group default qlen 1000
inet 192.168.12.1/24 brd 192.168.12.255 scope global ap0
valid_lft forever preferred_lft forever
valid_lft forever preferred_lft forever
######### tc qdisc show dev ap0 #########
qdisc htb 1: root refcnt 5 r2q 10 default 0 direct_packets_stat 52742 direct_qlen 1000
qdisc netem 8013: parent 1:2 limit 1000 delay 10.0ms
qdisc netem 8015: parent 1:3 limit 1000
qdisc netem 8021: parent 1:5 limit 1000
######### tc class show dev ap0 #########
class htb 1:2 root leaf 8013: prio 0 rate 100Kbit ceil 100Kbit burst 1600b cburst 1600b
class htb 1:3 root leaf 8015: prio 0 rate 4194Mbit ceil 4194Mbit burst 1048b cburst 1048b
class htb 1:5 root leaf 8021: prio 0 rate 1Kbit ceil 1Kbit burst 1600b cburst 1600b
######### tc filter show dev ap0 #########
filter parent 1: protocol ip pref 1 fw
filter parent 1: protocol ip pref 1 fw handle 0x2 classid 1:2 police 0x13 rate 100Kbit burst 12000b mtu 2Kb action drop overhead 0b
ref 1 bind 1
filter parent 1: protocol ip pref 1 fw handle 0x3 classid 1:3 police 0x15 rate 4194Mbit burst 11010b mtu 2Kb action drop overhead 0b
ref 1 bind 1
filter parent 1: protocol ip pref 1 fw handle 0x5 classid 1:5 police 0x21 rate 1Kbit burst 12000b mtu 2Kb action drop overhead 0b
ref 1 bind 1
######### tc qdisc show dev enp61s0 #########
qdisc htb 1: root refcnt 5 r2q 10 default 0 direct_packets_stat 70712 direct_qlen 1000
qdisc netem 8016: parent 1:3 limit 1000
qdisc netem 8022: parent 1:5 limit 1000
qdisc netem 8014: parent 1:2 limit 1000 delay 10.0ms
######### tc class show dev enp61s0 #########
class htb 1:2 root leaf 8014: prio 0 rate 100Kbit ceil 100Kbit burst 1600b cburst 1600b
class htb 1:3 root leaf 8016: prio 0 rate 4194Mbit ceil 4194Mbit burst 1048b cburst 1048b
class htb 1:5 root leaf 8022: prio 0 rate 1Kbit ceil 1Kbit burst 1600b cburst 1600b
######### tc filter show dev enp61s0 #########
filter parent 1: protocol ip pref 1 fw
filter parent 1: protocol ip pref 1 fw handle 0x2 classid 1:2 police 0x14 rate 100Kbit burst 12000b mtu 2Kb action drop overhead 0b
ref 1 bind 1
filter parent 1: protocol ip pref 1 fw handle 0x3 classid 1:3 police 0x16 rate 4194Mbit burst 11010b mtu 2Kb action drop overhead 0b
ref 1 bind 1
filter parent 1: protocol ip pref 1 fw handle 0x5 classid 1:5 police 0x22 rate 1Kbit burst 12000b mtu 2Kb action drop overhead 0b
ref 1 bind 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment