(一)开源IT资产管理系统-->OCSInventoryNG服务端(win)安装原始出处:http://viong.blog.51cto.com/844766/503463OCSInventoryNG(OpenComputerandSoftwareInventoryNextGeneration)是一款系统管理软件主要功能:Relevantinventory资产清单管理.Powerfulldeploymentsystem强大的部署系统,代理程序软件部署方便宜用。.WebAdministrationConsole基于Web的管理控制界面.Multipleoperatingsystemssupport,多操作系统支持MicrosoftWindows,Linux,*BSD,SunSolaris,IBMAIX,HP-UX,MacOSX.Lightweightbandwithusage:轻量网络带宽使用,Windows系统的全部清单信息大约5KB.Highperformance:高性能,1000000电脑每天做清单扫描,使用的服务器是bi-Xeon3GHz/4GBRAM.3-Tierarchitecture三层架构设计,支持http/https/xml等协议河标准.基于有名的开源产品实现,Apacheweb服务器,MySQL数据库服务器,PHP和PERL脚本语言.Webservice提供SOAP接口的Web服务访问.Pluginssupport通过API提供插件支持.OCS应用架构图:OCS+GLPI应用架构图:安装OCS服务端下载地址:http://launchpadlibrarian.net/64034650/OCSNG-Windows-Server-2.0RC2.zip双击OCSNG-Windows-Server-Setup.exe提示安装需求,点确定点Next点Next点Next点Install如果提示有perl没有安装,被终止安装,解决方法:点确定,关闭安装界面,手动删除C:\xampp目录,接着双击OCSNG-Windows-Server-Setup.exe,重新安装,到下面一步,只选择XAMPP安装直到安装结束,接着继续双击OCSNG-Windows-Server-Setup.exe,也同样到下面一步,只选择OCSINVERTORYNGSERVER安装安装结束按确定会跳出两个页面,一个是OCS服务端设置界面,一个是OCS向导界面,点向导界面的Finish,会跳出XAMPP,点左侧中文显示.接着安装OCS服务端,输入默认mysql用户root密码为空,点“send”直接点“提交查询内容”点蓝色“ClickheretoenterOCS-NGGUI”输入OCS默认的user和password都为admin进入OCS服务端后台界面OCS服务端到此安装结束参考文档:http://wiki.ocsinventory-ng.org/index.php/Documentation:Main(二)开源IT资产管理系统-->OCS(win)客户端代理安装安装windows平台代理的客户端下载地址:http://launchpad.net/ocsinventory-windows-agent/2.0/2.0rc2/+download/OCSNG-Windows-Agent-2.0RC2.zip双击OCS-NG-Windows-Agent-Setup.exe,点“Next”点“IAgree”这里输入OCS服务端的ip地址,其它选项不动,直接点“Next”代理服务这里无需设置,直接点Next这里打勾以下两个选项,一个是支持详细日志,一个是支持标签,标签名字写上能直接辨别这台设备的别名就ok,然后直接点“Next”点“Next”安装结束后会在桌面右下角任务栏有个OCS标志图标注意:当OCS服务端ip换掉的时候,必须在客户端用命令去更新ip地址如:进人客户端安装目录,运行以下命令,说明把服务端的ip更改为192.168.50.96C:\ProgramFiles\OCS/InventoryAgent>OCSInventory.exe/server=http://192.168.50.96/ocsinventory贴一下OCSInventory.exe为windows命令行用法:CommandLineOptions:Meaning:/work_dir:"pathtodirectory"Agentmustuse"pathtodirectory"asworkingdir(thisdirectorymayincludedconfigurationfile).Defaultis"%ALLUSERSPROFILE%\ApplicationData\OCSInventoryNG\Agent"or"%PROGRAMDATA%\OCSInventoryNG\Agent"/local[="pathtofolder"]Agentdonotcontactcommunicationserver,andstoreinventoryinxmlcompressed.ocsfileintofolder"pathtofolder".Ifno"pathtofolder"provided,agentassumefolderasdatafolder/debug[=level]Generateaveryverboselogfile"ocsinventory.log"intoagent'sinstallfolder.0=>disableverboselogs(default)1=>enabledefaultverboselogs(defaultwhennolevelprovidedprovided)2=>enabledebuginglogs/notagAgentmustNOTpromptuserforTAGinanycase/tag="myvalue"Agentmustset"myvalue"asTAGvalue/xml=["pathtofolder"]Agentmuststoreinventoryinuncompressedxmlformatintofolder"pathtofolder".Ifno"pathtofolder"provided,agentassume...