centos 6安装ocsinventory-agent总结

 
1.下载rpm包地址 http://rpm.pbone.net
 
下载ocsinventory-agent-2.0.4-1.el6.remi.noarch.rpm

下载 monitor-edid-2.1-1.el6.rf.i686.rpm
2.安装OCS客户端软件
[root@zh888 ~]# rpm -ivh ocsinventory-agent-2.0.4-1.el6.remi.noarch.rpm
warning: ocsinventory-agent-2.0.4-1.el6.remi.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID 00f97f56: NOKEY
error: Failed dependencies:
        monitor-edid is needed by ocsinventory-agent-2.0.4-1.el6.remi.noarch
        perl(Proc::Daemon) is needed by ocsinventory-agent-2.0.4-1.el6.remi.noarch
[root@zh888 ~]# rpm -ivh monitor-edid-2.1-1.el6.rf.i686.rpm //安装依赖包
warning: monitor-edid-2.1-1.el6.rf.i686.rpm: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
Preparing...                ########################################### [100%]
   1:monitor-edid           ########################################### [100%]
[root@zh888 ~]# rpm -ivh ocsinventory-agent-2.0.4-1.el6.remi.noarch.rpm //但是还是有依赖直接忽略
warning: ocsinventory-agent-2.0.4-1.el6.remi.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID 00f97f56: NOKEY
error: Failed dependencies:
        perl(Proc::Daemon) is needed by ocsinventory-agent-2.0.4-1.el6.remi.noarch
[root@zh888 ~]# rpm -ivh ocsinventory-agent-2.0.4-1.el6.remi.noarch.rpm --nodeps//忽略掉直接安装
warning: ocsinventory-agent-2.0.4-1.el6.remi.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID 00f97f56: NOKEY
Preparing...                ########################################### [100%]
   1:ocsinventory-agent     ########################################### [100%]

3.修改配置文件
[root@zh888 ~]# cat /etc/ocsinventory/ocsinventory-agent.cfg
#
# OCS Inventory "Unix Unified Agent" Configuration File
#
# options used by cron job overides this (see /etc/sysconfig/ocsinventory-agent)
#
# Server URL, unconmment if needed
server = 192.168.1.2 //在这里就填写server端的ip地址,不是本地的哦。
#local = /var/lib/ocsinventory-agent//把这个#掉
# Administrative TAG (optional, must be filed before first inventory)
# tag = your_tag
# How to log, can be File,Stderr,Syslog
#logger = Stderr//把这个#掉
#logfile = /var/log/ocsinventory-agent/ocsinventory-agent.log//把这个#掉

4.测试
[root@zh888 ~]# ocsinventory-agent --debug
 

 

你可能感兴趣的:(centos,agent,ocsinventory)