beautypg.com

Ifhw command line examples, Expression operators and terms, Expression examples – HP Linux Server Management Software User Manual

Page 33

background image

Toolkit utilities 33

IFHW command line examples

Command-line argument

Description

ifhw hpdiscovery.xml

allboards.xml "PCI:Smart Array

5i"

This command returns the following error levels:

ERRORLEVEL 0 (True) if the Smart Array 5i is

present

ERRORLEVEL 1 (False) if the device is not present

ERRORLEVEL 2 (Error) if the expression could not be

understood

Expression operators and terms

Operator or term Result

and

True if both operands are true

or

True if either operand is true

gt

True if the first operand is greater than the second

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

Expression examples

Expression input

Result

"PCI:Smart Array 5i"

True if the Smart Array 5i Controller is found in

the system

HWQ:TotalRAM gte 512

True if the amount of RAM in the hardware

discovery file is at least 512 MB

HWQ:ROMDate neq "11/12/2004"

True if the ROM date in the hardware discovery

file is not 11/12/2004

HWQ:SystemName eq "ProLiant DL380 G2"

True if the system name in the hardware

discovery file exactly matches "ProLiant DL380
G2"

This manual is related to the following products: