Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipmitool: add default iana enterprise numbers database #629

Closed
wants to merge 0 commits into from

Conversation

chenxy1988
Copy link
Contributor

When using default configuration without add IANA_ENTERPRISE_NUMBERS and SRC_URI in a bbappend, the ipmitool would report an error as below:

"
root@intel-x86-64:~# ipmitool -I open bmc getenables IANA PEN registry open failed: No such file or directory "

Add a default iana enterprise numbers database to avoid the error happen if using ipmitool default bb configuration.

Signed-off-by: Xiangyu Chen xiangyu.chen@windriver.com

# Add these via bbappend if this database is needed by the system
#IANA_ENTERPRISE_NUMBERS ?= "http://www.iana.org/assignments/enterprise-numbers;name=iana-enterprise-numbers;downloadfilename=iana-enterprise-numbers"
# Default IANA enterprise database version is 2022-10-24
IANA_ENTERPRISE_NUMBERS ?= "file://iana-enterprise-numbers.tar.xz"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we host this tarball somewhere and download it during build ? git does not do well with binary blobs particularly. I am sure we will bump revisions of this as well in future.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we host this tarball somewhere and download it during build ? git does not do well with binary blobs particularly. I am sure we will bump revisions of this as well in future.

thanks for your reply ;p
Indeed, it's a bit hard to manage with git, the information in tarball from the IANA site, it's a pure text file to record vender/enterprise database the size is almost 4.4MB, it seems a bit large so I created a tarball.

I think we can keep a default enterprise database to make sure ipmitool is working normal, if a user wants to use the latest version database, they can add a bbappend file to turn on "IANA_ENTERPRISE_NUMBERS = "http://www.iana.org/assignments/enterprise-numbers;name=iana-enterprise-numbers;downloadfilename=iana-enterprise-numbers"" in their own layer.

thanks,
Br,
Xiangyu

@kraj
Copy link
Contributor

kraj commented Oct 25, 2022

it would be fine to put it somewhere on https/ftp site.

@chenxy1988
Copy link
Contributor Author

it would be fine to put it somewhere on https/ftp site.

After investigating the enterprise numbers database text file, I think we can find a compromise propose.
The database recorded enterprise/vendor private enterprise Codes for SMI Network Management, it keeps updated when has new enterprise join. This database has a fixed format and has a reserve(default) code as below:

Decimal
| Organization
| | Contact
| | | Email
| | | |
0
Reserved
Internet Assigned Numbers Authority
iana&iana.org

We can create a text file just contains reserved code instead of the full data in a compressed binary blob for ipmitool normal working when using yocto generic build without any change, if a user needs full SMI network Management feature, they can enable the IANA_ENTERPRISE_NUMBERS and SRC_URI in their own layer.

Thanks,

Br,
Xiangyu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants