Commit 546178e
committed
vpd-tool: implement more option of fixSystemVPD
This commit implements more options for fixSystemVpd command, to update
keyword’s value on primary and backup VPD, by iterating each keyword.
User will be provided following keyword update option in case of any
mismatch between primary and backup data:
* Choose backup data as the right value.
* Choose system backplane data as the right value.
* Choose new value to update on both primary and backup.
In case there is no mismatch:
* Choose new value to update on both primary and backup.
Output
'''
./vpd-tool --fixSystemVPD
Restorable record-keyword pairs and their data on backup & primary.
===============================================================================================================================================================================================
S.No Record Keyword Data On Backup Data On Primary Data Mismatch
===============================================================================================================================================================================================
1 VSYS BR S0 12 YES
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2 VSYS TM NO
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3 VSYS SE NO
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
4 VSYS SU NO
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
5 VSYS RB NO
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
6 VSYS WN NO
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
7 VSYS RG 0x36370000 0x36370000 NO
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
8 VSYS FV fw1010.00-01 fw1010.00-01 NO
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
9 VCEN FC 78DA-001 78DA-001 NO
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
10 VCEN SE 139EF60 139EF60 NO
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
11 LXR0 LX 0x3100040100300071 0x3100040100300071 NO
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
12 UTIL D0 0x01 0x01 NO
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
13 UTIL D1 0x00 0x00 NO
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
14 UTIL F0 0x0000000000000000 0x0000000000000000 NO
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
15 UTIL F5 0x00000000000000000000000000000000 0x00000000000000000000000000000000 NO
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
16 UTIL F6 0x00000000000000000000000000000000 0x00000000000000000000000000000000 NO
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Enter 1 => If you choose the data on backup for all mismatching record-keyword pairs
Enter 2 => If you choose the data on primary for all mismatching record-keyword pairs
Enter 3 => If you wish to explore more options
Enter 0 => To exit successfully : 3
===============================================================================================================================================================================================
S.No Record Keyword Backup Data Primary Data Data Mismatch
1 VSYS BR S0 12 YES
===============================================================================================================================================================================================
Enter 4 => If you choose the data on backup as the right value
Enter 5 => If you choose the data on primary as the right value
Enter 6 => If you wish to enter a new value to update both on backup and primary
Enter 7 => If you wish to skip the above record-keyword pair
Enter 0 => To exit successfully : 4
Data updated successfully.
S.No Record Keyword Backup Data Primary Data Data Mismatch
2 VSYS TM NO
===============================================================================================================================================================================================
Enter 6 => If you wish to enter a new value to update both on backup and primary
Enter 7 => If you wish to skip the above record-keyword pair
Enter 0 => To exit successfully : 6
Enter the new value to update on both primary & backup. Value should be in ASCII or in HEX(prefixed with 0x) : 0x3132
===============================================================================================================================================================================================
Data updated successfully.
S.No Record Keyword Backup Data Primary Data Data Mismatch
3 VSYS SE NO
===============================================================================================================================================================================================
Enter 6 => If you wish to enter a new value to update both on backup and primary
Enter 7 => If you wish to skip the above record-keyword pair
Enter 0 => To exit successfully : 6
Enter the new value to update on both primary & backup. Value should be in ASCII or in HEX(prefixed with 0x) : "TEST"
===============================================================================================================================================================================================
Data updated successfully.
S.No Record Keyword Backup Data Primary Data Data Mismatch
4 VSYS SU NO
===============================================================================================================================================================================================
Enter 6 => If you wish to enter a new value to update both on backup and primary
Enter 7 => If you wish to skip the above record-keyword pair
Enter 0 => To exit successfully : 0
Exit successfully
Check updated values:
root@p10bmc:/tmp# ./vpd-tool --fixSystemVPD
Restorable record-keyword pairs and their data on backup & primary.
===============================================================================================================================================================================================
S.No Record Keyword Data On Backup Data On Primary Data Mismatch
===============================================================================================================================================================================================
1 VSYS BR S0 S0 NO
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2 VSYS TM 12 12 NO
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3 VSYS SE "TEST" "TEST" NO
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
4 VSYS SU NO
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
5 VSYS RB NO
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
6 VSYS WN NO
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
7 VSYS RG 0x36370000 0x36370000 NO
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
8 VSYS FV fw1010.00-01 fw1010.00-01 NO
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
9 VCEN FC 78DA-001 78DA-001 NO
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
10 VCEN SE 139EF60 139EF60 NO
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
11 LXR0 LX 0x3100040100300071 0x3100040100300071 NO
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
12 UTIL D0 0x01 0x01 NO
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
13 UTIL D1 0x00 0x00 NO
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
14 UTIL F0 0x0000000000000000 0x0000000000000000 NO
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
15 UTIL F5 0x00000000000000000000000000000000 0x00000000000000000000000000000000 NO
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
16 UTIL F6 0x00000000000000000000000000000000 0x00000000000000000000000000000000 NO
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Enter 1 => If you choose the data on backup for all mismatching record-keyword pairs
Enter 2 => If you choose the data on primary for all mismatching record-keyword pairs
Enter 3 => If you wish to explore more options
Enter 0 => To exit successfully : 0
===============================================================================================================================================================================================
Exit successfully
'''
Signed-off-by: Anupama B R <[email protected]>1 parent c4c1359 commit 546178e
1 file changed
+78
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
991 | 991 | | |
992 | 992 | | |
993 | 993 | | |
994 | | - | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
995 | 1041 | | |
996 | 1042 | | |
997 | 1043 | | |
| |||
1066 | 1112 | | |
1067 | 1113 | | |
1068 | 1114 | | |
1069 | | - | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
1070 | 1119 | | |
1071 | 1120 | | |
1072 | 1121 | | |
1073 | 1122 | | |
1074 | | - | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
1075 | 1127 | | |
1076 | 1128 | | |
1077 | 1129 | | |
1078 | 1130 | | |
1079 | | - | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
1080 | 1153 | | |
1081 | 1154 | | |
1082 | 1155 | | |
| |||
1103 | 1176 | | |
1104 | 1177 | | |
1105 | 1178 | | |
1106 | | - | |
| 1179 | + | |
1107 | 1180 | | |
1108 | 1181 | | |
1109 | 1182 | | |
| |||
0 commit comments