显示标签为“OCSNG”的博文。显示所有博文
显示标签为“OCSNG”的博文。显示所有博文

2008-11-27

[项目更新] OCS Inventory NG 1.02 RC3 available and GLPI 0.71.2 available

如果你了解OCS Inventory NG 的话,您可能会发现这个问题,在家里用adsl上网,可能访问不到这个项目的网站,所以要想下载这个项目的软件,可以去sorceforge.net下载。

10/28/2008 OCS Inventory NG Server 1.02 RC3 发布了Patch1,Patch1主要是修复了一些数据库创建和更新的问题,具体的内容如下所示:
In the database creation/update process launched through Administration Console (install.php), défault settings for cache and download directories are missing.

Also, default values in dynamic group computation are not set correctly. So dynamic group of computers are not updated correctly in Communication Server.

We've also included Remi patch in install.php to avoid overriding database username and password if you've changed them. Thanks Remi.

OCS Inventory NG在sorceForge的下载网址 http://sourceforge.net/projects/ocsinventory/

15 September 2008 GLPI 0.71.2 发布

这也是一个bug修复的版本,没有新增什么功能。修复的问题如下所示。









#1094
Auth Method Change if old one does not exists
#1109
Clean update for end_warranty_buy on search system
#1110
OEM Computer selection problem on licenses
#1111
Keep reminder and bookmark when author is deleted
#1112
Bookmark creation right problem
#1113
Mail formatting
#1114
Clean log on cartridge / consumable
#1115
logout with noAuto for auto logged users
#1119
Mailgate followup import problem due to author check
#1120
Cartridge restore bug
#1121
Clean Ignore process in software dictionnary
#1122
Correct stats computation
#1131
Search engine problem for plugin field which need group by
#1133
Bug on database connection error

2008-05-23

Deploy asset management solution



This is my second virtual appliance, it suppose to work for production. This is a 100% open source solution for inventory/asset management, it including OCS Inventory NG and GLPI. I encourage you to deploy it in your school or company.

About virtual appliance / 关于此虚拟应用

  • OpenSuSE 10.2 (root password is martinliu)

  • LAMP+Perl

  • OCS Inventory v1.02 RC1

  • GLPI v0.70.2

  • bridged network


You can download it from below.

Download it 下载

Thanks BigYue.com for donated upload space. 感谢BigYue.com的空间。

