Forum Discussion
ChrisMutzel_151
Dec 07, 2015Altocumulus
Something like this should work (I am doing this on 11.6):
Download the policy from wherever you are hosting it
curl <..your policy location...> asm-policy-linux-high.xml
Load the policy from the file you downloaded
tmsh load asm policy file /home/admin/asm-policy-linux-high.xml
Create an LTM policy which we will use to attach the ASM policy
tmsh create ltm policy policy-over-tmsh strategy first-match
Add an asm rule to the ltm policy ruleset
tmsh modify ltm policy policy-over-tmsh controls add { asm }
Activate the asm policy
tmsh modify asm policy /Common/linux-high active
Attach the ASM policy via a rule in the LTM policy ruleset
tmsh modify ltm policy policy-over-tmsh rules add { associate-asm-policy { actions replace-all-with { 0 { asm request enable policy /Common/linux-high } } } }
Someone smarter than me can figure out how to collapse this into fewer tmsh commands.