SlideShare a Scribd company logo
Sup.py
ping like functionality for higher up the stack
chasemp@gmail.com
https://github.com/chasemp
PING: Since 1983
How often have we done this?
Host is up, what about my service:
The many ways to confirm locally
NMAP
(REDIS)
Sometimes we can confirm remotely
TELNET
(REDIS)
TCPING (HTTP)
HTTPING
(HTTP)
I like to use sup.py
* https://github.com/chasemp/sup.git
* all python
* modular
* allows non-dns host aliasing
* allows differentiation between local and
remote
* can notify of state change (on some
platforms)
squint for usage
like ping but for higher up the stack
usage: sup [-h] [-p] [-b] [-v] [-f] [-vv] [-c COUNT] [-t TIMEOUT]
[-i INTERVAL] [-m MODE]
site
ping up the stack
positional arguments:
site url or ip of site to manage
optional arguments:
-h, --help show this help message and exit
-p show popups
-b broadcast messages
-v verbose
-f flood as many requests as possible
-vv very verbose
-c COUNT set count
-t TIMEOUT main timeout
-i INTERVAL interval between polls
-m MODE Check type to use. Available: tcp http smtp ntp memcached icmp
redis
Checking a host/service
'Pinging' Redis:
sup redis.com -m redis
02.12.39 redis.com:6379 PONG 10.0 ms
02.12.41 redis.com:6379 PONG 0.0 ms
avg: 5.0 Max: 10.0 Min: 0.0
redis polled 2 times in 4.0 seconds
'Pinging' memcached:
sup.py mchost.com -m memcached
02.13.34 mchost.com:11211 ok 10.0 ms
02.13.36 mchost.com:11211 ok 0.0 ms
02.13.38 mchost.com:11211 ok 0.0 ms
TCP Ping (default port is 22):
sup host.com
02.10.29 host.com:22 ok 0.0 ms
02.10.31 host.com:22 ok 0.0 ms
02.10.33 host.com:22 ok 0.0 ms
02.10.35 host.com:22 ok 0.0 ms
TCP Ping non-default port:
sup host.com:80
02.10.29 host.com:80 ok 0.0 ms
02.10.31 host.com:80 ok 0.0 ms
02.10.33 host.com:80 ok 0.0 ms
02.10.35 host.com:80 ok 0.0 ms
sup can notify you of state changes.
Run sup tcping in background with 'broadcast'
enabled:
sup host.com -b &
[1] 25420
02.14.50 host.com:22 ok 0.0 ms
02.14.52 host.com:22 ok 0.0 ms
Broadcast Message from root@idle34
(/dev/pts/0) at 14:14 ...
02.14.54 host.com:22 timeout 0.0 ms
sup can also do a GUI popup if X is installed:
sup host.com -p &
90’s INI file: ✓
[default]
localnet = 192.,10. #all 192 and 10 addresses use local monitor
localmon = tcp #all local use this monitor
remotemon = http #all non-local use this monitor
[subs]
google = www.google.com
l = localhost
[tcp]
port = 80
sup l
05.06.58 localhost:22 failed 0.265 ms
05.06.59 localhost:22 failed 0.792 ms
sup google
05.21.27 www.google.com:80 200 OK 5.664 ms
05.21.29 www.google.com:80 200 OK 6.117 ms
flood & count
sup l -c 3
04.53.18 localhost:80 ok 0.397 ms
avg: 0.422666666667 Max: 0.463 Min: 0.397
tcp polled 3 times in 3.0 seconds
sup l -c 3 -f
04.53.55 localhost:80 ok 0.347 ms
avg: 0.260333333333 Max: 0.347 Min: 0.207
tcp polled 3 times in 0.0 seconds
sup l:80 -m http -f
04.51.34 localhost:80 200 OK 1.188 ms
...
avg: 0.777363855422 Max: 1.762 Min: 0.601
http polled 415 times in 0.0 seconds
Verbosity: -v and -vv
Protocols
NTP
sup pool.ntp.org -m ntp
03.57.40 pool.ntp.org:123 1380142660 0.49 ms
03.57.41 pool.ntp.org:123 1380142661 0.717 ms
03.57.43 pool.ntp.org:123 1380142663 0.614 ms
HTTP
sup l -m http
03.57.50 localhost:80 200 OK 1.171 ms
03.57.51 localhost:80 200 OK 1.177 ms
REDIS
sup redisbox -m redis
03.58.15 redisbox:6379 timeout 5.526 ms
03.58.18 redisbox:6379 PONG 3.589 ms
03.58.19 redisbox:6379 PONG 3.653 ms
03.58.20 redisbox:6379 PONG 3.8 ms
MEMCACHED
sup mcbox -m memcached
03.58.34 mcbox:11211 timeout 4.33 ms
03.58.36 mcbox:11211 ok 2.788 ms
03.58.37 mcbox:11211 ok 2.932 ms
ICMP
sudo sup l -m icmp
03.59.29 localhost 241 bytes - ttl=64 time=0.2 ms
0.788 ms
03.59.30 localhost 241 bytes - ttl=64 time=0.4 ms
0.566 ms
03.59.31 localhost 241 bytes - ttl=64 time=0.4 ms
0.629 ms
TCP
sudo sup l:80 -m tcp
03.59.44 localhost:80 ok 0.318 ms
03.59.45 localhost:80 ok 0.428 ms

