Forum Discussion
unable insert and run cli script to tmos
I've looked into this a little more.
iRule code for procedure proc add_totp_key , after being passed the parameters I highlighted in my last message, runs a shell command at line #5 .
This will be the add_totp_key script you created with tmsh edit cli script . You can see it passes three parameters: username, key, and datagroup. You can see in my last message what the supposed value of those variables is. It is important that you follow this order when you pass the parameters to the command.
I think you should be able to test cli script by running it as written:
run cli script add_totp_key testuser testkey testgroup
See my test below: i had an empty DG that was populated with testuser:testkey values after running command with variables.
Regards
CA
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