Lines Matching full:vpd
11 * @brief Resets the VPD on DBus for all the Frus.
14 * manager(PIM) DBus service and the VPD manager service. VPD manager service
15 * collects the VPD for all the FRU's listed on the system config JSON and calls
16 * PIM to publish VPD on DBus.
24 if (vpd::utils::isChassisPowerOff()) in forceReset()
26 vpd::VpdTool l_vpdToolObj; in forceReset()
33 return vpd::constants::FAILURE; in forceReset()
55 …<< "This option resets some of the system VPD keywords to their default values. Do you really wish… in doMfgClean()
60 return vpd::constants::SUCCESS; in doMfgClean()
64 vpd::VpdTool l_vpdToolObj; in doMfgClean()
66 // delete the vpd dump directory in doMfgClean()
99 return vpd::constants::FAILURE; in writeKeyword()
108 return vpd::constants::FAILURE; in writeKeyword()
117 return vpd::constants::FAILURE; in writeKeyword()
120 if (i_keywordName == vpd::constants::KwdIM) in writeKeyword()
123 vpd::constants::STR_CMP_SUCCESS)) in writeKeyword()
126 return vpd::constants::FAILURE; in writeKeyword()
129 if (std::find(vpd::constants::validImValues.begin(), in writeKeyword()
130 vpd::constants::validImValues.end(), i_keywordValue) == in writeKeyword()
131 vpd::constants::validImValues.end()) in writeKeyword()
136 return vpd::constants::FAILURE; in writeKeyword()
140 vpd::VpdTool l_vpdToolObj; in writeKeyword()
174 return vpd::constants::FAILURE; in readKeyword()
179 vpd::VpdTool l_vpdToolObj; in readKeyword()
187 * In VPD tool command, some of the option(s) mandate values to be passed along
210 return vpd::constants::FAILURE; in checkOptionValuePair()
214 (i_recordName.size() != vpd::constants::RECORD_SIZE)) in checkOptionValuePair()
218 return vpd::constants::FAILURE; in checkOptionValuePair()
222 (i_keywordName.size() != vpd::constants::KEYWORD_SIZE)) in checkOptionValuePair()
226 return vpd::constants::FAILURE; in checkOptionValuePair()
232 return vpd::constants::FAILURE; in checkOptionValuePair()
235 return vpd::constants::SUCCESS; in checkOptionValuePair()
249 "vpd-tool -r -O <DBus Object Path> -R <Record Name> -K <Keyword Name>\n" in updateFooter()
251 "vpd-tool -r -O <DBus Object Path> -R <Record Name> -K <Keyword Name> --file <File Path>\n" in updateFooter()
253 "vpd-tool -r -H -O <EEPROM Path> -R <Record Name> -K <Keyword Name>\n" in updateFooter()
255 "vpd-tool -r -H -O <EEPROM Path> -R <Record Name> -K <Keyword Name> --file <File Path>\n" in updateFooter()
259 … "vpd-tool -w/-u -O <DBus Object Path> -R <Record Name> -K <Keyword Name> -V <Keyword Value>\n" in updateFooter()
261 …" vpd-tool -w/-u -O <DBus Object Path> -R <Record Name> -K <Keyword Name> --file <Fil… in updateFooter()
263 "vpd-tool -w/-u -H -O <EEPROM Path> -R <Record Name> -K <Keyword Name> -V <Keyword Value>\n" in updateFooter()
265 …" vpd-tool -w/-u -H -O <EEPROM Path> -R <Record Name> -K <Keyword Name> --file <File … in updateFooter()
268 "vpd-tool -o -O <DBus Object Path>\n" in updateFooter()
269 "Fix System VPD:\n" in updateFooter()
270 " vpd-tool --fixSystemVPD\n" in updateFooter()
272 " Flag to clean and reset specific keywords on system VPD to its default value.\n" in updateFooter()
273 " vpd-tool --mfgClean\n" in updateFooter()
275 " vpd-tool --mfgClean --syncBiosAttributes\n" in updateFooter()
278 "vpd-tool -i\n" in updateFooter()
280 "vpd-tool -i -t\n" in updateFooter()
282 " vpd-tool --forceReset\n"); in updateFooter()
287 CLI::App l_app{"VPD Command Line Tool"}; in main()
340 "Use this option to interactively fix critical system VPD keywords"); in main()
345 "--mfgClean", "Manufacturing clean on system VPD keyword"); in main()
367 vpd::constants::FAILURE) in main()
369 return vpd::constants::FAILURE; in main()
387 return vpd::constants::FAILURE; in main()
392 l_keywordValue = vpd::utils::readValueFromFile(l_filePath); in main()
395 return vpd::constants::FAILURE; in main()
408 vpd::VpdTool l_vpdToolObj; in main()
414 vpd::VpdTool l_vpdToolObj; in main()
426 vpd::VpdTool l_vpdToolObj; in main()
436 return vpd::constants::FAILURE; in main()