[rancid] anyway to escape prevent expect interpretation of commands sent to clogin

danielc at vmware.com danielc at vmware.com
Thu Oct 20 04:30:37 UTC 2011


I would like to bulk build change some locally store hashed passwords. Unfortunately the hashed passwords contain '$' which is causing the clogin spawning of expect to crash. 

example of the execution: 

vyalogin -x commandsfile some-vyatta-router 

commandsfile has the following: 
configure 
set system login user ppark authentication encrypted-password '$1$3MvsA/KO$mpbdAwnlTZEcXXT.sWXqa10' 
set system login user ppark level admin 
show system login 
commit 
save 
exit 

The $1$3 are causing problem in either the clogin or expect. Is there a way to escape those character? 

Thanks, 
Daniel Chen 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20111019/fc36ed71/attachment.html>


More information about the Rancid-discuss mailing list