Forum Discussion

Ajmal_2608's avatar
Ajmal_2608
Icon for Nimbostratus rankNimbostratus
Feb 26, 2013

TMSH multilie config syntax

Hey Guys,

 

Can someone please let me know that what is the equivalent in tmsh for this bigpipe multiple-line config?

 

For instance how will I make use of tmsh equivalent to this bigpipe code, what delimiters can be used?

 

I can do this in a single line but I am interested in the option for multiple lined config, please advise.

 

 

b pool test.com_pool '{

 

lb method member observed

 

monitor all http

 

members {

 

10.10.10.186:http {}

 

10.10.10.187:http {}

 

10.10.10.188:http {}

 

10.10.10.189:http {}

 

}

 

}'

 

 

-Ajmal

 

9 Replies

  • what about this one?

    root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) list ltm pool test.com_pool
    01020036:3: The requested pool (/Common/test.com_pool) was not found.
    
    root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) load sys config from-terminal merge
    Enter configuration. Press CTRL-D to submit or CTRL-C to cancel.
    ltm pool test.com_pool {
        load-balancing-mode observed-member
        members {
            10.10.10.186:80
            10.10.10.187:80
            10.10.10.188:80
            10.10.10.189:80
        }
        monitor http
    }
    Loading configuration...
    root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) list ltm pool test.com_pool
    ltm pool test.com_pool {
        load-balancing-mode observed-member
        members {
            10.10.10.186:80 {
                address 10.10.10.186
                session monitor-enabled
                state checking
            }
            10.10.10.187:80 {
                address 10.10.10.187
                session monitor-enabled
                state checking
            }
            10.10.10.188:80 {
                address 10.10.10.188
                session monitor-enabled
                state checking
            }
            10.10.10.189:80 {
                address 10.10.10.189
                session monitor-enabled
                state checking
            }
        }
        monitor http
    }
    
  • Thanks Nitass

     

    This looks good and exactly what I was looking at. But does it need 11.x and above only or will work on 10.x tmsh mode ?

     

     

    For me on 10.2 in tmsh it gives errror:

     

     

     

     

    admin@F5-LTM(Active)(tmos) load sys config from-terminal merge

     

    Syntax Error: "from-terminal" unknown property

     

    admin@F5-LTM(Active)(tmos)

     

     

     

     

  • But does it need 11.x and above only or will work on 10.x tmsh mode ?in 10.x, i use b merge.

     

     

    BIG-IP and Merge File Configuration Changes by Michael

     

    https://devcentral.f5.com/tech-tips/articles/big-ip-and-merge-file-configuration-changes
    • Albert_59847's avatar
      Albert_59847
      Icon for Nimbostratus rankNimbostratus
      Hi nitass, I am planning to upgrade my ltm 8900 from 10.2.1 to 11.6.x by using merge as you have mentioned in your post is possible? What if I take the backup and format the box and install directly the 11.6 and load the previous config from 10.2.1 and merge to current OS it will work? I am newbie at f5 and having downtime is very critical any suggestion on my plans? Thanks
    • nitass's avatar
      nitass
      Icon for Employee rankEmployee
      when upgrading (from 10.x to 11.x) or loading (10.x ucs to 11.x), bigip will convert 10.x configuration to 11.x configuration for you. i do not think you need to use merge command. if downtime is critical, you may test it in test unit first. so, if there is any error in converting, you will see it before.
  • But does it need 11.x and above only or will work on 10.x tmsh mode ?in 10.x, i use b merge.

     

     

    BIG-IP and Merge File Configuration Changes by Michael

     

    https://devcentral.f5.com/tech-tips/articles/big-ip-and-merge-file-configuration-changes
    • Albert_59847's avatar
      Albert_59847
      Icon for Nimbostratus rankNimbostratus
      Hi nitass, I am planning to upgrade my ltm 8900 from 10.2.1 to 11.6.x by using merge as you have mentioned in your post is possible? What if I take the backup and format the box and install directly the 11.6 and load the previous config from 10.2.1 and merge to current OS it will work? I am newbie at f5 and having downtime is very critical any suggestion on my plans? Thanks
    • nitass_89166's avatar
      nitass_89166
      Icon for Noctilucent rankNoctilucent
      when upgrading (from 10.x to 11.x) or loading (10.x ucs to 11.x), bigip will convert 10.x configuration to 11.x configuration for you. i do not think you need to use merge command. if downtime is critical, you may test it in test unit first. so, if there is any error in converting, you will see it before.