Run Server / 运行管理服务器(>=2GB RAM)

  1. un-zip the image on a computer which will be network with for any managed nodes to upload inventory information. This host machine should have at least 2GB RAM.

  2. Download a wm player and install it.

  3. Open virtual machine and power on.

  4. At top of boot screen, you will find the ip address of this vm I assume you have a DHCP server on network. Otherwise you have to configure network manually for this vm.

  5. Access to the home page (http://IP_address_Of_vm/) which I made it for you. On this page, there are login information and entry points.


Now you have a full function asset management solution up an running. You will configure security for the whole system before you do more work with it. You should change the password for root and mysql. Mysql have a blank password. After you done this, you must re-configure database connection for both OCS Inventory NG and GLPI accordingly. Please refer to administration guide.

Deploy Agent / 安装部署代理

  • For any Unix-like system : you will manually install on each of target computer. Following the installation guide from OCS inventory NG.

  • For MS windows system: You can do manually installation too. Also you could distribute agent via AD domain policy automatically, all target machines must logon the AD domain at least once in order to get agent package installed. Agent is running as a windows service if it is installed properly; inventory information will update timely to the server. The Agent package can be copied to a USB key. You can use it for collecting inventory information for off-line computers, or a computer which you wont have any piece of OSS installed on it. I'm kidding, I guess you love to run OSS on any of your computers, PS: the more the better.


Management Asset / 管理IT资产

  • Synchronize inventory data from OCS Inventory NG to GLPI. GLPI can do it at interval that you set hourly or daily.

  • Those two OSS are just easy to use. You will still read some necessary documents on their web. 请阅读尽可能多的使用手册

  • As long as you use this virtual appliance, I can see your smile face. Don't forget give me comment below and let me know how many nodes do you manage.

  • Enjoy and have a lot of fun.


Support / 支持 This virtual appliance comes with ABSOLUTELY NO SUPPORT. I will try my best to support you, but questions are not guaranteed for a quick answer. I strongly recommend you will go to open source community when you run into any error. I believe you can get support and might help others too. If you improved this virtual appliance, I am looking forward to see your share. I'd like to hear any good idea from you.

Notes:

From wikipedia: Comparison of open source configuration management software

2007-06-15

OCSNG 代理程序生成的清单扫描信息

  • Linux
硬件是下面的Windows机,软件是openSuse10.2运行在VMWare中.
Information Value
Tag LiuZheng

PROCESSOR(S)

Type Processor Speed (Mhz) Number
Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz 2126 1


MEMORY

Caption Description Capacity (MB) Purpose Type Speed Slot number

DIMM 512
DRAM Unknown 0

DIMM No
DRAM Unknown 0

DIMM No
DRAM Unknown 0

DIMM No
DRAM Unknown 0



STORAGE

Name Manufacturer Model Description Type Disk size (MB)

VMware VMwareVirtual S SCSI disk 83886

?? VMware Virtual IDE CDROM Drive IDE removable 3789



DISK(S)

Letter Type File System Total (MB) Free (MB) Designation

/dev/sda2 ext3 20157 16308 /

udev tmpfs 252 251 /dev

/dev/sda3 ext3 58449 55142 /home



BIOS

Serial number Manufacturer Model BIOS Manufacturer BIOS Version BIOS Date
VMware-56 4d b2 4c 00 88 78 67-4c 69 00 04 0f 38 74 e7 VMware, Inc. VMware Virtual Platform Phoenix Technologies LTD 6.00 12/03/2005



SOUND

Manufacturer Name Description
Ensoniq ES1371 [AudioPCI-97] Multimedia audio controller rev 02



VIDEO CARD

Name Chipset Memory (MB) Resolution
VMware Inc [VMware SVGA II] PCI Display Adapter VGA compatible controller




INPUT DEVICES

Type Manufacturer Caption Description Interface
kbd
Keyboard[0]
Standard
mouse
Mouse[1]
IMPS/2



MONITOR(S)

Manufacturer Caption Manufactured on (week/year) Type Serial number
VMware, Inc vmware





NETWORK(S)

Description Type Speed MAC address Status IP address mask Gateway Network number DHCP IP
eth0 Ethernet
00:0C:29:38:74:E7
(Vmware, Inc.)
Up 10.100.113.174 255.255.252.0 10.100.112.3 10.100.112.0



PORT(S)

Type Name Free Description
Serial Port 16550A Compatible J19 DB-9 male 9 Pin Dual Inline (pin 10 cut)
Parallel Port ECP/EPP J23 DB-25 female 25 Pin Dual Inline (pin 26 cut)
Keyboard Port J11 Circular DIN-8 male None
Keyboard Port J12 Circular DIN-8 male None



CONTROLLER(S)

Manufacturer Name Type
Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge Host bridge rev 01
Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge PCI bridge rev 01
Intel Corporation 82371AB/EB/MB PIIX4 ISA ISA bridge rev 08
Intel Corporation 82371AB/EB/MB PIIX4 IDE IDE interface rev 01
Intel Corporation 82371AB/EB/MB PIIX4 USB USB Controller
Intel Corporation 82371AB/EB/MB PIIX4 ACPI Bridge rev 08
VMware Inc [VMware SVGA II] PCI Display Adapter VGA compatible controller
LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI SCSI storage controller rev 01
Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] Ethernet controller rev 10
Ensoniq ES1371 [AudioPCI-97] Multimedia audio controller rev 02



SLOT(S)

Name Description Designation
ISA Slot J8 16-bit ISA
ISA Slot J9 16-bit ISA
ISA Slot J10 16-bit ISA
PCI Slot J11 32-bit PCI 1
PCI Slot J12 32-bit PCI 2
PCI Slot J13 32-bit PCI 3
PCI Slot J14 32-bit PCI 4



SOFTWARE
软件部分省略.

  • Windows XP
硬件是Dell optiplex 745

Information Value
Tag assetid3456

PROCESSOR(S)

Type Processor Speed (Mhz) Number
Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz 2126 2


MEMORY

