question

jus4kikz avatar image
jus4kikz asked jus4kikz posted

How does some one call a procedure from a global rule?

Hello,

 

I am trying to make a global rule for my ssh session such that if it ever finds the following:

 

...

(blank lines)

...

 

hit enter to continue, session has ended

...

(some more blank lines)

...

 

(ends with a blank line)

 

which occurs after a vty time out from a cisco ios device after being idle for a set amount of time.... I just want it to hit enter automatically so it finds the prompt again...


I found that I can create a rule in the global settings that will grep for this and call a procedure of my choice.... which is fine... in a round about way, to send a "\r" I'll just make a procedure do that, and thats it...

 ssh_global_rule_attempt_call_proc.jpg

but,  it doesnt seem to have the nice "..." button to locate a procedure... so I dont know how should I specify the path to the procedure that I want?  Is it as simple as figuring the path call and inserting it in there?

 

thanks

 

 

iTestfeature request
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
KumarS avatar image
KumarS answered KumarS posted
There is no help for building the name of the proc and arguments in that place - but the syntax is exactly same. What you can do is build the call statement in your testcase and the copy paste the text in the global rules page.
1 comment
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

jus4kikz avatar image jus4kikz commented ·

ok, yea, I was being lazy I suppose... maybe this is a good request for a feature in the future?  Seems like it should be in there too, since its supported in other places.

 

thanks again as always, appreciate it

 

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.