- Community Home
- >
- Servers and Operating Systems
- >
- HPE ProLiant
- >
- ProLiant Servers (ML,DL,SL)
- >
- ilorest get storageconfig
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2021 07:36 PM - last edited on 09-08-2021 07:59 PM by support_s
08-18-2021 07:36 PM - last edited on 09-08-2021 07:59 PM by support_s
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2021 11:35 PM
08-22-2021 11:35 PM
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 at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[All opinions expressed here are mine, and not official statements on behalf of Hewlett Packard Enterprise]
