im not very clued up with telnet commands but i am looking to automate logins for a device we use in the field. we are having issues with Cmos batteries and every time the power goes out (6 times a day) we have to telnet into 2 devices then reset the dates on both of them.
im looking for a easy way to this like creating a .BAT file if possible.
usually like this
C:\Users\Administrator>Telnet 192.168.100.71
Debian GNU/Linux 3.0 quadras quadras login: root Password:desi
From here we type: date
then type: date -s "09 Jul 2022 10:55:00"
date gets changed and we type reboot.
Is there a way I can do this automatically. i appreciate any help given. TIA