You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2009-02-02 07:49:57

zibidobido
Member
Registered: 2009-02-02
Posts: 2

Add new computers via script

I'm curious as to whether or not anyone has looked into this.  I'm on a secure network and I'd like to get a quick inventory of all my servers.  I'd like to run a simple python script on the servers that will use urllib2 and log in and post the computer name and a few other fields.

Has anyone tried this?  I'd rather not create a csv file and do a mass import if I can avoid it.

Offline

#2 2009-02-02 08:28:37

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: Add new computers via script

Using import from a CSV file is a solution

Another solution is to install OCS which provide a "agent" installed on computer and gather a lot of information which can be sync to GLPI.

++


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#3 2009-02-02 08:43:01

zibidobido
Member
Registered: 2009-02-02
Posts: 2

Re: Add new computers via script

Thanks.  Since I posted this, I've downloaded and taken a quick look at OCS.  I think that's the way to go.

Offline

Board footer

Powered by FluxBB