Caption Description Capacity (MB) Purpose Type Speed Slot number
Physical Memory Array Physical Memory Array 0 System Memory Empty slot N/A 3
Physical Memory Array Physical Memory Array 0 System Memory Empty slot N/A 4
Physical Memory DIMM_1 (Single-bit ECC) 1024 System Memory Unknown 667 1
Physical Memory DIMM_2 (Single-bit ECC) 1024 System Memory Unknown 667 2



STORAGE

Name Manufacturer Model Description Type Disk size (MB)
Floppy disk drive (Standard floppy disk drives) Floppy disk drive Floppy disk drive

ST3160812SV (Standard disk drives) //./PHYSICALDRIVE1 Disk drive Fixedxhard disk media 152625
WDC WD2500JS-75NCB1 (Standard disk drives) //./PHYSICALDRIVE0 Disk drive Fixedxhard disk media 238417
TSSTcorp DVD+-RW TS-H653A (Standard CD-ROM drives) TSSTcorp DVD+-RW TS-H653A CD-ROM Drive CD-ROM
Generic DVD-ROM SCSI CdRom Device (Standard CD-ROM drives) Generic DVD-ROM SCSI CdRom Device CD-ROM Drive CD-ROM 3535



DISK(S)

Letter Type File System Total (MB) Free (MB) Designation
A:/ Removable Drive N/A 0 0 N/A
C:/ Hard Drive NTFS 20512 9390
D:/ Hard Drive NTFS 217897 75686 DOCs
E:/ CD-Rom Drive N/A 0 0 N/A
F:/ CD-Rom Drive N/A 0 0 N/A
G:/ Hard Drive NTFS 129999 34610 New Volume



BIOS

Serial number Manufacturer Model BIOS Manufacturer BIOS Version BIOS Date
JB5152X Dell Inc. OptiPlex 745 Dell Inc. DELL - 14;Phoenix ROM BIOS PLUS Version 1.10 2.2.0 ;Phoenix ROM BIOS PLUS Version 1.10 2.2.0 ;Phoenix ROM BIOS PLUS Version 1.10 2.2.0 - SMBiosVersion: 2.2.0 N/A



SOUND

Manufacturer Name Description
Analog Devices SoundMAX Integrated Digital HD Audio Driver SoundMAX Integrated Digital HD Audio Driver



VIDEO CARD

Name Chipset Memory (MB) Resolution
256MB ATI Radeon X1300PRO Radeon X1300 Series (0x7183) 256 1280 x 1024
256MB ATI Radeon X1300PRO Secondary Radeon X1300 Series Secondary (0x71A3) 256 0 x 0



INPUT DEVICES

Type Manufacturer Caption Description Interface
Keyboard
Enhanced (101- or 102-key) USB Human Interface Device N/A
Pointing (Standard system devices) USB Human Interface Device USB Human Interface Device USB



MONITOR(S)

Manufacturer Caption Manufactured on (week/year) Type Serial number
Dell Computer Corp. DELL 1908FP 22/2007 RGB color KU79075SGDLD



NETWORK(S)

Description Type Speed MAC address Status IP address mask Gateway Network number DHCP IP
VMware Virtual Ethernet Adapter for VMnet8 Ethernet 100 Mb/s 00:50:56:C0:00:08
(Vmware, Inc.)
Up 192.168.110.1 255.255.255.0
192.168.110.0 255.255.255.255
VMware Virtual Ethernet Adapter for VMnet1 Ethernet 100 Mb/s 00:50:56:C0:00:01
(Vmware, Inc.)
Up 192.168.190.1 255.255.255.0
192.168.190.0 255.255.255.255
Broadcom NetXtreme 57xx Gigabit Controller #2 - Packet Scheduler Miniport Ethernet 1 Gb/s 00:19:B9:43:E3:0F
(Dell Inc.)
Up 10.100.113.171 255.255.252.0 10.100.112.3 10.100.112.0 10.100.112.27
VCD VNC Adapter - Packet Scheduler Miniport Ethernet 100 Mb/s 02:50:F2:3D:00:01 Down 0.0.0.0 0.0.0.0
0.0.0.0



PORT(S)

Type Name Free Description
Serial Communications Port (COM1) Communications Port (COM1) Communications Port
Parallel LPT1 LPT1 LPT1



PRINTER(S)

