UPDATE! The community will be go into read-only on April 19, 8am Pacific in preparation for migration on April 21. Read more.
UPDATE! The community will be go into read-only on April 19, 8am Pacific in preparation for migration on April 21.Read more.
Fleet Admiral
Fleet Admiral
296 views

updating event using REST

OBM 2020.05

I am trying to update event using RestWsUtil.sh but it fails with below error,

Operation requires authentication. Please enter the correct login name and password.

I am using below command from GW server,

RestWsUtil.sh -update /tmp/update.xml -username jessy -password jessy123 -url "https://GW-Server/opr-web/rest/9.10/event_list/331a1812-3246-71eb-006f-0a2b53230000"

where update.xml contains,

<event xmlns="http://www.hp.com/2009/software/opr/data_model">
<state>resolve</state>
</event>

I even tried with super admin user, but got same error, please help.

Labels (1)
0 Likes
2 Replies
Fleet Admiral
Fleet Admiral

Dear All

I did some changes and used new user with super admin rights and now event is getting updated correctly.

However I need to use this in groovy script and I do not want to expose user name and password details, I heard there is an .rc file which can be used for user details, please can you shed me more light on this.

0 Likes
Micro Focus Expert
Micro Focus Expert

Hello Ramesh,

Check the option -set_rc of opr-rest-ws-util at:

https://docs.microfocus.com/itom/Operations_Bridge_Manager:2020.05/Clirestwsutil 

Regards,
Thierry.

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.