Open kif1205 opened 5 years ago
MaxCountOfEventSubscriptions in eventingMode.conf is below :
MaxCountOfEventSubscriptions=100
Command : "sed -n '/^MaxCountOfEventSubscriptions=/ {s///p;q;}' /usr/local/etc/nginx/eventingMode.conf
Output : 100
Replace EventingMechanism=* as EventingMechanism=0
Command : sed -i 's/EventingMechanism=[A-z|0-9|:punct:|.| |,|/]*/EventingMechanism=0" + "/' " + EventingMode_Conf_File_Path
2019.08.20
},
"DependencyFor": "EraseSEL",
"Type": "Map"
},
Command :
sed -n '/^[ ]*"DependencyFor": "Era/ {=s///p;q;}' /usr/local/nginx/www/BiosAttributeRegistry/VertivBiosAttributeRegistry.1.0.0.json
Result :
928
seSEL",
=> 928 is the match number ,' seSEL", ' is the match word
sed -n '/^[ ]*"DependencyFor": "Era/ {=}' /usr/local/nginx/www/BiosAttributeRegistry/VertivBiosAttributeRegistry.1.0.0.json
Result :
928
2019.08.20
Original
"MapToProperty": "GrayOut",
"MapToValue": true
},
"DependencyFor":"fdsafsadfas",
"Type": "Map"
},
{
"Dependency": {
920~930 "DependencyFor":[A-z|0-9|:punct:|.| |,|/|\"]*, =>"DependencyFor":"123",
sed -i '920,930s/"DependencyFor":[A-z|0-9|:punct:|.| |,|/|\"]*,/"DependencyFor":"123",/g' /usr/local/nginx/www/BiosAttributeRegistry/VertivBiosAttributeRegistry.1.0.0.json
Result :
"MapToProperty": "GrayOut",
"MapToValue": true
},
"DependencyFor":"123",
"Type": "Map"
},
{
"Dependency": {
2019.08.28
Get Version
VERSION = SSH_Write("sed -n '"+ '/^VERSION=/ {s///p;q;}' + "' /etc/os-release")[0][:-1]
Replace VERSION_ID with VERSION
SSH_Write("sed -i '" + 's/VERSION_ID=[A-z|0-9|:punct:|.| |,|/|"|-]*/VERSION_ID=' + VERSION + "/' " + "/etc/os-release")
sed -i 's/"LogEFIStatusCodes": "[A-z|0-9|:punct:|.| ]*"/"LogEFIStatusCodes": "Error code"/' /etc/bios_current.json