OCS Inventory NG Forums

OCS Inventory NG, an OpenSource computer inventory and package deployement system for Windows and Unix

You are not logged in.

#1 2007-06-04 15:17:30

alexaz
Member
Registered: 2007-06-04
Posts: 7

cloning, connection to ocs DB to have ip address and computer name

hello

i have to clone a lot of computer, i wanna create a script who :
make a connection to ocs database
take the ip address
take the computer name
in function of the computer mac address

to simplify this task ( cloning )

do you have any idea ?


sorry for my poor english ...

Offline

#2 2007-06-04 16:47:08

dliroulet
OCS Team
From: Toulouse, France
Registered: 2007-03-12
Posts: 1,834
Website

Re: cloning, connection to ocs DB to have ip address and computer name

Hi.

You can take a look at Developer FAQ to view database shema. Table HARWARE stire host name, and table NETWORKS store IP and MAC addresses.

You can use SOAP web service to query database using HTTP protocol.

Cheers


IRC Channel #ocsinventory-ng on FreeNode

Offline

Board footer

Powered by FluxBB