Hi everyone,
I wanted to create a script but I can't say I'm very successful.
What I want to do is access the modem via the command line and change some settings.
If possible, I want to get the output of the process and show it on my Rainmeter skin.
I do it manually from the cmd code line as follows:I couldn't do it automatically.
Also, we need to add 3 seconds to wait for the response time for each line.
I want to capture the "ds_fast_rate:" and "us_fast_rate:" values in the output of the process and show them on my Rainmeter skin.
Sample output:
For script i it can be any of Telnet/SSH/Python/Powershell.
Thanks, regards
I wanted to create a script but I can't say I'm very successful.
What I want to do is access the modem via the command line and change some settings.
If possible, I want to get the output of the process and show it on my Rainmeter skin.
I do it manually from the cmd code line as follows:
Code:
telnet 192.168.2.1delay 3000 ms (I don't know if the code is correct)admindelay 3000 ms (I don't know if the code is correct)"PASSWORD"delay 3000 ms (I don't know if the code is correct)show interface dsl0delay 3000 ms (I don't know if the code is correct)
Also, we need to add 3 seconds to wait for the response time for each line.
I want to capture the "ds_fast_rate:" and "us_fast_rate:" values in the output of the process and show them on my Rainmeter skin.
Sample output:
Code:
(config)> show interface dsl0 id: Dsl0 index: 0 interface-name: DSL type: Dsl description: TurkNet (VDSL & ADSL) traits: Dsl traits: Mac traits: Ethernet traits: Ip traits: Ip6 traits: Supplicant traits: EthernetIp traits: EnDsl link: up connected: yes state: up mtu: 1500 tx-queue-length: 1000 global: no security-level: public usedby: Dsl0/Vlan35 usedby: Dsl0/Vlan35/MapT0 usedby: PPPoE0 usedby: PPPoE0/MapT0 usedby: Dsl0/Vlan55 ipv6: addresses: address: ************************ prefix-length: 64 proto: KERNEL valid-lifetime: infinite mac: ******************* auth-type: none opmode: VDSL2 CPE standard: ITU G.993.2 (VDSL2) line: showtime profile: 17a no-carrier: 0 hw: T14.F7_0.0 fw: 5.12.23.8_B_A60901 driver: 1.0.54 ds_intd_rate: 0 kbps ds_fast_rate: 102398 kbps us_intd_rate: 0 kbps us_fast_rate: 20477 kbps ds_capacity: 100% ds_noise: 0.1 dB ds_power: 14.2 dBm ds_atten: 8.2 dB us_capacity: 100% us_noise: 16.2 dB us_power: 9.5 dBm us_atten: 0.0 dB near_itu_id: ******************* far_itu_id: ******************* us_attain: 32834 ds_attain: 119835 summary: layer: conf: running link: running ipv4: disabled ipv6: disabled ctrl: running
For script i it can be any of Telnet/SSH/Python/Powershell.
Thanks, regards
Statistics: Posted by tass_co — February 11th, 2025, 1:37 pm — Replies 4 — Views 91