Forum Discussion
Command Line Question
Can someone tell me what show commands to use to view the context (partitions) that are on the LB and the command on how to switch to a different context?
4 Replies
- Vijay_E
Cirrus
Have you checked these 2 links:
https://support.f5.com/kb/en-us/solutions/public/13000/800/sol13895.html
https://devcentral.f5.com/questions/tmsh-equivalent-of-b-shell-partition-command
- Joel_Newton
Cirrus
Doing a simple ls should show you the names of all non-standard partitions on the device (i.e. other than 'Common'): ls /config/partitions
there is probably a nicer way, but if you do cd / first and then cd
it will show you the partitions[tab]name@(bigip-01)(cfg-sync Standalone)(Active)(/Common)(tmos) cd / name@(bigip-01)(cfg-sync Standalone)(Active)(/)(tmos) cd Folders: Common/ acc/ prd/- zeiss_63263Historic F5 Account
Another way to view the partitions below. I believe the "cd" command as indicated earlier is what you're looking for when working in other Partitions.
(tmos) create sys folder /New-Partition (tmos) list sys folder /New-Partition sys folder /New-Partition { device-group none inherited-devicegroup true inherited-traffic-group true traffic-group traffic-group-1 } (tmos) list sys folder recursive / sys folder / { device-group none inherited-devicegroup false inherited-traffic-group false traffic-group traffic-group-1 } sys folder /Common { device-group none inherited-devicegroup true inherited-traffic-group true traffic-group traffic-group-1 } sys folder /New-Partition { device-group none inherited-devicegroup true inherited-traffic-group true traffic-group traffic-group-1 }You can work from /Common on objects in another pool, here's an example:
(/Common)(tmos) cd ../New-Partition/ (/New-Partition)(tmos) create ltm pool New-Pool members add { 10.1.1.1:80 } (/New-Partition)(tmos) cd /Common/ (/Common)(tmos) list ltm pool /New-Partition/New-Pool ltm pool /New-Partition/New-Pool { members { /New-Partition/10.1.1.1:http { address 10.1.1.1 } } partition New-Partition }Tab completion works in that last command, which helps you more easily find the object's path from /.
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