EDPR
1
If I want to change the guest password I do
ip hotspot user set guest password=hello
but is it possible to use the contents of a file as parameter?
/guest_password.txt containing
hello
and use something like
ip hotspot user set guest password={guest_password.txt}
You can get the file contents into a variable, and use the variable.
e.g.
:local guestPassword [/file get guest_password.txt contents];
/ip hotspot user set guest password=$guestPassword;
Or if you insist on omitting the variable:
/ip hotspot user set guest password=[/file get guest_password.txt contents];