Hi, I am trying to figure out how to write a script to convert the following below from
!
probe blah http
request method head url /blah/blah.html
expect status 200
interval 20
retries 2
failed 60
port 80
to
add lb monitor <blah> HTTP -url </blah/blah.html> -interval <20> -port <80> -retries <2>
I need to be able to extract part of what i want from the first block and use them for my syntax as described above. how do you i start about in the logic. thanks!
!
probe blah http
request method head url /blah/blah.html
expect status 200
interval 20
retries 2
failed 60
port 80
to
add lb monitor <blah> HTTP -url </blah/blah.html> -interval <20> -port <80> -retries <2>
I need to be able to extract part of what i want from the first block and use them for my syntax as described above. how do you i start about in the logic. thanks!