get the password weak state 0f 31 00 93 00 db 07 00 00 password complexity support 00 0f 31 00 93 00 db 07 00 01 00 history password check count 00 add_test_admin_user add_admin_user user17 is already, just delete it 11 Set user17 name success! Set user17 passwd success! Set user17 access:admin success! get the user interface Set user17 first login policy to 0 success! Set userid is 11! Set BIOS Item status=01 The black box state is open pcie device is present! rm host_cdev_drv rm host_veth_drv rm host_edma_drv load driver ok! ping6: sendmsg: Cannot assign requested address ping6: sendmsg: Cannot assign requested address get pcie status from network failed, retry. get pcie status from network ok! #!/bin/bash BMC_IP="FE80:0000:0000:0000:9E7D:A3FF:FE28:6FFA" AUTH="Administrator:Admin@9000" JSON="$2" # Get token TOKEN=`python3 bioscfg.py -t` if [ "$TOKEN" == "None" ]; then echo "wrong token" exit 1 fi # HTTP/1.1 200 OK # Date: Fri, 25 Nov 2022 16:26:15 GMT # Referrer-Policy: no-referrer # X-Frame-Options: SAMEORIGIN # X-Download-Options: noopen # Content-Security-Policy: default-src 'none'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; connect-src 'self' wss://*:*; img-src 'self' data:; frame-src 'self'; font-src 'self' data:; object-src 'self'; style-src 'self' 'unsafe-inline' # Cache-Control: max-age=0, no-cache, no-store, must-revalidate # Expires: 0 # OData-Version: 4.0 # ETag: W/"66f11f3f" # Link: ;rel=describedby # Allow: GET # X-XSS-Protection: 1; mode=block # Strict-Transport-Security: max-age=31536000; includeSubDomains # X-Content-Type-Options: nosniff # Content-Length: 242 # Content-Type: application/json;charset=utf-8 # {"Members": [{"@odata.id": "/redfish/v1/Managers/1"}],"@odata.context": "/redfish/v1/$metadata#ManagerCollection.ManagerCollection","@odata.id": "/redfish/v1/Managers","@odata.type": "#ManagerCollection.ManagerCollection","Name": "Manager Collection","Members@odata.count": 1} # 1.▒ҵ▒"Members": ▒▒▒ڵ▒▒▒ 2.▒▒▒▒"Members":▒и▒,▒▒ȡ▒▒벿▒▒ 3.▒▒▒▒/▒и▒,▒▒ȡ▒▒▒▒▒Ԫ▒▒ 4.▒▒ȡ"ǰ▒▒▒▒ַ▒ SLOTID=`curl -i -k -H "X-Auth-Token: $TOKEN" -X GET https://[$BMC_IP%veth]:40443/redfish/v1/Managers/ | grep "\"Members\":" | awk -F "\"Members\":" '{print $2}' | awk -F "/" '{print $5}'` SLOTID=${SLOTID%%\"*} if [ "$1" == "-r" ]; then # Delete temp file if [ -f temp.txt ]; then rm -rf temp.txt fi # Send read cmd curl -i -k -H "X-Auth-Token: $TOKEN" -X GET https://[$BMC_IP%veth]:40443/redfish/v1/Systems/$SLOTID/Bios/ >> "temp.txt" # Print data python3 bioscfg.py "$@" elif [ "$1" == "-ra" ]; then # Delete temp file if [ -f currentvalue.txt ]; then rm -rf currentvalue.txt fi # Send read all cmd curl -i -k -H "X-Auth-Token: $TOKEN" -X GET https://[$BMC_IP%veth]:40443/redfish/v1/Systems/$SLOTID/Bios/ >> "currentvalue.txt" elif [ "$1" == "-w" ]; then # Get ETag ETag=`curl -i -k -H "X-Auth-Token: $TOKEN" https://[$BMC_IP%veth]:40443/redfish/v1/Systems/$SLOTID/Bios/Settings | grep ETag | awk -F ":" '{print $2}'` # Get ETag number ETag=${ETag:4:8} # Send write cmd curl -i -k -H "X-Auth-Token: $TOKEN" -H "Content-Type: application/json" -H "If-Match: W/\"$ETag\"" -X PATCH -d "$JSON" https://[$BMC_IP%veth]:40443/redfish/v1/Systems/$SLOTID/Bios/Settings elif [ "$1" == "-c" ]; then # Send resetbios cmd curl -i -k -H "X-Auth-Token: $TOKEN" -H "Content-Type: application/json" -X POST -d "{}" https://[$BMC_IP%veth]:40443/redfish/v1/Systems/$SLOTID/Bios/Actions/Bios.ResetBios else echo "wrong param" fi % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 269 100 269 0 0 5969 0 --:--:-- --:--:-- --:--:-- 6113 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 11870 100 11870 0 0 112k 0 --:--:-- --:--:-- --:--:-- 113k DdrRefreshRate:1x Mode Need Set Item DdrRefreshRate to Value 1x Mode JSON{"Attributes":{"DdrRefreshRate":"1x Mode"}} curl set BIOS Item result is : % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 269 100 269 0 0 4233 0 --:--:-- --:--:-- --:--:-- 4269 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 474 100 474 0 0 9131 0 --:--:-- --:--:-- --:--:-- 9294 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 517 100 474 100 43 667 60 --:--:-- --:--:-- --:--:-- 727 HTTP/1.1 200 OK Server: WebServer/1.0.0 Date: Mon, 22 Jun 2026 07:57:18 GMT Content-Type: application/json;charset=utf-8 Content-Length: 474 Connection: keep-alive ETag: W/"02a7b2dd" OData-Version: 4.0 X-Frame-Options: DENY X-Download-Options: noopen X-XSS-Protection: 1;mode=block X-Content-Type-Options: nosniff X-Permitted-Cross-Domain-Policies: none Strict-Transport-Security: max-age=31536000; includeSubDomains Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-eval'; connect-src 'self' wss://*:*; img-src 'self' data:; frame-src 'self'; font-src 'self' data:; object-src 'self'; style-src 'self'; form-action 'self'; frame-ancestors 'self'; plugin-types 'none' Cache-Control: max-age=0, no-cache, no-store, must-revalidate Pragma: no-cache Expires: 0 Referrer-Policy: no-referrer {"@odata.context":"/redfish/v1/$metadata#Bios.Bios","@odata.id":"/redfish/v1/Systems/1/Bios/Settings","@odata.type":"#Bios.v1_0_0.Bios","Id":"Settings","Name":"BIOS Configuration Pending Settings","AttributeRegistry":"BiosAttributeRegistry.3.5.0","Attributes":{"DdrRefreshRate":"1x Mode"},"Actions":{"Oem":{"Public":{"#Settings.Revoke":{"target":"/redfish/v1/Systems/1/Bios/Settings/Actions/Oem/Public/Settings.Revoke"}}}},"Oem":{"Public":{"EffectiveStatus":"Ineffective"}}} HTTP_STATUS : 200 OK bios config success common_config.sh : SUCCESS 11 del user17 name fail! [root@localhost unicfg]# ipmicmd -k "f 00 06 45 11 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00" smi 0 : 0f 07 00 45 00 0f 07 00 45 ff [root@localhost unicfg]#