HP ProLiant SL2500 HP Scripting Toolkit 9.60 for Windows User Guide - Page 21

HPDISCOVERY return codes, HPDISCOVERY command line examples, Using IFHW, IFHW command-line syntax

Page 21 highlights

Command-line argument -c -f HPDISCOVERY return codes Description This argument chooses the name and location of the configuration file. If the user does not pass in this parameter, then the default filename will be hpdisc_plugins.dat, and it will be saved in the current directory. This argument chooses the name and location of the output file. If the user does not pass in this parameter, then the default filename will be hpdiscovery.xml, and it will be saved in the current directory. Value 0 1 2 3 4 Meaning The command was completed successfully. A usage message might appear. Invalid command line. Missing plug-in file. Failure to save XML file. Failure to load plug-in. HPDISCOVERY command line examples NOTE: Before running HPDISCOVERY, you must install WMI. For more information on installing extra packages in Windows PE, see the Windows PE documentation. Command line argument hpdiscovery /f x:\hpdiscovery.xml hpdiscovery /p plugin storage.dll hpdiscovery Description This command generates the hpdiscovery.xml file in the x:\ location. This command only loads and executes the storage plug-in. This command generates the hpdiscovery.xml file in the current directory. Using IFHW IFHW is used from a script file, in conjunction with other utilities, to control the deployment. The IFHW utility enables you to make intelligent queries against the hardware discovery file. Queries take the form of a logical expression, and the result of the expression is returned as the return code of the tool, which the hosting script can use to conditionally perform actions. IFHW command-line syntax ifhw [drive:][path]hpdiscoveryfilename [drive:][path]allboards.xml Using IFHW 21

  • 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

Description
Command-line argument
This argument chooses the name and location of the
configuration file. If the user does not pass in this
–c
parameter, then the default filename will be
hpdisc_plugins.dat
, and it will be saved in the current
directory.
This argument chooses the name and location of the output
file. If the user does not pass in this parameter, then the
–f
default filename will be
hpdiscovery.xml
, and it will
be saved in the current directory.
HPDISCOVERY return codes
Meaning
Value
The command was completed successfully. A usage
message might appear.
0
Invalid command line.
1
Missing plug-in file.
2
Failure to save XML file.
3
Failure to load plug-in.
4
HPDISCOVERY command line examples
NOTE:
Before running HPDISCOVERY, you must install WMI. For more information on installing
extra packages in Windows PE, see the Windows PE documentation.
Description
Command line argument
This command generates the hpdiscovery.xml file in the
x:\ location.
hpdiscovery /f x:\hpdiscovery.xml
This command only loads and executes the storage plug-in.
hpdiscovery /p plugin storage.dll
This command generates the hpdiscovery.xml file in the
current directory.
hpdiscovery
Using IFHW
IFHW is used from a script file, in conjunction with other utilities, to control the deployment. The
IFHW utility enables you to make intelligent queries against the hardware discovery file. Queries
take the form of a logical expression, and the result of the expression is returned as the return code
of the tool, which the hosting script can use to conditionally perform actions.
IFHW command-line syntax
ifhw [
drive:
][
path
]hpdiscoveryfilename
[
drive:
][
path
]allboards.xml <
expression
>
Using IFHW
21