检查系统状态,如:指定的IP地址是否存在,指定的端口是否被监听,指定的进程是否存活。
Project description
checkalive
检查系统状态,如:
- 指定的IP地址是否存在。
- 指定的端口是否被监听。
- 指定的进程是否存活。
安装
pip install checkalive
安装的可执行程序
- checkalive
- checkip
- checkport
- checkproc
程序帮忙信息
- checkalive
各种检查命令的包装程序。通过子命令指定特别的检查类型。
E:\checkalive>checkalive --help
Usage: checkalive [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
checkip Search for the given ip.
checkport Search for the given listening port.
checkproc Search for the given process.
- checkip
检查指定的IP地址是否存在。
E:\checkalive>checkip --help
Usage: checkip [OPTIONS] IP
Search for the given ip.
Options:
-i, --nic TEXT Search the given network interfaces, can use multiple times.
Default to All.
--help Show this message and exit.
- checkport
检查指定的端口是否被监听。
E:\checkalive>checkport --help
Usage: checkport [OPTIONS] PORT
Search for the given listening port.
Options:
-i, --nic TEXT
-p, --proto TEXT One of all, tcp, tcp4, udp, udp4, inet, inet4, inet6,
tcp6, udp6. Default to tcp.
--help Show this message and exit.
- checkproc
检查指定的进程是否存活。
E:\checkalive>checkproc --help
Usage: checkproc [OPTIONS]
Search for the process. One of pid, pidfile, command must be given.
Options:
-i, --pid INTEGER Search by pid.
-f, --pidfile TEXT Search by pid written in pidfile.
-c, --command TEXT Search by command pattern.
--help Show this message and exit.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
checkalive-0.1.8.tar.gz
(4.5 kB
view details)
Built Distribution
File details
Details for the file checkalive-0.1.8.tar.gz
.
File metadata
- Download URL: checkalive-0.1.8.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdc34cf2bcd514abfba10bdb4afaa6c8466bfc71ac4aa8752536f3da1b42eba7 |
|
MD5 | fe162491a9d2e8b883651c71436bda4c |
|
BLAKE2b-256 | 47a67bc7bda957e63494fb2ecf41a81dec64c8dcb68e49431ebe5234794d4642 |
File details
Details for the file checkalive-0.1.8-py3-none-any.whl
.
File metadata
- Download URL: checkalive-0.1.8-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 945e9b1fdf11836e7f0429b19383bd4a31798a03b7c897b2071a8720eed22ad7 |
|
MD5 | 0e67665745dae05af2fa8d6f6d4ae719 |
|
BLAKE2b-256 | c14f624a98d66be56b4b258cf5d5c451c79c34a4ea2e72546f55f4ef9de2d320 |