Open the configuration file. vi /etc/ocsinventory/ocsinventory-agent.cfg
Uncomment the following lines. Set a tag for the current server and the address of your OCS server. server = http://your.ocs.server/ocsinventory tag = your_tag
Restart agent service ocsinventory-agent restart
To force the sending of inventory execute the following /usr/sbin/ocsinventory-agent
How to check if ocsinventory-agent is installed or not rpm -qa | grep ocsinventory-agent
Related Posts
Published by Navdeep Singh
I'm working as Linux Administrator since 2017 and Redhat certified since 2016 in RHCSA, RHCE.
I have a blog where i post solution and i started YouTube channel as well to help people in their Linux,Windows related stuff. View all posts by Navdeep Singh
One Reply to “Install OCS Inventory Agent on CentOS 7”
if error: Failed to connect socket to ‘/var/run/libvirt/libvirt-sock-ro’: No such file or directory
check article QEMU+Virt-manager can’t connect to virtlxcd-sock
https://stackoverflow.com/questions/63685175/qemuvirt-manager-cant-connect-to-virtlxcd-sock