More Related Content

DOCX
Basic command for linux
PDF
GoLang & GoatCore
PDF
Scaling FastAGI Applications with Go
PDF
Instalando rrd tool-no-centos-5-usando-yum
PPT
Dev8d 2011-pipe2 py
KEY
Ruby on the server
PDF
Picobgp - A simple deamon for routing advertising
PDF
Basic command for linux
GoLang & GoatCore
Scaling FastAGI Applications with Go
Instalando rrd tool-no-centos-5-usando-yum
Dev8d 2011-pipe2 py
Ruby on the server
Picobgp - A simple deamon for routing advertising

What's hot (20)

PDF
Apache Hadoop for System Administrators
PDF
DNS 101: Introducción a DNS en Español
PDF
3 rd animation
PDF
Coding in GO - GDG SL - NSBM
PDF
Org Beamer
PDF
Практический опыт профайлинга и оптимизации производительности Ruby-приложений
DOCX
Python
DOCX
serverstats
PDF
Parallel Computing Example with Raspberry Pi Cluster
PPT
PDF
Ansible, Simplicity, and the Zen of Python
PDF
PXE Network Booting The Raspberry Pi
PDF
multi-line record grep
PDF
Some Tricks in Using Terminal - KienDT
PDF
Pry at the Ruby Drink-up of Sophia, February 2012
TXT
Script
PDF
Intro to the command line
PPTX
Hebrew Windows Cluster 2012 in a one slide diagram
 
PDF
Low Overhead System Tracing with eBPF
PPTX
15 map reduce on azure
Apache Hadoop for System Administrators
DNS 101: Introducción a DNS en Español
3 rd animation
Coding in GO - GDG SL - NSBM
Org Beamer
Практический опыт профайлинга и оптимизации производительности Ruby-приложений
Python
serverstats
Parallel Computing Example with Raspberry Pi Cluster
Ansible, Simplicity, and the Zen of Python
PXE Network Booting The Raspberry Pi
multi-line record grep
Some Tricks in Using Terminal - KienDT
Pry at the Ruby Drink-up of Sophia, February 2012
Script
Intro to the command line
Hebrew Windows Cluster 2012 in a one slide diagram
 
Low Overhead System Tracing with eBPF
15 map reduce on azure
Ad

Similar to Sup intro (20)