Name Driver Port
HP LaserJet 2200 Series PCL 5e HP LaserJet 2200 Series PCL 5e IP_10.100.98.10



CONTROLLER(S)

Manufacturer Name Type
(Standard floppy disk controllers) Standard floppy disk controller Floppy Controller
Intel Intel(R) ICH8 4 port Serial ATA Storage Controller - 2820 IDE Controller
(Standard IDE ATA/ATAPI controllers) Primary IDE Channel IDE Controller
(Standard IDE ATA/ATAPI controllers) Secondary IDE Channel IDE Controller
Intel Intel(R) ICH8 2 port Serial ATA Storage Controller - 2825 IDE Controller
(Standard IDE ATA/ATAPI controllers) Primary IDE Channel IDE Controller
(Standard mass storage controllers) D347PRT SCSI Controller SCSI Controller
Intel Intel(R) ICH8 Family USB Universal Host Controller - 2834 USB Controller
Intel Intel(R) ICH8 Family USB Universal Host Controller - 2835 USB Controller
Intel Intel(R) ICH8 Family USB2 Enhanced Host Controller - 283A USB Controller
Intel Intel(R) ICH8 Family USB Universal Host Controller - 2830 USB Controller
Intel Intel(R) ICH8 Family USB Universal Host Controller - 2831 USB Controller
Intel Intel(R) ICH8 Family USB Universal Host Controller - 2832 USB Controller
Intel Intel(R) ICH8 Family USB2 Enhanced Host Controller - 2836 USB Controller



SLOT(S)

Name Description Designation
System Slot System Slot SLOT1
System Slot System Slot SLOT2
System Slot System Slot SLOT3
System Slot System Slot SLOT4



SOFTWARE 软件部分信息省略

OCSNG使用总结:
  • 安装难度是中
  • 使用简单
  • 能支持中文和多种语言

How to install OCSNG 1.0.1 on OpenSuse 10.2

下面我将描述如何安装OCSNG服务器和客户端.服务器的安装在openSuse Linux中,文中将提到Linux和Windows代理的安装方法.最终能在界面中看到两个节点的清单信息,不过只有Linux的哪个会每天更新.

This article is talking about how to install OCSNG 1.0.1 on a openSuSE 10.2 system.
  • Requirements:
You have to meet the following requirements.
 Apache version 1.3.33 or higher / Apache version 2.0.46 or higher.
 Mod_perl version 1.29 or higher.
 Mod_php version 4.3.2 or higher.
 PHP 4.3.2 or higher, with ZIP and GD support enabled.
 PERL 5.6 or higher.
 Perl module XML::Simple version 2.12 or higher.
 Perl module Compress::Zlib version 1.33 or higher.
 Perl module DBI version 1.40 or higher.
 Perl module DBD::Mysql version 2.9004 or higher.
 Perl module Apache::DBI version 0.93 or higher.
 Perl module Net::IP version 1.21 or higher.
 Perl module SOAP::Lite version 0.66 or higher (not mandatory)
 MySQL version 4.1.0 or higher with InnoDB engine active.
 Make utility like GNU make.

If you can use yast for managing package, I believe you could install all of them within 20 minutes. I won't say more about this.

  • Installing Management/communication Server and Web Console
You must have root privileges to setup management server. Login OS as root, then do the following:
1)Download install package from http://nchc.dl.sourceforge.net/sourceforge/ocsinventory/OCSNG_LINUX_SERVER_1.01.tar.gz

2)unpack it
Suse:/mnt/hgfs/win/OCSNG # cp OCSNG_LINUX_SERVER_1.01.tar.gz /root
Suse:/mnt/hgfs/win/OCSNG # cd
Suse:~ # tar zxf OCSNG_LINUX_SERVER_1.01.tar.gz
Suse:~ # cd OCSNG_LINUX_SERVER_1.01/
Suse:~/OCSNG_LINUX_SERVER_1.01 #

3)run installer
Suse:~/OCSNG_LINUX_SERVER_1.01 # sh setup.sh

+----------------------------------------------------------+
| |
| Welcome to OCS Inventory NG Management server setup ! |
| |
+----------------------------------------------------------+

CAUTION: If upgrading Communication server from OCS Inventory NG 1.0 RC2 and
previous, please remove any Apache configuration for Communication Server!

