Perl-Sensitive Sunglasses | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Worse, the code, once one puts line feeds in the appropriate spots, becomes apparent that it doesn't really DO anything.
It does manage to get the output of two cisco commands (show log, and show interface description), then simply throws that info to the screen. If you're looking to see what interfaces are up/down, perhaps a "show ip int brief" (or similar command depending on the device and IOS version) might be more helpful? But it looks like you might be attempting to grasp at asking how to filter through the log file, looking for up/down messages. I would suggest reading up on regular expressions and the grep command, or you could do it line by line like this: -Scott In reply to Re: data dump and sort
by 5mi11er
|
|