PPTX
linux networking laboratory presentation .pptx
PPT
Linux Networking Commands
PPT
dokumen.tips_linux-networking-commands.ppt
PPT
Linux networking
PDF
Network commands
PPTX
Linux networking
RTF
Useful linux-commands
PPT
Networking session-4-final by aravind.R
PDF
Handy Networking Tools and How to Use Them
PPTX
5 - Networking in Red Hat
PPTX
5-Networking-Red-Hat-Commands-slides.pptx
PDF
Linuxnetworkingcommands
PDF
Chapter 3 footprinting
PDF
Linux network tools (Maarten Blomme)
PPT
Ad-Hoc Networking in Linux with Avahi
PDF
Linux 系統管理與安全:進階系統管理系統防駭與資訊安全
PPT
TCP troubleshooting-prnt.ppt
PDF
Linux Services and Networking, Systemd vs Cron.pdf
PDF
Linux Network commands
PPT
NW_Tools.ppt
linux networking laboratory presentation .pptx
Linux Networking Commands
dokumen.tips_linux-networking-commands.ppt
Linux networking
Network commands
Linux networking
Useful linux-commands
Networking session-4-final by aravind.R
Handy Networking Tools and How to Use Them
5 - Networking in Red Hat
5-Networking-Red-Hat-Commands-slides.pptx
Linuxnetworkingcommands
Chapter 3 footprinting
Linux network tools (Maarten Blomme)
Ad-Hoc Networking in Linux with Avahi
Linux 系統管理與安全:進階系統管理系統防駭與資訊安全
TCP troubleshooting-prnt.ppt
Linux Services and Networking, Systemd vs Cron.pdf
Linux Network commands
NW_Tools.ppt
Ad

Recently uploaded (20)

PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPT
Teaching material agriculture food technology
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Getting Started with Data Integration: FME Form 101
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Approach and Philosophy of On baking technology
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
cuic standard and advanced reporting.pdf
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Electronic commerce courselecture one. Pdf
PDF
Encapsulation theory and applications.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Empathic Computing: Creating Shared Understanding
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
“AI and Expert System Decision Support & Business Intelligence Systems”
Teaching material agriculture food technology
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Getting Started with Data Integration: FME Form 101
Assigned Numbers - 2025 - Bluetooth® Document
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Approach and Philosophy of On baking technology
Spectral efficient network and resource selection model in 5G networks
Unlocking AI with Model Context Protocol (MCP)
cuic standard and advanced reporting.pdf
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Reach Out and Touch Someone: Haptics and Empathic Computing
Electronic commerce courselecture one. Pdf
Encapsulation theory and applications.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Diabetes mellitus diagnosis method based random forest with bat algorithm
Empathic Computing: Creating Shared Understanding
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
SOPHOS-XG Firewall Administrator PPT.pptx

