6f6cbfba5bb0f6f0ddd6d78afbb68a779c33d674
Sagemcom Modem Remote Client
Installation
git clone https://github.com/up-n-atom/sagemcom-modem-scripts.git
cd sagemcom-modem-scripts
git checkout cli
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
deactivate
Usage
Usage: xmo-remote-client.py [OPTIONS] COMMAND1 [ARGS]... [COMMAND2
[ARGS]...]...
Options:
-H, --host TEXT Hostname or host IP
-u, --username TEXT Administrator username
-p, --password TEXT Administrator password [required]
-a, --authentication-method [MD5|SHA512]
Authentication method
--help Show this message and exit.
Commands:
disable-wifi-radios
enable-advanced-dmz
get-dns
get-value
get-wan-mode
set-dns-servers
set-value
Bell Home/Giga Hub Examples
Note
The Home Hub 4000 uses
MD5authentication, which can be enabled using either-aor--authentication-methodoption, eg.-a MD5
cd sagemcom-modem-scripts
source .venv/bin/activate
# List available commands
python3 xmo-remote-client.py --help
# Dump Device tree
python3 xmo-remote-client.py get-value --path "Device"
# Get WAN mode
python3 xmo-remote-client.py get-wan-mode
# Get DNS settings
python3 xmo-remote-client.py get-dns
# Enable local DNS server ie. Pi-hole
python3 xmo-remote-client.py set-dns-servers -s 192.168.2.254 192.168.2.254
# Disable 5G and 2.4G radios
python3 xmo-remote-client.py disable-wifi-radios -r RADIO5G -r RADIO2G4
# Disable radio w/ radio prompt
python3 xmo-remote-client.py disable-wifi-radios
# Enable advanced DMZ w/ MAC address prompt
python3 xmo-remote-client.py enable-advanced-dmz
# Disable advanced DMZ
python3 xmo-remote-client.py set-value --path "Device/Services/BellNetworkCfg/AdvancedDMZ/Enable" --value False
deactivate
Description
A set of useful scripts for use with Sagemcom modems, utilizing the sagemcom-api python library
Languages
Python
100%