| 1 |
*** Settings *** |
| 2 |
Documentation Check Hardware (Fans, Power supplies, chassis, io cards, blades, fabric extenders). |
| 3 |
|
| 4 |
Resource ${CURDIR}${/}..${/}..${/}..${/}..${/}..${/}resources/import.resource |
| 5 |
|
| 6 |
Suite Setup Ctn Generic Suite Setup |
| 7 |
Test Timeout 120s |
| 8 |
|
| 9 |
|
| 10 |
*** Variables *** |
| 11 |
${CMD} ${CENTREON_PLUGINS} --plugin=hardware::server::cisco::ucs::snmp::plugin |
| 12 |
|
| 13 |
|
| 14 |
*** Test Cases *** |
| 15 |
equipment ${tc} |
| 16 |
[Tags] hardware snmp |
| 17 |
${command} Catenate |
| 18 |
... ${CMD} |
| 19 |
... --mode=equipment |
| 20 |
... --hostname=${HOSTNAME} |
| 21 |
... --snmp-version=${SNMPVERSION} |
| 22 |
... --snmp-port=${SNMPPORT} |
| 23 |
... --snmp-community=hardware/server/cisco/ucs/snmp/slim-ucs-equipment |
| 24 |
... ${extra_options} |
| 25 |
|
| 26 |
Ctn Verify Command Output ${command} ${expected_result} |
| 27 |
|
| 28 |
Examples: tc extra_options expected_result -- |
| 29 |
... 1 ${EMPTY} WARNING: memory 'Anonymized-001/mem-12' presence is: 'missing' - memory 'Anonymized-001/mem-15' presence is: 'missing' |
| 30 |
... 2 --threshold-overload='presence,OK,missing' --threshold-overload='operability,OK,removed' OK: All 100 components are ok [100/100 memories]. | 'hardware.memory.count'=100;;;; |
| 31 |
... 3 --threshold-overload='presence,UNKNOWN,missing' --component='memory' UNKNOWN: memory 'Anonymized-001/mem-12' presence is: 'missing' - memory 'Anonymized-001/mem-15' presence is: 'missing' |
| 32 |
... 4 --threshold-overload='operability,WARNING,missing' --component='memory' WARNING: memory 'Anonymized-001/mem-12' presence is: 'missing' - memory 'Anonymized-001/mem-15' presence is: 'missing' |
| 33 |
... 5 --component='cpu' OK: All 0 components are ok []. |
| 34 |
... 6 --filter=fan,/sys/chassis-7/fan-module-1-7/fan-1 WARNING: memory 'Anonymized-001/mem-12' presence is: 'missing' - memory 'Anonymized-001/mem-15' presence is: 'missing' |
| 35 |
... 7 --absent-problem=fan,/sys/chassis-7/fan-module-1-7/fan-1 WARNING: memory 'Anonymized-001/mem-12' presence is: 'missing' - memory 'Anonymized-001/mem-15' presence is: 'missing' |
| 36 |
... 8 --no-component=UNKNOWN --filter='.*' UNKNOWN: No components are checked. |
| 37 |
... 9 --threshold-overload='presence,CRITICAL,equipped' CRITICAL: memory 'Anonymized-001/mem-10' presence is: 'equipped' - memory 'Anonymized-001/mem-11' presence is: 'equipped' |
| 38 |
... 10 --filter='.*' OK: All 0 components are ok []. |
| 39 |
... 11 --filter WARNING: memory 'Anonymized-001/mem-12' presence is: 'missing' - memory 'Anonymized-001/mem-15' presence is: 'missing' |