Sup intro

  • 1. Sup.py ping like functionality for higher up the stack chasemp@gmail.com https://github.com/chasemp
  • 2. PING: Since 1983 How often have we done this?
  • 3. Host is up, what about my service: The many ways to confirm locally
  • 4. NMAP (REDIS) Sometimes we can confirm remotely TELNET (REDIS) TCPING (HTTP) HTTPING (HTTP)
  • 5. I like to use sup.py * https://github.com/chasemp/sup.git * all python * modular * allows non-dns host aliasing * allows differentiation between local and remote * can notify of state change (on some platforms)
  • 6. squint for usage like ping but for higher up the stack usage: sup [-h] [-p] [-b] [-v] [-f] [-vv] [-c COUNT] [-t TIMEOUT] [-i INTERVAL] [-m MODE] site ping up the stack positional arguments: site url or ip of site to manage optional arguments: -h, --help show this help message and exit -p show popups -b broadcast messages -v verbose -f flood as many requests as possible -vv very verbose -c COUNT set count -t TIMEOUT main timeout -i INTERVAL interval between polls -m MODE Check type to use. Available: tcp http smtp ntp memcached icmp redis
  • 7. Checking a host/service 'Pinging' Redis: sup redis.com -m redis 02.12.39 redis.com:6379 PONG 10.0 ms 02.12.41 redis.com:6379 PONG 0.0 ms avg: 5.0 Max: 10.0 Min: 0.0 redis polled 2 times in 4.0 seconds 'Pinging' memcached: sup.py mchost.com -m memcached 02.13.34 mchost.com:11211 ok 10.0 ms 02.13.36 mchost.com:11211 ok 0.0 ms 02.13.38 mchost.com:11211 ok 0.0 ms TCP Ping (default port is 22): sup host.com 02.10.29 host.com:22 ok 0.0 ms 02.10.31 host.com:22 ok 0.0 ms 02.10.33 host.com:22 ok 0.0 ms 02.10.35 host.com:22 ok 0.0 ms TCP Ping non-default port: sup host.com:80 02.10.29 host.com:80 ok 0.0 ms 02.10.31 host.com:80 ok 0.0 ms 02.10.33 host.com:80 ok 0.0 ms 02.10.35 host.com:80 ok 0.0 ms
  • 8. sup can notify you of state changes. Run sup tcping in background with 'broadcast' enabled: sup host.com -b & [1] 25420 02.14.50 host.com:22 ok 0.0 ms 02.14.52 host.com:22 ok 0.0 ms Broadcast Message from root@idle34 (/dev/pts/0) at 14:14 ... 02.14.54 host.com:22 timeout 0.0 ms sup can also do a GUI popup if X is installed: sup host.com -p &
  • 9. 90’s INI file: ✓ [default] localnet = 192.,10. #all 192 and 10 addresses use local monitor localmon = tcp #all local use this monitor remotemon = http #all non-local use this monitor [subs] google = www.google.com l = localhost [tcp] port = 80 sup l 05.06.58 localhost:22 failed 0.265 ms 05.06.59 localhost:22 failed 0.792 ms sup google 05.21.27 www.google.com:80 200 OK 5.664 ms 05.21.29 www.google.com:80 200 OK 6.117 ms
  • 10. flood & count sup l -c 3 04.53.18 localhost:80 ok 0.397 ms avg: 0.422666666667 Max: 0.463 Min: 0.397 tcp polled 3 times in 3.0 seconds sup l -c 3 -f 04.53.55 localhost:80 ok 0.347 ms avg: 0.260333333333 Max: 0.347 Min: 0.207 tcp polled 3 times in 0.0 seconds sup l:80 -m http -f 04.51.34 localhost:80 200 OK 1.188 ms ... avg: 0.777363855422 Max: 1.762 Min: 0.601 http polled 415 times in 0.0 seconds
  • 12. Protocols NTP sup pool.ntp.org -m ntp 03.57.40 pool.ntp.org:123 1380142660 0.49 ms 03.57.41 pool.ntp.org:123 1380142661 0.717 ms 03.57.43 pool.ntp.org:123 1380142663 0.614 ms HTTP sup l -m http 03.57.50 localhost:80 200 OK 1.171 ms 03.57.51 localhost:80 200 OK 1.177 ms REDIS sup redisbox -m redis 03.58.15 redisbox:6379 timeout 5.526 ms 03.58.18 redisbox:6379 PONG 3.589 ms 03.58.19 redisbox:6379 PONG 3.653 ms 03.58.20 redisbox:6379 PONG 3.8 ms MEMCACHED sup mcbox -m memcached 03.58.34 mcbox:11211 timeout 4.33 ms 03.58.36 mcbox:11211 ok 2.788 ms 03.58.37 mcbox:11211 ok 2.932 ms ICMP sudo sup l -m icmp 03.59.29 localhost 241 bytes - ttl=64 time=0.2 ms 0.788 ms 03.59.30 localhost 241 bytes - ttl=64 time=0.4 ms 0.566 ms 03.59.31 localhost 241 bytes - ttl=64 time=0.4 ms 0.629 ms TCP sudo sup l:80 -m tcp 03.59.44 localhost:80 ok 0.318 ms 03.59.45 localhost:80 ok 0.428 ms