Forum Discussion
Brent_Blood_768
Historic F5 Account
I've also done this with a shell pipeline by feeding tmsh via stdin the desired password twice separated by a newline. It's a little kludgy, but it works. Basic formula would be:
echo -en "foo\nfoo\n" | tmsh modify auth password root
Brent_Blood_768
Oct 17, 2013Historic F5 Account
I'm not familiar with HPNA so I can't be much help there. I'll try though: why are you using "expect" rather than the simpler solution that I included before? If you setup ssh keys, you can connect to BIG-IP and run commands without passwords - and since the command that I listed is pretty simple "expect" isn't doing much for you.
The error about disk space is a bit troubling - I assume that's referring to the system hosting HPNA. Maybe it's not the cause of the expect failure, but I'd take care of that before moving on.