- Community Home
- >
- Servers and Operating Systems
- >
- HPE BladeSystem
- >
- BladeSystem - General
- >
- HPrest: command example required
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
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
03-06-2016 10:23 PM
03-06-2016 10:23 PM
HPrest: command example required
Hi,
i am using HPrest to attach virtual media, i am able to attache the virtual media using below sequence of hprest commands.
1. hprest --config=/root/hprest.conf --nologo login https://10.43.21.2 -u admin
2. hprest --nologo select VirtualMedia
3. hprest --nologo set Image=https:192.169.2.2/boot.iso --filter links/self/href=/rest/v1/Managers/1/VirtualMedia/2 --commit
i want sequrence of commands to remove virtual media. Below set commands are not working.
1. hprest --config=/root/hprest.conf --nologo login https://10.43.21.65 -u HPadmin
2. hprest --nologo select VirtualMedia
3. hprest --nologo set Image='' --filter links/self/href=/rest/v1/Managers/1/VirtualMedia/2 --commit
Committing changes...
No more Virtual Media connections are available, because the maximum number of connections are already established.
ERROR : Failed to commit with iLO error code 400
result is same even if i use 'set Image='""' double quote.
i am using 'hprest-1.4-49' version of hprest. HP hardware is BL460c Gen9 with iLO 4 firmware version '2.30 Aug 19 2015' with adavanced license.
Thanks and regards,
Adishesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2016 12:52 PM
03-29-2016 12:52 PM
Re: HPrest: command example required
It seems the set Image="" doesn't work with this tool so, try creating a file and copy the below JSON into it.
{ "path": "/rest/v1/Managers/1/VirtualMedia/2/", "body": { "Image": null } }
Then, send the JSON file to iLO4 using the following command:
hprest --nologo rawpatch {your_filename_here}
__________________________________________________
If you feel this was helpful please click the KUDOS! thumb below!