blob: 62199f8a1d1f5a203462cbcf621f462dd3ef87c8 [file] [log] [blame]
Sunny Srivastavac74c8ef2025-04-16 12:45:27 +05301#include "config.h"
2
Sunny Srivastava867ee752025-04-15 12:24:23 +05303#include "ibm_handler.hpp"
4
Anupama B R56e45372025-06-19 12:54:44 -05005#include "listener.hpp"
Sunny Srivastavac74c8ef2025-04-16 12:45:27 +05306#include "parser.hpp"
7
Sunny Srivastava78a50422025-04-25 11:17:56 +05308#include <utility/common_utility.hpp>
Sunny Srivastavac74c8ef2025-04-16 12:45:27 +05309#include <utility/dbus_utility.hpp>
10#include <utility/json_utility.hpp>
11#include <utility/vpd_specific_utility.hpp>
12
Sunny Srivastava867ee752025-04-15 12:24:23 +053013namespace vpd
14{
Sunny Srivastavac74c8ef2025-04-16 12:45:27 +053015IbmHandler::IbmHandler(
16 std::shared_ptr<Worker>& o_worker,
17 std::shared_ptr<BackupAndRestore>& o_backupAndRestoreObj,
18 const std::shared_ptr<sdbusplus::asio::dbus_interface>& i_iFace,
Anupama B Rda9806b2025-08-29 02:41:10 -050019 const std::shared_ptr<sdbusplus::asio::dbus_interface>& i_progressiFace,
Sunny Srivastavac74c8ef2025-04-16 12:45:27 +053020 const std::shared_ptr<boost::asio::io_context>& i_ioCon,
21 const std::shared_ptr<sdbusplus::asio::connection>& i_asioConnection) :
22 m_worker(o_worker), m_backupAndRestoreObj(o_backupAndRestoreObj),
Anupama B Rda9806b2025-08-29 02:41:10 -050023 m_interface(i_iFace), m_progressInterface(i_progressiFace),
Souvik Roya5e18b82025-09-25 05:59:56 +000024 m_ioContext(i_ioCon), m_asioConnection(i_asioConnection),
25 m_logger(Logger::getLoggerInstance())
Sunny Srivastavac74c8ef2025-04-16 12:45:27 +053026{
Souvik Royc1171732025-10-16 09:27:38 +000027 uint16_t l_errCode{0};
28
29 // check VPD collection mode
30 const auto l_vpdCollectionMode =
31 commonUtility::isFieldModeEnabled()
32 ? types::VpdCollectionMode::DEFAULT_MODE
33 : commonUtility::getVpdCollectionMode(l_errCode);
34
35 if (l_errCode)
36 {
37 m_logger->logMessage(
38 "Error while trying to read VPD collection mode: " +
39 commonUtility::getErrCodeMsg(l_errCode));
Souvik Royc1171732025-10-16 09:27:38 +000040 }
41
Sunny Srivastavac74c8ef2025-04-16 12:45:27 +053042 if (dbusUtility::isChassisPowerOn())
43 {
44 // At power on, less number of FRU(s) needs collection. we can scale
45 // down the threads to reduce CPU utilization.
Souvik Royc1171732025-10-16 09:27:38 +000046 m_worker = std::make_shared<Worker>(
47 INVENTORY_JSON_DEFAULT, constants::VALUE_1, l_vpdCollectionMode);
Sunny Srivastavac74c8ef2025-04-16 12:45:27 +053048 }
49 else
50 {
51 // Initialize with default configuration
Souvik Royc1171732025-10-16 09:27:38 +000052 m_worker = std::make_shared<Worker>(INVENTORY_JSON_DEFAULT,
53 constants::MAX_THREADS,
54 l_vpdCollectionMode);
Sunny Srivastavac74c8ef2025-04-16 12:45:27 +053055 }
56
57 // Set up minimal things that is needed before bus name is claimed.
Sunny Srivastava78a50422025-04-25 11:17:56 +053058 performInitialSetup();
Sunny Srivastavac74c8ef2025-04-16 12:45:27 +053059
60 if (!m_sysCfgJsonObj.empty() &&
Rekha Aparna196e3082025-09-08 20:40:35 -050061 jsonUtility::isBackupAndRestoreRequired(m_sysCfgJsonObj, l_errCode))
Sunny Srivastavac74c8ef2025-04-16 12:45:27 +053062 {
63 try
64 {
65 m_backupAndRestoreObj =
66 std::make_shared<BackupAndRestore>(m_sysCfgJsonObj);
67 }
68 catch (const std::exception& l_ex)
69 {
70 logging::logMessage("Back up and restore instantiation failed. {" +
71 std::string(l_ex.what()) + "}");
72
73 EventLogger::createSyncPel(
74 EventLogger::getErrorType(l_ex), types::SeverityType::Warning,
75 __FILE__, __FUNCTION__, 0, EventLogger::getErrorMsg(l_ex),
76 std::nullopt, std::nullopt, std::nullopt, std::nullopt);
77 }
78 }
Rekha Aparna196e3082025-09-08 20:40:35 -050079 else if (l_errCode)
80 {
81 logging::logMessage(
82 "Failed to check if backup & restore required. Error : " +
Rekha Aparnac6159a22025-10-09 12:20:20 +053083 commonUtility::getErrCodeMsg(l_errCode));
Rekha Aparna196e3082025-09-08 20:40:35 -050084 }
Sunny Srivastavac74c8ef2025-04-16 12:45:27 +053085
Anupama B Rc7565ed2025-06-19 02:08:39 -050086 // Instantiate Listener object
Anupama B R56e45372025-06-19 12:54:44 -050087 m_eventListener = std::make_shared<Listener>(m_worker, m_asioConnection);
88 m_eventListener->registerAssetTagChangeCallback();
89 m_eventListener->registerHostStateChangeCallback();
Souvik Roy5c3a1562025-07-02 01:39:44 -050090 m_eventListener->registerPresenceChangeCallback();
Anupama B Rc7565ed2025-06-19 02:08:39 -050091
Sunny Srivastavac74c8ef2025-04-16 12:45:27 +053092 // Instantiate GpioMonitor class
93 m_gpioMonitor =
94 std::make_shared<GpioMonitor>(m_sysCfgJsonObj, m_worker, m_ioContext);
95}
96
Sunny Srivastavac74c8ef2025-04-16 12:45:27 +053097void IbmHandler::SetTimerToDetectVpdCollectionStatus()
98{
99 // Keeping max retry for 2 minutes. TODO: Make it configurable based on
100 // system type.
101 static constexpr auto MAX_RETRY = 12;
102
103 static boost::asio::steady_timer l_timer(*m_ioContext);
104 static uint8_t l_timerRetry = 0;
105
106 auto l_asyncCancelled = l_timer.expires_after(std::chrono::seconds(10));
107
108 (l_asyncCancelled == 0)
109 ? logging::logMessage("Collection Timer started")
110 : logging::logMessage("Collection Timer re-started");
111
112 l_timer.async_wait([this](const boost::system::error_code& ec) {
113 if (ec == boost::asio::error::operation_aborted)
114 {
115 throw std::runtime_error(
116 "Timer to detect thread collection status was aborted");
117 }
118
119 if (ec)
120 {
121 throw std::runtime_error(
122 "Timer to detect thread collection failed");
123 }
124
125 if (m_worker->isAllFruCollectionDone())
126 {
127 // cancel the timer
128 l_timer.cancel();
129 processFailedEeproms();
130
131 // update VPD for powerVS system.
132 ConfigurePowerVsSystem();
133
134 std::cout << "m_worker->isSystemVPDOnDBus() completed" << std::endl;
Anupama B Rda9806b2025-08-29 02:41:10 -0500135 m_progressInterface->set_property(
136 "Status", std::string(constants::vpdCollectionCompleted));
Sunny Srivastavac74c8ef2025-04-16 12:45:27 +0530137
138 if (m_backupAndRestoreObj)
139 {
140 m_backupAndRestoreObj->backupAndRestore();
141 }
Souvik Roy3d4af4a2025-06-23 04:45:27 -0500142
143 if (m_eventListener)
144 {
145 m_eventListener->registerCorrPropCallBack();
146 }
Souvik Roya5e18b82025-09-25 05:59:56 +0000147
148 // terminate collection logger
149 m_logger->terminateVpdCollectionLogging();
Sunny Srivastavac74c8ef2025-04-16 12:45:27 +0530150 }
151 else
152 {
153 auto l_threadCount = m_worker->getActiveThreadCount();
154 if (l_timerRetry == MAX_RETRY)
155 {
156 l_timer.cancel();
157 logging::logMessage("Taking too long. Active thread = " +
158 std::to_string(l_threadCount));
Souvik Roya5e18b82025-09-25 05:59:56 +0000159
160 // terminate collection logger
161 m_logger->terminateVpdCollectionLogging();
Sunny Srivastavac74c8ef2025-04-16 12:45:27 +0530162 }
163 else
164 {
165 l_timerRetry++;
166 logging::logMessage("Collection is in progress for [" +
167 std::to_string(l_threadCount) + "] FRUs.");
168
169 SetTimerToDetectVpdCollectionStatus();
170 }
171 }
172 });
173}
174
175void IbmHandler::checkAndUpdatePowerVsVpd(
176 const nlohmann::json& i_powerVsJsonObj,
177 std::vector<std::string>& o_failedPathList)
178{
179 for (const auto& [l_fruPath, l_recJson] : i_powerVsJsonObj.items())
180 {
181 nlohmann::json l_sysCfgJsonObj{};
182 if (m_worker.get() != nullptr)
183 {
184 l_sysCfgJsonObj = m_worker->getSysCfgJsonObj();
185 }
186
187 // The utility method will handle emty JSON case. No explicit
188 // handling required here.
Rekha Aparna017567a2025-08-13 02:07:06 -0500189 uint16_t l_errCode = 0;
Sunny Srivastavac74c8ef2025-04-16 12:45:27 +0530190 auto l_inventoryPath = jsonUtility::getInventoryObjPathFromJson(
Rekha Aparna017567a2025-08-13 02:07:06 -0500191 l_sysCfgJsonObj, l_fruPath, l_errCode);
Sunny Srivastavac74c8ef2025-04-16 12:45:27 +0530192
193 // Mark it as failed if inventory path not found in JSON.
194 if (l_inventoryPath.empty())
195 {
Rekha Aparna017567a2025-08-13 02:07:06 -0500196 if (l_errCode)
197 {
198 logging::logMessage(
199 "Failed to get inventory object path from JSON for FRU [" +
Rekha Aparnac6159a22025-10-09 12:20:20 +0530200 l_fruPath +
201 "], error : " + commonUtility::getErrCodeMsg(l_errCode));
Rekha Aparna017567a2025-08-13 02:07:06 -0500202 }
203
Sunny Srivastavac74c8ef2025-04-16 12:45:27 +0530204 o_failedPathList.push_back(l_fruPath);
205 continue;
206 }
207
208 // check if the FRU is present
209 if (!dbusUtility::isInventoryPresent(l_inventoryPath))
210 {
211 logging::logMessage(
212 "Inventory not present, skip updating part number. Path: " +
213 l_inventoryPath);
214 continue;
215 }
216
217 // check if the FRU needs CCIN check before updating PN.
218 if (l_recJson.contains("CCIN"))
219 {
220 const auto& l_ccinFromDbus =
Rekha Aparna80b674f2025-10-27 01:27:27 -0500221 vpdSpecificUtility::getCcinFromDbus(l_inventoryPath, l_errCode);
Sunny Srivastavac74c8ef2025-04-16 12:45:27 +0530222
223 // Not an ideal situation as CCIN can't be empty.
224 if (l_ccinFromDbus.empty())
225 {
Rekha Aparna80b674f2025-10-27 01:27:27 -0500226 if (l_errCode)
227 {
228 m_logger->logMessage(
229 "Failed to get CCIN value from DBus, error : " +
230 commonUtility::getErrCodeMsg(l_errCode));
231 }
232
Sunny Srivastavac74c8ef2025-04-16 12:45:27 +0530233 o_failedPathList.push_back(l_fruPath);
234 continue;
235 }
236
237 std::vector<std::string> l_ccinListFromJson = l_recJson["CCIN"];
238
239 if (find(l_ccinListFromJson.begin(), l_ccinListFromJson.end(),
240 l_ccinFromDbus) == l_ccinListFromJson.end())
241 {
242 // Don't update PN in this case.
243 continue;
244 }
245 }
246
247 for (const auto& [l_recordName, l_kwdJson] : l_recJson.items())
248 {
249 // Record name can't be CCIN, skip processing as it is there for PN
250 // update based on CCIN check.
251 if (l_recordName == constants::kwdCCIN)
252 {
253 continue;
254 }
255
256 for (const auto& [l_kwdName, l_kwdValue] : l_kwdJson.items())
257 {
258 // Is value of type array.
259 if (!l_kwdValue.is_array())
260 {
261 o_failedPathList.push_back(l_fruPath);
262 continue;
263 }
264
265 // Get current FRU Part number.
266 auto l_retVal = dbusUtility::readDbusProperty(
267 constants::pimServiceName, l_inventoryPath,
268 constants::viniInf, constants::kwdFN);
269
270 auto l_ptrToFn = std::get_if<types::BinaryVector>(&l_retVal);
271
272 if (!l_ptrToFn)
273 {
274 o_failedPathList.push_back(l_fruPath);
275 continue;
276 }
277
278 types::BinaryVector l_binaryKwdValue =
279 l_kwdValue.get<types::BinaryVector>();
280 if (l_binaryKwdValue == (*l_ptrToFn))
281 {
282 continue;
283 }
284
285 // Update part number only if required.
286 std::shared_ptr<Parser> l_parserObj =
287 std::make_shared<Parser>(l_fruPath, l_sysCfgJsonObj);
288 if (l_parserObj->updateVpdKeyword(std::make_tuple(
289 l_recordName, l_kwdName, l_binaryKwdValue)) ==
290 constants::FAILURE)
291 {
292 o_failedPathList.push_back(l_fruPath);
293 continue;
294 }
295
296 // update the Asset interface Spare part number explicitly.
297 if (!dbusUtility::callPIM(types::ObjectMap{
298 {l_inventoryPath,
299 {{constants::assetInf,
300 {{"SparePartNumber",
301 std::string(l_binaryKwdValue.begin(),
302 l_binaryKwdValue.end())}}}}}}))
303 {
304 logging::logMessage(
305 "Updating Spare Part Number under Asset interface failed for path [" +
306 l_inventoryPath + "]");
307 }
308
309 // Just needed for logging.
310 std::string l_initialPartNum((*l_ptrToFn).begin(),
311 (*l_ptrToFn).end());
312 std::string l_finalPartNum(l_binaryKwdValue.begin(),
313 l_binaryKwdValue.end());
314 logging::logMessage(
315 "FRU Part number updated for path [" + l_inventoryPath +
316 "]" + "From [" + l_initialPartNum + "]" + " to [" +
317 l_finalPartNum + "]");
318 }
319 }
320 }
321}
322
323void IbmHandler::ConfigurePowerVsSystem()
324{
325 std::vector<std::string> l_failedPathList;
326 try
327 {
328 types::BinaryVector l_imValue = dbusUtility::getImFromDbus();
329 if (l_imValue.empty())
330 {
331 throw DbusException("Invalid IM value read from Dbus");
332 }
333
Rekha Aparnaed09af82025-10-22 20:34:41 -0500334 uint16_t l_errCode = 0;
335 if (!vpdSpecificUtility::isPowerVsConfiguration(l_imValue, l_errCode))
Sunny Srivastavac74c8ef2025-04-16 12:45:27 +0530336 {
337 // TODO: Should booting be blocked in case of some
338 // misconfigurations?
Rekha Aparnaed09af82025-10-22 20:34:41 -0500339 if (l_errCode)
340 {
341 logging::logMessage(
342 "Failed to check if the system is powerVs Configuration, error : " +
343 commonUtility::getErrCodeMsg(l_errCode));
344 }
345
Sunny Srivastavac74c8ef2025-04-16 12:45:27 +0530346 return;
347 }
348
349 const nlohmann::json& l_powerVsJsonObj =
Rekha Aparnaadf85262025-09-09 00:41:00 -0500350 jsonUtility::getPowerVsJson(l_imValue, l_errCode);
Sunny Srivastavac74c8ef2025-04-16 12:45:27 +0530351
352 if (l_powerVsJsonObj.empty())
353 {
Rekha Aparnac6159a22025-10-09 12:20:20 +0530354 throw std::runtime_error("PowerVS Json not found. Error : " +
355 commonUtility::getErrCodeMsg(l_errCode));
Sunny Srivastavac74c8ef2025-04-16 12:45:27 +0530356 }
357
358 checkAndUpdatePowerVsVpd(l_powerVsJsonObj, l_failedPathList);
359
360 if (!l_failedPathList.empty())
361 {
362 throw std::runtime_error(
363 "Part number update failed for following paths: ");
364 }
365 }
366 catch (const std::exception& l_ex)
367 {
368 // TODO log appropriate PEL
369 }
370}
371
372void IbmHandler::processFailedEeproms()
373{
374 if (m_worker.get() != nullptr)
375 {
376 // TODO:
377 // - iterate through list of EEPROMs for which thread creation has
378 // failed
379 // - For each failed EEPROM, trigger VPD collection
380 m_worker->getFailedEepromPaths().clear();
381 }
382}
Sunny Srivastava380efbb2025-04-25 10:28:30 +0530383
Sunny Srivastava78a50422025-04-25 11:17:56 +0530384void IbmHandler::enableMuxChips()
385{
386 if (m_sysCfgJsonObj.empty())
387 {
388 // config JSON should not be empty at this point of execution.
389 throw std::runtime_error("Config JSON is empty. Can't enable muxes");
390 return;
391 }
392
393 if (!m_sysCfgJsonObj.contains("muxes"))
394 {
395 logging::logMessage("No mux defined for the system in config JSON");
396 return;
397 }
398
399 // iterate over each MUX detail and enable them.
400 for (const auto& item : m_sysCfgJsonObj["muxes"])
401 {
402 if (item.contains("holdidlepath"))
403 {
404 std::string cmd = "echo 0 > ";
405 cmd += item["holdidlepath"];
406
407 logging::logMessage("Enabling mux with command = " + cmd);
408
409 commonUtility::executeCmd(cmd);
410 continue;
411 }
412
413 logging::logMessage(
414 "Mux Entry does not have hold idle path. Can't enable the mux");
415 }
416}
417
418void IbmHandler::performInitialSetup()
419{
420 try
421 {
Anupama B R281e2d42025-05-05 10:05:13 -0500422 if (m_worker.get() == nullptr)
423 {
424 throw std::runtime_error(
425 "Worker object not found. Can't perform initial setup.");
426 }
427
428 m_sysCfgJsonObj = m_worker->getSysCfgJsonObj();
Sunny Srivastava78a50422025-04-25 11:17:56 +0530429 if (!dbusUtility::isChassisPowerOn())
430 {
Anupama B R281e2d42025-05-05 10:05:13 -0500431 m_worker->setDeviceTreeAndJson();
432
433 // Since the above function setDeviceTreeAndJson can change the json
434 // which is used, we would need to reacquire the json object again
435 // here.
Sunny Srivastava78a50422025-04-25 11:17:56 +0530436 m_sysCfgJsonObj = m_worker->getSysCfgJsonObj();
437 }
438
Anupama B R95083d42025-10-27 04:54:58 -0500439 // Update BMC postion for RBMC prototype system
440 // Ignore BMC position update in case of any error
441 uint16_t l_errCode = 0;
Anupama B R657aaa82025-10-30 04:12:24 -0500442 if (isRbmcPrototypeSystem(l_errCode))
Anupama B R95083d42025-10-27 04:54:58 -0500443 {
Anupama B R657aaa82025-10-30 04:12:24 -0500444 size_t l_bmcPosition = std::numeric_limits<size_t>::max();
445 checkAndUpdateBmcPosition(l_bmcPosition);
Anupama B R95083d42025-10-27 04:54:58 -0500446
Anupama B R657aaa82025-10-30 04:12:24 -0500447 if (dbusUtility::callPIM(types::ObjectMap{
448 {sdbusplus::message::object_path(constants::systemInvPath),
449 {{constants::rbmcPositionInterface,
450 {{"Position", l_bmcPosition}}}}}}))
451 {
452 m_logger->logMessage(
453 "Updating BMC position failed for path [" +
454 std::string(constants::systemInvPath) +
455 "], bmc position: " + std::to_string(l_bmcPosition));
456
457 // ToDo: Check is PEL required
458 }
459 }
460 else if (l_errCode != 0)
461 {
462 m_logger->logMessage(
463 "Unable to determine whether system is RBMC system or not, reason: " +
464 commonUtility::getErrCodeMsg(l_errCode));
Anupama B R95083d42025-10-27 04:54:58 -0500465 }
466
Sunny Srivastava78a50422025-04-25 11:17:56 +0530467 // Enable all mux which are used for connecting to the i2c on the
468 // pcie slots for pcie cards. These are not enabled by kernel due to
469 // an issue seen with Castello cards, where the i2c line hangs on a
470 // probe.
471 enableMuxChips();
472
473 // Nothing needs to be done. Service restarted or BMC re-booted for
474 // some reason at system power on.
Sunny Srivastava78a50422025-04-25 11:17:56 +0530475 }
476 catch (const std::exception& l_ex)
477 {
Anupama B R4c65fcd2025-09-01 08:09:00 -0500478 m_worker->setCollectionStatusProperty(SYSTEM_VPD_FILE_PATH,
479 constants::vpdCollectionFailed);
Sunny Srivastava78a50422025-04-25 11:17:56 +0530480 // Any issue in system's inital set up is handled in this catch. Error
481 // will not propogate to manager.
482 EventLogger::createSyncPel(
483 EventLogger::getErrorType(l_ex), types::SeverityType::Critical,
484 __FILE__, __FUNCTION__, 0, EventLogger::getErrorMsg(l_ex),
485 std::nullopt, std::nullopt, std::nullopt, std::nullopt);
486 }
487}
488
Anupama B R7127ab42025-06-26 01:39:08 -0500489void IbmHandler::collectAllFruVpd()
490{
Souvik Roya5e18b82025-09-25 05:59:56 +0000491 // initialize VPD collection logger
492 m_logger->initiateVpdCollectionLogging();
493
Anupama B R7127ab42025-06-26 01:39:08 -0500494 // Setting status to "InProgress", before trigeering VPD collection.
Anupama B Rda9806b2025-08-29 02:41:10 -0500495 m_progressInterface->set_property(
496 "Status", std::string(constants::vpdCollectionInProgress));
Anupama B R7127ab42025-06-26 01:39:08 -0500497 m_worker->collectFrusFromJson();
498 SetTimerToDetectVpdCollectionStatus();
499}
Anupama B R95083d42025-10-27 04:54:58 -0500500
Anupama B R657aaa82025-10-30 04:12:24 -0500501bool IbmHandler::isRbmcPrototypeSystem(uint16_t& o_errCode) const noexcept
Anupama B R95083d42025-10-27 04:54:58 -0500502{
Anupama B R657aaa82025-10-30 04:12:24 -0500503 types::BinaryVector l_imValue = dbusUtility::getImFromDbus();
504 if (l_imValue.empty())
505 {
506 o_errCode = error_code::DBUS_FAILURE;
507 return false;
508 }
509
510 if (constants::rbmcPrototypeSystemImValue == l_imValue)
511 {
512 return true;
513 }
Anupama B R95083d42025-10-27 04:54:58 -0500514
515 return false;
516}
517
Anupama B R657aaa82025-10-30 04:12:24 -0500518void IbmHandler::checkAndUpdateBmcPosition(size_t& o_bmcPosition) const noexcept
Anupama B R95083d42025-10-27 04:54:58 -0500519{
Anupama B R657aaa82025-10-30 04:12:24 -0500520 if (m_worker.get() == nullptr)
521 {
522 m_logger->logMessage("Worker object not found");
523 return;
524 }
Anupama B R95083d42025-10-27 04:54:58 -0500525
Anupama B R657aaa82025-10-30 04:12:24 -0500526 const nlohmann::json& l_sysCfgJsonObj = m_worker->getSysCfgJsonObj();
527 if (l_sysCfgJsonObj.empty())
528 {
529 m_logger->logMessage(
530 "System config JSON is empty, unable to find BMC position");
531 return;
532 }
533
534 uint16_t l_errCode = 0;
535 std::string l_motherboardEepromPath = jsonUtility::getFruPathFromJson(
536 l_sysCfgJsonObj, constants::systemVpdInvPath, l_errCode);
537
538 if (!l_motherboardEepromPath.empty())
539 {
540 o_bmcPosition = constants::VALUE_1;
541 std::error_code l_ec;
542 if (std::filesystem::exists(l_motherboardEepromPath, l_ec))
543 {
544 o_bmcPosition = constants::VALUE_0;
545 }
546 }
547 else if (l_errCode)
548 {
549 m_logger->logMessage("Unable to determine BMC position, reason: " +
550 commonUtility::getErrCodeMsg(l_errCode));
551 }
552 else
553 {
554 m_logger->logMessage("Unable to determine BMC position, as FRU path[" +
555 std::string(constants::systemVpdInvPath) +
556 "], not found in the system config JSON.");
557 }
Anupama B R95083d42025-10-27 04:54:58 -0500558}
Sunny Srivastava867ee752025-04-15 12:24:23 +0530559} // namespace vpd