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?

Have you checked these 2 links:

https://devcentral.f5.com/questions/tmsh-equivalent-of-b-shell-partition-command

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

[tab]

it will show you the partitions

name@(bigip-01)(cfg-sync Standalone)(Active)(/Common)(tmos) cd /
name@(bigip-01)(cfg-sync Standalone)(Active)(/)(tmos) cd
Folders:
  Common/   acc/      prd/

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 /.