TMSH Transactions via Plink
I am trying to automate the creation of some objects via TMSH using Powershell and Plink, I would also like to utilize transactions.
The commands I'm trying to execute are the following:
- create /cli transaction
- create /gtm pool TEST_DOMAIN_POOL members add {LTM1:TEST-VS-443 LTM2:TEST-VS-443} load-balancing-mode topology alternate-mode global-availability fallback-mode none
- create /gtm wideip test-domain.ilb.domain.local pools add {TEST_DOMAIN_POOL}
- submit /cli transaction
Interactively via Putty, this works great. It falls apart when I attempt to use Plink. I get the following error:
Batch mode transactions are only available in interactive mode
I have tried connecting to the appliance via 'advanced shell' and 'tmsh' console access. It just doesn't want to work.
Is there anyway I can pass it all on one line via Bash? Or is there some other way to utilize transactions that I'm unable to find?
Unfortunately I'm stuck on 11.3 for the moment, so I am unable to use the REST API; although I thought it was still TMSH on the backend, so shouldn't it be possible?