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

S/N in H3C Model h3c.rb #3388

Open
lav-fsb opened this issue Feb 5, 2025 · 0 comments
Open

S/N in H3C Model h3c.rb #3388

lav-fsb opened this issue Feb 5, 2025 · 0 comments

Comments

@lav-fsb
Copy link

lav-fsb commented Feb 5, 2025

Hello!

I think need edit https://github.com/ytti/oxidized/blob/master/lib/oxidized/model/h3c.rb

cmd 'display device' do |cfg|
    comment cfg
  end

to

cmd 'display device manuinfo' do |cfg|
    comment cfg
  end

Cause in display info we get a little info, without serial number.

display device
Slot Type State Subslot Soft Ver Patch Ver
1 S5560X-54C-PWR-EI Master 0 S5560X-6813 None

display device manuinfo
Slot 1 CPU 0:
DEVICE_NAME : S5560X-54C-PWR-EI
DEVICE_SERIAL_NUMBER : 210235A1X75555N0G003
MAC_ADDRESS : 1484-77AE-A480
MANUFACTURING_DATE : 2023-04-28
VENDOR_NAME : H3C
PRODUCT ID : LS-5560X-54C-PWR-EI
Fan 1:
DEVICE_SERIAL_NUMBER : NONE
Fan 2:
DEVICE_SERIAL_NUMBER : NONE
Power 1:
DEVICE_NAME : PSR720-56A-GL
DEVICE_SERIAL_NUMBER : 210231A7GEH23B0H00SG
MANUFACTURING_DATE : 2023-11-12
VENDOR_NAME : H3C

And this sometimes helps a lot to find the right device through a configuration search.

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

No branches or pull requests

1 participant