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.12.3 available

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

How to change the tag of a linux workstation

Hi,
I want to change the tag of an already inventoried linux-workstation (ubuntu 16.04.4 LTS, ocs-agent 2.0.5).

It has the old tag "TAG1" and I want to change it to "TAG2"
In /etc/apache2/conf-enabled/ocsinventory.conf the flag
OCS_OPT_ACCEPT_TAG_UPDATE_FROM_CLIENT is set to 1
In the configuration file /etc/ocsinventory/ocsinventory-agent.cfg I changed the tag-line from
tag=TAG1
to
tag=TAG2
I also tried to delete the  configuration file and called the agent with the option --tag=TAG2.
The tag shown on the server is still "TAG1".
Even if I change the tag in the web interface to "TAG2" and recall the agent, the tag ist reset to "TAG1".
(Changing the tag of a windows PC works fine changing the tag in the file admininfo.conf)

Can anybody help me?
in OCS Inventory NG agent for Unix by (160 points)

3 Answers

0 votes
Hi,

Did you restarted apache after the modification of the file z-ocsinventory-server.conf?

Regards

Frank
by (89k points)
0 votes
Yes, I restarted apache after modifying the file  /etc/apache2/conf-enabled/ocsinventory.conf.

(There is no z-ocsinventory-server.conf.)

From a windows agent the changed tag is accepted.
by (160 points)
0 votes
Hi

Test the command line option --tag.

Regards

Frank
by (89k points)
 
Powered by Question2Answer
...