Pexpect ingress trace collection

94 Views Asked by At

Hie,

My use case : my pexpect script establishes a telnet session to box1, some person pings box1 from any box2, ingress ip debugs are applied on box1, i need to collect ingress trace from box1.

my ques : now that we know, pexpect's paradigm is a combination of sendline-expect-print child.before, but in this case, we aren't explicitly running cmd, rather, some box2 is sending cmd, So, how do i collect trace in child.before even if we haven't run sendline or expect, for that matter.

Thanks

0

There are 0 best solutions below