<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hello All,
<div class=""><br class="">
</div>
<div class="">I need your suggestion on implementing support for  multiple computer systems or hosts under redfish implementation of BMCWEB.</div>
<div class=""><br class="">
</div>
<div class="">Redfish schema supports multiple computer systems under  redfish path "<span style="font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; background-color: rgb(255, 255, 255); text-decoration-thickness: initial;" class="">/redfish/v1/</span><span class="d-inline-block text-bold hx_keyword-hl rounded-1" style="box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; text-decoration-thickness: initial; border-top-left-radius: 6px !important; border-top-right-radius: 6px !important; border-bottom-right-radius: 6px !important; border-bottom-left-radius: 6px !important; font-weight: 600 !important; display: inline-block !important;">Systems</span><span style="font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; background-color: rgb(255, 255, 255); text-decoration-thickness: initial;" class="">/"</span></div>
<div class=""><span style="font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; background-color: rgb(255, 255, 255); text-decoration-thickness: initial;" class="">
<div style="color: rgb(0, 0, 0); caret-color: rgb(0, 0, 0); font-family: Helvetica; white-space: normal;" class="">
<br class="">
</div>
<div style="color: rgb(0, 0, 0); caret-color: rgb(0, 0, 0); font-family: Helvetica; white-space: normal;" class="">
Currently in bmcweb redfish core Computer systems path are is configured for as singlehost</div>
<div style="color: rgb(3, 47, 98);" class=""><br class="">
</div>
<div class=""><font color="#032f62" class="">T</font>he redfish path computer system is given below</div>
<div class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class="">"/redfish/v1/</span><span class="d-inline-block text-bold hx_keyword-hl rounded-1" style="box-sizing: border-box; font-variant-ligatures: normal; text-decoration-thickness: initial; border-top-left-radius: 6px !important; border-top-right-radius: 6px !important; border-bottom-right-radius: 6px !important; border-bottom-left-radius: 6px !important; font-weight: 600 !important; display: inline-block !important;">Systems</span><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class="">/system”</span></div>
<div class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><br class="">
</span></div>
<div class="">In case of multiple hosts can we use the following format.</div>
<div class=""><br class="">
</div>
</span></div>
<div class=""><span style="font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; background-color: rgb(255, 255, 255); text-decoration-thickness: initial;" class="">"/redfish/v1/</span><span class="d-inline-block text-bold hx_keyword-hl rounded-1" style="box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; text-decoration-thickness: initial; border-top-left-radius: 6px !important; border-top-right-radius: 6px !important; border-bottom-right-radius: 6px !important; border-bottom-left-radius: 6px !important; font-weight: 600 !important; display: inline-block !important;">Systems</span><span style="font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; background-color: rgb(255, 255, 255); text-decoration-thickness: initial;" class="">/system1”</span></div>
<div class=""><span style="font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; background-color: rgb(255, 255, 255); text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class="">"/redfish/v1/</span><span class="d-inline-block text-bold hx_keyword-hl rounded-1" style="box-sizing: border-box; font-variant-ligatures: normal; text-decoration-thickness: initial; border-top-left-radius: 6px !important; border-top-right-radius: 6px !important; border-bottom-right-radius: 6px !important; border-bottom-left-radius: 6px !important; font-weight: 600 !important; display: inline-block !important;">Systems</span><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class="">/system2”</span></span></div>
<div class=""><span style="font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; background-color: rgb(255, 255, 255); text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class="">"/redfish/v1/</span><span class="d-inline-block text-bold hx_keyword-hl rounded-1" style="box-sizing: border-box; font-variant-ligatures: normal; text-decoration-thickness: initial; border-top-left-radius: 6px !important; border-top-right-radius: 6px !important; border-bottom-right-radius: 6px !important; border-bottom-left-radius: 6px !important; font-weight: 600 !important; display: inline-block !important;">Systems</span><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class="">/system3”</span></span></span></div>
<div class=""><span style="font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; background-color: rgb(255, 255, 255); text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class="">"/redfish/v1/</span><span class="d-inline-block text-bold hx_keyword-hl rounded-1" style="box-sizing: border-box; font-variant-ligatures: normal; text-decoration-thickness: initial; border-top-left-radius: 6px !important; border-top-right-radius: 6px !important; border-bottom-right-radius: 6px !important; border-bottom-left-radius: 6px !important; font-weight: 600 !important; display: inline-block !important;">Systems</span><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class="">/system4”</span></span></span></span></div>
<div class=""><span style="font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; background-color: rgb(255, 255, 255); text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class="">
<div style="font-family: Helvetica; white-space: normal;" class=""><span style="font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-variant-ligatures: normal; white-space: pre-wrap; text-decoration-thickness: initial;" class=""><br class="">
</span></div>
<div style="font-family: Helvetica; white-space: normal;" class=""><span style="font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-variant-ligatures: normal; white-space: pre-wrap; text-decoration-thickness: initial;" class="">these
 paths should be populated based on the number of available hosts/computer systems</span></div>
