-
[Python] ping3 Module - divice ping checkSystem ManageMent 2019. 4. 26. 10:59
Homepage : https://github.com/kyan001/ping3
1. Install
pip install ping3
2. Example
from ping3 import ping, verbose_ping # Ping Check res = ping('192.168.1.99') # IP Or Domain print(res) ------------------------------------------------ 0.008645452999999997 # 4times ping check res = verbose_ping('192.168.1.99') print(res) ------------------------------------------------ ping '192.168.1.99' ... 5ms ping '192.168.1.99' ... 5ms ping '192.168.1.99' ... 4ms ping '192.168.1.99' ... 4ms # 10times ping check res = verbose_ping('192.168.1.99', count=10) print(res) ------------------------------------------------ ping '192.168.1.99' ... 3ms ping '192.168.1.99' ... 4ms ping '192.168.1.99' ... 4ms ping '192.168.1.99' ... 3ms ping '192.168.1.99' ... 4ms ping '192.168.1.99' ... 3ms ping '192.168.1.99' ... 4ms ping '192.168.1.99' ... 4ms ping '192.168.1.99' ... 3ms ping '192.168.1.99' ... 3ms
'System ManageMent' 카테고리의 다른 글
[Python] sqlite db를 이용한 서버와 스토리지 파일 용량 분석 (0) 2019.08.21 WUG (WhatsUp Gold) 평가판 체험 - 설치 (1) 2019.03.15 python, mariadb, Grafana를 이용한 URL 모니터링 (1) - 구축 (0) 2018.12.30 [Log-Analysis] Wowza Media Server Access Log (0) 2018.07.22 [Python] website basic monitoring usging requests module (웹 사이트 모니터링) (0) 2018.05.05