Do you wish to continue ([y]/n)?y
Assuming Communication server 1.0 RC2 or previous is not installed
on this computer.

Starting OCS Inventory NG Management server setup from folder /root/OCSNG_LINUX_SERVER_1.01
Storing log in file /root/OCSNG_LINUX_SERVER_1.01/ocs_server_setup.log

+----------------------------------------------------------+
| Checking for database server properties... |
+----------------------------------------------------------+

Your MySQL client seems to be part of MySQL version 5.0.
Your computer seems to be running MySQL 4.1 or higher, good ;-)

Which host is running database server [localhost] ?
OK, database server is running on host localhost ;-)

On which port is running database server [3306] ?
OK, database server is running on port 3306 ;-)


+----------------------------------------------------------+
| Checking for Apache web server daemon... |
+----------------------------------------------------------+

which: no httpd in (/sbin:/usr/sbin:/usr/local/sbin:/opt/gnome/sbin:/root/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/opt/opennms/bin)
which: no apache in (/sbin:/usr/sbin:/usr/local/sbin:/opt/gnome/sbin:/root/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/opt/opennms/bin)
which: no apache2 in (/sbin:/usr/sbin:/usr/local/sbin:/opt/gnome/sbin:/root/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/opt/opennms/bin)
Where is Apache daemon binary [] ?/usr/sbin/httpd2
OK, using Apache daemon /usr/sbin/httpd2 ;-)

+----------------------------------------------------------+
| Checking for Apache main configuration file... |
+----------------------------------------------------------+

Where is Apache main configuration file [/srv/www//etc/apache2/httpd.conf] ?/etc/apache2/httpd.conf
OK, using Apache main configuration file /etc/apache2/httpd.conf ;-)


+----------------------------------------------------------+
| Checking for Apache user account... |
+----------------------------------------------------------+

Which user account is running Apache web server [] ?wwwrun
OK, Apache is running under user account wwwrun ;-)


+----------------------------------------------------------+
| Checking for Apache group... |
+----------------------------------------------------------+

Which user group is running Apache web server [wwwrun] ?www
OK, Apache is running under users group www ;-)


+----------------------------------------------------------+
| Checking for PERL Interpreter... |
+----------------------------------------------------------+

Found PERL Intrepreter at ;-)
Where is PERL Intrepreter binary [/usr/bin/perl] ?/usr/bin/perl
OK, using PERL Intrepreter /usr/bin/perl ;-)


Do you wish to setup Communication server on this computer ([y]/n)?y


+----------------------------------------------------------+
| Checking for Make utility... |
+----------------------------------------------------------+

OK, Make utility found at ;-)

+----------------------------------------------------------+
| Checking for Apache Include configuration directory... |
+----------------------------------------------------------+

Setup has found Apache Include configuration directory in
.
If you are not using Include directive, please enter 'no'.
Where is Apache Include configuration directory [] ?/etc/apache2/conf.d
OK, Apache Include configuration directory /etc/apache2/conf.d found ;-)

+----------------------------------------------------------+
| Checking for Apache mod_perl version... |
+----------------------------------------------------------+

Checking for Apache mod_perl version 1.99_22 or higher
Found that mod_perl version 1.99_22 or higher is available.
OK, Apache is using mod_perl version 1.99_22 or higher ;-)

+----------------------------------------------------------+
| Checking for Communication server log directory... |
+----------------------------------------------------------+

Communication server can create detailled logs. This logs can be enabled
by setting interger value of LOGLEVEL to 1 in Administration console
menu Configuration.
Where to put Communication server log directory [/var/log/ocsinventory-NG] ?
OK, Communication server will put logs into directory /var/log/ocsinventory-NG ;-)


+----------------------------------------------------------+
| Checking for required Perl Modules... |
+----------------------------------------------------------+

Checking for DBI PERL module...
Found that PERL module DBI is available.
Checking for Apache::DBI PERL module...
Found that PERL module Apache::DBI is available.
Checking for DBD::mysql PERL module...
Found that PERL module DBD::mysql is available.
Checking for Compress::Zlib PERL module...
Found that PERL module Compress::Zlib is available.
Checking for XML::Simple PERL module...
Found that PERL module XML::Simple is available.
Checking for Net::IP PERL module...
Found that PERL module Net::IP is available.
Checking for SOAP::Lite PERL module...
Found that PERL module SOAP::Lite is available.

