Layer python3_misc¶
Overview¶
The layer1_python3_misc
layer includes Python3 misc packages and utilities.
Metadata¶
Layer Home¶
/opt/metwork-mfext-0.9/opt/python3_misc
Label¶
python3_misc@mfext
Package¶
metwork-mfext-minimal
Dependencies¶
misc@mfext
python3@mfext
Utilities¶
get_ip_for_hostname¶
usage: get_ip_for_hostname [-h] [hostname]
returns the IP address of the given HOSTNAME (current real IP if no hostname
is given)
positional arguments:
hostname hostname to resolve as ip (can be empty)
optional arguments:
-h, --help show this help message and exit
get_simple_hostname¶
usage: get_simple_hostname [-h]
returns the 'simple' hostname (without network domain)
optional arguments:
-h, --help show this help message and exit
get_full_hostname¶
usage: get_full_hostname [-h]
returns the 'full' hostname (with network domain)
optional arguments:
-h, --help show this help message and exit
get_real_ip¶
usage: get_real_ip [-h]
returns the 'real' ip (not 127.0.0.1)
optional arguments:
-h, --help show this help message and exit
ping_tcp_port¶
usage: ping_tcp_port [-h] [--timeout TIMEOUT] [--silent] host port
test if a tcp host/port is reachable, open and listened
positional arguments:
host hostname/ip to test
port tcp port to test
optional arguments:
-h, --help show this help message and exit
--timeout TIMEOUT timeout (in seconds)
--silent if set, nothing is sent on stdout
recursive_kill.py¶
usage: recursive_kill.py [-h] pid
recursively kill (SIGKILL) a whole process tree
positional arguments:
pid root process pid (to kill)
optional arguments:
-h, --help show this help message and exit