Official cross-platform collection
network
Ping, DNS lookup, and traceroute on every OS.
Install#
Install just this package:
lesysbot tools install lesysbot/lesysbot-packages-official/tools/networkOr take the whole Official packages collection at once:
lesysbot install lesysbot/lesysbot-packages-officialTools#
This package exposes 3 tools.
ping(host)#
shell commandtimeout 15s
Send three ICMP echo requests to a host and report the replies.
Runs
ping -c 3 {host} (Unix) · ping -n 3 {host} (Windows)Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
hostrequired | str | — | Hostname or IP address to ping. |
dns_lookup(domain)#
shell command
Resolve a domain name and report the answering nameserver.
Runs
nslookup {domain}Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
domainrequired | str | — | Domain name to resolve. |
traceroute(host)#
shell commandtimeout 120s
Trace the network path to a host, up to 15 hops.
Runs
traceroute -m 15 {host} (Unix) · tracert -h 15 -w 1000 {host} (Windows)Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
hostrequired | str | — | Hostname or IP address to trace. |
Notes#
- One package for every OS: each tool carries its per-OS command variants, and traceroute requires the binary this OS actually uses (traceroute on Unix, tracert on Windows).
- Each tool is gated independently on its own binary, so a machine without traceroute still gets working ping and dns_lookup.
Source#
Every package is a folder holding a README.md and a tool.py. Read this one on GitHub: lesysbot/lesysbot-packages-official/tools/network.
To write your own, see Writing tools.