Quantcast
Channel: Ocsinventory Q&A - Recent questions and answers in OCS Inventory NG agent
Viewing all articles
Browse latest Browse all 4573

How to generate a .ocs file manually

$
0
0

Hy !

If it is possible, How can I generate a .ocs file manually ? I see that .ocs file It is similar to a xml file. 

I try create one but not work !

Below is the xml I created manually:

<?xml version="1.0" encoding="UTF-8"?>

<REQUEST>

  <CONTENT>

    <HARDWARE>

      <DESCRIPTION>Server datacenter VM</DESCRIPTION>

      <LASTLOGGEDUSER>user</LASTLOGGEDUSER>

      <NAME>SERVER_HOST_NAME</NAME>

      <USERID>user</USERID>

      <VMSYSTEM>server</VMSYSTEM>

      <WORKGROUP>datacenter VM</WORKGROUP>

    </HARDWARE>

<USERS>

      <LOGIN>user</LOGIN>

    </USERS>

  </CONTENT>

  <DEVICEID>server</DEVICEID>

  <QUERY>INVENTORY</QUERY>

</REQUEST>

When I try inject to ocs server happens this error : 

ERROR: 400 Bad Request
OBS: When I use ocsinventory-agent to create .ocs and injet to server it works with success. 

Viewing all articles
Browse latest Browse all 4573

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>