📜 ⬆️ ⬇️

RESTful Web Services Interface Appears in HP IMC

With the introduction of the RESTful eAPI web-access service in the HP IMC management system, the system can now not only manage devices, but also be part of a common complex of multi-vendor environment management, providing the next step towards automation and flexibility in setting up the entire network infrastructure.

iMC provides web services based on open service oriented architecture (SOA). Web services are mainly implemented through the use of the following methods: REST, SOAP, and XML-RPC. In comparison with the other two REST-style methods, the functionality is transparent and simple.

Access to iMC RESTful web services can be obtained using the following Java REST clients:
')

What needs to be done to write a client using IMC-RS? The next section will show how to access IMC-RS using Java.

Cooking

  1. You need to install and deploy iMC 5.1 Enterprise or later. Launch iMC and do autodiscovery.
  2. Download and install JDK 6 or JRE 6.
  3. Download and install Eclipse 3.6 or later.
  4. Download Apache HttpClient 4.1 or later and unzip it on your local machine.
  5. Make sure iMC-RS is available.
    (enter " imc_host:port/imcrs/application.wadl imc_host:port/imcrs/application.wadl "in the address bar of the browser, where imc_host is the host name or IP address of the iMC server, and the service port (8080 by default)).
  6. In the authentication dialog box, enter “admin” as the username and password and click OK.
  7. If the browser displays the XML document " " , iMC-RS .
    Run Eclipse and create a project.
    Select File> New> Java Project.
    Type the project name “MyRestClient” and click Next.
    Click the Libraries tab, click Add External JARs, and add the unzipped Apache HttpClient files httpcore-4.1.jar, httpclient-4.1.jar, and commons-logging-1.1.1.jar to the project.
    Click Finish.

Source: https://habr.com/ru/post/151360/


All Articles