mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-31 01:24:35 +02:00
31 lines
2.0 KiB
Plaintext
31 lines
2.0 KiB
Plaintext
*** Settings ***
|
|
|
|
Resource ${CURDIR}${/}..${/}..${/}..${/}..${/}resources/import.resource
|
|
Suite Setup Ctn Generic Suite Setup
|
|
Test Timeout 120s
|
|
|
|
|
|
*** Variables ***
|
|
${CMD} ${CENTREON_PLUGINS} --plugin=network::cisco::standard::snmp::plugin
|
|
|
|
|
|
*** Test Cases ***
|
|
arp ${tc}
|
|
[Tags] network arp snmp
|
|
${command} Catenate
|
|
... ${CMD}
|
|
... --mode=arp
|
|
... --hostname=${HOSTNAME}
|
|
... --snmp-port=${SNMPPORT}
|
|
... --snmp-version=${SNMPVERSION}
|
|
... --snmp-community=network/cisco/standard/snmp/cisco
|
|
... ${extra_options}
|
|
|
|
Ctn Run Command And Check Result As Strings ${command} ${expected_result}
|
|
|
|
Examples: tc extra_options expected_result --
|
|
... 1 --warning-total-entries=2 --critical-total-entries=0 CRITICAL: total entries 3 | 'arp.total.entries.count'=3;0:2;0:0;0; 'arp.duplicate.macaddr.count'=0;;;0; 'arp.duplicate.ipaddr.count'=0;;;0;
|
|
... 2 --filter-macaddr=1 OK: total entries 3 - duplicate mac address 0 - duplicate ip address 0 | 'arp.total.entries.count'=3;;;0; 'arp.duplicate.macaddr.count'=0;;;0; 'arp.duplicate.ipaddr.count'=0;;;0;
|
|
... 3 --filter-ipaddr=5 OK: total entries 0 - duplicate mac address 0 - duplicate ip address 0 | 'arp.total.entries.count'=0;;;0; 'arp.duplicate.macaddr.count'=0;;;0; 'arp.duplicate.ipaddr.count'=0;;;0;
|
|
... 4 --warning-duplicate-macaddr=3:3 --critical-duplicate-macaddr=0:0 WARNING: duplicate mac address 0 | 'arp.total.entries.count'=3;;;0; 'arp.duplicate.macaddr.count'=0;3:3;0:0;0; 'arp.duplicate.ipaddr.count'=0;;;0;
|
|
... 5 --warning-duplicate-ipaddr=3:0 --critical-duplicate-ipaddr=1:0 CRITICAL: duplicate ip address 0 | 'arp.total.entries.count'=3;;;0; 'arp.duplicate.macaddr.count'=0;;;0; 'arp.duplicate.ipaddr.count'=0;3:0;1:0;0; |