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 2008-08-08 19:44:35

Knarfling
New member
Registered: 2008-08-08
Posts: 1

Nosoft option for Unified Agent on Linux 0.0.9.2

I am having a little trouble with the nosoft option on the unified agent for Linux. Because of the way that it collects inventory, Linux agents have thousands of software programs listed. I don't need to know all the libraries installed, although it would be nice to know the names of some of the major programs. But rather than deal with the thousands of libraries listed, I would rather have no software listed at all.

Unfortunately, on the Fedora 9 agent (version 0.0.9.2), the nosoft option does not work. If I run it with /usr/sbin/ocsinventory-agent -l /tmp/ --nosoft, I get the message "The parameter --nosoft is deprecated and may be removed in a futur release, please us --nosoftware instead." The .ocs file that was created is 10 thousand lines long. When I use --nosoftware, I get the exact same message. I even tried putting nosoftware=1 in the /etc/ocsinventory/ocsinventory-agent.cfg and leaving off the line option, but I still get the exact same message.

Has this been reported before, or am I the only one experiencing it? And will it be fixed in an rpm or will I have to install a compiler on each machine where I want to collect inventory?

Thank you

Offline

 

#2 2008-08-08 19:55:37

remi
Expert
From: Champagne
Registered: 2007-06-25
Posts: 209
Number of inventoried computers:: 100000+
Website

Re: Nosoft option for Unified Agent on Linux 0.0.9.2

The --nosoft option work and doesn't produce warning nor soft list in the inventory.

Code:

# rpm -q ocsinventory-agent
ocsinventory-agent-0.0.9.2-1.fc9.noarch

# ocsinventory-agent --nosoftware
[info] the parameter --nosoft is deprecated and may be removed in a futur release, please use --nosoftware instead.
[info] Inventory saved in /var/lib/ocsinventory-agent/sulphur-2008-04-20-13-18-19.ocs
# du /var/lib/ocsinventory-agent/sulphur-2008-04-20-13-18-19.ocs
464 /var/lib/ocsinventory-agent/sulphur-2008-04-20-13-18-19.ocs
# grep SOFTWARE  /var/lib/ocsinventory-agent/sulphur-2008-04-20-13-18-19.ocs | wc -l
3464

# ocsinventory-agent --nosoft
[info] Inventory saved in /var/lib/ocsinventory-agent/sulphur-2008-04-20-13-18-19.ocs
# du /var/lib/ocsinventory-agent/sulphur-2008-04-20-13-18-19.ocs
24    /var/lib/ocsinventory-agent/sulphur-2008-04-20-13-18-19.ocs
# grep SOFTWARE  /var/lib/ocsinventory-agent/sulphur-2008-04-20-13-18-19.ocs | wc -l
0

I think this is a documentation issue.

++

Last edited by remi (2008-08-08 20:00:35)


Prod RHEL 4.6 - php 5.1.6 + APC - MySQL 5.0.45 - OCS 1.01 - GLPI 0.72.3 (>130000 PC)
Dév. Fedora 12 - php 5.3.2RC1 - MySQL 5.1.41 - OCS 1.02.1 - GLPI 0.72.3 / SVN
Des RPM pour Fedora RHEL et CentOS sur http://blog.famillecollet.com/ (LAMP, OCS, GLPI, ...)

Offline

 

#3 2008-08-08 20:39:58

goneri
FusionInventory Team
From: Paris
Registered: 2007-06-01
Posts: 2265
Website

Re: Nosoft option for Unified Agent on Linux 0.0.9.2

Hi,

--nosoft documentation is in the manpage

Offline

 

#4 2008-08-08 20:44:42

remi
Expert
From: Champagne
Registered: 2007-06-25
Posts: 209
Number of inventoried computers:: 100000+
Website

Re: Nosoft option for Unified Agent on Linux 0.0.9.2

Yes gonéri, the manpage is ok.

But this piece of code is broken (ocsinventory-agent) :

Code:

if ($params->{nosoftware}) {
    $logger->info("the parameter --nosoft is deprecated and may be removed in a futur release, please use --nosoftware instead.");
    $params->{nosoftware} = 1 
}

Should be (nosoft is used in the various backend)

Code:

if ($params->{nosoftware}) {
    $logger->info("the parameter --nosoftware is deprecated and may be removed in a futur release, please use --nosoft instead.");
    $params->{nosoft} = 1 
}

And also :

Code:

  print STDERR "\t--nosoft           DEPRECATED, use --nosoftware instead\n";
  print STDERR "\t--nosoftware       do not return installed software list (".$params->{nosoftware}.")\n";

Or probably the reverse, according to http://ocsinventory.cvs.sourceforge.net … mp;r2=1.55

++

Last edited by remi (2008-08-08 20:53:32)


Prod RHEL 4.6 - php 5.1.6 + APC - MySQL 5.0.45 - OCS 1.01 - GLPI 0.72.3 (>130000 PC)
Dév. Fedora 12 - php 5.3.2RC1 - MySQL 5.1.41 - OCS 1.02.1 - GLPI 0.72.3 / SVN
Des RPM pour Fedora RHEL et CentOS sur http://blog.famillecollet.com/ (LAMP, OCS, GLPI, ...)

Offline

 

#5 2008-08-09 01:18:25

goneri
FusionInventory Team
From: Paris
Registered: 2007-06-01
Posts: 2265
Website

Re: Nosoft option for Unified Agent on Linux 0.0.9.2

Oh, yes. Thank you for pointing that out.

Offline

 

#6 2008-08-16 17:37:18

goneri
FusionInventory Team
From: Paris
Registered: 2007-06-01
Posts: 2265
Website

Re: Nosoft option for Unified Agent on Linux 0.0.9.2

Again, thanks guys. The bug is fixed on the CVS.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

Hosted by: Serveurs dedies Conseil et infogerance Ocs on sf.net