Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.11.1 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

Change OS name and version

Is it possible to change the name and version of the operating system in the agent?

I use the Porteus Kiosk distribution and in the system information I have:
OS Name: Linux
OS Version: 6.1.20-kiosk

And I would like the correct system version to appear in the inventory:
OS Name: Porteus Kiosk
OS Version: 5.5.0

How is this information extracted from the system? Maybe it would be possible to change it with a command alias, script, etc.?

We have the old 2.3 agent due to dependencies in new versions and problems with creating xzm packages. Maybe someone has created such a package (with dependent packages) in a newer version?

Regards
Seweryn Kolano

in OCS Inventory NG agent for Unix by (450 points)

1 Answer

0 votes

You could run a crontab task like this:

mysql -D ocsweb -s -e "UPDATE hardware h SET h.osname = 'Porteus Kiosk', h.osversion = '5.5.0' WHERE h.osname = 'Linux' AND h.OSVERSION = '6.1.20-kiosk'"
 

Having:

[root@localhost ~]# more .my.cnf
[client]
user = root
password = xxxxxxxx
host = localhost

by (4.6k points)
 
Powered by Question2Answer
...