Thanks for the pointer....I've connected to router via telnet....This is what I used to do in TCL, but don't know how would we do in Perl..
set output [$router exec "sh run | inc trap"]
Thanks
Babar
User Profile
Collapse
-
Pearl: how would I send router command output to a varaible and a file
Folks,
I'm trying to execute a command on a router and then storing that output to a variable e.g. $output..I don't know how to do it in Pearl..Any help would be appreciated in this regard.
Thanks
-Babar
No activity results to display
Show More
Leave a comment: