mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-31 01:24:35 +02:00
Co-authored-by: Roman Morandell <46994680+rmorandell-pgum@users.noreply.github.com> Co-authored-by: sfarouq-ext <116093375+sfarouq-ext@users.noreply.github.com>
36 lines
1.5 KiB
Plaintext
36 lines
1.5 KiB
Plaintext
*** Settings ***
|
|
Documentation Check Huawei equipments in SNMP.
|
|
|
|
Resource ${CURDIR}${/}..${/}..${/}..${/}..${/}resources/import.resource
|
|
|
|
Test Timeout 120s
|
|
Test Setup Ctn Generic Suite Setup
|
|
|
|
*** Variables ***
|
|
${CMD} ${CENTREON_PLUGINS} --plugin=network::huawei::wlc::snmp::plugin
|
|
|
|
|
|
*** Test Cases ***
|
|
list-interfaces ${tc}
|
|
[Tags] network snmp
|
|
${command} Catenate
|
|
... ${CMD}
|
|
... --mode=list-interfaces
|
|
... --hostname=${HOSTNAME}
|
|
... --snmp-version=${SNMPVERSION}
|
|
... --snmp-port=${SNMPPORT}
|
|
... --snmp-community=network/huawei/wlc/snmp/slim_huawei_wlc
|
|
... --snmp-timeout=1
|
|
... ${extra_options} | grep -v 'skipping interface' | wc -l
|
|
|
|
Ctn Verify Command Output ${command} ${expected_result}
|
|
|
|
Examples: tc extra_options expected_result --
|
|
... 1 ${EMPTY} 185
|
|
... 2 --interface=12 2
|
|
... 3 --name --interface='Anonymized 25' 8
|
|
... 4 --name --interface='Anonymized 23' 10
|
|
... 5 --name --interface='Anonymized 25' --skip-speed0 6
|
|
... 6 --filter-status='down' 154
|
|
... 7 --filter-status='down' --skip-speed0 153
|