Академический Документы
Профессиональный Документы
Культура Документы
Introduccin
INTRODUCCION
ox
ac
he
r
Te
Importante
Notas importantes
Teacher Box
OCS Inventory
OCS INVENTORY NG
ox
ac
he
r
Te
Teacher Box
ox
Dependencias
ac
he
r
Te
Teacher Box
ox
#descomprimiendo el archivo
ubuntu-server$ tar zxf OCSNG_UNIX_SERVER-2.0.x.tar.gz
#ejecutando la instalacin
ubuntu-server$ cd OCSNG_UNIX_SERVER-2.0.x
ubuntu-server$ sudo sh setup.sh
1.
2.
3.
4.
5.
6.
ac
he
r
Si todo anda bien, solo ser necesario presionar ENTER varias veces hasta que termine la
instalacin, a menos que deseen cambiar los valores por defecto. El resultado de la
instalacin es mas o menos as:
Te
1. +---------------------------------------------------------+
2. |
|
3. | Welcome to OCS Inventory NG Management server setup !
|
4. |
|
5. +---------------------------------------------------------+
6.
7. Trying to determine whitch OS or Linux distribution you
use
8. +---------------------------------------------------------+
9. | Checking for Apache web server binaries !
|
10. +---------------------------------------------------------+
11.
12. CAUTION: If upgrading Communication server from OCS
Teacher Box
Te
ac
he
r
ox
Teacher Box
-+
Te
ac
he
r
ox
47.
48. Where is Apache main configuration file
[/etc/apache2/apache2.conf] ?
49. OK, using Apache main configuration file
/etc/apache2/apache2.conf ;-)
50.
51.
52. +---------------------------------------------------------+
53. | Checking for Apache user account...
|
54. +---------------------------------------------------------+
55.
56. Which user account is running Apache web server [www-data]
?
57. OK, Apache is running under user account www-data ;-)
58.
59.
60. +---------------------------------------------------------+
61. | Checking for Apache group...
|
62. +---------------------------------------------------------+
63.
64. Which user group is running Apache web server [www-data] ?
65. OK, Apache is running under users group www-data ;-)
66.
67.
68. +---------------------------------------------------------+
69. | Checking for Apache Include configuration directory...
|
70. +---------------------------------------------------------+
71.
72. Setup found Apache Include configuration directory in
73. //etc/apache2/conf.d/.
74. Setup will put OCS Inventory NG Apache configuration in
this directory.
75. Where is Apache Include configuration directory
[//etc/apache2/conf.d/] ?
76. OK, Apache Include configuration directory
//etc/apache2/conf.d/ found ;-)
77.
Teacher Box
Te
ac
he
r
ox
78.
79. +---------------------------------------------------------+
80. | Checking for PERL Interpreter...
|
81. +---------------------------------------------------------+
82.
83. Found PERL Intrepreter at </usr/bin/perl> ;-)
84. Where is PERL Intrepreter binary [/usr/bin/perl] ?
85. OK, using PERL Intrepreter /usr/bin/perl ;-)
86.
87.
88. Do you wish to setup Communication server on this computer
([y]/n)?
89.
90.
91. +---------------------------------------------------------+
92. | Checking for Make utility...
|
93. +---------------------------------------------------------+
94.
95. OK, Make utility found at </usr/bin/make> ;-)
96.
97. +---------------------------------------------------------+
98. | Checking for Apache mod_perl version...
|
99. +---------------------------------------------------------+
100.
101. Checking for Apache mod_perl version 1.99_22 or higher
102. Found that mod_perl version 1.99_22 or higher is available.
103. OK, Apache is using mod_perl version 1.99_22 or higher ;-)
104.
105. +---------------------------------------------------------+
106. | Checking for Communication server log directory...
|
107. +---------------------------------------------------------+
108.
109. Communication server can create detailled logs. This logs
can be enabled
110. by setting interger value of LOGLEVEL to 1 in
Teacher Box
Te
ac
he
r
ox
Administration console
111. menu Configuration.
112. Where to put Communication server log directory
[/var/log/ocsinventory-server] ?
113. OK, Communication server will put logs into directory
/var/log/ocsinventory-server ;-)
114.
115.
116. +---------------------------------------------------------+
117. | Checking for required Perl Modules...
|
118. +---------------------------------------------------------+
119.
120. Checking for DBI PERL module...
121. Found that PERL module DBI is available.
122. Checking for Apache::DBI PERL module...
123. Found that PERL module Apache::DBI is available.
124. Checking for DBD::mysql PERL module...
125. Found that PERL module DBD::mysql is available.
126. Checking for Compress::Zlib PERL module...
127. Found that PERL module Compress::Zlib is available.
128. Checking for XML::Simple PERL module...
129. Found that PERL module XML::Simple is available.
130. Checking for Net::IP PERL module...
131. Found that PERL module Net::IP is available.
132.
133. +---------------------------------------------------------+
134. | Checking for optional Perl Modules...
|
135. +---------------------------------------------------------+
136.
137. Checking for SOAP::Lite PERL module...
138. Found that PERL module SOAP::Lite is available.
139. Checking for XML::Entities PERL module...
140. Found that PERL module XML::Entities is available.
141.
142.
143. +---------------------------------------------------------+
144. | OK, looks good ;-)
|
145. |
|
Teacher Box
Te
ac
he
r
ox
Teacher Box
Te
ac
he
r
ox
Teacher Box
10
-+
Te
ac
he
r
ox
202.
203.
204. Do you wish to setup Administration Server (Web
Administration Console)
205. on this computer ([y]/n)?
206.
207. +---------------------------------------------------------+
208. | Checking for Administration Server directories...
|
209. +---------------------------------------------------------+
210.
211. CAUTION: Setup now install files in accordance with
Filesystem Hierarchy
212. Standard. So, no file is installed under Apache root
document directory
213. (Refer to Apache configuration files to locate it).
214. If you're upgrading from OCS Inventory NG Server 1.01 and
previous, YOU
215. MUST REMOVE (or move) directories 'ocsreports' and
'download' from Apache
216. root document directory.
217. If you choose to move directory, YOU MUST MOVE 'download'
directory to
218. Administration Server writable/cache directory (by default
219. /var/lib/ocsinventory-reports), especialy if you use
deployement feature.
220.
221. Do you wish to continue ([y]/n)?
222. Assuming directories 'ocsreports' and 'download' removed
from
223. Apache root document directory.
224.
225. Where to copy Administration Server static files for PHP
Web Console
226. [/usr/share/ocsinventory-reports] ?
227. OK, using directory /usr/share/ocsinventory-reports to
install static files ;-)
228. Where to create writable/cache directories for deployement
packages,
229. IPDiscover and SNMP [/var/lib/ocsinventory-reports] ?
230. OK, writable/cache directory is
/var/lib/ocsinventory-reports ;-)
231.
232.
Teacher Box
11
Te
ac
he
r
ox
233. +---------------------------------------------------------+
234. | Checking for required Perl Modules...
|
235. +---------------------------------------------------------+
236.
237. Checking for DBI PERL module...
238. Found that PERL module DBI is available.
239. Checking for DBD::mysql PERL module...
240. Found that PERL module DBD::mysql is available.
241. Checking for XML::Simple PERL module...
242. Found that PERL module XML::Simple is available.
243. Checking for Net::IP PERL module...
244. Found that PERL module Net::IP is available.
245.
246. +---------------------------------------------------------+
247. | Installing files for Administration server...
|
248. +---------------------------------------------------------+
249.
250. Creating PHP directory
/usr/share/ocsinventory-reports/ocsreports.
251. Copying PHP files to
/usr/share/ocsinventory-reports/ocsreports.
252. Fixing permissions on directory
/usr/share/ocsinventory-reports/ocsreports.
253. Creating database configuration file
/usr/share/ocsinventory-reports/ocsreports/dbconfig.inc.ph
p.
254. Creating IPDiscover directory
/var/lib/ocsinventory-reports/ipd.
255. Fixing permissions on directory
/var/lib/ocsinventory-reports/ipd.
256. Creating packages directory
/var/lib/ocsinventory-reports/download.
257. Fixing permissions on directory
/var/lib/ocsinventory-reports/download.
258. Creating packages directory
/var/lib/ocsinventory-reports/snmp.
259. Fixing permissions on directory
/var/lib/ocsinventory-reports/snmp.
260. Configuring snmp_com.txt file
261. Configuring IPDISCOVER-UTIL Perl script.
262. Installing IPDISCOVER-UTIL Perl script.
Teacher Box
12
Te
ac
he
r
ox
13
Configurar BD
Paso 3: Configurar la base de datos
Te
ac
he
r
1. Acceder a http://localhost/ocsreports/
ox
OCS Iventory esta listo para que podamos establecer los parmetros de base de datos:
3.
Teacher Box
14
ac
he
r
ox
Te
Teacher Box
15
3.
4.
1.
2.
ox
ac
he
r
5.
6.
7.
8.
9.
10.
11.
12.
13.
1. /usr/share/ocsinventory-reports/ocsreports/dbconfig.inc.php
Te
Configurar clientes
Teacher Box
16
ox
Te
ac
he
r
Teacher Box
17
ox
Te
ac
he
r
Teacher Box
18