+----------------------------------------------------------+
| OK, looks good ;-) |
| |
| Configuring Communication server Perl modules... |
+----------------------------------------------------------+

WARNING: INSTALLSITESCRIPT is not a known parameter.
Checking if your kit is complete...
Looks good
'INSTALLSITESCRIPT' is not a known MakeMaker parameter name.
Writing Makefile for Apache::Ocsinventory

+----------------------------------------------------------+
| OK, looks good ;-) |
| |
| Preparing Communication server Perl modules... |
+----------------------------------------------------------+


+----------------------------------------------------------+
| OK, prepare finshed ;-) |
| |
| Installing Communication server Perl modules... |
+----------------------------------------------------------+


+----------------------------------------------------------+
| OK, Communication server Perl modules install finished;-)|
| |
| Creating Communication server log directory... |
+----------------------------------------------------------+

Creating Communication server log directory /var/log/ocsinventory-NG.

Fixing Communication server log directory files permissions.
Configuring logrotate for Communication server.
Writing communication server logrotate to file /etc/logrotate.d/ocsinventory-NG


+----------------------------------------------------------+
| OK, Communication server log directory created ;-) |
| |
| Now configuring Apache web server... |
+----------------------------------------------------------+

Writing communication server configuration to file /etc/apache2/conf.d/ocsinvent

+----------------------------------------------------------+
| OK, Communication server setup sucessfully finished ;-) |
| |
| Please, review /etc/apache2/conf.d/ocsinventory.conf
| to ensure all is good. Then restart Apache daemon. |
+----------------------------------------------------------+


Do you wish to setup Administration server (web administration console)
on this computer ([y]/n)?y

+----------------------------------------------------------+
| Checking for Apache root document directory... |
+----------------------------------------------------------+

Where is Apache root document directory [] ?/srv/www/htdocs
OK, Apache root document directory is /srv/www/htdocs ;-)


+----------------------------------------------------------+
| Checking for required Perl Modules... |
+----------------------------------------------------------+

Checking for DBI PERL module...
Found that PERL module DBI is available.
Checking for DBD::mysql PERL module...
Found that PERL module DBD::mysql is available.
Checking for XML::Simple PERL module...
Found that PERL module XML::Simple is available.
Checking for Net::IP PERL module...
Found that PERL module Net::IP is available.

+----------------------------------------------------------+
| Installing files for Administration server... |
+----------------------------------------------------------+

Creating directory /srv/www/htdocs/download.

Creating directory /srv/www/htdocs/ocsreports.

Copying files to /srv/www/htdocs/ocsreports.

Fixing directories and files permissions.

Configuring IPDISCOVER-UTIL Perl script.

Installing IPDISCOVER-UTIL Perl script.

Fixing permissions on IPDISCOVER-UTIL Perl script.

+----------------------------------------------------------+
| OK, Administration server installation finished ;-) |
| |
| Point your browser to http://server/ocsreports to |
| configure database server and create/update schema. |
+----------------------------------------------------------+


Setup has created a log file /root/OCSNG_LINUX_SERVER_1.01/ocs_server_setup.log. Please, save this file.
If you encounter error while running OCS Inventory NG Management server,
we can ask you to show us his content !

DON'T FORGET TO RESTART APACHE DAEMON !

Enjoy OCS Inventory NG ;-)

Suse:~/OCSNG_LINUX_SERVER_1.01 #
Suse:~/OCSNG_LINUX_SERVER_1.01 # /etc/init.d/apache2 restart
Syntax OK
Shutting down httpd2 (waiting for all children to terminate) done
Starting httpd2 (prefork) done
Suse:~/OCSNG_LINUX_SERVER_1.01 #

As we can see the installation is successful. If you are running a different Linux, you should input other settings.


  • Configuring Management Server
The following is a post-install setup for management server. Y will go through it from a web browser. Open FireFox it is my current favorite browser and point it on URL http://Ip_address/ocsreports

The first warning message should be this.

WARNING: You will not be able to build any auto deployment package with size greater than 2M.
You must raise both post_max_size and upload_max_filesize in your php.ini to correct this.

