POWERSHELL for IDRAC
E' possibile gestire le nuove versioni di IDRAC tramite powershell. La cosa diventa utile nel momento in cui si vuole operare da un unico strumento tramite script, diversamente e' molto piu conveniente utilizzare una console ssh
I moduli IDRAC per powershell vanno installati usando questi comandi:
Find-Module *idrac* |ogv
Find-Module *idrac* |Install-Module
#Restituisce lo stato di IDRAC
Set-PowerControlREDFISH -idrac_ip 1.2.3.4 -idrac_username root -idrac_password xxx -get_power_state_only y
Set-PowerControlREDFISH -idrac_ip 1.2.3.4 -idrac_username root -idrac_password xxx -power_request_value On
EXAMPLE WITH AUTH TOKEN
Set-PowerControlREDFISH -idrac_ip 1.2.3.4 get_power_state_only y -x_auth_token 5bd9cc9a8727ec366a9cef5bc83b2708
REFERENCE
https://www.dell.com/support/kbdoc/it-it/000178045/redfish-api-with-dell-integrated-remote-access-controller?dgc=SM&cid=243900&lid=spr5873265198&RefID=dtw22_sm5873265198&linkId=138750710
https://dl.dell.com/manuals/common/dell-emc-poweredge-server-mgmt-idrac-api.pdf
https://github.com/dell/DellPEWSMANTools
https://dl.dell.com/manuals/common/dell-emc-poweredge-server-mgmt-idrac-api.pdf
Nessun commento:
Posta un commento