Hi,
You can use ocsinventory-injector.pl script :
perl ocsinventory-injector.pl -v -r -d your_directory -u http://localhost/ocsinventory
Rergards