<div style="font-family: Helvetica; white-space: normal;" class=""><span style="font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-variant-ligatures: normal; white-space: pre-wrap; text-decoration-thickness: initial;" class=""><br class="">
</span></div>
<div style="font-family: Helvetica; white-space: normal;" class=""><span style="font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-variant-ligatures: normal; white-space: pre-wrap; text-decoration-thickness: initial;" class="">Possible
 options to identify the host count are as given below:</span></div>
<div style="font-family: Helvetica; white-space: normal;" class=""><span style="font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-variant-ligatures: normal; white-space: pre-wrap; text-decoration-thickness: initial;" class="">1.pass
 the OBMC_HOST_INSTANCES as a macro definition to bmcweb</span></div>
<div style="font-family: Helvetica; white-space: normal;" class=""><span style="font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-variant-ligatures: normal; white-space: pre-wrap; text-decoration-thickness: initial;" class="">2.Query
 dbus objects which has individual instance available for each host using object mapper. </span></div>
<div style="font-family: Helvetica; white-space: normal;" class=""><span style="font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-variant-ligatures: normal; white-space: pre-wrap; text-decoration-thickness: initial;" class=""></span></div>
<div class=""><br class="">
</div>
<div class="">Is there any other alternate way available for identifying host instances at runtime under bmcweb?</div>
</span></span></span></span></div>
<div class=""><span style="font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; background-color: rgb(255, 255, 255); text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><br class="">
</span></span></span></span></div>
<div class=""><span style="font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; background-color: rgb(255, 255, 255); text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><br class="">
</span></span></span></span></div>
<div class=""><span style="font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; background-color: rgb(255, 255, 255); text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class="">if
 we use the above format then can we change the computer system for single host</span></span></span></span></div>
<div class=""><span style="font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; background-color: rgb(255, 255, 255); text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><br class="">
</span></span></span></span></div>
<div class=""><span style="font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; background-color: rgb(255, 255, 255); text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class="">as
 given below</span></span></span></span></div>
<div class=""><br class="">
</div>
<div class=""><span style="font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; background-color: rgb(255, 255, 255); text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class="">"/redfish/v1/</span><span class="d-inline-block text-bold hx_keyword-hl rounded-1" style="box-sizing: border-box; font-variant-ligatures: normal; text-decoration-thickness: initial; border-top-left-radius: 6px !important; border-top-right-radius: 6px !important; border-bottom-right-radius: 6px !important; border-bottom-left-radius: 6px !important; font-weight: 600 !important; display: inline-block !important;">Systems</span><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class="">/system0”</span></span></span></span></span></div>
<div class=""><span style="font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; background-color: rgb(255, 255, 255); text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><br class="">
</span></span></span></span></span></div>
<div class=""><span style="font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; background-color: rgb(255, 255, 255); text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class="">Code
 reference : <a href="https://github.com/openbmc/bmcweb/blob/master/redfish-core/lib/systems.hpp" class="">
https://github.com/openbmc/bmcweb/blob/master/redfish-core/lib/systems.hpp</a></span></span></span></span></span></div>
<div class=""><span style="font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; background-color: rgb(255, 255, 255); text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><br class="">
</span></span></span></span></span></div>
<div class=""><span style="font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; background-color: rgb(255, 255, 255); text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span class="pl-k" style="box-sizing: border-box; color: var(--color-prettylights-syntax-keyword); font-variant-ligatures: normal; white-space: pre; text-decoration-thickness: initial;">method
 : </span><span class="pl-en" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity); font-variant-ligatures: normal; white-space: pre; text-decoration-thickness: initial;">requestRoutesSystemsCollection</span></span></span></span></span></span></div>
<div class=""><span style="font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; background-color: rgb(255, 255, 255); text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span class="pl-en" style="box-sizing: border-box; color: var(--color-prettylights-syntax-entity); font-variant-ligatures: normal; white-space: pre; text-decoration-thickness: initial;"><br class="">
</span></span></span></span></span></span></div>
<div class=""><br class="">
</div>
<div class=""><span style="font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; background-color: rgb(255, 255, 255); text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><br class="">
</span></span></span></span></span></div>
<div class=""><span style="font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-variant-ligatures: normal; orphans: 2; white-space: pre-wrap; widows: 2; background-color: rgb(255, 255, 255); text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class=""><span style="font-variant-ligatures: normal; text-decoration-thickness: initial;" class="">Thanks</span></span></span></span></span></div>
</div>
</div>
</div>
</body>
</html>