Forum Discussion
APM automation with TMSH script
Hello CJ,
Thank you for this very useful guide!!
I'm trying to do almost the same through a TCL script for various types of resources. The challenge is to correctly capture all the existing settings before adding a new resource.
With your proposal, however, I'm getting a parsing error:
Syntax Error: "{" unexpected argument
I believe there is something missing somewhere but I cannot figure where this is coming from...
Below is a sample of the generated $final command:
modify apm policy agent resource-assign AP_TEST-resources_assignment_act_full_resource_assign_1_ag rules { { expression 'expr { [mcget {session.custom.resources}] contains "SecondApp" }' portal-access-resources add { /Common/SecondApp } } { acls none app-tunnel-resources none bwc-dynamic-policy none bwc-static-policies none expression "expr { [mcget {session.custom.resources}] contains \"MyWeblink\" }" network-access-resources none pool none portal-access-resources none remote-desktop-resources none saml-resources none webtop none webtop-links '{ /Common/web_site }' } }
I'm still scratching my head but if you have any idea...
Thanks a lot again!!! Jérôme
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
