Search Results

Search: Posts Made By: mrlayance
1,666
Posted By greet_sed
Hi, try like below: #!/usr/bin/perl -w ...
Hi,

try like below:
#!/usr/bin/perl -w

my @a = ("hi", "hello", "GigabitEthernet1/0/3 is down, line protocol is down (notconnect)");

foreach (@a) {
if ( $_ =~ /(.*) is down,.*/) {
...
2,082
Posted By Scrutinizer
Try: awk '/interface/{print x}1' file | awk...
Try:
awk '/interface/{print x}1' file | awk '!(/switchport port-security/ && /spanning-tree portfast/)' RS=

interface FastEthernet0/8
spanning-tree portfast
interface FastEthernet0/9
...
Forum: Infrastructure Monitoring 05-26-2010
2,330
Posted By pludi
There are a couple things very wrong here (marked...
There are a couple things very wrong here (marked in red):use strict; # These 2 lines should be in every Perl program
use warnings;

use SNMP::Simple; #Missing semicolon

my %ios = ();
$list =...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 06:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy