Read my blog post about PTCL CLI.
ptcli is a bash CLI for PTCL routers. An intuitive PTCL-CLI to control PTCL routers via command line.
You can use
ptcli to perform following actions via command line
Open command line terminal (I prefer iTerm2) and run the following command.
sudo wget -qO ptcli https://git.io/vPmNx && sudo chmod +x ./ptcli && sudo install ./ptcli /usr/local/bin/ptcli
This command will perform the following actions:
PTCL-CLIand rename it to
ptcliinside /usr/local/bin/ folder.
️ Usage: ptcli
[ -c |--config ],
[ -h | help ]
[ -h | help ] Use help
[ -c | --config ]Use config data, if so configure the three variables 'host_address', 'username', and 'password
[ -r | --reboot ]Quick reboot, dependant on '--config' param."
Here's a complimentary GIF.
I am a command line junkie and it is too much work for me to go sign in and reboot the router or get the line parameters when I need to. So, I built this CLI and now with a bunch of aliases I am able to perform these actions within a single command.
I have built this CLI using Mac. It needs to be run on Bash or ZSH based shell.
Beta software! Use at your own risk.
[ 1 | reboot ]
[ 2 | sysinfo ]
[ 3 | uptime ]
[ 4 | adsl_info ]
[ 5 | adsl_snr ]
[ 6 | exit | q ]
MIT License. Copyrights
? Looking forward to the feedback and contribution from your end. That’s how we can make it something more worthwhile. Let’s collaborate at GitHub.
✔︎ Did you like PTCL CLI? It’d be great if you can share it on Twitter.