Dell iDRAC API

https://github.com/b4ldr/racadm https://github.com/iamseth/python-rac https://github.com/jasongill/idrac-kvm https://www.dell.com/community/Systems-Management-General/Script-to-grab-Boot-Capture-videos/td-p/4233828 ———————————————————————————————————————————————————————————————————————— check_firmver() { local ip=$1 local firmware=$(curl -s -k https://$ip/session?aimGetProp=fwVersionFull 2> /dev/null | python -c "import json, sys; print json.load(sys.stdin)['aimGetProp']['fwVersionFull']" 2> /dev/null || curl -k -s https://$ip/public/about.html | awk -F\" '/var fwVer/{print $2}') echo "$firmware" } check_type() { local ip=$1 local type=$(curl -k -s https://$ip/login.html | awk -F\" '/var tmpDracName/{print $2}') [[ -z "$type" ]] && local type=$(curl -k -s https://$ip/data?get=prodServerGen | awk -F'prodServerGen>' '{print $2}' | tr -d '/' '{print $2}' | tr -d '/
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章