- Community Home
- >
- Servers and Operating Systems
- >
- HPE ProLiant
- >
- Servers - General
- >
- G2 PDU Clearing Logs with Redfish
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
Forums
Discussions
Discussions
Discussions
Forums
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
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-17-2023 11:12 AM - last edited on тАО08-24-2023 06:12 PM by support_s
тАО08-17-2023 11:12 AM - last edited on тАО08-24-2023 06:12 PM by support_s
G2 PDU Clearing Logs with Redfish
With our G2 PDUs, we want to clear the logs with redfish. I'm assuming we can can clear the logs with a request to : /redfish/v1/Managers/1/LogServices/Log/Actions/LogService.Reset
However a POST request with no arguments does not work. I just get a "400 Bad Request" Does anyone know what arguments need to be sent with the request?
- Tags:
- Prolaint server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-23-2023 01:09 AM
тАО08-23-2023 01:09 AM
Re: G2 PDU Clearing Logs with Redfish
Good day!
Typically, to clear logs using the LogService. Reset action, you would send a POST request to the appropriate URL, but you may need to include a request body with the necessary arguments or parameters. Unfortunately, the exact argument requirements can differ between different devices and firmware versions.
You can give a try to below ones:
>> Check the user manual for your G2 PDU device. It should provide information on how to interact with the Redfish API and the required parameters for the LogService.Reset action.You may find the Manuals in Support site: https://support.hpe.com/
>> The Redfish standard includes a schema that describes the available actions and their parameters for each resource. You can typically find the schema documentation for your Redfish implementation on the manufacturer's website. Look for information about the LogService.Reset action and its parameters.
>> Experiment with different arguments in the request body. For some devices, sending an empty JSON object as the request body might work, while others may require specific parameters to be set.
For example, you might try sending a POST request with an empty JSON object like this:
{}
Or you may need to specify additional parameters such as:
{
"Action": "LogService.Reset",
"Target": "/redfish/v1/Managers/1/LogServices/Log"
}
If you're unable to find the correct arguments or the device's documentation doesn't provide clear instructions, consider reaching out to the HPE Support for further assistance.
Remember to ensure that you have the necessary permissions and authentication set up for making Redfish API requests to your device.
I hope this give some insights. Let me know..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-23-2023 06:55 PM
тАО08-23-2023 06:55 PM
Re: G2 PDU Clearing Logs with Redfish
You may also refer to the user guide for assistance and if needed, please do log a support case with us via https://support.hpe.com/
We'd be happy to assist.
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.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2023 09:13 AM
тАО08-24-2023 09:13 AM
Re: G2 PDU Clearing Logs with Redfish
Thank you for your help. Unfortunately the manual was not very helpful and the request didn't work with either the empty parameters or the ones you mentioned. I'm not getting the 400 error though so that's a step in the right direction. I'll continue to poke at it. Thanks again.