OCS Inventory NG, an OpenSource computer inventory and package deployement system for Windows and Unix
You are not logged in.
Pages: 1
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
The --nosoft option work and doesn't produce warning nor soft list in the inventory.
# 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)
Offline
Hi,
--nosoft documentation is in the manpage
Offline
Yes gonéri, the manpage is ok.
But this piece of code is broken (ocsinventory-agent) :
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)
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 :
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)
Offline
Oh, yes. Thank you for pointing that out.
Offline
Again, thanks guys. The bug is fixed on the CVS.
Offline
Pages: 1