| line |
true |
false |
branch |
|
476
|
0 |
1 |
if (@_ == 1) { } |
|
485
|
0 |
1 |
unless my $self = $class->SUPER::new(%cliArgs) |
|
515
|
1 |
0 |
unless (defined $args{'output_record_separator'}) |
|
519
|
0 |
2 |
if ($arg eq 'prompt') { } |
|
|
0 |
2 |
elsif ($arg eq 'return_result') { } |
|
|
0 |
2 |
elsif ($arg eq 'more_paging') { } |
|
|
0 |
2 |
elsif ($arg eq 'cmd_confirm_prompt') { } |
|
|
0 |
2 |
elsif ($arg eq 'cmd_initiated_prompt') { } |
|
|
0 |
2 |
elsif ($arg eq 'cmd_feed_timeout') { } |
|
|
0 |
2 |
elsif ($arg eq 'console') { } |
|
|
0 |
2 |
elsif ($arg eq 'wake_console') { } |
|
|
0 |
2 |
elsif ($arg eq 'debug_file') { } |
|
542
|
0 |
0 |
if (@_ == 1) { } |
|
544
|
0 |
0 |
if ($args{'host'} =~ /^(.+?)\s+(\d+)$/) |
|
568
|
0 |
0 |
defined $args{'blocking'} ? : |
|
|
0 |
0 |
defined $args{'connection_timeout'} ? : |
|
|
0 |
0 |
defined $args{'errmode'} ? : |
|
|
0 |
0 |
defined $args{'return_reference'} ? : |
|
596
|
0 |
0 |
defined $args{'prompt_credentials'} ? : |
|
|
0 |
0 |
defined $args{'timeout'} ? : |
|
|
0 |
0 |
defined $args{'read_attempts'} ? : |
|
|
0 |
0 |
defined $args{'data_with_error'} ? : |
|
|
0 |
0 |
defined $args{'wake_console'} ? : |
|
|
0 |
0 |
defined $args{'non_recognized_login'} ? : |
|
|
0 |
0 |
defined $args{'generic_login'} ? : |
|
|
0 |
0 |
$self->{'LOGINSTAGE'} ? : |
|
598
|
0 |
0 |
if (not $self->{'LOGINSTAGE'} and $self->{'TYPE'} ne "SERIAL" and useIPv6() and defined $args{'blocking'} and not $args{'blocking'}) |
|
602
|
0 |
0 |
if defined $self->{'POLL'}{'errmode'} |
|
610
|
0 |
0 |
if @_ |
|
612
|
0 |
0 |
unless (defined $self->{'POLL'} and $self->{'POLL'}{'coderef'} == __PACKAGE__->can("connect_poll")) |
|
617
|
0 |
0 |
if defined $self->{'POLL'}{'errmode'} |
|
620
|
0 |
0 |
unless defined $self->{'POLL'}{'complete'} and $self->{'POLL'}{'complete'} == 0 |
|
629
|
0 |
0 |
if $self->connection_type eq "SERIAL" |
|
652
|
0 |
0 |
defined $args{'blocking'} ? : |
|
|
0 |
0 |
defined $args{'timeout'} ? : |
|
|
0 |
0 |
defined $args{'errmode'} ? : |
|
|
0 |
0 |
defined $args{'return_reference'} ? : |
|
662
|
0 |
0 |
defined $args{'prompt_credentials'} ? : |
|
|
0 |
0 |
defined $args{'read_attempts'} ? : |
|
|
0 |
0 |
defined $args{'data_with_error'} ? : |
|
|
0 |
0 |
defined $args{'wake_console'} ? : |
|
|
0 |
0 |
defined $args{'non_recognized_login'} ? : |
|
|
0 |
0 |
defined $args{'generic_login'} ? : |
|
673
|
0 |
0 |
if defined $self->{'POLL'}{'errmode'} |
|
681
|
0 |
0 |
if @_ |
|
683
|
0 |
0 |
unless (defined $self->{'POLL'} and $self->{'POLL'}{'coderef'} == __PACKAGE__->can("login_poll")) |
|
688
|
0 |
0 |
if defined $self->{'POLL'}{'errmode'} |
|
691
|
0 |
0 |
unless defined $self->{'POLL'}{'complete'} and $self->{'POLL'}{'complete'} == 0 |
|
702
|
0 |
0 |
if (@_ == 1) { } |
|
710
|
0 |
0 |
unless defined $args{'command'} |
|
723
|
0 |
0 |
defined $args{'blocking'} ? : |
|
|
0 |
0 |
defined $args{'timeout'} ? : |
|
|
0 |
0 |
defined $args{'errmode'} ? : |
|
|
0 |
0 |
defined $args{'return_result'} ? : |
|
|
0 |
0 |
(defined $args{'return_result'} ? $args{'return_result'} : $self->{$Package}{'return_result'}) ? : |
|
|
0 |
0 |
defined $args{'return_reference'} ? : |
|
747
|
0 |
0 |
defined $args{'prompt'} ? : |
|
|
0 |
0 |
defined $args{'more_prompt'} ? : |
|
|
0 |
0 |
defined $args{'more_prompt'} ? : |
|
|
0 |
0 |
defined $args{'more_pages'} ? : |
|
|
0 |
0 |
defined $args{'cmd_confirm_prompt'} ? : |
|
|
0 |
0 |
defined $args{'progress_dots'} ? : |
|
753
|
0 |
0 |
if defined $self->{'POLL'}{'errmode'} |
|
757
|
0 |
0 |
if ($args{'poll_syntax'}) { } |
|
758
|
0 |
0 |
wantarray ? : |
|
761
|
0 |
0 |
wantarray ? : |
|
781
|
0 |
0 |
if (lc $_[0] ne 'command' and lc $_[0] ne 'poll_syntax') { } |
|
790
|
0 |
0 |
if $args[$i] eq "command" |
|
791
|
0 |
0 |
if $args[$i] eq "feed" |
|
792
|
0 |
0 |
if $args[$i] eq "feed_list" and ref $args[$i + 1] eq "ARRAY" |
|
793
|
0 |
0 |
if $args[$i] eq "prompt" |
|
794
|
0 |
0 |
if $args[$i] eq "more_pages" |
|
795
|
0 |
0 |
if $args[$i] eq "timeout" |
|
796
|
0 |
0 |
if $args[$i] eq "blocking" |
|
797
|
0 |
0 |
if $args[$i] eq "return_reference" |
|
798
|
0 |
0 |
if $args[$i] eq "return_result" |
|
799
|
0 |
0 |
if $args[$i] eq "reset_prompt" |
|
800
|
0 |
0 |
if $args[$i] eq "more_prompt" |
|
801
|
0 |
0 |
if $args[$i] eq "progress_dots" |
|
802
|
0 |
0 |
if $args[$i] eq "cmd_initiated_prompt" |
|
803
|
0 |
0 |
if $args[$i] eq "errmode" |
|
804
|
0 |
0 |
if $args[$i] eq "poll_syntax" |
|
807
|
0 |
0 |
unless defined $cmd |
|
810
|
0 |
0 |
$returnRes ? : |
|
850
|
0 |
0 |
if defined $self->{'POLL'}{'errmode'} |
|
854
|
0 |
0 |
if ($pollSyntax) { } |
|
855
|
0 |
0 |
wantarray ? : |
|
858
|
0 |
0 |
wantarray ? : |
|
866
|
0 |
0 |
if @_ |
|
868
|
0 |
0 |
unless (defined $self->{'POLL'} and $self->{'POLL'}{'coderef'} == __PACKAGE__->can("cmd_poll")) |
|
873
|
0 |
0 |
if defined $self->{'POLL'}{'errmode'} |
|
876
|
0 |
0 |
unless defined $self->{'POLL'}{'complete'} and $self->{'POLL'}{'complete'} == 0 |
|
887
|
0 |
0 |
if (@_ == 1) { } |
|
901
|
0 |
0 |
defined $args{'blocking'} ? : |
|
|
0 |
0 |
defined $args{'timeout'} ? : |
|
|
0 |
0 |
defined $args{'errmode'} ? : |
|
917
|
0 |
0 |
if defined $self->{'POLL'}{'errmode'} |
|
921
|
0 |
0 |
if ($args{'poll_syntax'}) { } |
|
922
|
0 |
0 |
wantarray ? : |
|
925
|
0 |
0 |
wantarray ? : |
|
933
|
0 |
0 |
if @_ |
|
935
|
0 |
0 |
unless (defined $self->{'POLL'} and $self->{'POLL'}{'coderef'} == __PACKAGE__->can("attribute_poll")) |
|
940
|
0 |
0 |
if defined $self->{'POLL'}{'errmode'} |
|
943
|
0 |
0 |
unless defined $self->{'POLL'}{'complete'} and $self->{'POLL'}{'complete'} == 0 |
|
954
|
0 |
0 |
if (@_ == 1) { } |
|
969
|
0 |
0 |
defined $args{'blocking'} ? : |
|
|
0 |
0 |
defined $args{'timeout'} ? : |
|
|
0 |
0 |
defined $args{'errmode'} ? : |
|
988
|
0 |
0 |
$args{'baudrate'} eq 'max' ? : |
|
992
|
0 |
0 |
if defined $self->{'POLL'}{'errmode'} |
|
996
|
0 |
0 |
if ($args{'poll_syntax'}) { } |
|
997
|
0 |
0 |
wantarray ? : |
|
1000
|
0 |
0 |
wantarray ? : |
|
1008
|
0 |
0 |
if @_ |
|
1010
|
0 |
0 |
unless (defined $self->{'POLL'} and $self->{'POLL'}{'coderef'} == __PACKAGE__->can("change_baudrate_poll")) |
|
1015
|
0 |
0 |
if defined $self->{'POLL'}{'errmode'} |
|
1018
|
0 |
0 |
unless defined $self->{'POLL'}{'complete'} and $self->{'POLL'}{'complete'} == 0 |
|
1029
|
0 |
0 |
if (@_ == 1) { } |
|
1043
|
0 |
0 |
defined $args{'blocking'} ? : |
|
|
0 |
0 |
defined $args{'timeout'} ? : |
|
|
0 |
0 |
defined $args{'errmode'} ? : |
|
1054
|
0 |
0 |
defined $args{'password'} ? : |
|
|
0 |
0 |
defined $args{'prompt_credentials'} ? : |
|
1060
|
0 |
0 |
if defined $self->{'POLL'}{'errmode'} |
|
1068
|
0 |
0 |
if @_ |
|
1070
|
0 |
0 |
unless (defined $self->{'POLL'} and $self->{'POLL'}{'coderef'} == __PACKAGE__->can("enable_poll")) |
|
1074
|
0 |
0 |
if defined $self->{'POLL'}{'errmode'} |
|
1077
|
0 |
0 |
unless defined $self->{'POLL'}{'complete'} and $self->{'POLL'}{'complete'} == 0 |
|
1088
|
0 |
0 |
if (@_ == 1) { } |
|
1102
|
0 |
0 |
defined $args{'blocking'} ? : |
|
|
0 |
0 |
defined $args{'timeout'} ? : |
|
|
0 |
0 |
defined $args{'errmode'} ? : |
|
1116
|
0 |
0 |
if defined $self->{'POLL'}{'errmode'} |
|
1124
|
0 |
0 |
if @_ |
|
1126
|
0 |
0 |
unless (defined $self->{'POLL'} and $self->{'POLL'}{'coderef'} == __PACKAGE__->can("device_more_paging_poll")) |
|
1130
|
0 |
0 |
if defined $self->{'POLL'}{'errmode'} |
|
1133
|
0 |
0 |
unless defined $self->{'POLL'}{'complete'} and $self->{'POLL'}{'complete'} == 0 |
|
1153
|
0 |
0 |
defined $args{'blocking'} ? : |
|
|
0 |
0 |
defined $args{'timeout'} ? : |
|
|
0 |
0 |
defined $args{'errmode'} ? : |
|
1165
|
0 |
0 |
defined $args{'username'} ? : |
|
|
0 |
0 |
defined $args{'password'} ? : |
|
|
0 |
0 |
defined $args{'prompt_credentials'} ? : |
|
1168
|
0 |
0 |
if defined $self->{'POLL'}{'errmode'} |
|
1176
|
0 |
0 |
if @_ |
|
1178
|
0 |
0 |
unless (defined $self->{'POLL'} and $self->{'POLL'}{'coderef'} == __PACKAGE__->can("device_peer_cpu_poll")) |
|
1182
|
0 |
0 |
if defined $self->{'POLL'}{'errmode'} |
|
1185
|
0 |
0 |
unless defined $self->{'POLL'}{'complete'} and $self->{'POLL'}{'complete'} == 0 |
|
1196
|
0 |
0 |
unless (defined $fh) |
|
1199
|
0 |
0 |
unless (ref $fh or length $fh) |
|
1203
|
0 |
0 |
unless (ref $fh or defined fileno $fh) |
|
1206
|
0 |
0 |
unless open $fh, ">", "$logfile" |
|
1227
|
0 |
0 |
if (defined $newSetting) |
|
1239
|
0 |
0 |
if (defined $newSetting) |
|
1242
|
0 |
0 |
$newSetting ? : |
|
1243
|
0 |
0 |
$delayPrompt ? : |
|
1252
|
0 |
0 |
if defined $newSetting |
|
1260
|
0 |
0 |
if defined $newSetting |
|
1268
|
0 |
0 |
if defined $newSetting |
|
1276
|
0 |
0 |
if (defined $newSetting) |
|
1287
|
0 |
0 |
if (defined $newSetting) |
|
1298
|
0 |
0 |
if defined $newSetting |
|
1306
|
0 |
0 |
if defined $newSetting |
|
1314
|
0 |
0 |
if defined $newSetting |
|
1322
|
0 |
0 |
if defined $newSetting |
|
1330
|
0 |
0 |
if defined $newSetting |
|
1338
|
0 |
0 |
if (defined $newSetting and defined $sendChar || !$newSetting) |
|
1340
|
0 |
0 |
$newSetting ? : |
|
1341
|
0 |
0 |
"\n" eq $sendChar ? : |
|
1368
|
0 |
0 |
unless ($self->{'POLLING'}) |
|
1373
|
0 |
0 |
unless (defined $self->{'POLL'}{$pollsub}) |
|
1380
|
0 |
0 |
if (@_ and not %args) |
|
1417
|
0 |
0 |
defined $args{'username'} ? : |
|
|
0 |
0 |
defined $args{'password'} ? : |
|
|
0 |
0 |
defined $args{'passphrase'} ? : |
|
|
0 |
0 |
defined $args{'prompt_credentials'} ? : |
|
|
0 |
0 |
defined $args{'login_timeout'} ? : |
|
|
0 |
0 |
defined $args{'read_attempts'} ? : |
|
|
0 |
0 |
defined $args{'data_with_error'} ? : |
|
|
0 |
0 |
defined $args{'wake_console'} ? : |
|
|
0 |
0 |
defined $args{'non_recognized_login'} ? : |
|
|
0 |
0 |
defined $args{'generic_login'} ? : |
|
|
0 |
0 |
$self->{'LOGINSTAGE'} ? : |
|
1422
|
0 |
0 |
if defined $connect->{'errmode'} |
|
1424
|
0 |
0 |
if ($connect->{'stage'} < 1) |
|
1445
|
0 |
0 |
unless $ok |
|
1447
|
0 |
0 |
unless defined $self->console |
|
1465
|
0 |
0 |
if $ok |
|
1475
|
0 |
0 |
unless ($self->{'POLLING'}) |
|
1480
|
0 |
0 |
unless (defined $self->{'POLL'}{$pollsub}) |
|
1484
|
0 |
0 |
if (@_ and not %args) |
|
1509
|
0 |
0 |
defined $args{'username'} ? : |
|
|
0 |
0 |
defined $args{'password'} ? : |
|
|
0 |
0 |
defined $args{'prompt_credentials'} ? : |
|
|
0 |
0 |
defined $args{'read_attempts'} ? : |
|
|
0 |
0 |
defined $args{'data_with_error'} ? : |
|
|
0 |
0 |
defined $args{'wake_console'} ? : |
|
|
0 |
0 |
defined $args{'non_recognized_login'} ? : |
|
|
0 |
0 |
defined $args{'generic_login'} ? : |
|
1514
|
0 |
0 |
if defined $login->{'errmode'} |
|
1515
|
0 |
0 |
if $self->eof |
|
1520
|
0 |
0 |
if ($login->{'stage'} < 1) |
|
1522
|
0 |
0 |
if ($self->{'LOGINSTAGE'}) { } |
|
1530
|
0 |
0 |
if ($self->{'LOGINSTAGE'} eq 'username' and $login->{'username'}) { } |
|
|
0 |
0 |
elsif ($self->{'LOGINSTAGE'} eq 'password' and $login->{'password'}) { } |
|
|
0 |
0 |
elsif ($self->console and $login->{'wake_console'}) { } |
|
1531
|
0 |
0 |
unless $self->print("line", $login->{'username'}, "errmode", "return") |
|
1537
|
0 |
0 |
unless $self->print("line", $login->{'password'}, "errmode", "return") |
|
1544
|
0 |
0 |
unless $self->put("string", $login->{'wake_console'}, "errmode", "return") |
|
1548
|
0 |
0 |
if ($login->{'stage'} < 2) |
|
1554
|
0 |
0 |
unless $ok |
|
1558
|
0 |
0 |
$self->{'POLL'}{'read_buffer'} =~ /\n/ ? : |
|
1565
|
0 |
0 |
if (($patdepth = rindex($self->{'POLL'}{'read_buffer'}, $LoginPatterns{$key})) >= 0) |
|
1567
|
0 |
0 |
unless ($login->{'family_type'}) |
|
1569
|
0 |
0 |
if ($key eq 'banner' or $key eq 'menu' or $key eq 'submenu') { } |
|
|
0 |
0 |
elsif ($key eq 'srbanner') { } |
|
|
0 |
0 |
elsif ($key eq 'xlrbanner') { } |
|
|
0 |
0 |
elsif ($key eq 'ersbanner' or $key eq 'passportbanner' or $key eq 'pp1600banner') { } |
|
|
0 |
0 |
elsif ($key eq 'vspbanner' or $key eq 'fabengbanner') { } |
|
|
0 |
0 |
elsif ($key eq 'wlan9100banner') { } |
|
|
0 |
0 |
elsif ($key eq 'xos') { } |
|
|
0 |
0 |
elsif ($key eq 'switchEngine') { } |
|
|
0 |
0 |
elsif ($key eq 'isw' or $key eq 'isw2') { } |
|
|
0 |
0 |
elsif ($key eq 'iswMarvell') { } |
|
|
0 |
0 |
elsif ($key eq 'slx') { } |
|
|
0 |
0 |
elsif ($key eq 'eosChassis') { } |
|
1573
|
0 |
0 |
if ($key eq "banner") |
|
1574
|
0 |
0 |
if $self->{'POLL'}{'read_buffer'} =~ /\*\*\* ((?:[^\*\n]+?) (?:Switch|Controller|Platform) (?:WC)?\d+.*?)\s+/ |
|
1576
|
0 |
0 |
if ($self->{'POLL'}{'read_buffer'} =~ /FW:([\d\.]+)\s+SW:v([\d\.]+)/) |
|
1586
|
0 |
0 |
if $self->{'POLL'}{'read_buffer'} =~ /\((Secure Router \d+)\)/ |
|
1587
|
0 |
0 |
if $self->{'POLL'}{'read_buffer'} =~ /Version: (.+)/ |
|
1593
|
0 |
0 |
if $self->{'POLL'}{'read_buffer'} =~ /\* Software Release (?i:v|REL)?(.+?) / |
|
1599
|
0 |
0 |
if $self->{'POLL'}{'read_buffer'} =~ /\* Software Release (?i:v|REL)?(.+?) / |
|
1605
|
0 |
0 |
if $self->{'POLL'}{'read_buffer'} =~ /(?:Software(?: Release)?|Fabric Engine) Build (.+?) / |
|
1611
|
0 |
0 |
if $self->{'POLL'}{'read_buffer'} =~ /AvayaOS Version (.+?) / |
|
1644
|
0 |
0 |
if ($patdepth > $deepest) |
|
1649
|
0 |
0 |
if $deepest > -1 |
|
1652
|
0 |
0 |
if ($login->{'family_type'}) { } |
|
1653
|
0 |
0 |
if ($login->{'family_type'} eq $Prm{'pers'}) { } |
|
1656
|
0 |
0 |
if ($self->{'POLL'}{'local_buffer'} =~ /($InitPrompt{$promptType})/) |
|
1664
|
0 |
0 |
if ($self->{'POLL'}{'local_buffer'} =~ /($InitPrompt{$login->{'family_type'}})/) |
|
1672
|
0 |
0 |
if ($self->{'POLL'}{'local_buffer'} =~ /($InitPrompt{$key})/) |
|
1682
|
0 |
0 |
if ($capturedPrompt) |
|
1686
|
0 |
0 |
if ($login->{'family_type'} eq $Prm{'slx'}) |
|
1692
|
0 |
0 |
if $login->{'family_type'} eq $Prm{'pers'} |
|
1693
|
0 |
0 |
if ($login->{'detectionFromPrompt'}) |
|
1694
|
0 |
0 |
if ($login->{'family_type'} eq $Prm{'bstk'} or defined $cliType and $cliType eq 'nncli') { } |
|
1705
|
0 |
0 |
if ($self->{'POLL'}{'read_buffer'} =~ /$usernamePrompt/) { } |
|
|
0 |
0 |
elsif ($self->{'POLL'}{'read_buffer'} =~ /$passwordPrompt/) { } |
|
1715
|
0 |
0 |
if ($pattern eq 'banner' or $pattern eq 'bell') { } |
|
|
0 |
0 |
elsif ($pattern eq 'menu') { } |
|
|
0 |
0 |
elsif ($pattern eq 'submenu') { } |
|
|
0 |
0 |
elsif ($pattern =~ /^more\d$/) { } |
|
|
0 |
0 |
elsif ($pattern =~ /^consoleLogMsg\d$/) { } |
|
|
0 |
0 |
elsif ($pattern eq 'lastlogin') { } |
|
|
0 |
0 |
elsif ($pattern eq 'username') { } |
|
|
0 |
0 |
elsif ($pattern eq 'password') { } |
|
|
0 |
0 |
elsif ($pattern =~ /^localfail/) { } |
|
|
0 |
0 |
elsif ($pattern eq 'radiusfail') { } |
|
|
0 |
0 |
elsif ($pattern =~ /^radiustimeout\d$/) { } |
|
1717
|
0 |
0 |
unless $self->put("string", $CTRL_Y, "errmode", "return") |
|
1723
|
0 |
0 |
unless $self->put("string", "c", "errmode", "return") |
|
1729
|
0 |
0 |
unless $self->put("string", $CTRL_C, "errmode", "return") |
|
1735
|
0 |
0 |
unless $self->put("string", "q", "errmode", "return") |
|
1744
|
0 |
0 |
unless $self->print("errmode", "return") |
|
1751
|
0 |
0 |
unless $self->print("errmode", "return") |
|
1757
|
0 |
0 |
if ($login->{'login_attempted'}) |
|
1761
|
0 |
0 |
unless ($login->{'username'}) |
|
1762
|
0 |
0 |
if ($self->{'TYPE'} eq 'SSH') { } |
|
1766
|
0 |
0 |
unless ($login->{'prompt_credentials'}) |
|
1773
|
0 |
0 |
unless $self->print("line", $login->{'username'}, "errmode", "return") |
|
1781
|
0 |
0 |
if ($login->{'password_sent'}) |
|
1785
|
0 |
0 |
unless (defined $login->{'password'}) |
|
1786
|
0 |
0 |
unless ($login->{'prompt_credentials'}) |
|
1792
|
0 |
0 |
unless $self->print("line", $login->{'password'}, "errmode", "return") |
|
1808
|
0 |
0 |
if (not $login->{'family_type'} and $login->{'non_recognized_login'}) |
|
1812
|
0 |
0 |
if (not $login->{'generic_login'} and $login->{'family_type'} eq $Prm{'generic'} || $login->{'detectionFromPrompt'} && !($self->{'LASTPROMPT'} =~ /^@/)) { } |
|
1818
|
0 |
0 |
unless $self->{'POLL'}{'blocking'} |
|
1820
|
0 |
0 |
if ($login->{'stage'} < 3) |
|
1822
|
0 |
0 |
unless $ok |
|
1824
|
0 |
0 |
if ($login->{'family_type'} eq $Prm{'generic'} and $self->{'errmode'} eq 'croak' || $self->{'errmode'} eq 'die') |
|
1829
|
0 |
0 |
if ($login->{'stage'} < 4) |
|
1830
|
0 |
0 |
if ($login->{'family_type'} eq $Prm{'pers'} or $login->{'family_type'} eq $Prm{'xlr'}) |
|
1831
|
0 |
0 |
$self->{'LASTPROMPT'} =~ /^@/ ? : |
|
1832
|
0 |
0 |
if $self->{'LASTPROMPT'} =~ /^@/ |
|
1834
|
0 |
0 |
if $login->{'detectionFromPrompt'} |
|
1838
|
0 |
0 |
if $login->{'login_attempted'} |
|
1848
|
0 |
0 |
unless ($self->{'POLLING'}) |
|
1853
|
0 |
0 |
unless (defined $self->{'POLL'}{$pollsub}) |
|
1857
|
0 |
0 |
if (@_ and not %args) |
|
1861
|
0 |
0 |
if defined $args{'feed_list'} and !ref($args{'feed_list'}) eq "ARRAY" |
|
1891
|
0 |
0 |
defined $args{'prompt'} ? : |
|
|
0 |
0 |
defined $args{'more_prompt'} ? : |
|
|
0 |
0 |
defined $args{'more_prompt'} ? : |
|
|
0 |
0 |
defined $args{'more_pages'} ? : |
|
|
0 |
0 |
defined $args{'cmd_confirm_prompt'} ? : |
|
|
0 |
0 |
defined $args{'cmd_initiated_prompt'} ? : |
|
|
0 |
0 |
defined $args{'progress_dots'} ? : |
|
|
0 |
0 |
defined $args{'timeout'} ? : |
|
1897
|
0 |
0 |
if defined $cmd->{'errmode'} |
|
1898
|
0 |
0 |
if $self->eof |
|
1899
|
0 |
0 |
if $cmd->{'reset_prompt'} |
|
1903
|
0 |
0 |
if ($cmd->{'stage'} < 1) |
|
1905
|
0 |
0 |
if (defined $cmd->{'command'}) |
|
1908
|
0 |
0 |
if ($command =~ /\?\s*$/ and $self->{$Package}{'ATTRIB'}{'is_nncli'}) |
|
1909
|
0 |
0 |
if ($familyType eq $Prm{'sr'}) { } |
|
1916
|
0 |
0 |
unless $self->print("line", $command, "errmode", "return") |
|
1922
|
0 |
0 |
if ($cmd->{'stage'} == 1) { } |
|
|
0 |
0 |
elsif ($cmd->{'stage'} == 2) { } |
|
1924
|
0 |
0 |
if defined $ok and $ok == 0 |
|
1925
|
0 |
0 |
unless (defined $ok) |
|
1926
|
0 |
0 |
if ($cmd->{'alreadyCmdTimeout'} or not length $familyType or $familyType eq $Prm{'generic'}) |
|
1930
|
0 |
0 |
unless $self->print("errmode", "return") |
|
1936
|
0 |
0 |
unless $self->{'POLL'}{'blocking'} |
|
1942
|
0 |
0 |
unless $ok |
|
1944
|
0 |
0 |
unless (length $self->{'POLL'}{'read_buffer'}) |
|
1947
|
0 |
0 |
if ($feed = shift @{$$cmd{'feed_data'};}) { } |
|
1951
|
0 |
0 |
if (++$cmd->{'cmdPromptCount'} > $self->{$Package}{'cmd_feed_timeout'}) |
|
1957
|
0 |
0 |
unless $self->print("line", $feed, "errmode", "return") |
|
1960
|
0 |
0 |
unless $self->{'POLL'}{'blocking'} |
|
1966
|
0 |
0 |
unless $ok |
|
1971
|
0 |
0 |
if ($cmd->{'progress_dots'}) |
|
1972
|
0 |
0 |
unless defined $cmd->{'progress'} |
|
1973
|
0 |
0 |
if (($cmd->{'progress'} += length $self->{'POLL'}{'read_buffer'}) > $cmd->{'progress_dots'}) |
|
1979
|
0 |
0 |
unless ($cmd->{'cmdEchoRemoved'}) |
|
1981
|
0 |
0 |
if ($self->{'POLL'}{'local_buffer'} =~ s/(^.*\n)//) { } |
|
1984
|
0 |
0 |
if $familyType eq $Prm{'xirrus'} |
|
1988
|
0 |
0 |
unless length $self->{'POLL'}{'read_buffer'} |
|
2000
|
0 |
0 |
if length $output |
|
2003
|
0 |
0 |
if ($self->{$Package}{'noRefreshCmdPattern'} and not $cmd->{'noRefreshCmdDone'} and $output =~ /$self->{$Package}{'noRefreshCmdPattern'}/m) |
|
2005
|
0 |
0 |
unless $self->put("string", $self->{$Package}{'noRefreshCmdSend'}, "errmode", "return") |
|
2010
|
0 |
0 |
if (length $output) |
|
2011
|
0 |
0 |
if ($cmd->{'morePromptRemoved'}) |
|
2013
|
0 |
0 |
if $familyType eq $Prm{'eos'} |
|
2017
|
0 |
0 |
if $familyType eq $Prm{'hive'} |
|
2018
|
0 |
0 |
if $familyType eq $Prm{'s200'} |
|
2019
|
0 |
0 |
if $familyType eq $Prm{'sr'} |
|
2020
|
0 |
0 |
if $familyType eq $Prm{'isw'} |
|
2021
|
0 |
0 |
if $familyType eq $Prm{'iswMarv'} |
|
2022
|
0 |
0 |
if ($familyType eq $Prm{'slx'}) |
|
2027
|
0 |
0 |
if $familyType eq $Prm{'xos'} |
|
2028
|
0 |
0 |
if $cmd->{'noRefreshCmdDone'} and $familyType eq $Prm{'pers'} |
|
2029
|
0 |
0 |
if $cmd->{'noRefreshCmdDone'} and $familyType eq $Prm{'xos'} |
|
2030
|
0 |
0 |
if $familyType eq $Prm{'isw'} and $cmd->{'more_prompt'} |
|
2031
|
0 |
0 |
if ($familyType eq $Prm{'xirrus'}) |
|
2044
|
0 |
0 |
if length $output |
|
2045
|
0 |
0 |
if length $cmd->{'lastLine'} |
|
2047
|
0 |
0 |
if (length $output) |
|
2053
|
0 |
0 |
if (length $cmd->{'lastLine'} and $self->{'POLL'}{'local_buffer'} =~ s/\n\n$/\n/) { } |
|
2064
|
0 |
0 |
unless length $cmd->{'lastLine'} |
|
2066
|
0 |
0 |
if ($cmd->{'lastLine'} =~ s/($cmd->{'prompt'})//) |
|
2068
|
0 |
0 |
if $cmd->{'reset_prompt'} |
|
2069
|
0 |
0 |
$cmd->{'reset_prompt'} ? : |
|
2070
|
0 |
0 |
unless ($newLineLastLine and not length $cmd->{'lastLine'}) |
|
2076
|
0 |
0 |
if ($cmd->{'more_prompt_delay'} and not $cmd->{'morePromptDelayed'} and $cmd->{'lastLine'} =~ /(?:$cmd->{'more_prompt_delay'})$/) |
|
2080
|
0 |
0 |
unless $self->{'POLL'}{'blocking'} |
|
2083
|
0 |
0 |
if ($cmd->{'more_prompt'} and $cmd->{'lastLine'} =~ s/(?:$cmd->{'more_prompt'})$//) |
|
2086
|
0 |
0 |
if ($cmd->{'lastLine'} =~ s/^\n//) |
|
2088
|
0 |
0 |
if $newLineLastLine |
|
2090
|
0 |
0 |
if $newLineLastLine |
|
2092
|
0 |
0 |
if (defined $MoreSkipWithin{$familyType} and $cmd->{'more_pages'} == 0) { } |
|
|
0 |
0 |
elsif ($cmd->{'more_pages'} == 0 or $cmd->{'more_pages'}-- > 1) { } |
|
2104
|
0 |
0 |
unless $self->put("string", $char, "errmode", "return") |
|
2106
|
0 |
0 |
unless $self->{'POLL'}{'blocking'} |
|
2109
|
0 |
0 |
if ($cmd->{'yn_prompt'} and $cmd->{'lastLine'} =~ /$cmd->{'yn_prompt'}/) |
|
2110
|
0 |
0 |
if (++$cmd->{'ynPromptCount'} > $self->{$Package}{'cmd_feed_timeout'}) |
|
2114
|
0 |
0 |
if ($CmdConfirmSendY{$familyType}) { } |
|
2115
|
0 |
0 |
unless $self->print("line", "y", "errmode", "return") |
|
2119
|
0 |
0 |
unless $self->put("line", "y", "errmode", "return") |
|
2122
|
0 |
0 |
unless $self->{'POLL'}{'blocking'} |
|
2125
|
0 |
0 |
if ($cmd->{'cmd_prompt'} and $cmd->{'lastLine'} =~ /$cmd->{'cmd_prompt'}/) |
|
2129
|
0 |
0 |
unless $self->{'POLL'}{'blocking'} |
|
2134
|
0 |
0 |
if $cmd->{'lastLine'} =~ s/^\n// |
|
2146
|
0 |
0 |
unless ($self->{'POLLING'}) |
|
2151
|
0 |
0 |
unless (defined $self->{'POLL'}{$pollsub}) |
|
2154
|
0 |
0 |
if (@_ and not %args) |
|
2172
|
0 |
0 |
if defined $attrib->{'errmode'} |
|
2173
|
0 |
0 |
if $self->eof |
|
2176
|
0 |
0 |
if ($attrib->{'stage'} < 1) |
|
2177
|
0 |
0 |
unless defined $attrib->{'attribute'} |
|
2178
|
0 |
0 |
unless $familyType |
|
2181
|
0 |
0 |
if ($attrib->{'reload'}) |
|
2182
|
0 |
0 |
if ($attrib->{'attribute'} eq 'family_type' or $attrib->{'attribute'} eq 'is_nncli' or $attrib->{'attribute'} eq 'is_acli' or $attrib->{'attribute'} eq 'is_master_cpu' or $attrib->{'attribute'} eq 'cpu_slot') { } |
|
2184
|
0 |
0 |
unless $self->print |
|
2193
|
0 |
0 |
if ($attrib->{'stage'} < 2) |
|
2195
|
0 |
0 |
unless $ok |
|
2199
|
0 |
0 |
if ($attrib->{'stage'} < 3) |
|
2201
|
0 |
0 |
if (defined $self->{$Package}{'ATTRIBFLAG'}{$attrib->{'attribute'}}) |
|
2206
|
0 |
0 |
if $familyType eq $Prm{'generic'} |
|
2211
|
0 |
0 |
if ($familyType eq $Prm{'pers'}) { } |
|
|
0 |
0 |
elsif ($familyType eq $Prm{'bstk'}) { } |
|
|
0 |
0 |
elsif ($familyType eq $Prm{'sr'}) { } |
|
|
0 |
0 |
elsif ($familyType eq $Prm{'trpz'}) { } |
|
|
0 |
0 |
elsif ($familyType eq $Prm{'xlr'}) { } |
|
|
0 |
0 |
elsif ($familyType eq $Prm{'xirrus'}) { } |
|
|
0 |
0 |
elsif ($familyType eq $Prm{'xos'}) { } |
|
|
0 |
0 |
elsif ($familyType eq $Prm{'isw'}) { } |
|
|
0 |
0 |
elsif ($familyType eq $Prm{'iswMarv'}) { } |
|
|
0 |
0 |
elsif ($familyType eq $Prm{'s200'}) { } |
|
|
0 |
0 |
elsif ($familyType eq $Prm{'wing'}) { } |
|
|
0 |
0 |
elsif ($familyType eq $Prm{'slx'}) { } |
|
|
0 |
0 |
elsif ($familyType eq $Prm{'hive'}) { } |
|
|
0 |
0 |
elsif ($familyType eq $Prm{'ipanema'}) { } |
|
|
0 |
0 |
elsif ($familyType eq $Prm{'eos'}) { } |
|
2212
|
0 |
0 |
if ($attrib->{'attribute'} eq "is_ha") |
|
2214
|
0 |
0 |
unless $ok |
|
2215
|
0 |
0 |
if ($$outref =~ /Current CPU State : Disabled State./) { } |
|
|
0 |
0 |
elsif ($$outref =~ /Current CPU State/) { } |
|
2227
|
0 |
0 |
if ($attrib->{'attribute'} eq "sw_version") |
|
2229
|
0 |
0 |
unless $ok |
|
2230
|
0 |
0 |
if $$outref =~ /Version : Build (?i:v|REL)?(.+?) / |
|
2234
|
0 |
0 |
if ($attrib->{'attribute'} eq "fw_version") |
|
2235
|
0 |
0 |
if ($attrib->{'stage'} < 4) |
|
2237
|
0 |
0 |
unless $ok |
|
2238
|
0 |
0 |
if ($$outref =~ /Version:\s+(?i:v|REL)?(.+)/) { } |
|
2249
|
0 |
0 |
unless $ok |
|
2250
|
0 |
0 |
if ($$outref =~ /Version:\s+(?i:v|REL)?(.+)/) { } |
|
2259
|
0 |
0 |
if ($attrib->{'attribute'} eq "stp_mode") |
|
2261
|
0 |
0 |
unless $ok |
|
2262
|
0 |
0 |
if ($$outref =~ /flags spanning-tree-mode (mstp|rstp)/) { } |
|
2271
|
0 |
0 |
if ($attrib->{'attribute'} eq "baudrate") |
|
2273
|
0 |
0 |
unless $ok |
|
2274
|
0 |
0 |
if ($$outref =~ /sio (?:console )?baud (\d+)/) |
|
2280
|
0 |
0 |
if ($attrib->{'attribute'} eq "max_baud") |
|
2281
|
0 |
0 |
if ($attrib->{'stage'} < 4) |
|
2283
|
0 |
0 |
unless $ok |
|
2287
|
0 |
0 |
if ($$outref =~ /(?:-|\.\.)\s?(\d+)[>}]/) { } |
|
2298
|
0 |
0 |
unless $ok |
|
2302
|
0 |
0 |
if ($$outref =~ /(?:-|\.\.)\s?(\d+)[>}]/) |
|
2308
|
0 |
0 |
if ($self->{$Package}{'ATTRIB'}{'is_master_cpu'}) { } |
|
2309
|
0 |
0 |
if ($attrib->{'attribute'} eq "is_dual_cpu" or $attrib->{'attribute'} eq "base_mac") |
|
2311
|
0 |
0 |
unless $ok |
|
2312
|
0 |
0 |
if ($$outref =~ /SysDescr\s+: (.+?) \(/g) |
|
2314
|
0 |
0 |
if ($$outref =~ / BoxType: (.+)/cg) { } |
|
2325
|
0 |
0 |
if $$outref =~ /SysName\s+: (.+)/g |
|
2326
|
0 |
0 |
if ($self->{$Package}{'ATTRIB'}{'is_voss'}) { } |
|
2327
|
0 |
0 |
if ($$outref =~ /BrandName:?\s+: (.+)/cg) { } |
|
2339
|
0 |
0 |
if $$outref =~ /BaseMacAddr\s+: (.+)/g |
|
2340
|
0 |
0 |
if ($$outref =~ /CP.+ dormant / or $$outref =~ /\s1\s+\d{4}\S{2}\s+1\s+CPU\s+(?:\d+\s+){4}/ and $$outref =~ /\s2\s+\d{4}\S{2}\s+1\s+CPU\s+(?:\d+\s+){4}/) { } |
|
2350
|
0 |
0 |
if $$outref =~ /Virtual IP\s+: (.+)/g |
|
2359
|
0 |
0 |
if ($attrib->{'attribute'} eq "model" or $attrib->{'attribute'} eq "sysname" or $attrib->{'attribute'} eq "is_apls" or $attrib->{'attribute'} eq "is_voss" or $attrib->{'attribute'} eq "is_fabric_engine" or $attrib->{'attribute'} eq "apls_box_type" or $attrib->{'attribute'} eq "brand_name" or not $self->{$Package}{'ATTRIBFLAG'}{'model'} and $attrib->{'attribute'} eq 'slots' || $attrib->{'attribute'} eq 'ports' or not $self->{$Package}{'ATTRIBFLAG'}{'is_voss'} and $attrib->{'attribute'} =~ /^(?:is_)?oob_/) |
|
2361
|
0 |
0 |
unless $ok |
|
2362
|
0 |
0 |
if ($$outref =~ /SysDescr\s+: (.+?) \(/g) |
|
2364
|
0 |
0 |
if ($$outref =~ / BoxType: (.+)/cg) { } |
|
2375
|
0 |
0 |
if $$outref =~ /SysName\s+: (.+)/g |
|
2376
|
0 |
0 |
if ($self->{$Package}{'ATTRIB'}{'is_voss'}) { } |
|
2377
|
0 |
0 |
if ($$outref =~ /BrandName:?\s+: (.+)/cg) { } |
|
2389
|
0 |
0 |
if $$outref =~ /BaseMacAddr\s+: (.+)/g |
|
2391
|
0 |
0 |
if ($$outref =~ /CP.+ dormant / or $$outref =~ /\s1\s+\d{4}\S{2}\s+1\s+CPU\s+(?:\d+\s+){4}/ and $$outref =~ /\s2\s+\d{4}\S{2}\s+1\s+CPU\s+(?:\d+\s+){4}/) { } |
|
|
0 |
0 |
elsif ($$outref =~ /System Error Info :/) { } |
|
2400
|
0 |
0 |
if $$outref =~ /Virtual IP\s+: (.+)/g |
|
2401
|
0 |
0 |
if ($attrib->{'attribute'} eq 'model' or $attrib->{'attribute'} eq 'sysname' or $attrib->{'attribute'} eq 'is_apls' or $attrib->{'attribute'} eq 'is_voss' or $attrib->{'attribute'} eq 'apls_box_type' or $attrib->{'attribute'} eq 'brand_name') { } |
|
2410
|
0 |
0 |
if ($attrib->{'attribute'} eq "slots" or $attrib->{'attribute'} eq "ports") |
|
2411
|
0 |
0 |
if ($self->{$Package}{'ATTRIB'}{'is_nncli'} and $self->{$Package}{'ATTRIB'}{'model'} =~ /(?:Passport|ERS)-8[36]\d\d/) { } |
|
2412
|
0 |
0 |
if ($attrib->{'stage'} < 4) |
|
2414
|
0 |
0 |
unless $ok |
|
2420
|
0 |
0 |
unless $ok |
|
2427
|
0 |
0 |
unless $ok |
|
2433
|
0 |
0 |
if ($attrib->{'attribute'} =~ /^(?:is_)?oob_/) |
|
2434
|
0 |
0 |
if ($self->{$Package}{'ATTRIB'}{'is_voss'}) { } |
|
2436
|
0 |
0 |
unless $ok |
|
2438
|
0 |
0 |
if $$outref =~ /mgmt-oob\s+ ([\d\.]+)/g |
|
2439
|
0 |
0 |
if $$outref =~ /Portmgmt\s+ ([\d\.]+)/g |
|
2440
|
0 |
0 |
if $$outref =~ m[Port1/1\s+ ([\d\.]+)]g |
|
2441
|
0 |
0 |
if $$outref =~ /MgmtVirtIp\s+ ([\d\.]+)/g |
|
2442
|
0 |
0 |
if $$outref =~ m[Port2/1\s+ ([\d\.]+)]g |
|
2443
|
0 |
0 |
if $$outref =~ /Portmgmt2\s+ ([\d\.]+)/g |
|
2444
|
0 |
0 |
if ($self->{$Package}{'ATTRIB'}{'cpu_slot'} == 1) { } |
|
2456
|
0 |
0 |
defined $self->socket && (defined $self->{$Package}{'ATTRIB'}{'oob_ip'} && $self->socket->peerhost eq $self->{$Package}{'ATTRIB'}{'oob_ip'} || defined $self->{$Package}{'ATTRIB'}{'oob_virt_ip'} && $self->socket->peerhost eq $self->{$Package}{'ATTRIB'}{'oob_virt_ip'}) ? : |
|
2462
|
0 |
0 |
if ($attrib->{'stage'} < 4) |
|
2464
|
0 |
0 |
unless $ok |
|
2466
|
0 |
0 |
if ($$outref =~ /CP.+ dormant / or $$outref =~ /\s1\s+\d{4}\S{2}\s+1\s+CPU\s+(?:\d+\s+){4}/ and $$outref =~ /\s2\s+\d{4}\S{2}\s+1\s+CPU\s+(?:\d+\s+){4}/) { } |
|
2475
|
0 |
0 |
if ($$outref =~ /Virtual IP\s+: (.+)/g) { } |
|
2485
|
0 |
0 |
unless $ok |
|
2487
|
0 |
0 |
if $$outref =~ m[^net mgmt ip ([\d\.]+)/[\d\.]+ *(?:cpu-slot [35])?$]m |
|
2488
|
0 |
0 |
if $$outref =~ m[^net mgmt ip ([\d\.]+)/[\d\.]+ cpu-slot 6$]m |
|
2489
|
0 |
0 |
if ($self->{$Package}{'ATTRIB'}{'cpu_slot'} < 5) { } |
|
|
0 |
0 |
elsif ($self->{$Package}{'ATTRIB'}{'cpu_slot'} == 5) { } |
|
2495
|
0 |
0 |
$self->{$Package}{'ATTRIB'}{'is_dual_cpu'} ? : |
|
2499
|
0 |
0 |
$self->{$Package}{'ATTRIB'}{'is_dual_cpu'} ? : |
|
2503
|
0 |
0 |
defined $self->socket && (defined $self->{$Package}{'ATTRIB'}{'oob_ip'} && $self->socket->peerhost eq $self->{$Package}{'ATTRIB'}{'oob_ip'} || defined $self->{$Package}{'ATTRIB'}{'oob_virt_ip'} && $self->socket->peerhost eq $self->{$Package}{'ATTRIB'}{'oob_virt_ip'}) ? : |
|
2511
|
0 |
0 |
if ($attrib->{'attribute'} eq "is_apls") |
|
2516
|
0 |
0 |
if ($attrib->{'attribute'} eq "is_fabric_engine") |
|
2521
|
0 |
0 |
if ($attrib->{'attribute'} eq "is_voss") |
|
2523
|
0 |
0 |
unless $ok |
|
2524
|
0 |
0 |
if ($$outref =~ m[Only devices /intflash]) { } |
|
2538
|
0 |
0 |
if ($attrib->{'attribute'} eq "fw_version" or $attrib->{'attribute'} eq "sw_version" or $attrib->{'attribute'} eq "switch_mode" or $attrib->{'attribute'} eq "unit_number" or $attrib->{'attribute'} eq "base_unit" or $attrib->{'attribute'} eq "stack_size" or $attrib->{'attribute'} eq "model" or $attrib->{'attribute'} eq "sysname" or $attrib->{'attribute'} eq "base_mac") |
|
2540
|
0 |
0 |
unless $ok |
|
2541
|
0 |
0 |
if ($$outref =~ /Operation Mode:\s+(Switch)/g) { } |
|
|
0 |
0 |
elsif ($$outref =~ /Operation Mode:\s+(Stack), Unit # (\d)/g) { } |
|
2555
|
0 |
0 |
if $$outref =~ /MAC Address:\s+(.+)/cg |
|
2556
|
0 |
0 |
if $$outref =~ /sysDescr:\s+(.+?)(?:\n|\s{4})/cg |
|
2558
|
0 |
0 |
if ($$outref =~ /FW:([\d\.]+)\s+SW:v([\d\.]+)/cg) |
|
2562
|
0 |
0 |
if $$outref =~ /sysName: +(\S.*)/cg |
|
2566
|
0 |
0 |
if ($attrib->{'attribute'} eq "slots" or $attrib->{'attribute'} eq "ports") |
|
2568
|
0 |
0 |
unless $ok |
|
2573
|
0 |
0 |
if ($attrib->{'attribute'} eq "stp_mode") |
|
2575
|
0 |
0 |
unless $ok |
|
2576
|
0 |
0 |
if ($$outref =~ /Current STP Operation Mode: (STPG|MSTP|RSTP)/) { } |
|
2585
|
0 |
0 |
if ($attrib->{'attribute'} eq "mgmt_vlan") |
|
2587
|
0 |
0 |
unless $ok |
|
2588
|
0 |
0 |
if $$outref =~ /Management VLAN: (\d+)/ |
|
2592
|
0 |
0 |
if ($attrib->{'attribute'} eq "mgmt_ip" or $attrib->{'attribute'} eq "oob_ip" or $attrib->{'attribute'} eq "is_oob_connected") |
|
2594
|
0 |
0 |
unless $ok |
|
2595
|
0 |
0 |
if $$outref =~ /(?:Switch|Stack) IP Address:\s+[\d\.]+\s+([\d\.]+)\s+[\d\.]+/g |
|
2596
|
0 |
0 |
if ($$outref =~ /Mgmt (?:Switch|Stack) IP Address:\s+[\d\.]+\s+([\d\.]+)\s/g) { } |
|
2603
|
0 |
0 |
defined $self->socket && (defined $self->{$Package}{'ATTRIB'}{'oob_ip'} && $self->socket->peerhost eq $self->{$Package}{'ATTRIB'}{'oob_ip'}) ? : |
|
2608
|
0 |
0 |
if ($attrib->{'attribute'} eq "baudrate") |
|
2610
|
0 |
0 |
unless $ok |
|
2611
|
0 |
0 |
if ($$outref =~ /Terminal speed: (\d+)/) |
|
2617
|
0 |
0 |
if ($attrib->{'attribute'} eq "max_baud") |
|
2619
|
0 |
0 |
unless $ok |
|
2622
|
0 |
0 |
if not defined $baudRate or $1 > $baudRate |
|
2630
|
0 |
0 |
if ($attrib->{'attribute'} eq "model") |
|
2632
|
0 |
0 |
unless $ok |
|
2633
|
0 |
0 |
if $$outref =~ /Chassis Model: (.+)/ |
|
2637
|
0 |
0 |
if ($attrib->{'attribute'} eq "fw_version" or $attrib->{'attribute'} eq "sw_version") |
|
2639
|
0 |
0 |
unless $ok |
|
2640
|
0 |
0 |
if $$outref =~ /Runtime: (.+)/g |
|
2641
|
0 |
0 |
if $$outref =~ /Boot: (.+?) / |
|
2645
|
0 |
0 |
if ($attrib->{'attribute'} eq "slots" or $attrib->{'attribute'} eq "ports") |
|
2646
|
0 |
0 |
if ($attrib->{'stage'} < 4) |
|
2648
|
0 |
0 |
unless $ok |
|
2654
|
0 |
0 |
unless $ok |
|
2659
|
0 |
0 |
if ($attrib->{'attribute'} eq "sysname") |
|
2661
|
0 |
0 |
unless $ok |
|
2662
|
0 |
0 |
if $$outref =~ /HostName: (.+)/g |
|
2666
|
0 |
0 |
if ($attrib->{'attribute'} eq "base_mac") |
|
2668
|
0 |
0 |
unless $ok |
|
2669
|
0 |
0 |
if $$outref =~ /Mac Address\s+0x(.+)/g |
|
2675
|
0 |
0 |
if ($attrib->{'attribute'} eq "model" or $attrib->{'attribute'} eq "sysname" or $attrib->{'attribute'} eq "base_mac") |
|
2677
|
0 |
0 |
unless $ok |
|
2678
|
0 |
0 |
if $$outref =~ /Product Name:\s+(.+)/g |
|
2679
|
0 |
0 |
if $$outref =~ /System Name:\s+(.+)/g |
|
2680
|
0 |
0 |
if $$outref =~ /System MAC:\s+(.+)/g |
|
2684
|
0 |
0 |
if ($attrib->{'attribute'} eq "fw_version" or $attrib->{'attribute'} eq "sw_version") |
|
2686
|
0 |
0 |
unless $ok |
|
2687
|
0 |
0 |
if $$outref =~ /Version: (.+?) REL/g |
|
2688
|
0 |
0 |
if $$outref =~ /BootLoader:\s+(.+)/ |
|
2692
|
0 |
0 |
if ($attrib->{'attribute'} eq "slots" or $attrib->{'attribute'} eq "ports") |
|
2694
|
0 |
0 |
unless $ok |
|
2701
|
0 |
0 |
if ($attrib->{'attribute'} eq "model" or $attrib->{'attribute'} eq "fw_version" or $attrib->{'attribute'} eq "sw_version") |
|
2703
|
0 |
0 |
unless $ok |
|
2704
|
0 |
0 |
if $$outref =~ /# box type\s+: (.+)/g |
|
2705
|
0 |
0 |
if $$outref =~ /# boot monitor version\s+: v?(.+)/g |
|
2706
|
0 |
0 |
if $$outref =~ /# software version\s+: v?(.+)/g |
|
2710
|
0 |
0 |
if ($attrib->{'attribute'} eq "is_dual_cpu" or $attrib->{'attribute'} eq "sysname") |
|
2712
|
0 |
0 |
unless $ok |
|
2713
|
0 |
0 |
if $$outref =~ /SysDescr\s+: (.+?) \(/g |
|
2714
|
0 |
0 |
if $$outref =~ /SysName\s+: (.+)/g |
|
2715
|
0 |
0 |
if ($$outref =~ /CPU.+ dormant /) { } |
|
2724
|
0 |
0 |
if ($attrib->{'attribute'} eq "slots" or $attrib->{'attribute'} eq "ports") |
|
2726
|
0 |
0 |
unless $ok |
|
2734
|
0 |
0 |
if ($attrib->{'attribute'} eq "model" or $attrib->{'attribute'} eq "base_mac" or $attrib->{'attribute'} eq "fw_version" or $attrib->{'attribute'} eq "sw_version") |
|
2736
|
0 |
0 |
unless $ok |
|
2737
|
0 |
0 |
if $$outref =~ /Model: (.+?),/g |
|
2738
|
0 |
0 |
if $$outref =~ /IAPs\s+(.+?)-/g |
|
2739
|
0 |
0 |
if $$outref =~ /Boot Loader\s+(.+?) \(.+?\), Build: (.+)/g |
|
2740
|
0 |
0 |
if $$outref =~ /System Software\s+(.+?) \(.+?\), Build: (.+)/g |
|
2744
|
0 |
0 |
if ($attrib->{'attribute'} eq "sysname") |
|
2746
|
0 |
0 |
unless $ok |
|
2747
|
0 |
0 |
if $$outref =~ /Access Point Hostname\s*(.+)/g |
|
2751
|
0 |
0 |
if ($attrib->{'attribute'} eq "slots" or $attrib->{'attribute'} eq "ports") |
|
2753
|
0 |
0 |
unless $ok |
|
2760
|
0 |
0 |
if ($attrib->{'attribute'} eq "model" or $attrib->{'attribute'} eq "sysname" or $attrib->{'attribute'} eq "base_mac") |
|
2762
|
0 |
0 |
unless $ok |
|
2763
|
0 |
0 |
if $$outref =~ /SysName: (.+)/g |
|
2764
|
0 |
0 |
if $$outref =~ /System MAC: (.+)/g |
|
2765
|
0 |
0 |
if $$outref =~ /System Type: (?:VPEX )?(\S+)( \(Stack\))?/g |
|
2766
|
0 |
0 |
if defined $2 |
|
2767
|
0 |
0 |
if ($$outref =~ /Image Booted: (primary|secondary)/) |
|
2768
|
0 |
0 |
if ($1 eq 'primary') { } |
|
2769
|
0 |
0 |
if $$outref =~ /Primary ver: (\S+)/g |
|
2772
|
0 |
0 |
if $$outref =~ /Secondary ver: (\S+)/g |
|
2778
|
0 |
0 |
if ($attrib->{'attribute'} eq "sw_version" or $attrib->{'attribute'} eq "fw_version") |
|
2780
|
0 |
0 |
unless $ok |
|
2781
|
0 |
0 |
if $$outref =~ /Image : Extreme(?:XOS| Networks Switch Engine) version (.+) by /g |
|
2782
|
0 |
0 |
if $$outref =~ /BootROM : (?:Default )?(\S+)/g |
|
2786
|
0 |
0 |
if ($attrib->{'attribute'} eq "slots" or $attrib->{'attribute'} eq "ports") |
|
2788
|
0 |
0 |
unless $ok |
|
2794
|
0 |
0 |
if ($attrib->{'attribute'} eq "switch_mode" or $attrib->{'attribute'} eq "stack_size" or $attrib->{'attribute'} eq "unit_number" or $attrib->{'attribute'} eq "master_unit") |
|
2796
|
0 |
0 |
unless $ok |
|
2797
|
0 |
0 |
if ($$outref =~ /(?:This node is not in an Active Topology|stacking-support:\s+\w+\s+Disabled|\*[\d:a-f]+ - Disabled)/) { } |
|
2808
|
0 |
0 |
if $1 eq "*" |
|
2809
|
0 |
0 |
if $3 eq "Master" |
|
2816
|
0 |
0 |
if ($attrib->{'attribute'} eq "stp_mode") |
|
2818
|
0 |
0 |
unless $ok |
|
2819
|
0 |
0 |
if ($$outref =~ /Operational Mode: (802.1D|802.1W|MSTP)/) { } |
|
2820
|
0 |
0 |
if $1 eq "802.1D" |
|
2821
|
0 |
0 |
if $1 eq "802.1W" |
|
2822
|
0 |
0 |
if $1 eq "MSTP" |
|
2830
|
0 |
0 |
if ($attrib->{'attribute'} eq "oob_ip" or $attrib->{'attribute'} eq "is_oob_connected") |
|
2832
|
0 |
0 |
unless $ok |
|
2833
|
0 |
0 |
if ($$outref =~ m[Primary IP: ([\d\.]+)/\d+]g) { } |
|
2840
|
0 |
0 |
defined $self->socket && (defined $self->{$Package}{'ATTRIB'}{'oob_ip'} && $self->socket->peerhost eq $self->{$Package}{'ATTRIB'}{'oob_ip'}) ? : |
|
2848
|
0 |
0 |
if ($attrib->{'attribute'} eq "model" or $attrib->{'attribute'} eq "sysname" or $attrib->{'attribute'} eq "base_mac" or $attrib->{'attribute'} eq "sw_version") |
|
2850
|
0 |
0 |
unless $ok |
|
2851
|
0 |
0 |
if $$outref =~ /MAC Address : (.+)/g |
|
2852
|
0 |
0 |
if $$outref =~ /System Name : (.+)/g |
|
2853
|
0 |
0 |
if $$outref =~ /Product : (.+)/g |
|
2854
|
0 |
0 |
if $$outref =~ /Board Type : (.+)/g |
|
2855
|
0 |
0 |
if $$outref =~ /Software Version : V?(.+)/g |
|
2859
|
0 |
0 |
if ($attrib->{'attribute'} eq "slots" or $attrib->{'attribute'} eq "ports") |
|
2861
|
0 |
0 |
unless $ok |
|
2869
|
0 |
0 |
if ($attrib->{'attribute'} eq "model" or $attrib->{'attribute'} eq "sysname" or $attrib->{'attribute'} eq "base_mac" or $attrib->{'attribute'} eq "sw_version") |
|
2871
|
0 |
0 |
unless $ok |
|
2872
|
0 |
0 |
if $$outref =~ /MAC Address : (.+)/g |
|
2873
|
0 |
0 |
if $$outref =~ /System Name : (.+)/g |
|
2874
|
0 |
0 |
if $$outref =~ /Board Type : (.+)/g |
|
2875
|
0 |
0 |
if $$outref =~ /Software Version: V(.+)/g |
|
2879
|
0 |
0 |
if ($attrib->{'attribute'} eq "slots" or $attrib->{'attribute'} eq "ports") |
|
2881
|
0 |
0 |
unless $ok |
|
2889
|
0 |
0 |
if ($attrib->{'attribute'} eq "model" or $attrib->{'attribute'} eq "base_mac" or $attrib->{'attribute'} eq "sw_version" or $attrib->{'attribute'} eq "fw_version") |
|
2891
|
0 |
0 |
unless $ok |
|
2892
|
0 |
0 |
if $$outref =~ /Machine Model\.+ (.+)/g |
|
2893
|
0 |
0 |
if $$outref =~ /Burned In MAC Address\.+ (.+)/g |
|
2894
|
0 |
0 |
if $$outref =~ /Software Version\.+ (.+)/g |
|
2895
|
0 |
0 |
if $$outref =~ /Operating System\.+ Linux (.+)/g |
|
2899
|
0 |
0 |
if ($attrib->{'attribute'} eq "sysname") |
|
2901
|
0 |
0 |
unless $ok |
|
2903
|
0 |
0 |
if ($$outref =~ /System Description\.+ (.+?)-/g) |
|
2904
|
0 |
0 |
if ($$outref =~ /System Name\.+ (.+)/g) |
|
2905
|
0 |
0 |
if ($setSsysname) { } |
|
|
0 |
0 |
elsif ($defSsysname) { } |
|
2914
|
0 |
0 |
if ($attrib->{'attribute'} eq "slots" or $attrib->{'attribute'} eq "ports") |
|
2916
|
0 |
0 |
unless $ok |
|
2922
|
0 |
0 |
if ($attrib->{'attribute'} eq "switch_mode" or $attrib->{'attribute'} eq "stack_size" or $attrib->{'attribute'} eq "unit_number" or $attrib->{'attribute'} eq "manager_unit") |
|
2924
|
0 |
0 |
unless $ok |
|
2928
|
0 |
0 |
if ($2 eq "Mgmt Sw") |
|
2933
|
0 |
0 |
if ($unitCount) { } |
|
2946
|
0 |
0 |
if ($attrib->{'attribute'} eq "stp_mode") |
|
2948
|
0 |
0 |
unless $ok |
|
2949
|
0 |
0 |
if ($$outref =~ /Mode: (stp|rstp|mstp)/) { } |
|
|
0 |
0 |
elsif ($$outref =~ /Spanning-tree enabled protocol (pvst|rpvst)/) { } |
|
2950
|
0 |
0 |
$1 eq 'stp' ? : |
|
2958
|
0 |
0 |
if ($attrib->{'attribute'} eq "oob_ip" or $attrib->{'attribute'} eq "is_oob_connected") |
|
2960
|
0 |
0 |
unless $ok |
|
2961
|
0 |
0 |
if ($$outref =~ /IP Address\.+ (.+)/g) { } |
|
2968
|
0 |
0 |
defined $self->socket && (defined $self->{$Package}{'ATTRIB'}{'oob_ip'} && $self->socket->peerhost eq $self->{$Package}{'ATTRIB'}{'oob_ip'}) ? : |
|
2973
|
0 |
0 |
if ($attrib->{'attribute'} eq "baudrate") |
|
2975
|
0 |
0 |
unless $ok |
|
2976
|
0 |
0 |
if ($$outref =~ /Baud Rate \(bps\)\.+ (\d+)/) |
|
2982
|
0 |
0 |
if ($attrib->{'attribute'} eq "max_baud") |
|
2984
|
0 |
0 |
unless $ok |
|
2987
|
0 |
0 |
if not defined $baudRate or $1 > $baudRate |
|
2996
|
0 |
0 |
if ($attrib->{'attribute'} eq "model" or $attrib->{'attribute'} eq "base_mac" or $attrib->{'attribute'} eq "sw_version" or $attrib->{'attribute'} eq "fw_version" or $attrib->{'attribute'} eq "sysname") |
|
2998
|
0 |
0 |
unless $ok |
|
2999
|
0 |
0 |
if ($$outref =~ /(\S+) version (.+)/g) |
|
3004
|
0 |
0 |
if $$outref =~ /(\S+) uptime is/g |
|
3005
|
0 |
0 |
if $$outref =~ /Base ethernet MAC address is (.+)/g |
|
3009
|
0 |
0 |
if ($attrib->{'attribute'} eq "slots" or $attrib->{'attribute'} eq "ports") |
|
3011
|
0 |
0 |
unless $ok |
|
3016
|
0 |
0 |
if ($attrib->{'attribute'} eq "baudrate" or $attrib->{'attribute'} eq "max_baud") |
|
3024
|
0 |
0 |
if ($attrib->{'attribute'} eq "sysname" or $attrib->{'attribute'} eq "base_mac") |
|
3026
|
0 |
0 |
$self->config_context ? : |
|
3027
|
0 |
0 |
unless $ok |
|
3028
|
0 |
0 |
if $$outref =~ /Stack MAC : (.+)/g |
|
3029
|
0 |
0 |
if $$outref =~ /Unit Name : (.+)/g |
|
3030
|
0 |
0 |
if ($$outref =~ /SLX-OS Version : (\d+([rsx])?.+)/g) |
|
3033
|
0 |
0 |
!defined($2) || $2 eq $rsx ? : |
|
|
0 |
0 |
if $rsx eq "r" |
|
3034
|
0 |
0 |
defined $2 && $2 eq $rsx ? : |
|
|
0 |
0 |
unless $rsx eq "r" |
|
3037
|
0 |
0 |
if ($self->{$Package}{'ATTRIBFLAG'}{'is_dual_mm'}) |
|
3039
|
0 |
0 |
$self->{$Package}{'ATTRIB'}{'is_dual_mm'} ? : |
|
|
0 |
0 |
if $$outref =~ /Management IP : (.+)/g |
|
3044
|
0 |
0 |
if ($attrib->{'attribute'} eq "model" or $attrib->{'attribute'} eq "switch_type" or $attrib->{'attribute'} eq "baudrate") |
|
3045
|
0 |
0 |
$self->config_context ? : |
|
3046
|
0 |
0 |
unless $ok |
|
3047
|
0 |
0 |
if $$outref =~ /Chassis Name:(?:\t|\e\[\d\w)(?:(?:BR|EN)-)?(.+)/g |
|
3048
|
0 |
0 |
defined $self->{$Package}{'ATTRIB'}{'model'} && $self->{$Package}{'ATTRIB'}{'model'} =~ /9030/ ? : |
|
3049
|
0 |
0 |
if $$outref =~ /switchType: (\d+)/g |
|
3053
|
0 |
0 |
if ($attrib->{'attribute'} eq "sw_version" or $attrib->{'attribute'} eq "fw_version" or $attrib->{'attribute'} =~ /^is_slx_[rsx]$/) |
|
3054
|
0 |
0 |
$self->config_context ? : |
|
3055
|
0 |
0 |
unless $ok |
|
3056
|
0 |
0 |
if ($$outref =~ /Firmware name: (\d+([rsx])?.+)/g) |
|
3059
|
0 |
0 |
!defined($2) || $2 eq $rsx ? : |
|
|
0 |
0 |
if $rsx eq "r" |
|
3060
|
0 |
0 |
defined $2 && $2 eq $rsx ? : |
|
|
0 |
0 |
unless $rsx eq "r" |
|
3063
|
0 |
0 |
if $$outref =~ /Kernel: (.+)/g |
|
3067
|
0 |
0 |
if ($attrib->{'attribute'} eq "slots" or $attrib->{'attribute'} eq "ports") |
|
3068
|
0 |
0 |
$self->config_context ? : |
|
3069
|
0 |
0 |
unless $ok |
|
3077
|
0 |
0 |
if ($attrib->{'attribute'} eq "is_ha" or $attrib->{'attribute'} eq "mm_number" or $attrib->{'attribute'} eq "is_dual_mm" or $attrib->{'attribute'} eq "is_active_mm" or not $self->{$Package}{'ATTRIBFLAG'}{'mm_number'} and $attrib->{'attribute'} =~ /oob/) |
|
3078
|
0 |
0 |
$self->config_context ? : |
|
3079
|
0 |
0 |
unless $ok |
|
3081
|
0 |
0 |
if ($$outref =~ /M1: (Active|Standby)/g) |
|
3082
|
0 |
0 |
if ($$outref =~ /M2: (Active|Standby)/g) |
|
3083
|
0 |
0 |
if ($m1 and $m2) { } |
|
3085
|
0 |
0 |
$m1 ? : |
|
3090
|
0 |
0 |
$m1 || $m2 ? : |
|
3091
|
0 |
0 |
$m1 ? : |
|
|
0 |
0 |
$m2 ? : |
|
3098
|
0 |
0 |
if ($attrib->{'attribute'} eq "stp_mode") |
|
3099
|
0 |
0 |
$self->config_context ? : |
|
3100
|
0 |
0 |
unless $ok |
|
3101
|
0 |
0 |
if ($$outref =~ /Spanning-tree Mode: (.+)/g) { } |
|
3102
|
0 |
0 |
if $1 == "Multiple Spanning Tree Protocol" |
|
3103
|
0 |
0 |
if $1 == "Rapid Spanning Tree Protocol" |
|
3104
|
0 |
0 |
if $1 == "Spanning Tree Protocol" |
|
3105
|
0 |
0 |
if $1 == "Per-VLAN Spanning Tree Protocol" |
|
3106
|
0 |
0 |
if $1 == "Rapid Per-VLAN Spanning Tree Protocol" |
|
3114
|
0 |
0 |
if ($attrib->{'attribute'} eq "oob_ip" or $attrib->{'attribute'} eq "oob_standby_ip" or $attrib->{'attribute'} eq "is_oob_connected") |
|
3115
|
0 |
0 |
$self->config_context ? : |
|
3116
|
0 |
0 |
unless $ok |
|
3118
|
0 |
0 |
if ($$outref =~ /interface Management (\d)/g) |
|
3121
|
0 |
0 |
$mslot == $self->{$Package}{'ATTRIB'}{'mm_number'} ? : |
|
|
0 |
0 |
if $$outref =~ m[ip address \"static (.+)/]g |
|
3126
|
0 |
0 |
defined $self->socket && (defined $self->{$Package}{'ATTRIB'}{'oob_ip'} && $self->socket->peerhost eq $self->{$Package}{'ATTRIB'}{'oob_ip'} || defined $self->{$Package}{'ATTRIB'}{'oob_virt_ip'} && $self->socket->peerhost eq $self->{$Package}{'ATTRIB'}{'oob_virt_ip'}) ? : |
|
3131
|
0 |
0 |
if ($attrib->{'attribute'} eq "oob_virt_ip") |
|
3132
|
0 |
0 |
$self->config_context ? : |
|
3133
|
0 |
0 |
unless $ok |
|
3134
|
0 |
0 |
if $$outref =~ m[chassis virtual-ip \"static (.+)/]g |
|
3140
|
0 |
0 |
if ($attrib->{'attribute'} eq "model" or $attrib->{'attribute'} eq "sw_version" or $attrib->{'attribute'} eq "fw_version") |
|
3142
|
0 |
0 |
unless $ok |
|
3143
|
0 |
0 |
if $$outref =~ /Version:\s+HiveOS (\S+) build-\d+/g |
|
3144
|
0 |
0 |
if $$outref =~ /Platform:\s+(\S+)/g |
|
3145
|
0 |
0 |
if $$outref =~ /Bootloader ver:\s+v(\S+)/g |
|
3149
|
0 |
0 |
if ($attrib->{'attribute'} eq "slots" or $attrib->{'attribute'} eq "ports") |
|
3151
|
0 |
0 |
unless $ok |
|
3156
|
0 |
0 |
if ($attrib->{'attribute'} eq "sysname") |
|
3158
|
0 |
0 |
unless $ok |
|
3159
|
0 |
0 |
if $$outref =~ /hostname (\S+)/g |
|
3163
|
0 |
0 |
if ($attrib->{'attribute'} eq "base_mac") |
|
3165
|
0 |
0 |
unless $ok |
|
3166
|
0 |
0 |
if $$outref =~ /Ethernet MAC address:\s(.+)/g |
|
3170
|
0 |
0 |
if ($attrib->{'attribute'} eq "baudrate" or $attrib->{'attribute'} eq "max_baud") |
|
3178
|
0 |
0 |
if ($attrib->{'attribute'} eq "model" or $attrib->{'attribute'} eq "sw_version" or $attrib->{'attribute'} eq "fw_version") |
|
3180
|
0 |
0 |
unless $ok |
|
3181
|
0 |
0 |
if $$outref =~ /Name : (\S+)/g |
|
3182
|
0 |
0 |
if $$outref =~ / Kernel : (\S+)/g |
|
3183
|
0 |
0 |
if $$outref =~ / Ipe : (\S+)/g |
|
3187
|
0 |
0 |
if ($attrib->{'attribute'} eq "slots" or $attrib->{'attribute'} eq "ports" or $attrib->{'attribute'} eq "base_mac") |
|
3189
|
0 |
0 |
unless $ok |
|
3193
|
0 |
0 |
if $$outref =~ /ether (\S+)/cg and $1 ne "00:00:00:00:00:00" |
|
3194
|
0 |
0 |
if $interface eq "isw0" |
|
3201
|
0 |
0 |
if ($attrib->{'attribute'} eq "sysname") |
|
3203
|
0 |
0 |
unless $ok |
|
3204
|
0 |
0 |
if $$outref =~ /\s+Hostname\s+: (\S+)/g |
|
3208
|
0 |
0 |
if ($attrib->{'attribute'} eq "baudrate" or $attrib->{'attribute'} eq "max_baud") |
|
3216
|
0 |
0 |
if ($attrib->{'attribute'} eq "sysname") |
|
3218
|
0 |
0 |
unless $ok |
|
3219
|
0 |
0 |
if $$outref =~ /System name: (.+)/g |
|
3223
|
0 |
0 |
if ($attrib->{'attribute'} eq "model" or $attrib->{'attribute'} eq "base_mac") |
|
3225
|
0 |
0 |
unless $ok |
|
3226
|
0 |
0 |
if $$outref =~ /Chassis Type: (.+?)(?:\s?\(0x\d+\)?)/g |
|
3227
|
0 |
0 |
if $$outref =~ /Base MAC Address: (.+)/g |
|
3228
|
0 |
0 |
if $$outref =~ /Firmware Version: (\S+)/g |
|
3229
|
0 |
0 |
if $$outref =~ /BootCode Version: (\S+)/g |
|
3233
|
0 |
0 |
if ($attrib->{'attribute'} eq "sw_version" or $attrib->{'attribute'} eq "fw_version") |
|
3235
|
0 |
0 |
unless $ok |
|
3236
|
0 |
0 |
if $$outref =~ /Fw: (\S+)/g |
|
3237
|
0 |
0 |
if $$outref =~ /Bp: (.+)/g |
|
3241
|
0 |
0 |
if ($attrib->{'attribute'} eq "slots" or $attrib->{'attribute'} eq "ports") |
|
3243
|
0 |
0 |
unless $ok |
|
3248
|
0 |
0 |
if ($attrib->{'attribute'} eq "stp_mode") |
|
3250
|
0 |
0 |
unless $ok |
|
3251
|
0 |
0 |
if ($$outref =~ /Bridge Stp Mode is set to (.+)/g) { } |
|
3252
|
0 |
0 |
if $1 == "ieee8021" |
|
3253
|
0 |
0 |
if $1 == "none" |
|
3261
|
0 |
0 |
if ($attrib->{'attribute'} eq "baudrate") |
|
3263
|
0 |
0 |
unless $ok |
|
3264
|
0 |
0 |
if $$outref =~ /com.\d.\d +(\d+)/ |
|
3268
|
0 |
0 |
if ($attrib->{'attribute'} eq "max_baud") |
|
3270
|
0 |
0 |
unless $ok |
|
3271
|
0 |
0 |
if $$outref =~ /,(\d+)\)$/m |
|
3286
|
0 |
0 |
unless ($self->{'POLLING'}) |
|
3291
|
0 |
0 |
unless (defined $self->{'POLL'}{$pollsub}) |
|
3294
|
0 |
0 |
if (@_ and not %args) |
|
3314
|
0 |
0 |
$args{'baudrate'} eq 'max' ? : |
|
3319
|
0 |
0 |
if defined $changeBaud->{'errmode'} |
|
3322
|
0 |
0 |
if ($changeBaud->{'local_side_only'}) |
|
3334
|
0 |
0 |
if ($changeBaud->{'stage'} < 1) |
|
3335
|
0 |
0 |
unless ($self->connection_type eq "SERIAL") |
|
3338
|
0 |
0 |
unless (defined $self->baudrate) |
|
3341
|
0 |
0 |
unless (defined $changeBaud->{'baudrate'}) |
|
3344
|
0 |
0 |
unless ($familyType) |
|
3350
|
0 |
0 |
if ($changeBaud->{'stage'} < 2) |
|
3351
|
0 |
0 |
unless (defined $self->{$Package}{'ATTRIB'}{'baudrate'}) |
|
3353
|
0 |
0 |
unless $ok |
|
3355
|
0 |
0 |
unless (defined $self->{$Package}{'ATTRIB'}{'baudrate'}) |
|
3356
|
0 |
0 |
unless $changeBaud->{'maxMode'} |
|
3361
|
0 |
0 |
unless (defined $self->{$Package}{'ATTRIB'}{'max_baud'}) |
|
3363
|
0 |
0 |
unless $ok |
|
3365
|
0 |
0 |
if ($changeBaud->{'maxMode'} and not defined $self->{$Package}{'ATTRIB'}{'max_baud'}) |
|
3370
|
0 |
0 |
if $changeBaud->{'maxMode'} |
|
3372
|
0 |
0 |
if ($changeBaud->{'baudrate'} == $self->baudrate) |
|
3378
|
0 |
0 |
if ($familyType eq $Prm{'generic'}) { } |
|
|
0 |
0 |
elsif ($familyType eq $Prm{'bstk'}) { } |
|
|
0 |
0 |
elsif ($familyType eq $Prm{'pers'}) { } |
|
|
0 |
0 |
elsif ($familyType eq $Prm{'s200'}) { } |
|
3382
|
0 |
0 |
unless ($changeBaud->{'baudrate'} == 9600 or $changeBaud->{'baudrate'} == 19200 or $changeBaud->{'baudrate'} == 38400) |
|
3387
|
0 |
0 |
unless ($changeBaud->{'baudrate'} == 9600 or $changeBaud->{'baudrate'} == 19200 or $changeBaud->{'baudrate'} == 38400 or $changeBaud->{'baudrate'} == 57600 or $changeBaud->{'baudrate'} == 115200) |
|
3393
|
0 |
0 |
unless ($changeBaud->{'baudrate'} == 9600 or $changeBaud->{'baudrate'} == 19200 or $changeBaud->{'baudrate'} == 38400 or $changeBaud->{'baudrate'} == 57600 or $changeBaud->{'baudrate'} == 115200) |
|
3399
|
0 |
0 |
unless $changeBaud->{'maxMode'} |
|
3407
|
0 |
0 |
if ($changeBaud->{'stage'} < 3) |
|
3408
|
0 |
0 |
if ($familyType eq $Prm{'pers'}) { } |
|
|
0 |
0 |
elsif ($familyType eq $Prm{'s200'}) { } |
|
3409
|
0 |
0 |
unless (defined $self->{$Package}{'ATTRIB'}{'model'}) |
|
3411
|
0 |
0 |
unless $ok |
|
3413
|
0 |
0 |
if ($changeBaud->{'userExec'} = $self->last_prompt =~ />\s?$/) |
|
3415
|
0 |
0 |
unless $ok |
|
3419
|
0 |
0 |
if ($changeBaud->{'userExec'} = $self->last_prompt =~ />\s?$/) |
|
3421
|
0 |
0 |
unless $ok |
|
3427
|
0 |
0 |
if ($changeBaud->{'stage'} < 4) |
|
3428
|
0 |
0 |
if ($familyType eq $Prm{'pers'} and $self->{$Package}{'ATTRIB'}{'is_nncli'}) { } |
|
|
0 |
0 |
elsif ($familyType eq $Prm{'s200'}) { } |
|
3429
|
0 |
0 |
if ($changeBaud->{'privExec'} = !$self->config_context) |
|
3431
|
0 |
0 |
unless $ok |
|
3432
|
0 |
0 |
unless $$resref |
|
3436
|
0 |
0 |
if ($changeBaud->{'privExec'} = !$self->config_context) |
|
3438
|
0 |
0 |
unless $ok |
|
3439
|
0 |
0 |
unless $$resref |
|
3445
|
0 |
0 |
if ($changeBaud->{'stage'} < 5) |
|
3446
|
0 |
0 |
if ($familyType eq $Prm{'bstk'}) { } |
|
|
0 |
0 |
elsif ($familyType eq $Prm{'pers'}) { } |
|
|
0 |
0 |
elsif ($familyType eq $Prm{'s200'}) { } |
|
3447
|
0 |
0 |
unless $self->print("line", "terminal speed $changeBaud->{'baudrate'}", "errmode", "return") |
|
3451
|
0 |
0 |
if ($self->{$Package}{'ATTRIB'}{'model'} =~ /(?:Passport|ERS)-(?:83|16)\d\d/) { } |
|
3452
|
0 |
0 |
if ($self->{$Package}{'ATTRIB'}{'is_nncli'}) { } |
|
3453
|
0 |
0 |
unless $self->print("line", "boot config sio baud $changeBaud->{'baudrate'}", "errmode", "return") |
|
3457
|
0 |
0 |
unless $self->print("line", "config bootconfig sio baud $changeBaud->{'baudrate'}", "errmode", "return") |
|
3462
|
0 |
0 |
if ($self->{$Package}{'ATTRIB'}{'is_nncli'}) { } |
|
3463
|
0 |
0 |
unless $self->print("line", "boot config sio console baud $changeBaud->{'baudrate'}", "errmode", "return") |
|
3467
|
0 |
0 |
unless $self->print("line", "config bootconfig sio console baud $changeBaud->{'baudrate'}", "errmode", "return") |
|
3473
|
0 |
0 |
unless $self->print("line", "serial baudrate $changeBaud->{'baudrate'}", "errmode", "return") |
|
3480
|
0 |
0 |
if ($changeBaud->{'stage'} < 6) |
|
3482
|
0 |
0 |
unless $ok |
|
3483
|
0 |
0 |
if (length $self->{'POLL'}{'read_buffer'} and $self->{'POLL'}{'read_buffer'} =~ /$self->{$Package}{'prompt_qr'}/) |
|
3485
|
0 |
0 |
unless $changeBaud->{'maxMode'} |
|
3490
|
0 |
0 |
if (defined $self->{$Package}{'ORIGBAUDRATE'}) { } |
|
3491
|
0 |
0 |
if $self->{$Package}{'ORIGBAUDRATE'} == $changeBaud->{'baudrate'} |
|
3499
|
0 |
0 |
if ($changeBaud->{'stage'} < 7) |
|
3504
|
0 |
0 |
unless $ok |
|
3510
|
0 |
0 |
if ($changeBaud->{'stage'} < 8) |
|
3512
|
0 |
0 |
unless $ok |
|
3516
|
0 |
0 |
if ($changeBaud->{'stage'} < 9) |
|
3517
|
0 |
0 |
if ($familyType eq $Prm{'pers'} and $self->{$Package}{'ATTRIB'}{'is_nncli'} or $familyType eq $Prm{'s200'}) |
|
3518
|
0 |
0 |
if ($changeBaud->{'privExec'}) |
|
3520
|
0 |
0 |
unless $ok |
|
3521
|
0 |
0 |
unless $$resref |
|
3527
|
0 |
0 |
if ($changeBaud->{'stage'} < 10) |
|
3529
|
0 |
0 |
if ($familyType eq $Prm{'pers'} and $self->{$Package}{'ATTRIB'}{'is_nncli'} or $familyType eq $Prm{'s200'}) |
|
3530
|
0 |
0 |
if ($changeBaud->{'userExec'}) |
|
3532
|
0 |
0 |
if (defined $ExitPrivExec{$familyType}) { } |
|
3544
|
0 |
0 |
if ($changeBaud->{'stage'} < 11) |
|
3545
|
0 |
0 |
if ($familyType eq $Prm{'pers'} and $self->{$Package}{'ATTRIB'}{'is_nncli'} or $familyType eq $Prm{'s200'}) |
|
3546
|
0 |
0 |
if ($changeBaud->{'userExec'}) |
|
3548
|
0 |
0 |
unless $ok |
|
3549
|
0 |
0 |
unless $$resref |
|
3563
|
0 |
0 |
unless ($self->{'POLLING'}) |
|
3568
|
0 |
0 |
unless (defined $self->{'POLL'}{$pollsub}) |
|
3571
|
0 |
0 |
if (@_ and not %args) |
|
3585
|
0 |
0 |
defined $args{'password'} ? : |
|
|
0 |
0 |
defined $args{'prompt_credentials'} ? : |
|
3590
|
0 |
0 |
if defined $enable->{'errmode'} |
|
3591
|
0 |
0 |
if $self->eof |
|
3597
|
0 |
0 |
if ($enable->{'stage'} < 1) |
|
3599
|
0 |
0 |
unless $familyType |
|
3600
|
0 |
0 |
unless $self->{$Package}{'ATTRIB'}{'is_nncli'} |
|
3601
|
0 |
0 |
unless $self->last_prompt =~ />\s?$/ |
|
3605
|
0 |
0 |
unless $self->print("line", "enable", "errmode", "return") |
|
3612
|
0 |
0 |
unless $ok |
|
3615
|
0 |
0 |
if $self->{'POLL'}{'local_buffer'} =~ /error: Access denied/ |
|
3616
|
0 |
0 |
if ($self->{'POLL'}{'local_buffer'} =~ /$passwordPrompt/) |
|
3618
|
0 |
0 |
if (defined $enable->{'enable_password'}) { } |
|
3619
|
0 |
0 |
if ($enable->{'login_attempted'} == 1) { } |
|
3622
|
0 |
0 |
unless $self->print("line", $enablePwd, "errmode", "return") |
|
3628
|
0 |
0 |
unless $self->print("errmode", "return") |
|
3633
|
0 |
0 |
if ($enable->{'login_attempted'} == 1) { } |
|
|
0 |
0 |
elsif ($enable->{'login_attempted'} == 2) { } |
|
3636
|
0 |
0 |
unless $self->print("errmode", "return") |
|
3642
|
0 |
0 |
unless $self->print("line", $enablePwd, "errmode", "return") |
|
3646
|
0 |
0 |
if ($enable->{'prompt_credentials'}) { } |
|
3648
|
0 |
0 |
unless $self->print("line", $enablePwd, "errmode", "return") |
|
3654
|
0 |
0 |
unless $self->print("errmode", "return") |
|
3663
|
0 |
0 |
if $enable->{'login_failed'} |
|
3664
|
0 |
0 |
if $self->last_prompt =~ />\s?$/ |
|
3665
|
0 |
0 |
if defined $enablePwd |
|
3675
|
0 |
0 |
unless ($self->{'POLLING'}) |
|
3680
|
0 |
0 |
unless (defined $self->{'POLL'}{$pollsub}) |
|
3683
|
0 |
0 |
if (@_ and not %args) |
|
3700
|
0 |
0 |
if defined $devMorePage->{'errmode'} |
|
3701
|
0 |
0 |
if $self->eof |
|
3704
|
0 |
0 |
unless $familyType |
|
3705
|
0 |
0 |
if ($familyType eq $Prm{'bstk'}) { } |
|
|
0 |
0 |
elsif ($familyType eq $Prm{'pers'} or $familyType eq $Prm{'xlr'}) { } |
|
|
0 |
0 |
elsif ($familyType eq $Prm{'sr'}) { } |
|
|
0 |
0 |
elsif ($familyType eq $Prm{'trpz'}) { } |
|
|
0 |
0 |
elsif ($familyType eq $Prm{'xirrus'}) { } |
|
|
0 |
0 |
elsif ($familyType eq $Prm{'xos'}) { } |
|
|
0 |
0 |
elsif ($familyType eq $Prm{'s200'}) { } |
|
|
0 |
0 |
elsif ($familyType eq $Prm{'isw'}) { } |
|
|
0 |
0 |
elsif ($familyType eq $Prm{'iswMarv'}) { } |
|
|
0 |
0 |
elsif ($familyType eq $Prm{'wing'}) { } |
|
|
0 |
0 |
elsif ($familyType eq $Prm{'slx'}) { } |
|
|
0 |
0 |
elsif ($familyType eq $Prm{'hive'}) { } |
|
|
0 |
0 |
elsif ($familyType eq $Prm{'eos'}) { } |
|
3706
|
0 |
0 |
$devMorePage->{'enable'} ? : |
|
|
0 |
0 |
unless defined $devMorePage->{'cmdString'} |
|
3708
|
0 |
0 |
unless $ok |
|
3709
|
0 |
0 |
unless $$resref |
|
3712
|
0 |
0 |
if ($self->{$Package}{'ATTRIB'}{'is_nncli'}) { } |
|
3713
|
0 |
0 |
if ($devMorePage->{'stage'} < 1) |
|
3714
|
0 |
0 |
unless (defined $self->{$Package}{'ATTRIB'}{'model'}) |
|
3716
|
0 |
0 |
unless $ok |
|
3718
|
0 |
0 |
if (defined $self->{$Package}{'ATTRIB'}{'model'} and $self->{$Package}{'ATTRIB'}{'model'} =~ /(?:Passport|ERS)-83\d\d/) { } |
|
3725
|
0 |
0 |
if ($devMorePage->{'stage'} < 2) |
|
3726
|
0 |
0 |
$devMorePage->{'enable'} ? : |
|
|
0 |
0 |
unless defined $devMorePage->{'cmdString'} |
|
3728
|
0 |
0 |
unless $ok |
|
3729
|
0 |
0 |
if not $$resref and defined $self->{$Package}{'ATTRIB'}{'model'} |
|
3731
|
0 |
0 |
if $$resref |
|
3734
|
0 |
0 |
if ($devMorePage->{'stage'} < 3) |
|
3735
|
0 |
0 |
$devMorePage->{'enable'} ? : |
|
|
0 |
0 |
unless defined $devMorePage->{'cmdString'} |
|
3737
|
0 |
0 |
unless $ok |
|
3738
|
0 |
0 |
unless $$resref |
|
3742
|
0 |
0 |
$devMorePage->{'enable'} ? : |
|
|
0 |
0 |
unless defined $devMorePage->{'cmdString'} |
|
3744
|
0 |
0 |
unless $ok |
|
3745
|
0 |
0 |
unless $$resref |
|
3749
|
0 |
0 |
$devMorePage->{'enable'} ? : |
|
|
0 |
0 |
unless defined $devMorePage->{'cmdString'} |
|
3751
|
0 |
0 |
unless $ok |
|
3752
|
0 |
0 |
unless $$resref |
|
3755
|
0 |
0 |
$devMorePage->{'enable'} ? : |
|
|
0 |
0 |
unless defined $devMorePage->{'cmdString'} |
|
3757
|
0 |
0 |
unless $ok |
|
3758
|
0 |
0 |
unless $$resref |
|
3761
|
0 |
0 |
$devMorePage->{'enable'} ? : |
|
|
0 |
0 |
unless defined $devMorePage->{'cmdString'} |
|
3763
|
0 |
0 |
unless $ok |
|
3764
|
0 |
0 |
unless $$resref |
|
3767
|
0 |
0 |
$devMorePage->{'enable'} ? : |
|
|
0 |
0 |
unless defined $devMorePage->{'cmdString'} |
|
3769
|
0 |
0 |
unless $ok |
|
3770
|
0 |
0 |
unless $$resref |
|
3773
|
0 |
0 |
$devMorePage->{'enable'} ? : |
|
|
0 |
0 |
unless defined $devMorePage->{'cmdString'} |
|
3775
|
0 |
0 |
unless $ok |
|
3776
|
0 |
0 |
unless $$resref |
|
3779
|
0 |
0 |
$devMorePage->{'enable'} ? : |
|
|
0 |
0 |
unless defined $devMorePage->{'cmdString'} |
|
3780
|
0 |
0 |
$self->config_context ? : |
|
3781
|
0 |
0 |
unless $ok |
|
3782
|
0 |
0 |
unless $$resref |
|
3785
|
0 |
0 |
$devMorePage->{'enable'} ? : |
|
|
0 |
0 |
unless defined $devMorePage->{'cmdString'} |
|
3787
|
0 |
0 |
unless $ok |
|
3788
|
0 |
0 |
unless $$resref |
|
3791
|
0 |
0 |
$devMorePage->{'enable'} ? : |
|
|
0 |
0 |
unless defined $devMorePage->{'cmdString'} |
|
3792
|
0 |
0 |
$self->config_context ? : |
|
3793
|
0 |
0 |
unless $ok |
|
3794
|
0 |
0 |
unless $$resref |
|
3797
|
0 |
0 |
$devMorePage->{'enable'} ? : |
|
|
0 |
0 |
unless defined $devMorePage->{'cmdString'} |
|
3798
|
0 |
0 |
$self->config_context ? : |
|
3799
|
0 |
0 |
unless $ok |
|
3800
|
0 |
0 |
unless $$resref |
|
3803
|
0 |
0 |
$devMorePage->{'enable'} ? : |
|
|
0 |
0 |
unless defined $devMorePage->{'cmdString'} |
|
3805
|
0 |
0 |
unless $ok |
|
3806
|
0 |
0 |
unless $$resref |
|
3809
|
0 |
0 |
$devMorePage->{'enable'} ? : |
|
|
0 |
0 |
unless defined $devMorePage->{'cmdString'} |
|
3811
|
0 |
0 |
unless $ok |
|
3812
|
0 |
0 |
unless $$resref |
|
3826
|
0 |
0 |
unless ($self->{'POLLING'}) |
|
3831
|
0 |
0 |
unless (defined $self->{'POLL'}{$pollsub}) |
|
3834
|
0 |
0 |
if (@_ and not %args) |
|
3847
|
0 |
0 |
defined $args{'username'} ? : |
|
|
0 |
0 |
defined $args{'password'} ? : |
|
|
0 |
0 |
defined $args{'prompt_credentials'} ? : |
|
3852
|
0 |
0 |
if defined $devPeerCpu->{'errmode'} |
|
3853
|
0 |
0 |
if $self->eof |
|
3856
|
0 |
0 |
if ($devPeerCpu->{'stage'} < 1) |
|
3857
|
0 |
0 |
unless ($familyType) |
|
3860
|
0 |
0 |
unless ($familyType eq $Prm{'pers'}) |
|
3863
|
0 |
0 |
unless ($devPeerCpu->{'username'} and $devPeerCpu->{'password'} or $devPeerCpu->{'prompt_credentials'}) |
|
3869
|
0 |
0 |
if ($devPeerCpu->{'stage'} < 2) |
|
3871
|
0 |
0 |
unless $ok |
|
3873
|
0 |
0 |
unless $self->print("line", "peer telnet", "errmode", "return") |
|
3878
|
0 |
0 |
if ($devPeerCpu->{'stage'} < 3) |
|
3880
|
0 |
0 |
unless defined $ok |
|
3881
|
0 |
0 |
unless $ok |
|
3883
|
0 |
0 |
unless defined $devPeerCpu->{'username'} |
|
3884
|
0 |
0 |
unless $self->print("line", $devPeerCpu->{'username'}, "errmode", "return") |
|
3889
|
0 |
0 |
if ($devPeerCpu->{'stage'} < 4) |
|
3891
|
0 |
0 |
unless defined $ok |
|
3892
|
0 |
0 |
unless $ok |
|
3894
|
0 |
0 |
unless defined $devPeerCpu->{'password'} |
|
3895
|
0 |
0 |
unless $self->print("line", $devPeerCpu->{'password'}, "errmode", "return") |
|
3902
|
0 |
0 |
unless $ok |
|
3906
|
0 |
0 |
$self->{'LASTPROMPT'} =~ /^@/ ? : |
|
3907
|
0 |
0 |
if $self->{'LASTPROMPT'} =~ /^@/ |
|
3917
|
0 |
0 |
unless (defined $self->{'POLL'}{$pollsub}) |
|
3928
|
0 |
0 |
if ($self->{$Package}{'ATTRIB'}{'is_nncli'}) { } |
|
3929
|
0 |
0 |
if ($cmdPrivExec->{'stage'} < 1) |
|
3930
|
0 |
0 |
if ($self->{'WRITEFLAG'}) |
|
3932
|
0 |
0 |
unless $ok |
|
3936
|
0 |
0 |
if ($cmdPrivExec->{'stage'} < 2) |
|
3937
|
0 |
0 |
if ($cmdPrivExec->{'userExec'} = $self->last_prompt =~ />\s?$/) |
|
3939
|
0 |
0 |
unless $ok |
|
3943
|
0 |
0 |
if ($cmdPrivExec->{'stage'} < 3) |
|
3945
|
0 |
0 |
unless $ok |
|
3950
|
0 |
0 |
if ($cmdPrivExec->{'stage'} < 4) |
|
3952
|
0 |
0 |
if ($cmdPrivExec->{'userExec'}) |
|
3954
|
0 |
0 |
if (defined $ExitPrivExec{$familyType}) { } |
|
3965
|
0 |
0 |
if ($cmdPrivExec->{'stage'} < 5) |
|
3966
|
0 |
0 |
if ($cmdPrivExec->{'userExec'}) |
|
3968
|
0 |
0 |
unless $ok |
|
3978
|
0 |
0 |
unless $ok |
|
3990
|
0 |
0 |
unless (defined $self->{'POLL'}{$pollsub}) |
|
4002
|
0 |
0 |
if ($self->{$Package}{'ATTRIB'}{'is_nncli'}) { } |
|
4003
|
0 |
0 |
if ($cmdConfig->{'stage'} < 1) |
|
4004
|
0 |
0 |
if ($self->{'WRITEFLAG'}) |
|
4006
|
0 |
0 |
unless $ok |
|
4010
|
0 |
0 |
if ($cmdConfig->{'stage'} < 2) |
|
4011
|
0 |
0 |
if ($cmdConfig->{'userExec'} = $self->last_prompt =~ />\s?$/) |
|
4013
|
0 |
0 |
unless $ok |
|
4017
|
0 |
0 |
if ($cmdConfig->{'stage'} < 3) |
|
4018
|
0 |
0 |
if ($cmdConfig->{'privExec'} = !$self->config_context) |
|
4019
|
0 |
0 |
$familyType eq 'WLAN9100' || $familyType eq 'Series200' || $familyType eq 'ISWmarvell' ? : |
|
4021
|
0 |
0 |
unless $ok |
|
4022
|
0 |
0 |
unless $$resref |
|
4026
|
0 |
0 |
if ($cmdConfig->{'stage'} < 4) |
|
4028
|
0 |
0 |
unless $ok |
|
4033
|
0 |
0 |
if ($cmdConfig->{'stage'} < 5) |
|
4034
|
0 |
0 |
if ($cmdConfig->{'privExec'}) |
|
4035
|
0 |
0 |
$familyType eq 'ISWmarvell' ? : |
|
4037
|
0 |
0 |
unless $ok |
|
4042
|
0 |
0 |
if ($cmdConfig->{'stage'} < 6) |
|
4044
|
0 |
0 |
if ($cmdConfig->{'userExec'}) |
|
4046
|
0 |
0 |
if (defined $ExitPrivExec{$familyType}) { } |
|
4057
|
0 |
0 |
if ($cmdConfig->{'stage'} < 7) |
|
4058
|
0 |
0 |
if ($cmdConfig->{'userExec'}) |
|
4060
|
0 |
0 |
unless $ok |
|
4069
|
0 |
0 |
unless $cmdcli =~ /^config / |
|
4071
|
0 |
0 |
unless $ok |
|
4083
|
0 |
0 |
unless (defined $self->{'POLL'}{$pollsub}) |
|
4094
|
0 |
0 |
if ($cmdIpanema->{'stage'} < 1) |
|
4095
|
0 |
0 |
if ($self->{'WRITEFLAG'}) |
|
4097
|
0 |
0 |
unless $ok |
|
4101
|
0 |
0 |
if ($cmdIpanema->{'stage'} < 2) |
|
4103
|
0 |
0 |
if (($cmdIpanema->{'virtualRt'}) = $self->last_prompt =~ /\.rt(\d):/g or ($cmdIpanema->{'virtualRtCli'}) = $self->last_prompt =~ /\.rt(\d)\]/g) |
|
4111
|
0 |
0 |
if ($cmdIpanema->{'stage'} < 3) |
|
4112
|
0 |
0 |
if ($cmdIpanema->{'virtualRt'} or $cmdIpanema->{'virtualRtCli'}) |
|
4114
|
0 |
0 |
unless $ok |
|
4119
|
0 |
0 |
if ($cmdIpanema->{'stage'} < 4) |
|
4121
|
0 |
0 |
unless $ok |
|
4126
|
0 |
0 |
if ($cmdIpanema->{'stage'} < 5) |
|
4129
|
0 |
0 |
if ($cmdIpanema->{'virtualRt'}) { } |
|
|
0 |
0 |
elsif ($cmdIpanema->{'virtualRtCli'}) { } |
|
4135
|
0 |
0 |
if (defined $virtualRtCmd) |
|
4140
|
0 |
0 |
if ($cmdIpanema->{'stage'} < 6) |
|
4141
|
0 |
0 |
if ($cmdIpanema->{'virtualRt'}) |
|
4143
|
0 |
0 |
unless $ok |
|
4157
|
0 |
0 |
unless (defined $self->{'POLL'}{$pollsub}) |
|
4164
|
0 |
0 |
if ($discDevice->{'stage'} < 1) |
|
4170
|
0 |
0 |
if ($discDevice->{'stage'} < 2) |
|
4173
|
0 |
0 |
unless $ok |
|
4176
|
0 |
0 |
if ($self->last_prompt =~ /(.*)($GenericPromptRegex)/) { } |
|
4187
|
0 |
0 |
if ($discDevice->{'stage'} < 3) |
|
4190
|
0 |
0 |
unless $ok |
|
4192
|
0 |
0 |
if ($$outref =~ /\s+Configured\s+In Use\s+Last BootP/) |
|
4199
|
0 |
0 |
if ($$outref =~ /^\? Unknown command \(try "help"\)\.$/) |
|
4206
|
0 |
0 |
if ($discDevice->{'stage'} < 4) |
|
4209
|
0 |
0 |
unless $ok |
|
4211
|
0 |
0 |
if ($$outref =~ /^\s+auto-recover-delay :/m) |
|
4218
|
0 |
0 |
if ($discDevice->{'stage'} < 5) |
|
4220
|
0 |
0 |
$self->config_context ? : |
|
4221
|
0 |
0 |
unless $ok |
|
4223
|
0 |
0 |
if ($$outref =~ /^Chassis Name:(?:\t|\e\[\d\w)(?:(?:BR|EN)-)?(.+)/m) |
|
4227
|
0 |
0 |
defined $self->{$Package}{'ATTRIB'}{'model'} && $self->{$Package}{'ATTRIB'}{'model'} =~ /9030/ ? : |
|
4228
|
0 |
0 |
if $$outref =~ /switchType: (\d+)/g |
|
4234
|
0 |
0 |
if ($discDevice->{'stage'} < 6) |
|
4237
|
0 |
0 |
unless $ok |
|
4239
|
0 |
0 |
if ($$outref =~ /^Image : Extreme(XOS| Networks Switch Engine) version (.+) by /m) |
|
4240
|
0 |
0 |
$1 eq 'XOS' ? : |
|
4242
|
0 |
0 |
if $$outref =~ /^BootROM :(.+)$/m |
|
4248
|
0 |
0 |
if ($discDevice->{'stage'} < 7) |
|
4251
|
0 |
0 |
unless $ok |
|
4253
|
0 |
0 |
if ($$outref =~ /^(?:Product |Board Type) : (.+)(?:, PoE Switch)?/m) |
|
4262
|
0 |
0 |
if ($discDevice->{'stage'} < 8) |
|
4265
|
0 |
0 |
unless $ok |
|
4267
|
0 |
0 |
if ($$outref =~ /^Page Filter Enabled\t\t: (?:enable|disable)/m) |
|
4274
|
0 |
0 |
if ($discDevice->{'stage'} < 9) |
|
4277
|
0 |
0 |
unless $ok |
|
4279
|
0 |
0 |
if ($$outref =~ /^(\S+) version (.+)\nCopyright \(c\) [\d-]+ Extreme Networks/m) |
|
4283
|
0 |
0 |
if $$outref =~ /^(\S+) uptime is/m |
|
4284
|
0 |
0 |
if $$outref =~ /^Base ethernet MAC address is (.+)$/m |
|
4290
|
0 |
0 |
if ($discDevice->{'stage'} < 10) |
|
4293
|
0 |
0 |
unless $ok |
|
4295
|
0 |
0 |
if ($$outref =~ /^Version: HiveOS (\S+) build-/m) |
|
4297
|
0 |
0 |
if $$outref =~ /^Platform:\s+(\S+)/m |
|
4298
|
0 |
0 |
if $$outref =~ /^Bootloader ver: v(\S+)/m |
|
4303
|
0 |
0 |
if ($$outref =~ /^Copyright \(c\) \d{4} by (?:Extreme|Enterasys) Networks, Inc\./m) |
|
4310
|
0 |
0 |
if ($discDevice->{'stage'} < 11) |
|
4313
|
0 |
0 |
unless $ok |
|
4315
|
0 |
0 |
if ($$outref =~ /^ \[LAN\] IPaddr : /m) |
|
4317
|
0 |
0 |
if $$outref =~ /^\s+Hostname\s+: (\S+)/m |
|
4323
|
0 |
0 |
if ($discDevice->{'stage'} < 12) |
|
4326
|
0 |
0 |
unless $ok |
|
4328
|
0 |
0 |
if ($$outref =~ m[^\d(?:/\d)?\s+\S+\s+\S+\s+\S+\s+Extreme\s+(\S+)]m) |
|
4337
|
0 |
0 |
if ($discDevice->{'stage'} < 13) |
|
4340
|
0 |
0 |
unless $ok |
|
4342
|
0 |
0 |
if ($$outref =~ /^Version:\s+(?i:v|REL)?(.+)/m) |
|
4351
|
0 |
0 |
if ($discDevice->{'stage'} < 14) |
|
4354
|
0 |
0 |
unless $ok |
|
4356
|
0 |
0 |
if ($$outref =~ /^Access Point Hostname\s*(.+)$/m) |
|
4365
|
0 |
0 |
if ($discDevice->{'stage'} < 15) |
|
4368
|
0 |
0 |
unless $ok |
|
4370
|
0 |
0 |
if ($$outref =~ /^Chassis Model: (.+)$/m) |
|
4379
|
0 |
0 |
if ($discDevice->{'stage'} < 16) |
|
4382
|
0 |
0 |
unless $ok |
|
4384
|
0 |
0 |
if ($$outref =~ /Product Name:\s+(.+)/g) |
|
4388
|
0 |
0 |
if $$outref =~ /System Name:\s+(.+)/g |
|
4389
|
0 |
0 |
if $$outref =~ /System MAC:\s+(.+)/g |
|
4395
|
0 |
0 |
if ($discDevice->{'stage'} < 17) |
|
4398
|
0 |
0 |
unless $ok |
|
4400
|
0 |
0 |
if ($$outref =~ /^\s+NVRamSize:/m) |
|
4417
|
0 |
0 |
if (shift() & $self->{'debug'}) |
|
4421
|
0 |
0 |
if ($self->{$Package}{'DEBUGLOGFH'}) { } |
|
4438
|
0 |
0 |
unless ($attrib->{'debugMsg'}) |
|
4439
|
0 |
0 |
$cmd->$#* ? : |
|
4440
|
0 |
0 |
defined $pages ? : |
|
4444
|
0 |
0 |
if $cmd->$#* and $cmdConfig |
|
4445
|
0 |
0 |
if $cmd->$#* |
|
4446
|
0 |
0 |
if $familyType eq $Prm{'ipanema'} |
|
4455
|
0 |
0 |
if (defined $keyType) { } |
|
4463
|
0 |
0 |
if ($actualPrompt) |
|
4470
|
0 |
0 |
defined $MorePromptDelay{$keyType} ? : |
|
4471
|
0 |
0 |
if defined $RefreshCommands{$keyType} |
|
4480
|
0 |
0 |
if (defined $configContext) { } |
|
4486
|
0 |
0 |
if ($self->{'LASTPROMPT'} =~ /$regex/) |
|
4492
|
0 |
0 |
unless $match |
|
4502
|
0 |
0 |
if (defined $Attribute{$family}) { } |
|
4510
|
0 |
0 |
if (%attribList) |
|
4523
|
0 |
0 |
if $self->{$Package}{'ATTRIBFLAG'}{'slots'} |
|
4524
|
0 |
0 |
if $self->{$Package}{'ATTRIBFLAG'}{'ports'} |
|
4527
|
0 |
0 |
if (defined $1 and !defined($currentSlot) || $1 != $currentSlot) |
|
4529
|
0 |
0 |
unless grep {$_ eq $currentSlot;} @slots |
|
4531
|
0 |
0 |
if (defined $currentSlot) { } |
|
4532
|
0 |
0 |
unless grep {$_ eq lc $2;} @{$ports[$currentSlot];} |
|
4535
|
0 |
0 |
unless grep {$_ eq lc $2;} @ports |
|
4537
|
0 |
0 |
unless defined $1 |
|
4550
|
0 |
0 |
if $self->{$Package}{'ATTRIBFLAG'}{'slots'} |
|
4551
|
0 |
0 |
if $self->{$Package}{'ATTRIBFLAG'}{'ports'} |
|
4554
|
0 |
0 |
if (not defined $currentHash or $1 ne $currentHash) |
|
4556
|
0 |
0 |
unless grep {$_ eq $currentHash;} @slots |
|
4558
|
0 |
0 |
unless grep {$_ eq $2;} @{$ports{$currentHash};} |
|
4573
|
0 |
0 |
if ($self->{$Package}{'ATTRIB'}{'family_type'} eq $Prm{'bstk'}) { } |
|
|
0 |
0 |
elsif ($self->{$Package}{'ATTRIB'}{'family_type'} eq $Prm{'pers'}) { } |
|
|
0 |
0 |
elsif ($self->{$Package}{'ATTRIB'}{'family_type'} eq $Prm{'sr'}) { } |
|
|
0 |
0 |
elsif ($self->{$Package}{'ATTRIB'}{'family_type'} eq $Prm{'trpz'}) { } |
|
|
0 |
0 |
elsif ($self->{$Package}{'ATTRIB'}{'family_type'} eq $Prm{'xirrus'}) { } |
|
|
0 |
0 |
elsif ($self->{$Package}{'ATTRIB'}{'family_type'} eq $Prm{'isw'} or $self->{$Package}{'ATTRIB'}{'family_type'} eq $Prm{'iswMarv'}) { } |
|
|
0 |
0 |
elsif ($self->{$Package}{'ATTRIB'}{'is_apls'}) { } |
|
|
0 |
0 |
elsif ($self->{$Package}{'ATTRIB'}{'is_eos'}) { } |
|
4615
|
0 |
0 |
if ($self->{$Package}{'ATTRIB'}{'family_type'} eq $Prm{'pers'}) |
|
4617
|
0 |
0 |
if ($model =~ /FabricEngine$/) { } |
|
|
0 |
0 |
elsif ($self->{$Package}{'ATTRIB'}{'is_apls'} or $model =~ /^(?:VSP|XA)/ or $model =~ /VOSS$/) { } |
|
4669
|
0 |
0 |
if ($attrib eq 'is_nncli' or $attrib eq 'is_acli') { } |
|
4679
|
0 |
0 |
if (defined $value) { } |
|
4693
|
0 |
0 |
unless $familyType = $self->{$Package}{'ATTRIB'}{'family_type'} |
|
4694
|
0 |
0 |
if $familyType eq $Prm{'generic'} |
|
4695
|
0 |
0 |
if ($$outref =~ /$ErrorPatterns{$familyType}/m) { } |
|
4711
|
0 |
0 |
if (defined $self->baudrate and defined(my $origBaud = $self->{$Package}{'ORIGBAUDRATE'})) |
|
4713
|
0 |
0 |
if ($familyType eq $Prm{'bstk'}) { } |
|
|
0 |
0 |
elsif ($familyType eq $Prm{'pers'}) { } |
|
4720
|
0 |
0 |
if ($self->{$Package}{'ATTRIB'}{'is_nncli'}) { } |