- Community Home
- >
- Software
- >
- HPE OneView
- >
- Gen 10 ilo. create a new entry vfor SNMP i pythoni...
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
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
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-30-2020 02:23 PM
08-30-2020 02:23 PM
Gen 10 ilo. create a new entry vfor SNMP i pythonilorest library in an ILO not oneview
I am trying to create a new entry for SNMP, not edit (PATCH) but rather post/PUT using redfish
Which command None of below work
#curl -i --insecure -X POST -H "Content-Type: application/json" -d "{\"Action\": \"HpeSNMPAlertDestination.v2_0_0.HpeSNMPAlertDestination\",\"AlertsEnabled\":\"true\" ,\"Location\":\"14.14.14.14\"}" -u hp:abcd1234 -L https://IP/redfish/v1/Managers/1/SnmpService
#curl -i --insecure -X PATCH -H "Content-Type: application/json" -d "{\"Action\": \"HpeSNMPAlertDestination.v2_0_0.HpeSNMPAlertDestination\",\"AlertsEnabled\":\"true\" ,\"Location\":\"14.14.14.14\"}" -u hp:abcd1234 -L https://IP/redfish/v1/Managers/1/SnmpService
curl -i --insecure -X PATCH -H "Content-Type: application/json" -d "{\"Action\": \"HpeSNMPAlertDestination.v2_0_0.HpeSNMPAlertDestination\",\"AlertsEnabled\":\"true\" ,\"Location\":\"14.14.14.14\"}" -u hp:abcd1234 -L https://IP/redfish/v1/Managers/1/SnmpService/SNMPAlertDestinations/1
#curl -i --insecure -X PATCH -H "Content-Type: application/json" -d "{\"Action\": \"HpeSNMPAlertDestination.v2_0_0.HpeSNMPAlertDestination\",\"AlertsEnabled\":\"true\" ,\"Location\":\"14.14.14.14\"}" -u hp:abcd1234 -L https://IP/redfish/v1/Managers/1/SnmpService
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2020 05:39 AM
08-31-2020 05:39 AM
Re: Gen 10 ilo. create a new entry vfor SNMP i pythonilorest library in an ILO not oneview
Hi
The below is the working syntax:
.\curl.exe -i --insecure -X PATCH -H "Content-Type: application/json" -d "{\"Location\":\"New location\"}" -u user:pswd -L https://{IP}/redfish/v1/Managers/1/SnmpService/
For more information please refer below community forums thread in which same issue was dicussed.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