Do the following to fix it:
# vi php.ini
The default post_max_size is 8M, we are going to increase upload_max_filesize to 12M
; Maximum allowed size for uploaded files.
upload_max_filesize = 12M

We should restart apache to take it effect
Run this command:
/etc/init.d/apache2 restart


Press F5 to refresh the first web page, this warning is still there. Let's just go ahead to input the mysql >
MySql login :
MySql password :
MySql HostName :

root
xxxx
localhost

Click Send button.

There is a text box as the following:

Please enter the label of the windows client tag input box:
(Leave empty if you don't want a popup to be shown on each agent launch).


I'd like to use "Asset ID" for this field. Click 'Submit Query' button to finish it.

Now, you are able to log into web console from http://Ip_address/ocsreports/
Before you input admin/admin , you could use different languages. OCSNG 1.01 support 11 languages.

  • Setting up Agents on openSuse and a Windows Xp client.
Download agent packages from internet.

Installing a Linux agent:
Suse:~ # tar zxf OCSNG_LINUX_AGENT_1.01.tar.gz
Suse:~ # cd OCSNG_LINUX_AGENT_1.01/

Suse:~/OCSNG_LINUX_AGENT_1.01 # sh setup.sh

+----------------------------------------------------------+
| |
| Welcome to OCS Inventory NG Agent setup ! |
| |
+----------------------------------------------------------+
Writing log to file /root/OCSNG_LINUX_AGENT_1.01/ocs_agent_setup.log


+----------------------------------------------------------+
| Checking for previous installation... |
+----------------------------------------------------------+

Previous installation of OCS Inventory NG agent not found

+----------------------------------------------------------+
| Checking for supplied parameters... |
+----------------------------------------------------------+

No parameter found
OCS Inventory NG Agent setup running in user interactive mode


+----------------------------------------------------------+
| Checking for OCS Inventory NG Agent running method... |
+----------------------------------------------------------+

OCS Inventory NG Agent can be run through 2 methods:
- local: inventory will be generated locally to a file, without
interacting with Communication Server. Inventory results
must then be imported manually into the server through
Administration Console.
- http: Agent can connect to Communication Server and will interact
with it to know what is has to do (inventory, ipdiscover,
deployment...)
Which method will you use to generate the inventory ([http]/local) ?
OK, OCS Inventory NG agent will be running in mode ;-)


+----------------------------------------------------------+
| Checking for OCS Inventory NG Communication Server... |
+----------------------------------------------------------+

Which host is running OCS Inventory NG Communication Server [] ?localhost
On which port is running OCS Inventory NG Communication Server [80] ?
OK, OCS Inventory NG Communication Server is running on host
and port <80> ;-)


+----------------------------------------------------------+
| Checking for TAG administrative information value... |
+----------------------------------------------------------+

What is the value of TAG ([]) ?LiuZheng
OK, OCS Inventory NG agent will use as ;-)


+----------------------------------------------------------+
| Checking for PERL Interpreter... |
+----------------------------------------------------------+

OK, PERL Intrepreter found at
;-)


+----------------------------------------------------------+
| Checking for C/C++ Compiler... |
+----------------------------------------------------------+

OK, C/C++ Compiler found at
;-)


+----------------------------------------------------------+
| Checking for Make utility... |
+----------------------------------------------------------+

OK, Make utility found at
;-)


+----------------------------------------------------------+
| Checking for dmidecode binaries... |
+----------------------------------------------------------+

Found dmidecode binaries version <2.8> at
;-)


+----------------------------------------------------------+
| Checking for Compress::Zlib PERL module... |
+----------------------------------------------------------+

OK, PERL module Compress::Zlib is available ;-)


+----------------------------------------------------------+
| Checking for XML::Simple PERL module... |
+----------------------------------------------------------+

OK, PERL module XML::Simple is available ;-)


+----------------------------------------------------------+
| Checking for Net::IP PERL module... |
+----------------------------------------------------------+

OK, PERL module Net::IP is available ;-)


+----------------------------------------------------------+
| Checking for LWP::UserAgent PERL module... |
+----------------------------------------------------------+

OK, PERL module LWP::UserAgent is available ;-)


+----------------------------------------------------------+
| Checking for Digest::MD5 PERL module... |
+----------------------------------------------------------+

