OCSInventory menurut Wikipedia adalah sebagai berikut :
Open Computer and Software Inventory Next Generation (OCS inventory NG) adalah software gratis yang memungkinkan pengguna untuk melakukan inventarisasi terhadap aset aset IT mereka. OCS-NG akan mengumpulkan informasi hardware dan software dari mesin mesin yang terhubung didalam jaringan komputer yang menjalankan program OCS-Client (“OCS Inventory Agent”). OCS dapat dipergunakan untuk menampilkan inventaris melalui web.
Langkah langkah untuk instalasi OCSInventory Server:
- Install Apache, MySQL dan PHP
- Install komponen pustaka yang dibutuhkan oleh OCSInventory :
- apt-get install libapache2-mod-perl2 libapache-dbi-perl libxml-simple-perl libio-compress-perl libdbi-perl libdbd-mysql-perl libnet-ip-perl php5-gd php5-mysql make
- Install komponen pustaka di perl :
- masuk ke console perl
- perl -MCPAN -e shell
- install pustaka SOAP::Lite
- install SOAP:Lite
- install pustaka XML::Entities
- install XML::Entities
- masuk ke console perl
- Download source OCSInventory terbaru :
- wget -c https://launchpadlibrarian.net/136538282/OCSNG_UNIX_SERVER-2.1rc1.tar.gz
- Extract source tersebut, dan masuk ke folder ocs
- tar -xvf OCSNG_UNIX_SERVER-2.1rc1.tar.gz
- cd OCSNG_UNIX_SERVER-2.1rc1
- Jalankan perintah setup instalasi ocs yang terbaru
- ./setup.sh
- Jawablah beberapa pertanyaan yang muncul, berikut yang muncul di komputer saya :
- Do you wish to continue ([y]/n)?
- Which host is running database server [localhost] ?
- On which port is running database server [3306] ?
- Where is Apache daemon binary [/usr/sbin/apache2] ?
- Where is Apache main configuration file [/etc/apache2/apache2.conf] ?
- Which user account is running Apache web server [www-data] ?
- Which user group is running Apache web server [www-data] ?
- Where is Apache Include configuration directory [//etc/apache2/conf.d/] ?
- Where is PERL Intrepreter binary [/usr/bin/perl] ?
- Do you wish to setup Communication server on this computer ([y]/n)?
- Where to put Communication server log directory [/var/log/ocsinventory-server] ?
- Kemudian abaikan pertanyaan berikut :
- Checking for Apache2::SOAP PERL module… *** Warning: PERL module Apache2::SOAP is not installed ! This module is only required by OCS Inventory NG SOAP Web Service. Do you wish to continue ([y]/n] ?
- dan lanjutan pertanyaannya :
- Do you wish to continue ([y]/n] ?
- Do you allow Setup renaming Communication Server Apache configuration file to ‘z-ocsinventory-server.conf’ ([y]/n) ?
- Do you wish to setup Administration Server (Web Administration Console) on this computer ([y]/n)?
- Do you wish to continue ([y]/n)?
- Where to copy Administration Server static files for PHP Web Console [/usr/share/ocsinventory-reports] ?
- Where to create writable/cache directories for deployement packages and IPDiscover [/var/lib/ocsinventory-reports] ?
- Buat VirtualHost untuk OCSInventory
- vim /etc/apache2/sites-available/000-default.conf
- Tambah parameter berikut dan simpan file tersebut
- Alias /ocsreports “/usr/share/ocsinventory-reports/ocsreports/”
<Directory “/usr/share/ocsinventory-reports/ocsreports/”>
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
- Alias /ocsreports “/usr/share/ocsinventory-reports/ocsreports/”
- Kemudian edit file dbconfig
- vim /usr/share/ocsinventory-reports/ocsreports/dbconfig.inc.php
- Tambahkan parameter berikut ini dan simpan file tersebut
- < ? php
$_SESSION[“SERVEUR_SQL”]=”localhost”;
$_SESSION[“COMPTE_BASE”]=”$user”;
$_SESSION[“PSWD_BASE”]=”$password”;
? >
- < ? php
- Setelah itu proses instalasi melalui web, buka alamat berikut di dalam perambah anda dan ikuti proses instalasinya hingga selesai.
- http://localhost/ocsreports/install.php
- Update file z-ocsinventory-server.conf
- vim conf.d/z-ocsinventory-server.conf
- Ubah nilai parameter berikut menjadi 1, agar semua client dapat berkomunikasi dengan OCSInventory server
- PerlSetEnv OCS_OPT_ACCEPT_TAG_UPDATE_FROM_CLIENT 1
- Buat link symbolik dari file tersebut di directory conf-enabled dari apache configuration
- sudo ln -s /etc/apache2/conf.d/z-ocsinventory-server.conf /etc/apache2/conf-enabled/z-ocsinventory-server.conf
- Proses Instalasi OCSInventory telah selesai, kita harus merubah file install.php menjadi file yang lain, atau agar lebih aman file tersebut di hapus.
- mv /usr/share/ocsinventory-reports/ocsreports/install.php /usr/share/ocsinventory-reports/ocsreports/install.php_1
- Silahkan login OCSInventory melalui http://localhost/ocsreports dengan user admin dan kemudian ubah default passwordnya.