Commodore Commodore
Commodore
2105 views

HPSM - Number of Current Open Incidents

Jump to solution

Hi Experts,

I am looking to find a way to have HPSM export to a file the current number of open incidents in the system at any one time. Would anyone have done this before? What would the best way to go about doing this, as I would like have it automated? -to check every so many minutes for the amount of open incidents.

Thanks!

Tags (2)
0 Likes
1 Solution

Accepted Solutions
Micro Focus Expert
Micro Focus Expert

Regarding the report export path, you need to specify the dashboard_export_path parameter in sm.ini file

for more details, you can check:

http://docs.software.hpe.com/SM/9.50/Codeless/Content/reporting/concepts/report_schedule_background_process.htm?Highlight=dashboard_export_path

And webservice call can get the result as well, compare to SOAP, Rest API is easier to use. You can use following restful call to get the incident backlog count, the authentication in the command is falcon with password "1"

curl -XGET -H "Authorization: Basic ZmFsY29uOjE=" -H "Accept-Encoding: gzip,deflate" "http://localhost:13950/SM/9/rest/incidents?Status<>\"Closed\"&view=summary"

And the response is like below:

{
  "@totalcount": 211,
  "Messages": [],
  "ResourceName": "Incident",
  "ReturnCode": 0
}

To run the restful command, your operator must have a password, and have the REST API capability words:

http://docs.software.hpe.com/SM/9.50/Codeless/Content/install/smsp_install/grant_users_soap_rest_capabilities.htm?Highlight=restful%20API

Finally, you can find how to generate the curl command at:

/t5/Service-Manager-Service-Center/Curl-command-for-HPSM-webservices/m-p/6852377#M132137

Let me know if it helps,

Ling-Yan

View solution in original post

4 Replies
Micro Focus Expert
Micro Focus Expert

With 9.40 SM in tool reports, you can check the number of open incidents by reporting at any time:

2016-12-06_11-00-56.jpg

And you can also export this report to file or email based on schedule in 9.40 release:

2016-12-06_11-03-57.jpg

Further more, you can auto refresh the dashboard with 9.50 release.

Let me know if it helps,

Ling-Yan

Commodore Commodore
Commodore

Hi @lingyanmeng

That works, but I notice the "Export to:" File Server options are only PDF or HTML. Would you also happen to know where that will export to on my server? There is no path specified that I can see.

I have one scheduled to run over night, and I will see what kind of output I get.

On a side note, I have been looking into using SOAP for the same thing as an output to XML - Would using the SM/7/IncidentManagement.wsdl and RetrieveIncidentList possibly be another option?

0 Likes
Micro Focus Expert
Micro Focus Expert

Regarding the report export path, you need to specify the dashboard_export_path parameter in sm.ini file

for more details, you can check:

http://docs.software.hpe.com/SM/9.50/Codeless/Content/reporting/concepts/report_schedule_background_process.htm?Highlight=dashboard_export_path

And webservice call can get the result as well, compare to SOAP, Rest API is easier to use. You can use following restful call to get the incident backlog count, the authentication in the command is falcon with password "1"

curl -XGET -H "Authorization: Basic ZmFsY29uOjE=" -H "Accept-Encoding: gzip,deflate" "http://localhost:13950/SM/9/rest/incidents?Status<>\"Closed\"&view=summary"

And the response is like below:

{
  "@totalcount": 211,
  "Messages": [],
  "ResourceName": "Incident",
  "ReturnCode": 0
}

To run the restful command, your operator must have a password, and have the REST API capability words:

http://docs.software.hpe.com/SM/9.50/Codeless/Content/install/smsp_install/grant_users_soap_rest_capabilities.htm?Highlight=restful%20API

Finally, you can find how to generate the curl command at:

/t5/Service-Manager-Service-Center/Curl-command-for-HPSM-webservices/m-p/6852377#M132137

Let me know if it helps,

Ling-Yan

View solution in original post

Commodore Commodore
Commodore

Hi @lingyanmeng

That's great thanks, I am going to attempt using the Restful API over SOAP as it does indeed look simpler, this will definitely work though, thanks so much!

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.