OK, PERL module Digest::MD5 is available ;-)


+----------------------------------------------------------+
| Checking for Net::SSLeay PERL module... |
+----------------------------------------------------------+

OK, PERL module Net::SSLeay is available ;-)


+----------------------------------------------------------+
| Installing IPDISCOVER binary... |
+----------------------------------------------------------+

Building IPDISCOVER version 3
Installing IPDISCOVER version 3 into /usr/sbin
OK, IPDISCOVER version 3 setup successfully ;-)


+----------------------------------------------------------+
| Installing OCS Inventory NG Agent... |
+----------------------------------------------------------+

Configuring OCS Inventory NG Agent
Building OCS Inventory NG Agent
Installing OCS Inventory NG Agent
Creating OCS Inventory NG Agent symbolic link
OK, OCS Inventory NG Agent setup successfully ;-)


+----------------------------------------------------------+
| Creating OCS Inventory NG Agent log directory... |
+----------------------------------------------------------+

Creating OCS Inventory NG Agent log directory .
Configuring logrotate for OCS Inventory NG Agent.
Writing OCS Inventory NG Agent logrotate to file


+----------------------------------------------------------+
| Installing OCS Inventory NG Agent configuration files... |
+----------------------------------------------------------+

Creating OCS Inventory NG Agent configuration file
Creating OCS Inventory NG Agent
configuration directory
Writing OCS Inventory NG Agent configuration file
Creating OCS Inventory NG Agent configuration file
Writing OCS Inventory NG Agent
configuration file
OK, OCS Inventory NG Agent configuration files setup successfully ;-)


+----------------------------------------------------------+
| Installing OCS Inventory NG Agent cron configuration... |
+----------------------------------------------------------+

Creating OCS Inventory NG Agent cron configuration file
Writing OCS Inventory NG Agent cron configuration file
OK, OCS Inventory NG Agent cron configuration file setup successfully ;-)


+----------------------------------------------------------+
| Lauching OCS Inventory NG Agent... |
+----------------------------------------------------------+

OK, OCS Inventory NG Agent runs successfully ;-)


Setup has created a log file /root/OCSNG_LINUX_AGENT_1.01/ocs_agent_setup.log. Please, save this file.
If you encounter error while running OCS Inventory NG Agent,
we can ask you to show us his content !

Enjoy OCS Inventory NG ;-)

Suse:~/OCSNG_LINUX_AGENT_1.01 #


The installer will install agent and a cron job on target Linux system. The job will launch OCS Inventory NG Agent once a day under root account, that means a update will get into database every day. Now you will see one single node in the web console.

->Installing a Windows Agent
OCSNG 1.01 does not support Vista yet, so I tested it on Windows Xp/2K/2K3 and it works very well.
You will donwload OCSNG_WIN32_AGENT_1.01_repack.zip
Unzip it and run ocsagent.exe. I'd like to test a standalone version agent, it is not a service version agent.
Double click ocsagent.exe, then you will get a new folder C:\ocs-ng
Create a batch file in this folder.
My scan.bat file as below:
_________________________________________
OCSInventory.exe /server:Ip_Address_of_server /np /tag:"LiuZheng" /hkcu /force

_________________________________________
In order to get inventory scan into database, you will double click scan.bat file. Now, you will get one more node in web console. It is a good idea to copy c:\ocs-ng folder on a USB key. Then you are able to run inventory scan on other Windows machines. If you are going to get update inventory from Windows machines, you have to install OcsAgentSetup.exe agent on them.

If you have any issue please add a comment blow or send me a email. I could help you later if I might have any idea.

OCSNG现在还没有中文的界面,它的代理和服务器端是支持中文的.如果你在一些中文的操作系统上做了清单扫描,扫描的某些信息在Webconsole中查看的结果可能是乱码.这时候,你可以进入浏览器的内码设置,设置成中文后,你会看到正常的中文显示.这说明它是可以支持多语言的.

为了在做资产管理的时候对于用户比较方便,我们可以是用gpli项目. GPLI有中文界面,而且能提供流程支持.GPLI的安装和配置手册待续.

这个安装手册用英文写,如果给您带了了不便请谅解,您有什么问题的话欢迎给我留言,谢谢观看!