<div dir="ltr">Thanks for the response and clarification. <div><br>I will clarify my question here,</div><div><br></div><div>IPMI restriction mode support has been added for host devices which support IPMI.</div><div>This restriction mode support can be enabled or disabled from the phosphor-settingsd configuration (.yaml) file.<br><br>Please check the below link for .yaml file of phosphor-settingsd.</div><div><br></div><div><a href="https://github.com/openbmc/openbmc/blob/7298b2478ec25cc1814124af523acc4ffade05e6/meta-phosphor/recipes-phosphor/settings/phosphor-settings-defaults/host-template.yaml#L61">https://github.com/openbmc/openbmc/blob/7298b2478ec25cc1814124af523acc4ffade05e6/meta-phosphor/recipes-phosphor/settings/phosphor-settings-defaults/host-template.yaml#L61</a><br></div><div><br></div><div>We wanted to add restriction mode support for other IPMI based devices (Debug card).</div><div>Already phosphor-ipmi-host supports filters for all IPMI commands which have ipmi::Context objects. </div><div>So, How can we enable/disable this restriction mode support from phosphor-settings for other IPMI based devices(Debug card). ?<br><br><br>Thanks,</div><div>Kumar.</div><div><br><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 14, 2022 at 6:15 AM Vernon Mauery <<a href="mailto:vernon.mauery@linux.intel.com">vernon.mauery@linux.intel.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 04-Apr-2022 12:49 PM, Kumar Thangavel wrote:<br>
>Hi All,<br>
><br>
> IPMI Restriction mode support has been added for host machines<br>
>which support IPMI.<br>
><br>
><a href="https://github.com/openbmc/openbmc/blob/7298b2478ec25cc1814124af523acc4ffade05e6/meta-phosphor/recipes-phosphor/settings/phosphor-settings-defaults/host-template.yaml#L61" rel="noreferrer" target="_blank">https://github.com/openbmc/openbmc/blob/7298b2478ec25cc1814124af523acc4ffade05e6/meta-phosphor/recipes-phosphor/settings/phosphor-settings-defaults/host-template.yaml#L61</a><br>
><br>
> How IPMI restriction mode support can be added for other than host<br>
>devices (IPMI based devices). Ex Debug card. ?<br>
<br>
I am not exactly sure what you are asking for here. When you say other <br>
devices, are you asking about restricting commands based on what channel <br>
they come in on?<br>
<br>
This is possible. A filter can filter on any criteria that is available <br>
with the ipmi::Context object and the command. It can even extract <br>
command data and take action there. I only say this if you are <br>
interested in writing a new filter of your own.<br>
<br>
But if you want to see a filter that is already implemented that <br>
restricts commands based on BMC state and incoming channel, you can look <br>
at the filtering done in the intel-ipmi-oem repo.<br>
<br>
If my guess at what you meant was wrong, please clarify and I will try <br>
again.<br>
<br>
--Vernon<br>
<br>
> Could you please provide any suggestions or any docs ?<br>
><br>
>Thanks,<br>
>Kumar.<br>
</blockquote></div>