Forum Discussion

RACQ_74493's avatar
Feb 28, 2011

Funny behaviour creating monitor in tmsh

Hello,

 

 

I was trying to create a bunch of monitors from the tmsh and I am getting odd behaviour.

 

When I paste the line it gets halfway through pasting it and give an syntax error (Syntax Error: double quotes are not balanced) then it (the system) pastes the line in again and it works!!

 

 

I'm trying to paste the following.

 

create https et_phone_home defaults-from https recv "ALL OK" send "GET /et/spielberg/health/?app=contact-us\r\n" interval 20 timeout 61

 

 

Hardware is a 1600 running 10.20 build 1755.1. I have logged a case with F5, just wondering if anyone might have seen this before.

 

 

It's like it doesn't like the /? inside the quotes.

 

 

Thanks

 

David.

3 Replies

  • Hi David,

     

     

    I'm not sure what's expected for this, but if you escape the ? with a back slash it seems to create the monitor successfully:

     

     

    (tmos.ltm.monitor) create https et_phone_home defaults-from https recv "ALL OK" send "GET /et/spielberg/health/\?app=contact-us\r\n\r\n" interval 20 timeout 61

     

     

    (tmos.ltm.monitor) list https et_phone_home

     

    ltm monitor https et_phone_home {

     

    cipherlist "DEFAULT:+SHA:+3DES:+kEDH"

     

    compatibility "enabled"

     

    defaults-from https

     

    interval 20

     

    recv "ALL OK"

     

    send "GET /et/spielberg/health/?app=contact-us\r\n\r\n"

     

    time-until-up 0

     

    timeout 61

     

    }

     

     

    Also note that you should add a second \r\n to the end of the send string:

     

     

    sol10655: Change in Behavior: CR/LF characters appended to the HTTP monitor Send string

     

    http://support.f5.com/kb/en-us/solutions/public/10000/600/sol10655.html

     

     

    Aaron
  • Mark_Crosland_2's avatar
    Mark_Crosland_2
    Historic F5 Account
    "?" is a special character in tmsh. It provides context sensitive help based on where you are in the command. To provide csh tmsh parses everything up to the "?", then displays what is valid to enter next. So, you need to escape the "?" if it part of a string that is part of your configuration.