create monitor with ? in the send string via TMSH
I am trying to create a monitor via CLI on v17.1.1 tmos and can not get the ? to show up no mater what i try.
here is my command:
create ltm monitor https test_monitor { app-service /Common/test.app/test adaptive disabled defaults-from https send "HEAD /path1/path2/Access/information/script/healthcheck?wsdl HTTP/1.1\r\nHost: Close\r\n\r\n" recv "HTTP/1.(0|1) 200 OK" destination *:* interval 5 time-until-up 0 timeout 16 }
The important bit is the /healthcheck?wsdl. Because this part is within a larger pair of quotes already it will not let me escape with \. I also tried closing the first quote, putting the ? in its own quotes and then opening up the last part with a new quote like this ""?"" but nothing works.
If the ? is in the string, i get a prompt in the CLI to provide a missing value, and if i escape it, the \ shows up in the send string which doesn't work. And the double quotes just puts in doble quotes and the ? is gone.
Any ideas of how to do this?
BTW, if i just go back into the GUI and put the ? in after i have done the command all works fine and the pools green up.
? Completing prompt function conflicts of tmsh view, it can be used by switching to the bash view
run util bash
tmsh create ltm monitor https test_monitor { adaptive disabled defaults-from https send "HEAD /path1/path2/Access/information/script/healthcheck?wsdl HTTP/1.1\r\nHost: test.com\r\nConnection: Close\r\n\r\n" recv "HTTP/1.(0|1) 200 OK" destination *:* interval 5 time-until-up 0 timeout 16 }
exit