forked from openbmc/openpower-vpd-parser
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Implement vpd-tool object dump #512
Draft
souvik1914581
wants to merge
2
commits into
ibm-openbmc:1110
Choose a base branch
from
souvik1914581:sr_vpdToolDumpObjectPR
base: 1110
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Implement vpd-tool object dump #512
souvik1914581
wants to merge
2
commits into
ibm-openbmc:1110
from
souvik1914581:sr_vpdToolDumpObjectPR
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
souvik1914581
pushed a commit
to souvik1914581/openpower-vpd-parser
that referenced
this pull request
Dec 2, 2024
This commit implements object dump functionality in vpd-tool. For a given Object path, the object dump functionality prints the following properties in a JSON format to the console: 1. Present property, Pretty Name, Location Code, Sub Model 2. SN, PN, CC, FN, DR keywords under VINI record Test: Tested on a rainier2s2u system ''' root@p10bmc:~# ./vpd-tool -o -O \ /xyz/openbmc_project/inventory/system/chassis/motherboard [ { "/xyz/openbmc_project/inventory/system/chassis/motherboard": { "CC": "2E2D", "DR": "SYSTEM BACKPLANE", "FN": "02WG676", "LocationCode": "U78DA.ND0.WZS0042-P0", "PN": "02WG678", "Present": "true", "PrettyName": "System backplane", "SN": "Y131UF07302T" } } ] root@p10bmc:~# ./vpd-tool -o -O \ /xyz/openbmc_project/inventory/system/chassis/motherboard/vdd_vrm0 [ { "/xyz/openbmc_project/inventory/ system/chassis/motherboard/vdd_vrm0": { "CC": "2E32", "DR": "CPU POWER CARD ", "FN": "02CM285", "LocationCode": "U78DA.ND0.WZS0042-P0-C14", "PN": "02CM286", "Present": "true", "PrettyName": "Voltage regulator module for system processor module 0", "SN": "YH30A005M11C" } } ] root@rain104bmctest:~# ./vpd-tool -o -O "InvalidObjectPath" root@rain104bmctest:~# echo $? 255 ''' Change-Id: I4b44bdb03429f7f3341ca0c79317d616f1de3a4f Signed-off-by: Souvik Roy <[email protected]>
souvik1914581
force-pushed
the
sr_vpdToolDumpObjectPR
branch
from
December 2, 2024 06:45
28fc79c
to
f4dcbcf
Compare
souvik1914581
pushed a commit
to souvik1914581/openpower-vpd-parser
that referenced
this pull request
Dec 2, 2024
This commit implements object dump functionality in vpd-tool. For a given Object path, the object dump functionality prints the following properties in a JSON format to the console: 1. Present property, Pretty Name, Location Code, Sub Model 2. SN, PN, CC, FN, DR keywords under VINI record Test: Tested on a rainier2s2u system ''' root@p10bmc:~# ./vpd-tool -o -O \ /xyz/openbmc_project/inventory/system/chassis/motherboard [ { "/xyz/openbmc_project/inventory/system/chassis/motherboard": { "CC": "2E2D", "DR": "SYSTEM BACKPLANE", "FN": "02WG676", "LocationCode": "U78DA.ND0.WZS0042-P0", "PN": "02WG678", "Present": "true", "PrettyName": "System backplane", "SN": "Y131UF07302T" } } ] root@p10bmc:~# ./vpd-tool -o -O \ /xyz/openbmc_project/inventory/system/chassis/motherboard/vdd_vrm0 [ { "/xyz/openbmc_project/inventory/ system/chassis/motherboard/vdd_vrm0": { "CC": "2E32", "DR": "CPU POWER CARD ", "FN": "02CM285", "LocationCode": "U78DA.ND0.WZS0042-P0-C14", "PN": "02CM286", "Present": "true", "PrettyName": "Voltage regulator module for system processor module 0", "SN": "YH30A005M11C" } } ] root@rain104bmctest:~# ./vpd-tool -o -O "InvalidObjectPath" root@rain104bmctest:~# echo $? 255 ''' Change-Id: I4b44bdb03429f7f3341ca0c79317d616f1de3a4f Signed-off-by: Souvik Roy <[email protected]>
souvik1914581
force-pushed
the
sr_vpdToolDumpObjectPR
branch
from
December 2, 2024 16:02
f4dcbcf
to
8820139
Compare
souvik1914581
pushed a commit
to souvik1914581/openpower-vpd-parser
that referenced
this pull request
Dec 2, 2024
This commit implements object dump functionality in vpd-tool. For a given Object path, the object dump functionality prints the following properties in a JSON format to the console: 1. Present property, Pretty Name, Location Code, Sub Model 2. SN, PN, CC, FN, DR keywords under VINI record Test: Tested on a rainier2s2u system ''' root@p10bmc:~# ./vpd-tool -o -O \ /xyz/openbmc_project/inventory/system/chassis/motherboard [ { "/xyz/openbmc_project/inventory/system/chassis/motherboard": { "CC": "2E2D", "DR": "SYSTEM BACKPLANE", "FN": "02WG676", "LocationCode": "U78DA.ND0.WZS0042-P0", "PN": "02WG678", "Present": "true", "PrettyName": "System backplane", "SN": "Y131UF07302T" } } ] root@p10bmc:~# ./vpd-tool -o -O \ /xyz/openbmc_project/inventory/system/chassis/motherboard/vdd_vrm0 [ { "/xyz/openbmc_project/inventory/ system/chassis/motherboard/vdd_vrm0": { "CC": "2E32", "DR": "CPU POWER CARD ", "FN": "02CM285", "LocationCode": "U78DA.ND0.WZS0042-P0-C14", "PN": "02CM286", "Present": "true", "PrettyName": "Voltage regulator module for system processor module 0", "SN": "YH30A005M11C" } } ] root@rain104bmctest:~# ./vpd-tool -o -O "InvalidObjectPath" root@rain104bmctest:~# echo $? 255 ''' Change-Id: I4b44bdb03429f7f3341ca0c79317d616f1de3a4f Signed-off-by: Souvik Roy <[email protected]>
souvik1914581
force-pushed
the
sr_vpdToolDumpObjectPR
branch
from
December 2, 2024 16:06
8820139
to
dc19839
Compare
souvik1914581
pushed a commit
to souvik1914581/openpower-vpd-parser
that referenced
this pull request
Dec 5, 2024
This commit implements object dump functionality in vpd-tool. For a given Object path, the object dump functionality prints the following properties in a JSON format to the console: 1. Present property, Pretty Name, Location Code, Sub Model 2. SN, PN, CC, FN, DR keywords under VINI record Test: Tested on a rainier2s2u system ''' root@p10bmc:~# ./vpd-tool -o -O \ /xyz/openbmc_project/inventory/system/chassis/motherboard [ { "/xyz/openbmc_project/inventory/system/chassis/motherboard": { "CC": "2E2D", "DR": "SYSTEM BACKPLANE", "FN": "02WG676", "LocationCode": "U78DA.ND0.WZS0042-P0", "PN": "02WG678", "Present": "true", "PrettyName": "System backplane", "SN": "Y131UF07302T" } } ] root@p10bmc:~# ./vpd-tool -o -O \ /xyz/openbmc_project/inventory/system/chassis/motherboard/vdd_vrm0 [ { "/xyz/openbmc_project/inventory/ system/chassis/motherboard/vdd_vrm0": { "CC": "2E32", "DR": "CPU POWER CARD ", "FN": "02CM285", "LocationCode": "U78DA.ND0.WZS0042-P0-C14", "PN": "02CM286", "Present": "true", "PrettyName": "Voltage regulator module for system processor module 0", "SN": "YH30A005M11C" } } ] root@rain104bmctest:~# ./vpd-tool -o -O "InvalidObjectPath" root@rain104bmctest:~# echo $? 255 ''' Change-Id: I4b44bdb03429f7f3341ca0c79317d616f1de3a4f Signed-off-by: Souvik Roy <[email protected]>
souvik1914581
force-pushed
the
sr_vpdToolDumpObjectPR
branch
from
December 5, 2024 07:11
dc19839
to
33598b7
Compare
souvik1914581
pushed a commit
to souvik1914581/openpower-vpd-parser
that referenced
this pull request
Dec 6, 2024
This commit implements object dump functionality in vpd-tool. For a given Object path, the object dump functionality prints the following properties in a JSON format to the console: 1. Present property, Pretty Name, Location Code, Sub Model 2. SN, PN, CC, FN, DR keywords under VINI record Test: Tested on a rainier2s2u system ''' root@p10bmc:~# ./vpd-tool -o -O \ /xyz/openbmc_project/inventory/system/chassis/motherboard [ { "/xyz/openbmc_project/inventory/system/chassis/motherboard": { "CC": "2E2D", "DR": "SYSTEM BACKPLANE", "FN": "02WG676", "LocationCode": "U78DA.ND0.WZS0042-P0", "PN": "02WG678", "Present": "true", "PrettyName": "System backplane", "SN": "Y131UF07302T" } } ] root@p10bmc:~# ./vpd-tool -o -O \ /xyz/openbmc_project/inventory/system/chassis/motherboard/vdd_vrm0 [ { "/xyz/openbmc_project/inventory/ system/chassis/motherboard/vdd_vrm0": { "CC": "2E32", "DR": "CPU POWER CARD ", "FN": "02CM285", "LocationCode": "U78DA.ND0.WZS0042-P0-C14", "PN": "02CM286", "Present": "true", "PrettyName": "Voltage regulator module for system processor module 0", "SN": "YH30A005M11C" } } ] root@rain104bmctest:~# ./vpd-tool -o -O "InvalidObjectPath" root@rain104bmctest:~# echo $? 255 ''' Change-Id: I4b44bdb03429f7f3341ca0c79317d616f1de3a4f Signed-off-by: Souvik Roy <[email protected]>
souvik1914581
force-pushed
the
sr_vpdToolDumpObjectPR
branch
from
December 6, 2024 04:30
33598b7
to
f587ebb
Compare
souvik1914581
pushed a commit
to souvik1914581/openpower-vpd-parser
that referenced
this pull request
Dec 6, 2024
This commit implements object dump functionality in vpd-tool. For a given Object path, the object dump functionality prints the following properties in a JSON format to the console: 1. Present property, Pretty Name, Location Code, Sub Model 2. SN, PN, CC, FN, DR keywords under VINI record Test: Tested on a rainier2s2u system ''' root@p10bmc:~# ./vpd-tool -o -O \ /xyz/openbmc_project/inventory/system/chassis/motherboard [ { "/xyz/openbmc_project/inventory/system/chassis/motherboard": { "CC": "2E2D", "DR": "SYSTEM BACKPLANE", "FN": "02WG676", "LocationCode": "U78DA.ND0.WZS0042-P0", "PN": "02WG678", "Present": "true", "PrettyName": "System backplane", "SN": "Y131UF07302T" } } ] root@p10bmc:~# ./vpd-tool -o -O \ /xyz/openbmc_project/inventory/system/chassis/motherboard/vdd_vrm0 [ { "/xyz/openbmc_project/inventory/ system/chassis/motherboard/vdd_vrm0": { "CC": "2E32", "DR": "CPU POWER CARD ", "FN": "02CM285", "LocationCode": "U78DA.ND0.WZS0042-P0-C14", "PN": "02CM286", "Present": "true", "PrettyName": "Voltage regulator module for system processor module 0", "SN": "YH30A005M11C" } } ] root@rain104bmctest:~# ./vpd-tool -o -O "InvalidObjectPath" root@rain104bmctest:~# echo $? 255 ''' Change-Id: I4b44bdb03429f7f3341ca0c79317d616f1de3a4f Signed-off-by: Souvik Roy <[email protected]>
souvik1914581
force-pushed
the
sr_vpdToolDumpObjectPR
branch
2 times, most recently
from
December 6, 2024 06:50
e08c439
to
2512302
Compare
souvik1914581
pushed a commit
to souvik1914581/openpower-vpd-parser
that referenced
this pull request
Dec 6, 2024
This commit implements object dump functionality in vpd-tool. For a given Object path, the object dump functionality prints the following properties in a JSON format to the console: 1. Present property, Pretty Name, Location Code, Sub Model 2. SN, PN, CC, FN, DR keywords under VINI record Test: Tested on a rainier2s2u system ''' root@p10bmc:~# ./vpd-tool -o -O \ /xyz/openbmc_project/inventory/system/chassis/motherboard [ { "/xyz/openbmc_project/inventory/system/chassis/motherboard": { "CC": "2E2D", "DR": "SYSTEM BACKPLANE", "FN": "02WG676", "LocationCode": "U78DA.ND0.WZS0042-P0", "PN": "02WG678", "Present": "true", "PrettyName": "System backplane", "SN": "Y131UF07302T" } } ] root@p10bmc:~# ./vpd-tool -o -O \ /xyz/openbmc_project/inventory/system/chassis/motherboard/vdd_vrm0 [ { "/xyz/openbmc_project/inventory/ system/chassis/motherboard/vdd_vrm0": { "CC": "2E32", "DR": "CPU POWER CARD ", "FN": "02CM285", "LocationCode": "U78DA.ND0.WZS0042-P0-C14", "PN": "02CM286", "Present": "true", "PrettyName": "Voltage regulator module for system processor module 0", "SN": "YH30A005M11C" } } ] root@rain104bmctest:~# ./vpd-tool -o -O "InvalidObjectPath" root@rain104bmctest:~# echo $? 255 ''' Change-Id: I4b44bdb03429f7f3341ca0c79317d616f1de3a4f Signed-off-by: Souvik Roy <[email protected]>
souvik1914581
pushed a commit
to souvik1914581/openpower-vpd-parser
that referenced
this pull request
Dec 6, 2024
This commit implements object dump functionality in vpd-tool. For a given Object path, the object dump functionality prints the following properties in a JSON format to the console: 1. Present property, Pretty Name, Location Code, Sub Model 2. SN, PN, CC, FN, DR keywords under VINI record Test: Tested on a rainier2s2u system ''' root@p10bmc:~# ./vpd-tool -o -O \ /xyz/openbmc_project/inventory/system/chassis/motherboard [ { "/xyz/openbmc_project/inventory/system/chassis/motherboard": { "CC": "2E2D", "DR": "SYSTEM BACKPLANE", "FN": "02WG676", "LocationCode": "U78DA.ND0.WZS0042-P0", "PN": "02WG678", "Present": "true", "PrettyName": "System backplane", "SN": "Y131UF07302T" } } ] root@p10bmc:~# ./vpd-tool -o -O \ /xyz/openbmc_project/inventory/system/chassis/motherboard/vdd_vrm0 [ { "/xyz/openbmc_project/inventory/ system/chassis/motherboard/vdd_vrm0": { "CC": "2E32", "DR": "CPU POWER CARD ", "FN": "02CM285", "LocationCode": "U78DA.ND0.WZS0042-P0-C14", "PN": "02CM286", "Present": "true", "PrettyName": "Voltage regulator module for system processor module 0", "SN": "YH30A005M11C" } } ] root@rain104bmctest:~# ./vpd-tool -o -O "InvalidObjectPath" root@rain104bmctest:~# echo $? 255 ''' Change-Id: I4b44bdb03429f7f3341ca0c79317d616f1de3a4f Signed-off-by: Souvik Roy <[email protected]>
souvik1914581
force-pushed
the
sr_vpdToolDumpObjectPR
branch
from
December 6, 2024 09:31
2512302
to
4aa262e
Compare
souvik1914581
pushed a commit
to souvik1914581/openpower-vpd-parser
that referenced
this pull request
Dec 6, 2024
This commit implements object dump functionality in vpd-tool. For a given Object path, the object dump functionality prints the following properties in a JSON format to the console: 1. Present property, Pretty Name, Location Code, Sub Model 2. SN, PN, CC, FN, DR keywords under VINI record Test: Tested on a rainier2s2u system ''' root@p10bmc:~# ./vpd-tool -o -O \ /xyz/openbmc_project/inventory/system/chassis/motherboard [ { "/xyz/openbmc_project/inventory/system/chassis/motherboard": { "CC": "2E2D", "DR": "SYSTEM BACKPLANE", "FN": "02WG676", "LocationCode": "U78DA.ND0.WZS0042-P0", "PN": "02WG678", "Present": "true", "PrettyName": "System backplane", "SN": "Y131UF07302T" } } ] root@p10bmc:~# ./vpd-tool -o -O \ /xyz/openbmc_project/inventory/system/chassis/motherboard/vdd_vrm0 [ { "/xyz/openbmc_project/inventory/ system/chassis/motherboard/vdd_vrm0": { "CC": "2E32", "DR": "CPU POWER CARD ", "FN": "02CM285", "LocationCode": "U78DA.ND0.WZS0042-P0-C14", "PN": "02CM286", "Present": "true", "PrettyName": "Voltage regulator module for system processor module 0", "SN": "YH30A005M11C" } } ] root@rain104bmctest:~# ./vpd-tool -o -O "InvalidObjectPath" root@rain104bmctest:~# echo $? 255 ''' Change-Id: I4b44bdb03429f7f3341ca0c79317d616f1de3a4f Signed-off-by: Souvik Roy <[email protected]>
souvik1914581
force-pushed
the
sr_vpdToolDumpObjectPR
branch
from
December 6, 2024 09:42
4aa262e
to
8333809
Compare
souvik1914581
pushed a commit
to souvik1914581/openpower-vpd-parser
that referenced
this pull request
Dec 6, 2024
This commit implements object dump functionality in vpd-tool. For a given Object path, the object dump functionality prints the following properties in a JSON format to the console: 1. Present property, Pretty Name, Location Code, Sub Model 2. SN, PN, CC, FN, DR keywords under VINI record Test: Tested on a rainier2s2u system ''' root@p10bmc:~# ./vpd-tool -o -O \ /xyz/openbmc_project/inventory/system/chassis/motherboard [ { "/xyz/openbmc_project/inventory/system/chassis/motherboard": { "CC": "2E2D", "DR": "SYSTEM BACKPLANE", "FN": "02WG676", "LocationCode": "U78DA.ND0.WZS0042-P0", "PN": "02WG678", "Present": "true", "PrettyName": "System backplane", "SN": "Y131UF07302T" } } ] root@p10bmc:~# ./vpd-tool -o -O \ /xyz/openbmc_project/inventory/system/chassis/motherboard/vdd_vrm0 [ { "/xyz/openbmc_project/inventory/ system/chassis/motherboard/vdd_vrm0": { "CC": "2E32", "DR": "CPU POWER CARD ", "FN": "02CM285", "LocationCode": "U78DA.ND0.WZS0042-P0-C14", "PN": "02CM286", "Present": "true", "PrettyName": "Voltage regulator module for system processor module 0", "SN": "YH30A005M11C" } } ] root@rain104bmctest:~# ./vpd-tool -o -O "InvalidObjectPath" root@rain104bmctest:~# echo $? 255 ''' Change-Id: I4b44bdb03429f7f3341ca0c79317d616f1de3a4f Signed-off-by: Souvik Roy <[email protected]>
souvik1914581
force-pushed
the
sr_vpdToolDumpObjectPR
branch
from
December 6, 2024 09:50
8333809
to
9a252eb
Compare
souvik1914581
pushed a commit
to souvik1914581/openpower-vpd-parser
that referenced
this pull request
Dec 6, 2024
This commit implements object dump functionality in vpd-tool. For a given Object path, the object dump functionality prints the following properties in a JSON format to the console: 1. Present property, Pretty Name, Location Code, Sub Model 2. SN, PN, CC, FN, DR keywords under VINI record Test: Tested on a rainier2s2u system ''' root@p10bmc:~# ./vpd-tool -o -O \ /xyz/openbmc_project/inventory/system/chassis/motherboard [ { "/xyz/openbmc_project/inventory/system/chassis/motherboard": { "CC": "2E2D", "DR": "SYSTEM BACKPLANE", "FN": "02WG676", "LocationCode": "U78DA.ND0.WZS0042-P0", "PN": "02WG678", "Present": "true", "PrettyName": "System backplane", "SN": "Y131UF07302T" } } ] root@p10bmc:~# ./vpd-tool -o -O \ /xyz/openbmc_project/inventory/system/chassis/motherboard/vdd_vrm0 [ { "/xyz/openbmc_project/inventory/ system/chassis/motherboard/vdd_vrm0": { "CC": "2E32", "DR": "CPU POWER CARD ", "FN": "02CM285", "LocationCode": "U78DA.ND0.WZS0042-P0-C14", "PN": "02CM286", "Present": "true", "PrettyName": "Voltage regulator module for system processor module 0", "SN": "YH30A005M11C" } } ] root@rain104bmctest:~# ./vpd-tool -o -O "InvalidObjectPath" root@rain104bmctest:~# echo $? 255 ''' Change-Id: I4b44bdb03429f7f3341ca0c79317d616f1de3a4f Signed-off-by: Souvik Roy <[email protected]>
souvik1914581
force-pushed
the
sr_vpdToolDumpObjectPR
branch
from
December 6, 2024 10:12
9a252eb
to
6231fc3
Compare
souvik1914581
pushed a commit
to souvik1914581/openpower-vpd-parser
that referenced
this pull request
Dec 6, 2024
This commit implements object dump functionality in vpd-tool. For a given Object path, the object dump functionality prints the following properties in a JSON format to the console: 1. Present property, Pretty Name, Location Code, Sub Model 2. SN, PN, CC, FN, DR keywords under VINI record Test: Tested on a rainier2s2u system ''' root@p10bmc:~# ./vpd-tool -o -O \ /xyz/openbmc_project/inventory/system/chassis/motherboard [ { "/xyz/openbmc_project/inventory/system/chassis/motherboard": { "CC": "2E2D", "DR": "SYSTEM BACKPLANE", "FN": "02WG676", "LocationCode": "U78DA.ND0.WZS0042-P0", "PN": "02WG678", "Present": "true", "PrettyName": "System backplane", "SN": "Y131UF07302T" } } ] root@p10bmc:~# ./vpd-tool -o -O \ /xyz/openbmc_project/inventory/system/chassis/motherboard/vdd_vrm0 [ { "/xyz/openbmc_project/inventory/ system/chassis/motherboard/vdd_vrm0": { "CC": "2E32", "DR": "CPU POWER CARD ", "FN": "02CM285", "LocationCode": "U78DA.ND0.WZS0042-P0-C14", "PN": "02CM286", "Present": "true", "PrettyName": "Voltage regulator module for system processor module 0", "SN": "YH30A005M11C" } } ] root@rain104bmctest:~# ./vpd-tool -o -O "InvalidObjectPath" root@rain104bmctest:~# echo $? 255 ''' Change-Id: I4b44bdb03429f7f3341ca0c79317d616f1de3a4f Signed-off-by: Souvik Roy <[email protected]>
souvik1914581
force-pushed
the
sr_vpdToolDumpObjectPR
branch
from
December 6, 2024 10:15
6231fc3
to
2e8e1b0
Compare
souvik1914581
pushed a commit
to souvik1914581/openpower-vpd-parser
that referenced
this pull request
Dec 6, 2024
This commit implements object dump functionality in vpd-tool. For a given Object path, the object dump functionality prints the following properties in a JSON format to the console: 1. Present property, Pretty Name, Location Code, Sub Model 2. SN, PN, CC, FN, DR keywords under VINI record Test: Tested on a rainier2s2u system ''' root@p10bmc:~# ./vpd-tool -o -O \ /xyz/openbmc_project/inventory/system/chassis/motherboard [ { "/xyz/openbmc_project/inventory/system/chassis/motherboard": { "CC": "2E2D", "DR": "SYSTEM BACKPLANE", "FN": "02WG676", "LocationCode": "U78DA.ND0.WZS0042-P0", "PN": "02WG678", "Present": "true", "PrettyName": "System backplane", "SN": "Y131UF07302T" } } ] root@p10bmc:~# ./vpd-tool -o -O \ /xyz/openbmc_project/inventory/system/chassis/motherboard/vdd_vrm0 [ { "/xyz/openbmc_project/inventory/ system/chassis/motherboard/vdd_vrm0": { "CC": "2E32", "DR": "CPU POWER CARD ", "FN": "02CM285", "LocationCode": "U78DA.ND0.WZS0042-P0-C14", "PN": "02CM286", "Present": "true", "PrettyName": "Voltage regulator module for system processor module 0", "SN": "YH30A005M11C" } } ] root@rain104bmctest:~# ./vpd-tool -o -O "InvalidObjectPath" root@rain104bmctest:~# echo $? 255 ''' Change-Id: I4b44bdb03429f7f3341ca0c79317d616f1de3a4f Signed-off-by: Souvik Roy <[email protected]>
souvik1914581
force-pushed
the
sr_vpdToolDumpObjectPR
branch
from
December 6, 2024 10:19
2e8e1b0
to
897af33
Compare
souvik1914581
pushed a commit
to souvik1914581/openpower-vpd-parser
that referenced
this pull request
Dec 6, 2024
This commit implements object dump functionality in vpd-tool. For a given Object path, the object dump functionality prints the following properties in a JSON format to the console: 1. Present property, Pretty Name, Location Code, Sub Model 2. SN, PN, CC, FN, DR keywords under VINI record Test: Tested on a rainier2s2u system ''' root@p10bmc:~# ./vpd-tool -o -O \ /xyz/openbmc_project/inventory/system/chassis/motherboard [ { "/xyz/openbmc_project/inventory/system/chassis/motherboard": { "CC": "2E2D", "DR": "SYSTEM BACKPLANE", "FN": "02WG676", "LocationCode": "U78DA.ND0.WZS0042-P0", "PN": "02WG678", "Present": "true", "PrettyName": "System backplane", "SN": "Y131UF07302T" } } ] root@p10bmc:~# ./vpd-tool -o -O \ /xyz/openbmc_project/inventory/system/chassis/motherboard/vdd_vrm0 [ { "/xyz/openbmc_project/inventory/ system/chassis/motherboard/vdd_vrm0": { "CC": "2E32", "DR": "CPU POWER CARD ", "FN": "02CM285", "LocationCode": "U78DA.ND0.WZS0042-P0-C14", "PN": "02CM286", "Present": "true", "PrettyName": "Voltage regulator module for system processor module 0", "SN": "YH30A005M11C" } } ] root@rain104bmctest:~# ./vpd-tool -o -O "InvalidObjectPath" root@rain104bmctest:~# echo $? 255 ''' Change-Id: I4b44bdb03429f7f3341ca0c79317d616f1de3a4f Signed-off-by: Souvik Roy <[email protected]>
souvik1914581
force-pushed
the
sr_vpdToolDumpObjectPR
branch
from
December 6, 2024 10:24
897af33
to
aae7dbf
Compare
souvik1914581
pushed a commit
to souvik1914581/openpower-vpd-parser
that referenced
this pull request
Dec 6, 2024
This commit implements object dump functionality in vpd-tool. For a given Object path, the object dump functionality prints the following properties in a JSON format to the console: 1. Present property, Pretty Name, Location Code, Sub Model 2. SN, PN, CC, FN, DR keywords under VINI record Test: Tested on a rainier2s2u system ''' root@p10bmc:~# ./vpd-tool -o -O \ /xyz/openbmc_project/inventory/system/chassis/motherboard [ { "/xyz/openbmc_project/inventory/system/chassis/motherboard": { "CC": "2E2D", "DR": "SYSTEM BACKPLANE", "FN": "02WG676", "LocationCode": "U78DA.ND0.WZS0042-P0", "PN": "02WG678", "Present": "true", "PrettyName": "System backplane", "SN": "Y131UF07302T" } } ] root@p10bmc:~# ./vpd-tool -o -O \ /xyz/openbmc_project/inventory/system/chassis/motherboard/vdd_vrm0 [ { "/xyz/openbmc_project/inventory/ system/chassis/motherboard/vdd_vrm0": { "CC": "2E32", "DR": "CPU POWER CARD ", "FN": "02CM285", "LocationCode": "U78DA.ND0.WZS0042-P0-C14", "PN": "02CM286", "Present": "true", "PrettyName": "Voltage regulator module for system processor module 0", "SN": "YH30A005M11C" } } ] root@rain104bmctest:~# ./vpd-tool -o -O "InvalidObjectPath" root@rain104bmctest:~# echo $? 255 ''' Change-Id: I4b44bdb03429f7f3341ca0c79317d616f1de3a4f Signed-off-by: Souvik Roy <[email protected]>
souvik1914581
force-pushed
the
sr_vpdToolDumpObjectPR
branch
from
December 6, 2024 10:55
aae7dbf
to
6ce020e
Compare
This commit implements vpd-tool --dumpObject stub and some associated utility methods and constants for the same. This commit allows user to provide --dumpObject command line option to vpd-tool. Note: This commit does not include actual implementation of --dumpObject. Change-Id: I821777237a3080d390e2bba151cd685ef8994bf9 Signed-off-by: Souvik Roy <[email protected]>
This commit implements object dump functionality in vpd-tool. For a given Object path, the object dump functionality prints the following properties in a JSON format to the console: 1. Present property, Pretty Name, Location Code, Sub Model 2. SN, PN, CC, FN, DR keywords under VINI record Test: Tested on a rainier2s2u system ''' root@p10bmc:~# ./vpd-tool -o -O \ /xyz/openbmc_project/inventory/system/chassis/motherboard [ { "/xyz/openbmc_project/inventory/system/chassis/motherboard": { "CC": "2E2D", "DR": "SYSTEM BACKPLANE", "FN": "02WG676", "LocationCode": "U78DA.ND0.WZS0042-P0", "PN": "02WG678", "Present": "true", "PrettyName": "System backplane", "SN": "Y131UF07302T" } } ] root@p10bmc:~# ./vpd-tool -o -O \ /xyz/openbmc_project/inventory/system/chassis/motherboard/vdd_vrm0 [ { "/xyz/openbmc_project/inventory/ system/chassis/motherboard/vdd_vrm0": { "CC": "2E32", "DR": "CPU POWER CARD ", "FN": "02CM285", "LocationCode": "U78DA.ND0.WZS0042-P0-C14", "PN": "02CM286", "Present": "true", "PrettyName": "Voltage regulator module for system processor module 0", "SN": "YH30A005M11C" } } ] root@rain104bmctest:~# ./vpd-tool -o -O "InvalidObjectPath" root@rain104bmctest:~# echo $? 255 ''' Change-Id: I4b44bdb03429f7f3341ca0c79317d616f1de3a4f Signed-off-by: Souvik Roy <[email protected]>
souvik1914581
force-pushed
the
sr_vpdToolDumpObjectPR
branch
from
December 9, 2024 09:19
6ce020e
to
81ce0e4
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit implements object dump functionality in vpd-tool.
For a given Object path, the object dump functionality prints the
following properties in a JSON format to the console:
1. Present property, Pretty Name, Location Code, Sub Model
2. SN, PN, CC, FN, DR keywords under VINI record
root@rain104bmctest:# ./vpd-tool -o -O "InvalidObjectPath"
root@rain104bmctest:# echo $?
255
Note: This commit does not include changes to add
"type"
and"TYPE"
properties to the object dump. These will be added when inventory json is parsed byvpd-tool
.Screenshots below show old
vpd-tool --dumpObject
output vs. newvpd-tool --dumpObject
output: