Forum Discussion

jlarger's avatar
jlarger
Icon for Cirrus rankCirrus
May 02, 2019

How do I reference an administrative partition from bash?

We recently deployed administrative partitions in several guests for the first time. I know, I know. It wasn't my decision!

 

So I used to be able to collect information like this:

 

tmsh -q show ltm virtual > list.txt

 

I want to be able to do the same thing from bash per administrative partition.

 

  • nathe's avatar
    nathe
    Icon for Cirrocumulus rankCirrocumulus

    Jlarger,

     

    Each administration partition will have its own folder, the default is simply Common (as you may know already).

     

    To run a query and include all administration partitions I believe you add the "recursive" switch at the end (before the output to file).

     

    See if this works.

     

    N

     

  • Do this ->

    For a single partition:

    tmsh -q -c "cd / ; list ltm virtual" > list.txt
    

    For all partitions:

    tmsh -q -c "cd / ; list ltm virtual recursive" > list.txt
    

    KR, Dario.