HP Integrity rx2800 Smart Setup Scripting Toolkit Administrator's Guide 4.0 - Page 58

Return Codes, Result, Operator or, Description, Value

Page 58 highlights

Table 6-6 ifhw Operators (continued) Operator or term Result lt True if the first operand is less than the second. gte True if the first operand is greater than or equal to the second. lte True if the first operand is less than or equal to the second. eq True if the two operands are equal. neq True if the two operands are not equal. not True if the operand is false. PCI:string True if a PCI device whose name includes string is found in the hardware discovery file. string is case-sensitive. HWQ:string The hardware discovery file is searched for string, and the corresponding value is the value of this term. string is case-sensitive. string A literal string, used for comparison. number A literal number, used for comparison. Return Codes Table 6-7 ifhw return codes Value Description 0 (True) The device is present. 1 (False) The device is not present. 2 (Error) The expression was not understood. 1 -1 or 255 An incorrect number of parameters was specified. 1 Because of known issue TT1000754871, error code 2 is never returned. If an invalid expression is found, 1 is returned instead. This will be fixed in a future release of the SSTK. 58 Utilities reference

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65

Table 6-6 ifhw Operators
(continued)
Result
Operator or
term
True if the first operand is less than the second.
lt
True if the first operand is greater than or equal to the second.
gte
True if the first operand is less than or equal to the second.
lte
True if the two operands are equal.
eq
True if the two operands are not equal.
neq
True if the operand is false.
not
True if a PCI device whose name includes
string
is found in the hardware discovery file.
string
is case-sensitive.
PCI:
string
The hardware discovery file is searched for
string
, and the corresponding value is the value of
this term.
string
is case-sensitive.
HWQ:
string
A literal string, used for comparison.
string
A literal number, used for comparison.
number
Return Codes
Table 6-7 ifhw return codes
Description
Value
The device is present.
0 (True)
The device is not present.
1 (False)
The expression was not understood.
1
2 (Error)
An incorrect number of parameters was specified.
-1 or 255
1
Because of known issue TT1000754871, error code 2 is never returned. If an invalid expression is found, 1 is returned
instead. This will be fixed in a future release of the SSTK.
58
Utilities reference