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

Issue:hp_comware, display device manuinfo #1366

Open
xiarunjie opened this issue May 4, 2023 · 3 comments
Open

Issue:hp_comware, display device manuinfo #1366

xiarunjie opened this issue May 4, 2023 · 3 comments

Comments

@xiarunjie
Copy link

ISSUE TYPE
  • Template Issue with error and raw data
TEMPLATE USING
Value Filldown CHASSIS_ID (\d+)
Value Required SLOT_TYPE (Slot|Subslot|Fan|Power|Chassis)
Value SLOT_ID (\d+|self)
Value DEVICE_NAME (.+)
Value DEVICE_SERIAL_NUMBER (\S+)
Value MANUFACTURING_DATE (\S+)
Value VENDOR_NAME (\S+)
Value MAC_ADDRESS (\S+)
Value PRODUCT_ID (\S+)


Start
  ^\s*Chassis\s+${CHASSIS_ID}
  ^\s*${SLOT_TYPE}\s+${SLOT_ID}
  ^\s*DEVICE_ID
  ^\s*The\s+operation\s+is\s+not\s+supported\s+ -> Record Start
  ^\s*Failed\s+to\s+display\s+the\s+manufacture\s+ -> Record Start
  ^\s*DEVICE_NAME\s*:\s*${DEVICE_NAME}
  ^\s*DEVICE_SERIAL_NUMBER\s*:\s*${DEVICE_SERIAL_NUMBER}
  ^\s*MAC_ADDRESS\s*:\s*${MAC_ADDRESS}
  ^\s*MANUFACTURING_DATE\s*:\s*${MANUFACTURING_DATE}
  ^\s*VENDOR_NAME\s*:\s*${VENDOR_NAME}
  ^\s*PRODUCT_ID\s*:\s*${PRODUCT_ID} -> Record Start
  ^\s*$$
  ^. -> Error
SAMPLE COMMAND OUTPUT
<AC01-250.5>dis device manuinfo 
DEVICE_NAME:WX2560X-LI
DEVICE_SERIAL_NUMBER:219801A2X08218E8888M
MAC_ADDRESS:9C54-C2FF-5A80
MANUFACTURING_DATE:2021-08-09
VENDOR_NAME:H3C
SUMMARY
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
![image](https://user-images.githubusercontent.com/3947704/236122098-669431bf-19c8-4069-979f-987c73e7f5f2.png)
Device info has been saved to output1.8.csv for device 10.209.250.5.
device connect successful 10.209.250.6.
Empty DataFrame
Columns: []
Index: []
@jvanderaa
Copy link
Contributor

Is there an error with this?

@mjbear
Copy link
Contributor

mjbear commented Aug 17, 2023

@xiarunjie
This template requires SLOT_TYPE which the example output above does not contain.

Value Required SLOT_TYPE (Slot|Subslot|Fan|Power|Chassis)

If I add fictitious information Fan 123 to your example output then I can get it to parse.

Is the example output all of the output from that command?

DEVICE_NAME:WX2560X-LI
DEVICE_SERIAL_NUMBER:219801A2X08218E8888M
MAC_ADDRESS:9C54-C2FF-5A80
MANUFACTURING_DATE:2021-08-09
VENDOR_NAME:H3C
Fan 123

@mjbear
Copy link
Contributor

mjbear commented Feb 27, 2024

@xiarunjie
Are you able to provide feedback on whether your above output included all of the lines?

I don't have access to hp_comware equipment to pull output so your input it needed. Thank you!

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

3 participants