ProLiant Servers (ML,DL,SL)
1748124 Members
3257 Online
108758 Solutions
New Discussion

ilorest get storageconfig

 
buckshotbarlow
Regular Visitor

ilorest get storageconfig

We have a couple of different flavors of dl360s with different storage configurations. I was trying to automate ilorest to get the output of each...I just need a basic working shell script to log into the 80 some odd servers, drop it in a text file and call it good. Here's what works...

528 -> ilorest
iLOrest : RESTful Interface Tool version 3.2.1
Copyright (c) 2014-2021 Hewlett Packard Enterprise Development LP
--------------------------------------------------------------------------------
iLOrest > login 172.16.9.1 -u administrator -p password
Discovering data...Done
iLOrest > list --selector=SmartStorageConfig
@odata.context=/redfish/v1/$metadata#SmartStorageConfig.SmartStorageConfig
blah blah blah all the info i need in here needs to go to a text file, but i want to capture it in a text file...

Now, how do i get this to run in for loop in bash...I've tried the following and it's no joy...

for x in {1..80}
do

echo " working on ilo.$x"
ilorest login 172.16.9.$x -u administrator -p password list --selector=SmartStorageConfig | tee -a /tmp/ilo_172.x
done

thxs in advance!

1 REPLY 1
TVVJ
HPE Pro

Re: ilorest get storageconfig

Hello,

You may refer to iLO RESTful API for HPE and the RESTful Interface Tool (iLOREST) for more information.

Regards,

I work for HPE
Views expressed herein are my personal opinion and are not the views of HPE

Accept or Kudo