Info
HPONCFG version 5.6.0 fails with "ERROR: Failed to capture configuration" if the current working directory is not writeable (i.e., read-only) when a write ILO config command is used. For example, capturing an ILO CFG file via HPONCFG and writing it as hponcfg_tmp.xml as follows:
#hponcfg -a -w /hponcfg_tmp.xml
If the current working directory is part of a read-only filesystem and HPONCFG is run from that location, it will fail when a capture file is requested because it cannot find a writeable filesystem location to create the ILO CFG capture file.
This occurs because HPONCFG creates a temporary scratch file "tmpConfigInputFile.xml" in the current working directory. If the current working directory is a read-only (RO) filesystem, the file cannot be created.
Scope
Any HPE system attempting to run the HPONCFG utility from a read-only filesystem when running Linux or running hponcfg.exe from Windows.
Resolution
HPONCFG is functioning as designed.
Ensure the file system NFS share and or directory location is writeable as follows:
Change the working directory to a writeable filesystem.
OR
Launch HPONCFG in a subshell that is writeable. Execute HPONCFG inside a subshell that sets the working directory to a writeable directory location such as /tmp for example:
(cd /tmp; hponcfg -a -w /tmp/hponcfg_tmp.xml)
The parentheses create a subshell that sets the working directory to /tmp before running HPONCFG. This working directory will be in effect only during the execution of the subshell, i.e. inside the parentheses.
RECEIVE PROACTIVE UPDATES
: Receive support alerts (such as Customer Advisories), as well as updates on drivers, software, firmware, and customer replaceable components, proactively in your e-mail through HPE Support Alerts. Sign up for Support Alerts at the following URL:
HPE Email Preference Center
NAVIGATION TIP:
For hints on navigating HPE.com to locate the latest drivers, patches and other support software downloads, refer to the
Navigation Tips document.
SEARCH TIP:
For hints on locating similar documents on HPE.com, refer to the
Search Tips document.