HP ProLiant ML310e HP Scripting Toolkit 9.30 for Linux User Guide - Page 57

HPONCFG return codes, HPONCFG command file contents, Obtaining an entire configuration

Page 57 highlights

HPONCFG return codes Value 0 1 2 3 255 Meaning The script was sent successfully to the device. The script could not be sent to the device. There is an error in xml. The Management processor is not present, or the driver is not running. The iLO flash is still in progress. The script is unable to create an output file. If the script itself fails, errors are reported in the log file created by HPONCFG. HPONCFG command file contents HPONCFG can be used to perform the following tasks: • Obtain an entire configuration • Obtain a specific configuration • Set a configuration Obtaining an entire configuration HPONCFG can be used to obtain an entire configuration from iLO. In this case, the utility executes from the command line without specification of an input file. The name of the output file is given on the command line. For example: hponcfg -w config.xml In this example, the utility indicates that it obtained the data successfully and wrote it to the output file as requested. The following is a typical example of the contents of the output file: Using HPONCFG 57

  • 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
  • 66
  • 67
  • 68

HPONCFG return codes
Meaning
Value
The script was sent successfully to the device.
0
The script could not be sent to the device. There is an error
in xml.
1
The Management processor is not present, or the driver is
not running.
2
The iLO flash is still in progress.
3
The script is unable to create an output file.
255
If the script itself fails, errors are reported in the log file created by HPONCFG.
HPONCFG command file contents
HPONCFG can be used to perform the following tasks:
Obtain an entire configuration
Obtain a specific configuration
Set a configuration
Obtaining an entire configuration
HPONCFG can be used to obtain an entire configuration from iLO. In this case, the utility executes
from the command line without specification of an input file. The name of the output file is given
on the command line. For example:
hponcfg -w config.xml
In this example, the utility indicates that it obtained the data successfully and wrote it to the output
file as requested. The following is a typical example of the contents of the output file:
<HPONCFG VERSION = "1.1">
<!--- Generated 04/15/04 15:20:36 --->
<MOD_DIR_CONFIG>
<DIR_AUTHENTICATION_ENABLED VALUE = "N"/>
<DIR_LOCAL_USER_ACCT VALUE = "Y"/>
<DIR_SERVER_ADDRESS VALUE = ""/>
<DIR_SERVER_PORT VALUE = "25"/>
<DIR_OBJECT_DN VALUE = " "/>
<DIR_OBJECT_PASSWORD VALUE = ""/>
<DIR_USER_CONTEXT_1 VALUE = ""/>
<DIR_USER_CONTEXT_2 VALUE = "_"/>
<DIR_USER_CONTEXT_3 VALUE = ""/>
</MOD_DIR_CONFIG>
<MOD_NETWORK_SETTINGS>
<SPEED_AUTOSELECT VALUE = "Y"/>
<NIC_SPEED VALUE = "100"/>
<FULL_DUPLEX VALUE = "Y"/>
<IP_ADDRESS VALUE = "11.222.333.444"/>
<SUBNET_MASK VALUE = "222.222.222.0"/>
<GATEWAY_IP_ADDRESS VALUE = "11.100.200.2"/>
Using HPONCFG
57