本内容为OCS Inventory NG +GLPI 安装日志,本安装共实现了:
a. OCS Inventory NG 2.10RC Linux redhat 6.2环境的安装(此版本解决了OCS中显示中文的问题,不需要在安装1.3.2的UTF-8的版本了);
b. Glpi 0.83.9的安装;
c. OCS for Windows Agent 的部署,包括:
- 使用AD GPO 部署;
- 使用其自带的OCS Inventory NG Agent Deployment Tool 的部署 ;
整理后,为大家献上正式安装文档。
1. ip
2. dns
3. host
4. servername
5. service config
6. yum config file
7. mount cdrom
8. setup files (mount cifs share)
9. ocs moudls
yum install -y gcc gcc-c++ glibc-devel glibc-headers autoconf automake bzip2-devel zlib-devel ncurses-devel libjpeg-devel libpng-devel libtiff-devel freetype-devel pam-devel openssl-devel libXpm libX11 libxml2-devel gettext-devel
pcre-devel mysql mysql-server httpd php php-devel php-gd php-pecl-zip php-mysql php-devel php-pear php-imap php-ldap php-odbc php-xml php-xmlrpc mod_perl
10.mysql config
mysqladmin -u root password 'passwd' //设置mysql数据库root用户密码为passwd
11.service config
#service mysqld start
#service httpd start
#chkconfig mysqld on
#chkconfig httpd on
12. 开发环境
yum install -y gcc gcc-c++ glibc-devel glibc-headers autoconf automake bzip2-devel zlib-devel ncurses-devel libjpeg-devel libpng-devel libtiff-devel freetype-devel pam-devel openssl-devel libXpm libX11 libxml2-devel gettext-devel pcre-
devel mysql mysql-server httpd php php-devel php-gd php-pecl-zip php-mysql php-devel php-pear php-imap php-ldap php-odbc php-xml php-xmlrpc mod_perl
13. moudles
perl
php
14. setup OCSNG..
Where to copy Administration Server static files for PHP Web Console
[/usr/share/ocsinventory-reports] ?
if want to 自定义: /var/www/html/
15. config OCSNG
http://serverip/ocsreports/install.php
mysql root password
16. setup GLPI
17. config GLPI
new mysql database glpi
18. config GLPI data syn OCSNG
19. Agent config
all-in-one config
/S /SERVER=http://192.168.1.3/ocsinventory /NO_SYSTRAY /NOW
20. Agent deploy
GPO
a. config all-in-one package
.ocsng-windows-packager tools
.psExec.ext
.cacert.pem
.commmand:
- /S 静默安装
- /SERVER=http://server url or IP Adress/ocsinventory 服务器数据收集地址
- /NO_SYSTRAY 右下角不显示图标
- /NOW 立即发送采集数据
b. great a GPO for ocs agent install
. open gpmc
. great GPO for OCS install
. computer policy -> script -> logon
. copy all-in-one packager and Ocslogon.exe(With Windows Agent Download Packager) to policy foder
. config the policy command
eg: /PACKAGER /GPO /DEPLOY=2.1.0.1 /SERVER=http://192.168.1.3/ocsinventory
“/PACKAGER” to use OCS Packager all-in-one installer,
“/GPO” to use setup file located in the same folder as OcsLogon.exe aka the GPO folder,
“/DEPLOY=2.0.0.15” to ensure at least Agent version 2.0.0.15 is installed,
“/SERVER=http://ocs.mycompany.tld/ocsinventory" to use Communication Server URL http://ocs.mycompany.tld/ocsinventory.
c. link teh GPO for OU
d. the Client restart ,Agent must auto install.
Deploy tools
a. install OCS Inventory NG Agent Deployment Tool
b. psExec.ext
c. OCS-NG-Windows-Agent-Setup
d. open OCS Inventory NG Agent Deployment Tool
e. config options
f. command : /S /SERVER=http://192.168.1.3/ocsinventory /NO_SYSTRAY /NOW
g. select want to install client : for workgroup , AD, IP ..
f. setup users and password ; eg: testuaf\admin-tommy / password: ......
g. go it .
h. check ocsreports
i. syn .. glpi
21. glpi config
22. done