Last active
August 29, 2015 14:08
-
-
Save chicks-net/0f8f6e46835c4ac40dd8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my $telnet = Net::Telnet::Cisco->new($Host =>$ip) | |
my $cmd = "show tech-support"; | |
my $matchop = qr/(?mx:^% Unknown VPN | |
|^%IP routing table VRF.* does not exist. Create first$ | |
|^%No CEF interface information | |
|^%No matching route to delete$ | |
|^%Not all config may be removed and may reappear after reactivating | |
|^% ?This CLI is deprecated | |
)/; | |
my $bool_ret = $telnet->warnings($matchop); | |
# .... | |
@lines = $telnet->cmd( String => $cmd, Timeout => 90 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment