Free utilityIntegration

HP Service Manager Sync Integration

HP Service Manager

If you currently use Device42 and HP Service Manager, you can now easily sync your Device42 data to HPSM with our new, open source Device42-HPSM Sync Integration. When this python-based script is run, it reads the relevant Configuration Item (CI) data, compares it to data in HPSM if it exists via serial number, or if there is no serial, by logical name. The data is then sent from Device42 to HPSM.

After you’ve done your initial sync, devices are “locked” between HPSM and Device42 by their Device42 Primary Key, and all updates after the initial use the PK. Going forward, Device42’s Continuous Discovery can automatically keep your physical, virtual, cloud servers and containers, network components, software, services, and applications inventory and interdependency information up-to-date.

HP Service Manager users can enhance both their ITSM processes and change management processes by syncing the Asset and CMDB data from Device42 to their HPSM instance. Enjoy an improved HP Service Manager experience by leveraging Device42’s comprehensive Continuous Discovery, and then begin linking service requests to the relevant CI, searching for issues using CI attributes, and of course see Device42 CI details in HPSM!

The Device42 / HPSM integration can sync the following CI attributes to your HP Service Manager Instance:

  • Logical Name
  • Operating System and Version
  • Model and Serial
  • MAC address
  • Machine Name
  • Environment
  • Description
  • Network Name
  • Type & Sub-type
  • Asset Tag
  • Memory Information
  • Add’l MAC & IP
  • Assignment
  • Manufacturer
  • IP Address information   
  • Device42 ID

Running the script is fast and simple. Once you’ve downloaded, just extract, configure, and run. For detailed setup information [including step-by-step screenshots!], check out the HP Service Manager Integration page on our Docs Site.

Integration Highlights

Link Service requests to CIs

Link Service Requests

Once Device42’s Configuration Management Database is synced to HPSM, users can use link service requests to those synced CIs. Associate CIs with the ticket they concern for enhanced issue tracking, resulting in an improved IT Service Management experience.

Search issues by associated CI attributes

Search by CI in HPSM

Once the CIs from Device42 are synced to HP Service Manager, a simple search is all it takes to find all issues concerning that CI. All synced CIs are completely searchable from within HPSM using all native HPSM search tools!

Configuration and Usage Overview

    1. Create a working directory foo and copy the contents of the Device42 Device42_HPSM_Sync repository to it
    2. Copy (or move/rename) the settings file conf.sample to conf
    3. Edit the conf file you created in the last step to contain your Device42 & HPSM instance info [host, user, pass]:
      # ========= Device 42 ========= #
      d42_host = '192.168.1.102'
      d42_username = 'user'
      d42_password = 'pass'
      # ========= HPSM ========= #
      hpsm_host = '10.42.42.46'
      hpsm_protocol = 'http'
      hpsm_port = '13080'
      hpsm_username = 'user'
      hpsm_password = 'pass'
      hpsm_api_version = '9'
      # ========= Options ========= #
      opt_debug = True
      opt_dry_run = True

Configure HPSM:

  1. Open the Database Dictionary and add field (type ‘number’, name ‘device42.id’) to both the models ‘computer’ and ‘networkcomponents’
  2. Operator should have access to the REST API. The API should allow “Computer” and “NetworkDevice” access, allowing both ‘add’ and ‘save’ actions
  3. Both endpoints must allow access to add & update all of the fields listed on this page. For the exact field names, see README.MD
  4. Set the unique key for both endpoints to: ‘logical.name’
  5. Run $ python starter.py

If you run into any unexpected behavior, bugs, or otherwise have questions, comments, or feature requests, feel free to reach out to [email protected].

Download Device42 and the HPSM integration script today!

Share this post

About the author