Forum Discussion
Can somebody give me an advise on how to change admin/root password in an automatic NON-INTERACTIVE way?
Can somebody give me an advise on how to change admin/root password in an automatic NON-INTERACTIVE way?
like the below command... tmsh modify auth user admin password
need to find the command for multiple versions.
thanks in advance
6 Replies
- What_Lies_Bene1
Cirrostratus
I've no experience with it but perhaps this could be done with iControl?
Take a look at the Management.UserManagement interface in iControl.
https://devcentral.f5.com/wiki/iControl.Management__UserManagement.ashx
You could build a script with Perl/Powershell/Python or compile an app with Java/.Net/etc.
-Joe
- Brent_Blood_768Historic 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
- Mareeswaran_133
Nimbostratus
Hi Brent... Even i developed a EXPECT script, and i'm feeding through HPNA. getting an error like Details: Cannot run program "sh" (in directory "/apps/rendition/server/ext/expect"): error=12, Not enough space can you please help me to overcome this error - Brent_Blood_768Historic F5 AccountI'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.
- Mareeswaran_133
Nimbostratus
thank you all for your suggestions..
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
