[Question] How can we use underscore "_" in sensor name?

Johnathan Mantey johnathanx.mantey at intel.com
Tue Sep 14 00:57:58 AEST 2021


Heyi,

On 9/13/21 3:49 AM, Heyi Guo wrote:
> Hi all,
> 
> Can we use underscore "_" in IPMI sensor names? Now we see that "_" in 
> sensor names will be replaced with space in the code, even if we really 
> use "_" for sensor names in json configuration files.
> 

Which layer is translating the "_" char?
Are you referring to D-Bus?
IPMITool?
Some other locatioN?

It would be helpful to know.
As an example, D-Bus translates "-" to "%2D" and back because D-Bus, or 
one of the D-Bus consumers can't accept the hyphen character.

It is likely that the underscore character has some similar naming 
convention issue.

You may want to investigate using the same scheme to translate between 
"_" and a "%5F" combination.

> The background is that we used underscore "_" in sensor names in legacy 
> BMC, and all the OOB software uses such names to get sensor data. 
> Therefore we want to make it compatible for switching to OpenBMC.
> 
> Is there any way to achieve this?
> 
> Thanks,
> 
> Heyi
> 

-- 
Johnathan Mantey
Senior Software Engineer
*azad te**chnology partners*
Contributing to Technology Innovation since 1992
Phone: (503) 712-6764
Email: johnathanx.mantey at intel.com <mailto:johnathanx.mantey at intel.com>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20210913/50460550/attachment-0001.sig>


More information about the openbmc mailing list