Forum Discussion
Update admin partition
Trying to update my script from v10 to v11 and have trouble with updating admin partition:
In v10, i used the following instructions to select the admin partition I wanted to create some object where the variable $part content the name of my partition:
tmsh::modify cli admin-partitions all-partitions $part
In v11, i try to do it with the following instructions, but I have an error "admin-partitions may only be specified in a config file"
tmsh::modify cli admin-partitions { update-partition $part }
I checked the chapter cli/admin-partitions of the documentation and posts on devcentral but didn't find any solution. Does anybody have an idea?
Thanks!
8 Replies
- In V11 partitions are present, but not quite as visible as in prior versions.
- Hi Mark,
- It may be worth noting here that when you are using a TMSH script to create or modify in v11 you can reference them thusly:
Can I execute a comand/action on all partitions at the same time? Is there an "ALL" option? I need to remove an irules across 600 partitions and can't find a good way to do it. I'm thinking in remove the actions of the irule to simulate a near zero activity but I would like a more elegant way to do it. (meaning remove the irule from each VS). Thanks
You could use a TMSH script to retrieve a list of partitions, set irulename set tmsh::get_config partitions foreach $partitions { cd $partition tmsh::delete $irulename }
You could use a TMSH script to retrieve a list of partitions, set irulename set tmsh::get_config partitions foreach $partitions { cd $partition tmsh::delete $irulename }
- Thanks Brent, I've been working over the following Jason's script to make it "partitions aware" using the commands you recommended. https://devcentral.f5.com/s/articles/rapid-irule-removal-via-tmsh-script Unfortunately there's somthing still missing in the code, but Jason is helping me to troubleshoot the issue. Hope to have it ready later today.
- Hate to revive an old thread... but did you get the script working across partitions? Trying to deploy an iRule for the new Bash shell exploit.
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