{"id":2620,"date":"2025-08-07T20:46:45","date_gmt":"2025-08-07T12:46:45","guid":{"rendered":"https:\/\/program.snlcw.com\/?p=2620"},"modified":"2025-09-15T19:41:44","modified_gmt":"2025-09-15T11:41:44","slug":"ocs-inventory%ef%bc%88it%e8%b5%84%e4%ba%a7%e7%ae%a1%e7%90%86%e8%bd%af%e4%bb%b6%ef%bc%89%e7%ac%94%e8%ae%b0","status":"publish","type":"post","link":"https:\/\/program.snlcw.com\/2620.html","title":{"rendered":"OCS Inventory\uff08IT\u8d44\u4ea7\u7ba1\u7406\u8f6f\u4ef6\uff09\u7b14\u8bb0"},"content":{"rendered":"\n<p>\u5b98\u7f51\uff1a<a href=\"https:\/\/ocsinventory-ng.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/ocsinventory-ng.org\/<\/a><\/p>\n\n\n\n<p>OCS\u8d44\u4ea7\u7ba1\u7406\u670d\u52a1\u5668\u75314\u4e2a\u4e3b\u8981\u7ec4\u4ef6\u7ec4\u6210\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6570\u636e\u5e93\u670d\u52a1\u5668\uff0c\u7528\u4e8e\u5b58\u50a8\u5e93\u5b58\u4fe1\u606f\uff08MySQL\uff09<\/li>\n\n\n\n<li>\u901a\u4fe1\u670d\u52a1\u5668\uff0c\u5904\u7406\u6570\u636e\u5e93\u670d\u52a1\u5668\u548c\u4ee3\u7406\u4e4b\u95f4\u7684 HTTP\/HTTPS \u901a\u4fe1<\/li>\n\n\n\n<li>\u7ba1\u7406\u63a7\u5236\u53f0\uff0c\u5141\u8bb8\u7ba1\u7406\u5458\u4f7f\u7528\u4ed6\u4eec\u6700\u559c\u6b22\u7684\u6d4f\u89c8\u5668\u67e5\u8be2\u6570\u636e\u5e93\u670d\u52a1\u5668<\/li>\n\n\n\n<li>\u90e8\u7f72\u670d\u52a1\u5668\uff0c\u5b58\u50a8\u6240\u6709\u5305\u90e8\u7f72\u914d\u7f6e<\/li>\n<\/ul>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/program.snlcw.com\/2620.html\/#%E5%AE%89%E8%A3%85%E6%9C%8D%E5%8A%A1%E5%99%A8%E7%AB%AF\" >\u5b89\u88c5\u670d\u52a1\u5668\u7aef<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/program.snlcw.com\/2620.html\/#%E5%AE%89%E8%A3%85%E5%AE%A2%E6%88%B7%E7%AB%AF%E4%BB%A3%E7%90%86\" >\u5b89\u88c5\u5ba2\u6237\u7aef\u4ee3\u7406<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/program.snlcw.com\/2620.html\/#%E7%BB%99_Windows_%E7%B3%BB%E7%BB%9F%E5%AE%89%E8%A3%85%E4%BB%A3%E7%90%86\" >\u7ed9 Windows \u7cfb\u7edf\u5b89\u88c5\u4ee3\u7406<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/program.snlcw.com\/2620.html\/#%E7%BB%99_Linux_%E7%B3%BB%E7%BB%9F%E5%AE%89%E8%A3%85%E4%BB%A3%E7%90%86%EF%BC%88Ubuntu%EF%BC%89\" >\u7ed9 Linux \u7cfb\u7edf\u5b89\u88c5\u4ee3\u7406\uff08Ubuntu\uff09<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/program.snlcw.com\/2620.html\/#%E7%AC%AC%E4%B8%80%E6%AD%A5%EF%BC%9A%E5%AE%89%E8%A3%85%E4%BE%9D%E8%B5%96\" >\u7b2c\u4e00\u6b65\uff1a\u5b89\u88c5\u4f9d\u8d56<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/program.snlcw.com\/2620.html\/#%E7%AC%AC%E4%BA%8C%E6%AD%A5%EF%BC%9A%E5%AE%89%E8%A3%85%E4%BB%A3%E7%90%86\" >\u7b2c\u4e8c\u6b65\uff1a\u5b89\u88c5\u4ee3\u7406<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/program.snlcw.com\/2620.html\/#%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E4%BD%8D%E7%BD%AE\" >\u914d\u7f6e\u6587\u4ef6\u4f4d\u7f6e<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/program.snlcw.com\/2620.html\/#Agent_%E9%87%8D%E6%96%B0%E6%8C%87%E5%90%91%E6%96%B0%E7%9A%84%E6%9C%8D%E5%8A%A1%E5%99%A8\" >Agent \u91cd\u65b0\u6307\u5411\u65b0\u7684\u670d\u52a1\u5668<\/a><ul class='ez-toc-list-level-5' ><li class='ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/program.snlcw.com\/2620.html\/#%EF%BC%881%EF%BC%89Ubuntu\" >\uff081\uff09Ubuntu<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/program.snlcw.com\/2620.html\/#%EF%BC%882%EF%BC%89Windows\" >\uff082\uff09Windows<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/program.snlcw.com\/2620.html\/#Cron%E4%BB%BB%E5%8A%A1%E8%AE%A1%E5%88%92%E9%87%8C%E7%9A%84_%E2%80%93lazy\" >Cron\u4efb\u52a1\u8ba1\u5212\u91cc\u7684 &#8211;lazy<\/a><\/li><\/ul><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/program.snlcw.com\/2620.html\/#%E5%AE%89%E8%A3%85%E6%8F%92%E4%BB%B6\" >\u5b89\u88c5\u63d2\u4ef6<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/program.snlcw.com\/2620.html\/#%E7%AC%AC%E4%B8%80%E6%AD%A5%EF%BC%9A%E6%9C%8D%E5%8A%A1%E5%99%A8%E7%AB%AF%E5%AE%89%E8%A3%85\" >\u7b2c\u4e00\u6b65\uff1a\u670d\u52a1\u5668\u7aef\u5b89\u88c5<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/program.snlcw.com\/2620.html\/#%E7%AE%A1%E7%90%86%E6%9C%8D%E5%8A%A1%E5%99%A8%E4%B8%8A\" >\u7ba1\u7406\u670d\u52a1\u5668\u4e0a<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/program.snlcw.com\/2620.html\/#%E9%80%9A%E4%BF%A1%E6%9C%8D%E5%8A%A1%E5%99%A8%E4%B8%8A\" >\u901a\u4fe1\u670d\u52a1\u5668\u4e0a<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/program.snlcw.com\/2620.html\/#%E7%AC%AC%E4%BA%8C%E6%AD%A5%EF%BC%9A%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%AE%89%E8%A3%85_Agent_%E7%AB%AF%E9%83%A8%E7%BD%B2\" >\u7b2c\u4e8c\u6b65\uff1a\u5ba2\u6237\u7aef\u5b89\u88c5 (Agent \u7aef\u90e8\u7f72)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/program.snlcw.com\/2620.html\/#%E5%B8%B8%E7%94%A8%E6%8F%92%E4%BB%B6\" >\u5e38\u7528\u63d2\u4ef6<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/program.snlcw.com\/2620.html\/#%E5%88%86%E9%92%9F%E7%BA%A7%E5%88%AB%E7%9A%84%E7%9B%98%E7%82%B9\" >\u5206\u949f\u7ea7\u522b\u7684\u76d8\u70b9<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/program.snlcw.com\/2620.html\/#%E7%9B%98%E7%82%B9%E9%A2%91%E7%8E%87%EF%BC%88FREQ_INVENTORY%EF%BC%89\" >\u76d8\u70b9\u9891\u7387\uff08FREQ_INVENTORY\uff09<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/program.snlcw.com\/2620.html\/#%E8%81%94%E7%B3%BB%E9%A2%91%E7%8E%87%EF%BC%88PROLOG_FREQ%EF%BC%89\" >\u8054\u7cfb\u9891\u7387\uff08PROLOG_FREQ\uff09<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-21\" href=\"https:\/\/program.snlcw.com\/2620.html\/#%E5%AE%9E%E7%8E%B0%E5%88%86%E9%92%9F%E7%BA%A7%E5%88%AB%E7%9A%84%E7%9B%98%E7%82%B9\" >\u5b9e\u73b0\u5206\u949f\u7ea7\u522b\u7684\u76d8\u70b9<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-22\" href=\"https:\/\/program.snlcw.com\/2620.html\/#REST_API\" >REST API<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-23\" href=\"https:\/\/program.snlcw.com\/2620.html\/#%E4%B8%8D%E4%BD%BF%E7%94%A8_nginx_%E5%8F%8D%E5%90%91%E4%BB%A3%E7%90%86\" >\u4e0d\u4f7f\u7528 nginx \u53cd\u5411\u4ee3\u7406<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-24\" href=\"https:\/\/program.snlcw.com\/2620.html\/#%E8%AE%A4%E8%AF%81%E9%85%8D%E7%BD%AE\" >\u8ba4\u8bc1\u914d\u7f6e<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-25\" href=\"https:\/\/program.snlcw.com\/2620.html\/#%E6%B5%8B%E8%AF%95\" >\u6d4b\u8bd5<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-26\" href=\"https:\/\/program.snlcw.com\/2620.html\/#%E5%AE%98%E6%96%B9%E5%8F%82%E8%80%83\" >\u5b98\u65b9\u53c2\u8003<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-27\" href=\"https:\/\/program.snlcw.com\/2620.html\/#%E6%95%B0%E6%8D%AE%E5%BA%93%E7%9B%B8%E5%85%B3%E8%A1%A8\" >\u6570\u636e\u5e93\u76f8\u5173\u8868<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-28\" href=\"https:\/\/program.snlcw.com\/2620.html\/#%E8%BD%AF%E4%BB%B6%E5%8D%87%E7%BA%A7%E4%BC%9A%E6%8D%A2_ID\" >\u8f6f\u4ef6\u5347\u7ea7\u4f1a\u6362 ID<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%AE%89%E8%A3%85%E6%9C%8D%E5%8A%A1%E5%99%A8%E7%AB%AF\"><\/span>\u5b89\u88c5\u670d\u52a1\u5668\u7aef<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u672c\u6b21\u5b89\u88c5\u4f7f\u7528 docker-compose\uff0cdocker-compose.yml \u4f4d\u4e8e\uff1a<a href=\"https:\/\/github.com\/OCSInventory-NG\/OCSInventory-Docker-Image\/blob\/master\/2.12.3\/docker-compose.yml\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/OCSInventory-NG\/OCSInventory-Docker-Image\/blob\/master\/2.12.3\/docker-compose.yml<\/a>\uff0c\u5b89\u88c5\u7684\u662f\u5f53\u524d\u6700\u65b0\u7248 2.12.3\u3002<\/p>\n\n\n\n<p>\u8bf7\u6ce8\u610f\uff0cdocker-compose.yml \u91cc\u7684 volumns \u91cc\u7528\u4e86\u5f53\u524d\u76ee\u5f55 &#8216;.\/sq\/l&#8217;\u3001&#8217;.\/nginx\/&#8217;\uff0c\u56e0\u6b64\u5efa\u8bae\u76f4\u63a5\u514b\u9686\u6e90\u4ee3\u7801\uff0c\u518d cd \u5230 2.12.3 \u76ee\u5f55\u4e0b\u53bb\u88c5\uff0c\u5426\u5219\u53ef\u80fd\u4f1a\u51fa\u95ee\u9898\uff0c\u5177\u4f53\u5b89\u88c5\u8fc7\u7a0b\u5982\u4e0b\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u7b2c\u4e00\u6b65\uff1a\u514b\u9686 <code>https:\/\/github.com\/OCSInventory-NG\/OCSInventory-Docker-Image\/tree\/master<\/code>\uff0c\u89e3\u538b\u5230 Ubuntu22\u670d\u52a1\u5668<\/li>\n\n\n\n<li>\u7b2c\u4e8c\u6b65\uff1a<code>cd \/home\/OCSInventory-Docker-Image\/2.12.3<\/code><\/li>\n\n\n\n<li>\u7b2c\u4e09\u6b65\uff1a\u6267\u884c <code>docker-compose up -d<\/code><\/li>\n\n\n\n<li>\u7b2c\u56db\u6b65\uff1a\u6253\u5f00\u7f51\u7ad9 <code>http:\/\/192.168.3.226\/ocsreports\/<\/code>\uff0c\u70b9\u51fb\u201c\u6267\u884c\u66f4\u65b0\u201d\u6309\u94ae\uff0c\u9ed8\u8ba4\u767b\u5f55\u8d26\u5bc6\u662f\uff1a<code>admin\/admin<\/code><\/li>\n<\/ul>\n\n\n\n<p>\u76ee\u524d REST API \u529f\u80fd\u4ec5\u4ec5\u652f\u6301\u68c0\u7d22\u6570\u636e\uff0c\u8fd9\u662f\u5b98\u65b9\u539f\u8bdd\uff1aAt the moment our REST API only support GET, so the POST \/ DELETE \/ PUT routes md files will be empty.<\/p>\n\n\n\n<p>\u53c2\u8003\uff1a<br><a href=\"https:\/\/wiki.ocsinventory-ng.org\/\" data-type=\"link\" data-id=\"https:\/\/wiki.ocsinventory-ng.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">OCS Inventory<\/a> <a href=\"https:\/\/wiki.ocsinventory-ng.org\/\" data-type=\"link\" data-id=\"https:\/\/wiki.ocsinventory-ng.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u5b98\u65b9\u6587\u6863<\/a><br><a href=\"https:\/\/github.com\/OCSInventory-NG\/OCSInventory-Docker-Image\" data-type=\"link\" data-id=\"https:\/\/github.com\/OCSInventory-NG\/OCSInventory-Docker-Image\" target=\"_blank\" rel=\"noreferrer noopener\">GitHub\u5730\u5740<\/a><br><a href=\"https:\/\/gopensource.com\/ocs-inventory-ng-2-8-server-with-docker-compose-2c5f1b1b5695\" data-type=\"link\" data-id=\"https:\/\/gopensource.com\/ocs-inventory-ng-2-8-server-with-docker-compose-2c5f1b1b5695\" target=\"_blank\" rel=\"noreferrer noopener\">OCS Inventory NG 2.8 server with docker-compose!<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%AE%89%E8%A3%85%E5%AE%A2%E6%88%B7%E7%AB%AF%E4%BB%A3%E7%90%86\"><\/span>\u5b89\u88c5\u5ba2\u6237\u7aef\u4ee3\u7406<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%BB%99_Windows_%E7%B3%BB%E7%BB%9F%E5%AE%89%E8%A3%85%E4%BB%A3%E7%90%86\"><\/span>\u7ed9 Windows \u7cfb\u7edf\u5b89\u88c5\u4ee3\u7406<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u5b89\u88c5\u8fc7\u7a0b\u5f88\u7b80\u5355\uff0c\u53ea\u9700\u914d\u7f6e\u4e00\u4e2a OCS Inventory \u670d\u52a1\u5668\u7684\u5730\u5740\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/ocsinventory-ng\/windowsagent\/releases\" data-type=\"link\" data-id=\"https:\/\/github.com\/ocsinventory-ng\/windowsagent\/releases\" target=\"_blank\" rel=\"noreferrer noopener\">Windows\u4ee3\u7406\u4e0b\u8f7d<\/a><br><a href=\"https:\/\/wiki.ocsinventory-ng.org\/03.Basic-documentation\/Setting-up-the-Windows-Agent-2.x-on-client-computers\/\" data-type=\"link\" data-id=\"https:\/\/wiki.ocsinventory-ng.org\/03.Basic-documentation\/Setting-up-the-Windows-Agent-2.x-on-client-computers\/\" target=\"_blank\" rel=\"noreferrer noopener\">Windows\u4ee3\u7406\u5b98\u65b9\u5b89\u88c5\u6559\u7a0b<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%BB%99_Linux_%E7%B3%BB%E7%BB%9F%E5%AE%89%E8%A3%85%E4%BB%A3%E7%90%86%EF%BC%88Ubuntu%EF%BC%89\"><\/span>\u7ed9 Linux \u7cfb\u7edf\u5b89\u88c5\u4ee3\u7406\uff08Ubuntu\uff09<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%AC%AC%E4%B8%80%E6%AD%A5%EF%BC%9A%E5%AE%89%E8%A3%85%E4%BE%9D%E8%B5%96\"><\/span>\u7b2c\u4e00\u6b65\uff1a\u5b89\u88c5\u4f9d\u8d56<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo apt install libmodule-install-perl dmidecode libxml-simple-perl libcompress-zlib-perl libnet-ip-perl libwww-perl libdigest-md5-perl libdata-uuid-perl<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%AC%AC%E4%BA%8C%E6%AD%A5%EF%BC%9A%E5%AE%89%E8%A3%85%E4%BB%A3%E7%90%86\"><\/span>\u7b2c\u4e8c\u6b65\uff1a\u5b89\u88c5\u4ee3\u7406<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \u4e0b\u8f7d OCS Inventory Agent\nwget https:\/\/github.com\/OCSInventory-NG\/UnixAgent\/releases\/download\/v2.10.0\/Ocsinventory-Unix-Agent-2.10.0.tar.gz\n\n# \u89e3\u538b\u7f29\ntar -xzvf Ocsinventory-Unix-Agent-2.10.4.tar.gz\n\n# \u8fdb\u5165\u76ee\u5f55\ncd Ocsinventory-Unix-Agent-2.10.4\n\n# \u8fd0\u884c\u5b89\u88c5\u811a\u672c\nsudo perl Makefile.PL\nsudo make\nsudo make install<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5728\u6267\u884c perl Makefile.PL \u65f6\uff0c\u5b89\u88c5\u811a\u672c\u4f1a\u5411\u60a8\u63d0\u95ee\u4e00\u7cfb\u5217\u914d\u7f6e\u95ee\u9898\uff0c\u5982\uff1a<\/li>\n\n\n\n<li>\uff081\uff09Where do you want to write the configuration file? &#8211;&gt; \u63a8\u8350\u90092<\/li>\n\n\n\n<li>\uff082\uff09Do you want to create the directory \/etc\/ocsinventory-agent? &#8211;&gt; \u8f93\u5165 y \u4ee5\u4fbf\u4ee3\u7406\u53ef\u4ee5\u5b9a\u671f\u8fd0\u884c<\/li>\n\n\n\n<li>\uff083\uff09Should the old unix_agent settings be imported? &#8211;&gt; \u5982\u679c\u662f\u5168\u65b0\u5b89\u88c5\uff0c\u53ef\u4ee5\u9009\u62e9 n\u3002<\/li>\n\n\n\n<li>\uff084\uff09What is the address of your ocs server? &#8211;&gt;\u8f93\u5165\u670d\u52a1\u5668\u5730\u5740 http:\/\/192.168.3.226\/ocsinventory<\/li>\n\n\n\n<li>\uff085\uff09Do you need credential for the server? (You probably don&#8217;t) &#8211;&gt;\u8f93\u5165 n<\/li>\n\n\n\n<li>\uff086\uff09Do you want to apply an administrative tag on this machine? &#8211;&gt;\u8f93\u5165 y \u540e\u5199\u4e00\u4e2a tag<\/li>\n\n\n\n<li>\uff087\uff09Do yo want to install the cron task in \/etc\/cron.d? &#8211;&gt;\u8f93\u5165 y<\/li>\n\n\n\n<li>\uff088\uff09Do you want disable SSL CA verification configuration option? &#8211;&gt;\u8f93\u5165 y<\/li>\n\n\n\n<li>\uff089\uff09Do you want to set CA certificates file path? &#8211;&gt;\u8f93\u5165 n<\/li>\n\n\n\n<li>\uff0810\uff09Do you want disable software inventory? &#8211;&gt;\u8f93\u5165 n<\/li>\n\n\n\n<li>\uff0811\uff09Do you want to use OCS-Inventory software deployment feature? &#8211;&gt;\u8f93\u5165 y<\/li>\n\n\n\n<li>\uff0812\uff09Do you want to use OCS-Inventory SNMP scans feature? &#8211;&gt;\u8f93\u5165 y<\/li>\n\n\n\n<li>\uff0813\uff09Do you want to send an inventory of this machine? &#8211;&gt;\u8f93\u5165 y\uff0c\u82e5\u8f93\u5165n\u8868\u793a\u8df3\u8fc7\u9996\u6b21\u76d8\u70b9\uff0c\u56e0\u4e3a\u6709\u8ba1\u5212\u4efb\u52a1\uff0c\u7a0d\u540e\u670d\u52a1\u5668\u8fd8\u4f1a\u81ea\u52a8\u627e\u5230<\/li>\n<\/ul>\n\n\n\n<p>\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u6709\u4e2a <code>Do you want to install the cron task\u2026?<\/code> \u8fd9\u4e2a\u64cd\u4f5c\u5728 <code>\/etc\/cron.d\/ocsinventory-agent<\/code> \u76ee\u5f55\u4e0b\u521b\u5efa\u4e86\u4e00\u4e2a\u8ba1\u5212\u4efb\u52a1\u3002\u8fd9\u4e2a\u8ba1\u5212\u4efb\u52a1\u4f1a\u5b9a\u671f\u81ea\u52a8\u8fd0\u884c OCS \u4ee3\u7406\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u4ee3\u7406\u4f1a\u6bcf\u5929\u5728\u4e00\u4e2a\u968f\u673a\u7684\u65f6\u95f4\u70b9\u8fd0\u884c\uff0c\u4ee5\u907f\u514d\u6210\u5343\u4e0a\u4e07\u7684\u5ba2\u6237\u7aef\u5728\u540c\u4e00\u65f6\u523b\u51b2\u51fb\u670d\u52a1\u5668\u3002\u5f53\u8fd9\u4e2a\u8ba1\u5212\u4efb\u52a1\u7b2c\u4e00\u6b21\u6210\u529f\u8fd0\u884c\u65f6\uff0c\u4ee3\u7406\u4f1a\u6536\u96c6\u8ba1\u7b97\u673a\u7684\u786c\u4ef6\u548c\u8f6f\u4ef6\u4fe1\u606f\uff0c\u5c06\u5176\u53d1\u9001\u5230\u60a8\u914d\u7f6e\u7684\u670d\u52a1\u5668 URL\u3002\u6b64\u65f6\uff0cOCS \u670d\u52a1\u5668\u5c31\u4f1a\u6536\u5230\u6570\u636e\uff0c\u81ea\u52a8\u521b\u5efa\u8fd9\u53f0\u65b0\u8ba1\u7b97\u673a\u7684\u8bb0\u5f55\uff0c\u7136\u540e\u60a8\u5c31\u80fd\u5728 Web \u63a7\u5236\u53f0\u4e2d\u770b\u5230\u5b83\u4e86\u3002\u60a8\u4e0d\u5fc5\u7b49\u5f85\u8ba1\u5212\u4efb\u52a1\u81ea\u52a8\u8fd0\u884c\u3002\u60a8\u53ef\u4ee5\u968f\u65f6\u624b\u52a8\u5f3a\u5236\u4ee3\u7406\u8fd0\u884c\u4e00\u6b21\uff0c\u8fd9\u5bf9\u4e8e\u6d4b\u8bd5\u548c\u9a8c\u8bc1\u975e\u5e38\u6709\u7528\u3002\u53ea\u9700\u5728 Ubuntu \u7ec8\u7aef\u4e2d\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef\uff1a<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\"><code>sudo ocsinventory-agent<\/code><\/mark><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E4%BD%8D%E7%BD%AE\"><\/span>\u914d\u7f6e\u6587\u4ef6\u4f4d\u7f6e<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>\u88c5\u5b8c\u540e\uff0c\u914d\u7f6e\u6587\u4ef6\u4f4d\u4e8e <code>\/etc\/ocsinventory-agent\/ocsinventory-agent.cfg<\/code>\uff0ccron \u4efb\u52a1\u8ba1\u5212\u7684\u914d\u7f6e\u4f4d\u4e8e <code>\/etc\/cron.d\/ocsinventory-agent<\/code>\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Agent_%E9%87%8D%E6%96%B0%E6%8C%87%E5%90%91%E6%96%B0%E7%9A%84%E6%9C%8D%E5%8A%A1%E5%99%A8\"><\/span><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\">Agent \u91cd\u65b0\u6307\u5411\u65b0\u7684\u670d\u52a1\u5668<\/mark><span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%EF%BC%881%EF%BC%89Ubuntu\"><\/span>\uff081\uff09<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\">Ubuntu<\/mark><span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\">\u82e5\u8981\u6307\u5411\u65b0\u7684\u670d\u52a1\u5668\uff0c\u76f4\u63a5\u4fee\u6539 <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\"><code>\/etc\/ocsinventory-agent\/ocsinventory-agent.cfg<\/code><\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\"> \u914d\u7f6e\u91cc\u7684 server \u503c\u5373\u53ef\uff0c\u6539\u5b8c\u65e0\u9700\u91cd\u542f\u4ee3\u7406\uff0c\u53ea\u9700\u6267\u884c\u4e00\u6b21\u624b\u52a8\u63d0\u4ea4 sudo ocsinventory-agent\uff0c\u670d\u52a1\u5668\u7aef\u4f1a\u7acb\u5373\u663e\u793a\u8fd9\u53f0\u670d\u52a1\u5668\u3002<\/mark><\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%EF%BC%882%EF%BC%89Windows\"><\/span>\uff082\uff09Windows<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p>\u4fee\u6539 <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">C:\\ProgramData\\OCS Inventory NG\\Agent\\<code>ocsinventory.ini<\/code><\/mark> \u6587\u4ef6\uff0c\u6539\u5b8c\u65e0\u9700\u91cd\u542fWindows\u670d\u52a1\uff0c\u53ea\u9700\u6267\u884c\u4e00\u6b21\u624b\u52a8\u63d0\u4ea4\uff08\u53cc\u51fb OCSInventory.exe\uff09<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\">\uff0c<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\">\u670d\u52a1\u5668\u7aef\u4f1a\u7acb\u5373\u663e\u793a\u8fd9\u53f0\u670d\u52a1\u5668\u3002<\/mark><\/mark><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Cron%E4%BB%BB%E5%8A%A1%E8%AE%A1%E5%88%92%E9%87%8C%E7%9A%84_%E2%80%93lazy\"><\/span>Cron\u4efb\u52a1\u8ba1\u5212\u91cc\u7684 &#8211;lazy<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>\u88c5\u5b8c\u4ee3\u7406\u540e\uff0c\u5728 <code>\/etc\/cron.d\/ocsinventory-agent<\/code> \u4e2d\u4f1a\u6709\u4e00\u6761 <code>57 5 * * * root \/usr\/local\/bin\/ocsinventory-agent --lazy &gt; \/dev\/null 2&gt;&amp;1<\/code> \u5b9a\u65f6\u8ba1\u5212\uff0c\u8fd9\u8868\u793a\u5728\u6bcf\u5929\u51cc\u6668 5:57\uff0c\u7cfb\u7edf\u4f1a\u6267\u884c\u540e\u9762\u7684\u547d\u4ee4\u3002 \u6ce8\u610f\u8fd9\u91cc\u7684 &#8211;lazy \u53c2\u6570\u3002<\/p>\n\n\n\n<p><code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">--lazy<\/mark><\/code> \u9009\u9879\u544a\u8bc9\u4ee3\u7406\u7a0b\u5e8f\u4ee5\u201c\u61d2\u60f0\u201d\u6a21\u5f0f\u8fd0\u884c\u3002\u5b83\u7684\u5de5\u4f5c\u65b9\u5f0f\u5982\u4e0b\uff1a\u5f53 Cron \u5728\u51cc\u6668 5:57 \u89e6\u53d1\u547d\u4ee4\u65f6\uff0c\u4ee3\u7406\u7a0b\u5e8f\u5e76\u4e0d\u4f1a\u7acb\u5373\u8054\u7cfb\u670d\u52a1\u5668\u3002\u76f8\u53cd\uff0c\u5b83\u4f1a\u5148\u68c0\u67e5\u81ea\u5df1\u672c\u5730\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u8bfb\u53d6\u4e00\u4e2a\u540d\u4e3a PROLOG_FREQ\u7684\u503c\u3002\u8fd9\u4e2a\u503c\u662f\u4ee3\u7406\u4e0a\u4e00\u6b21\u6210\u529f\u8054\u7cfb\u670d\u52a1\u5668\u65f6\uff0c\u4ece\u670d\u52a1\u5668\u90a3\u91cc\u83b7\u53d6\u5230\u7684\u201c\u8054\u7cfb\u9891\u7387\u201d\uff08\u4ee5\u5c0f\u65f6\u4e3a\u5355\u4f4d\uff09\u3002\u4ee3\u7406\u4f1a\u8ba1\u7b97\u81ea\u4e0a\u6b21\u6210\u529f\u8054\u7cfb\u670d\u52a1\u5668\u4ee5\u6765\uff0c\u662f\u5426\u5df2\u7ecf\u8fc7\u53bb\u4e86 PROLOG_FREQ \u5c0f\u65f6\u3002\u5982\u679c\u65f6\u95f4\u8fd8\u6ca1\u5230\uff0c\u4ee3\u7406\u4f1a\u4ec0\u4e48\u4e5f\u4e0d\u505a\uff0c\u7136\u540e\u5b89\u9759\u5730\u9000\u51fa\u3002<\/p>\n\n\n\n<p>\u603b\u7ed3\uff1a&#8211;lazy \u6a21\u5f0f\u5c06\u63a7\u5236\u6743\u4ea4\u8fd8\u7ed9\u4e86\u670d\u52a1\u5668\u3002 \u5373\u4f7f\u60a8\u7684 Cron \u4efb\u52a1\u6bcf\u5929\u8fd0\u884c\uff0c\u4f46\u5b9e\u9645\u7684\u8054\u7cfb\u9891\u7387\u4ecd\u7136\u7531\u60a8\u5728 OCS \u7f51\u9875\u63a7\u5236\u53f0\u8bbe\u7f6e\u7684 PROLOG_FREQ (\u8054\u7cfb\u9891\u7387) \u53c2\u6570\u51b3\u5b9a\u3002\u8fd9\u662f\u4e00\u79cd\u975e\u5e38\u9ad8\u6548\u7684\u673a\u5236\uff0c\u53ef\u4ee5\u907f\u514d\u4e0d\u5fc5\u8981\u7684\u7f51\u7edc\u6d41\u91cf\u3002\u8fd9\u4e2a PROLOG_FREQ \u53c2\u6570\u5728\u914d\u7f6e\u7684&#8221;\u670d\u52a1\u5668&#8221;\u9009\u9879\u5361\u91cc\uff0c\u4e0d\u5728&#8221;\u76d8\u70b9&#8221;\u9009\u9879\u5361\uff0c\u9ed8\u8ba4\u503c\u662f24\u5c0f\u65f6\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/OCSInventory-NG\/UnixAgent\/releases\" data-type=\"link\" data-id=\"https:\/\/github.com\/OCSInventory-NG\/UnixAgent\/releases\" target=\"_blank\" rel=\"noreferrer noopener\">Linux\u4ee3\u7406\u4e0b\u8f7d<\/a><br><a href=\"https:\/\/wiki.ocsinventory-ng.org\/03.Basic-documentation\/Setting-up-the-UNIX-agent-manually-on-client-computers\/\" data-type=\"link\" data-id=\"https:\/\/wiki.ocsinventory-ng.org\/03.Basic-documentation\/Setting-up-the-UNIX-agent-manually-on-client-computers\/\" target=\"_blank\" rel=\"noreferrer noopener\">Linux\u4f7f\u7528 APT \u5b89\u88c5\u6559\u7a0b<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%AE%89%E8%A3%85%E6%8F%92%E4%BB%B6\"><\/span>\u5b89\u88c5\u63d2\u4ef6<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%AC%AC%E4%B8%80%E6%AD%A5%EF%BC%9A%E6%9C%8D%E5%8A%A1%E5%99%A8%E7%AB%AF%E5%AE%89%E8%A3%85\"><\/span>\u7b2c\u4e00\u6b65\uff1a\u670d\u52a1\u5668\u7aef\u5b89\u88c5<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u5728\u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u4e00\u4e2a\u63d2\u4ef6\uff0c\u9700\u8981\u4f9d\u6b21\u5728&nbsp;<strong>\u7ba1\u7406\u670d\u52a1\u5668<\/strong>&nbsp;\u548c&nbsp;<strong>\u901a\u4fe1\u670d\u52a1\u5668<\/strong>&nbsp;\u4e0a\u8fdb\u884c\u64cd\u4f5c\u3002\u6211\u8fd9\u91cc\u4f7f\u7528\u7684\u662f docker-compose\uff0c\u5b83\u4eec\u90fd\u5728\u4e00\u4e2a ocsapplication \u670d\u52a1\u4e0a\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%AE%A1%E7%90%86%E6%9C%8D%E5%8A%A1%E5%99%A8%E4%B8%8A\"><\/span>\u7ba1\u7406\u670d\u52a1\u5668\u4e0a<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>\u4ee5\u5b89\u88c5 runningprocess \u63d2\u4ef6\u4e3a\u4f8b\uff0c\u5148\u53bb<a href=\"http:\/\/plugins.ocsinventory-ng.org\/\" data-type=\"link\" data-id=\"http:\/\/plugins.ocsinventory-ng.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u5b98\u7f51\u4e0b\u8f7d<\/a>\uff0c\u7136\u540e\u5bb9\u5668\u7684 <a href=\"http:\/\/usr\/share\/ocsinventory-reports\/ocsreports\/extensions\/\">http:\/\/usr\/share\/ocsinventory-reports\/ocsreports\/extensions\/<\/a> \u76ee\u5f55\u4e0b\uff0c\u7531\u4e8e\u8fd9\u4e2a\u76ee\u5f55\u5df2\u88ab\u6620\u5c04\u51fa\u6765\u4e86\uff0c\u56e0\u6b64\u76f4\u63a5\u653e ocsreportsdata \u5373\u53ef\uff0c\u8bb0\u5f97\u8981\u89e3\u538b\uff0c\u89e3\u538b\u540e\u5220\u9664zip\u6587\u4ef6\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"409\" height=\"133\" src=\"https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/Snipaste_2025-08-08_15-30-16-1.png\" alt=\"\" class=\"wp-image-2634\" srcset=\"https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/Snipaste_2025-08-08_15-30-16-1.png 409w, https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/Snipaste_2025-08-08_15-30-16-1-300x98.png 300w\" sizes=\"auto, (max-width: 409px) 100vw, 409px\" \/><\/figure>\n\n\n\n<p>\u63a5\u7740\u53bb\u7ba1\u7406\u63a7\u5236\u53f0\u5b89\u88c5\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"353\" src=\"https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/\u5fae\u4fe1\u56fe\u7247_2025-08-08_153206_464-1-1024x353.png\" alt=\"\" class=\"wp-image-2635\" srcset=\"https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/\u5fae\u4fe1\u56fe\u7247_2025-08-08_153206_464-1-1024x353.png 1024w, https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/\u5fae\u4fe1\u56fe\u7247_2025-08-08_153206_464-1-300x103.png 300w, https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/\u5fae\u4fe1\u56fe\u7247_2025-08-08_153206_464-1-768x265.png 768w, https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/\u5fae\u4fe1\u56fe\u7247_2025-08-08_153206_464-1-660x227.png 660w, https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/\u5fae\u4fe1\u56fe\u7247_2025-08-08_153206_464-1.png 1347w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u88c5\u597d\u8981\u9000\u51fa\uff0c\u91cd\u65b0\u767b\u5f55\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E9%80%9A%E4%BF%A1%E6%9C%8D%E5%8A%A1%E5%99%A8%E4%B8%8A\"><\/span>\u901a\u4fe1\u670d\u52a1\u5668\u4e0a<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>\u63a5\u4e0b\u6765\uff0c\u8981\u8ba9\u8d1f\u8d23\u63a5\u6536\u5ba2\u6237\u7aef\u6570\u636e\u7684\u901a\u4fe1\u670d\u52a1\u5668\u4e5f\u80fd\u201c\u8ba4\u8bc6\u201d\u8fd9\u4e2a\u65b0\u63d2\u4ef6\u3002\u5b98\u65b9\u63a8\u8350\u4f7f\u7528\u81ea\u52a8\u5316\u811a\u672c <code>install_plugin.py<\/code> \u6765\u505a\u8fd9\u4e2a\u4e8b\uff0c\u53ea\u9700\u5728\u670d\u52a1\u5668\u7aef\u6267\u884c\u4e0b\u9762\u547d\u4ee4\u5373\u53ef\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># 1. \u5b89\u88c5 python3 \u548c scp \u5e93\uff0cscp\u5e93\u662f\u6267\u884c\u81ea\u52a8\u5316\u5b89\u88c5\u811a\u672c\u6240\u5fc5\u9700\u7684\uff08\u6ce8\u610f\uff1a\u4e3a\u4e86\u7b80\u5355\u8d77\u89c1\uff0c\u8fd9\u91cc\u7528\u4e86 docker exec\uff0c\u6ca1\u6709\u53bb\u505a\u4e0a\u5c42\u955c\u50cf\uff09\ndocker exec -it ocsinventory-server bash -c 'apt-get update &amp;&amp; apt-get install -y python3 python3-pip &amp;&amp; pip3 install scp -i https:\/\/pypi.tuna.tsinghua.edu.cn\/simple'\n\n# 2. \u6267\u884c\u81ea\u52a8\u5316\u5b89\u88c5\u811a\u672c\ndocker exec -it ocsinventory-server bash -c 'cd \/usr\/share\/ocsinventory-reports\/ocsreports\/tools\/ &amp;&amp; python3 install_plugin.py'\n\n# 3. \u5b8c\u6210\u540e\u52a1\u5fc5\u91cd\u542f\u901a\u4fe1\u670d\u52a1\u5668\u7684 Apache \u670d\u52a1\uff0c\u4ee5\u4f7f\u914d\u7f6e\u751f\u6548\uff08\u5bb9\u5668\u91cc\u6ca1\u6709 systemctl restart apache2\uff0c\u56e0\u6b64\u76f4\u63a5\u91cd\u542f\u5bb9\u5668\u5373\u53ef\uff0c\u5df2\u88c5\u63d2\u4ef6\u4e0d\u4f1a\u4e22\uff09\ndocker-compose restart ocsapplication<\/pre>\n\n\n\n<p>\u81ea\u52a8\u5316\u5b89\u88c5\u811a\u672c\u4ea4\u4e92\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u811a\u672c\u4f1a\u8be2\u95ee\u60a8\u63d2\u4ef6\u5b58\u653e\u7684\u8def\u5f84\uff0c\u76f4\u63a5\u6309\u56de\u8f66\u4f7f\u7528\u9ed8\u8ba4\u8def\u5f84\u5373\u53ef\u3002<\/li>\n\n\n\n<li>\u811a\u672c\u4f1a\u5217\u51fa\u6240\u6709\u53ef\u5b89\u88c5\u7684\u63d2\u4ef6\uff0c\u8f93\u5165\u60a8\u60f3\u5b89\u88c5\u7684\u63d2\u4ef6\u5bf9\u5e94\u7684<strong>\u6570\u5b57\u7f16\u53f7<\/strong>\uff0c\u7136\u540e\u6309\u56de\u8f66\u3002<\/li>\n\n\n\n<li><strong>\u5206\u60c5\u51b5\u8ba8\u8bba\uff1a<\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>\u5982\u679c\u60a8\u7684\u901a\u4fe1\u670d\u52a1\u5668\u548c\u7ba1\u7406\u670d\u52a1\u5668\u662f\u540c\u4e00\u53f0\u673a\u5668\uff1a<\/strong>&nbsp;\u811a\u672c\u4f1a\u81ea\u52a8\u5904\u7406\u3002<\/li>\n\n\n\n<li><strong>\u5982\u679c\u60a8\u7684\u901a\u4fe1\u670d\u52a1\u5668\u662f\u53e6\u4e00\u53f0\u72ec\u7acb\u7684\u673a\u5668\uff1a<\/strong>&nbsp;\u811a\u672c\u4f1a\u8981\u6c42\u60a8\u8f93\u5165\u8be5\u670d\u52a1\u5668\u7684&nbsp;<strong>IP\u5730\u5740\u3001\u7528\u6237\u540d(\u5982root)\u548c\u5bc6\u7801<\/strong>\uff0c\u4ee5\u4fbf\u901a\u8fc7 SSH (SCP) \u5c06\u6587\u4ef6\u590d\u5236\u8fc7\u53bb\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u6700\u540e\uff0c\u811a\u672c\u4f1a\u8be2\u95ee\u901a\u4fe1\u670d\u52a1\u5668\u7684\u914d\u7f6e\u76ee\u5f55\u8def\u5f84\uff0c\u901a\u5e38\u76f4\u63a5\u6309\u56de\u8f66\u4f7f\u7528\u9ed8\u8ba4\u503c&nbsp;[\/etc\/ocsinventory-server]&nbsp;\u5373\u53ef\u3002<\/li>\n\n\n\n<li>\u811a\u672c\u4f1a\u81ea\u52a8\u5c06\u6240\u9700\u6587\u4ef6\u590d\u5236\u5230\u901a\u4fe1\u670d\u52a1\u5668\u7684\u6b63\u786e\u4f4d\u7f6e\u3002<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%AC%AC%E4%BA%8C%E6%AD%A5%EF%BC%9A%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%AE%89%E8%A3%85_Agent_%E7%AB%AF%E9%83%A8%E7%BD%B2\"><\/span>\u7b2c\u4e8c\u6b65\uff1a\u5ba2\u6237\u7aef\u5b89\u88c5 (Agent \u7aef\u90e8\u7f72)<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u670d\u52a1\u5668\u7aef\u88c5\u597d\u540e\uff0c\u63a5\u7740\u8fd8\u9700\u8981\u8ba9\u5ba2\u6237\u7aef\u7684\u4ee3\u7406\u7a0b\u5e8f (Agent) \u4e5f\u77e5\u9053\u5982\u4f55\u91c7\u96c6\u8fd9\u4e2a\u65b0\u63d2\u4ef6\u7684\u6570\u636e\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u5bf9\u4e8e Windows \u5ba2\u6237\u7aef\uff1a<\/strong>\n<ol class=\"wp-block-list\">\n<li>\u4ee5\u4e0b\u8f7d\u7684 runningprocess.zip \u4e3a\u4f8b\uff0c\u52a0\u538b\u540e\u6709\u4e2a <code>runningprocess\\agent\\Windows\\runningprocess.vbs<\/code> \u6587\u4ef6\uff0c\u5c06\u5b83\u653e\u5230Agent\uff08OCSInventory.exe\uff09\u5b89\u88c5\u76ee\u5f55\u7684 Plugins \u5b50\u76ee\u5f55\u4e0b\u5373\u53ef\u3002<\/li>\n\n\n\n<li>\u53cc\u51fb\u8fd0\u884c\u4e00\u6b21 OCSInventory.exe \u4e3b\u52a8\u4e0a\u62a5\u6570\u636e\uff0c\u8fc7\u51e0\u5206\u949f\u8fdb\u7a0b\u6570\u636e\u5c31\u4f1a\u51fa\u73b0\u5728\u6742\u9879\u91cc\u4e86\uff0c\u4f46\u662f\u8fdb\u7a0b\u540d\u82e5\u662f\u4e2d\u6587\u4f1a\u663e\u793a\u4e71\u7801\uff08\u8fd8\u672a\u89e3\u51b3\uff09\u3002<\/li>\n\n\n\n<li>\uff08\u53ef\u9009\uff09\u53e6\u4e00\u79cd\u5b89\u88c5\u65b9\u5f0f\u662f\u767b\u5f55 OCS \u7f51\u9875\u63a7\u5236\u53f0\uff0c\u4f7f\u7528\u00a0<strong>\u201c\u90e8\u7f72\u5305 (Deploying packages)\u201d<\/strong>\u00a0\u529f\u80fd\u6765\u90e8\u7f72\uff0c\u8fd9\u79cd\u662f\u5b98\u65b9\u8bf4\u660e\u91cc\u5199\u7684\uff0c\u5730\u5740\uff1a<a href=\"https:\/\/wiki.ocsinventory-ng.org\/10.Plugin-engine\/Using-plugins-installer\/#installation\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/wiki.ocsinventory-ng.org\/10.Plugin-engine\/Using-plugins-installer\/#installation<\/a>\uff0c\u641c <code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">Windows Plugin deployment<\/mark><\/code>\u3002<\/li>\n<\/ol>\n<\/li>\n\n\n\n<li><strong>\u5bf9\u4e8e Linux\/Unix \u5ba2\u6237\u7aef\uff1a<\/strong>\n<ol class=\"wp-block-list\">\n<li>\u5728\u63d2\u4ef6\u538b\u7f29\u5305\u7684&nbsp;agent&nbsp;\u5b50\u6587\u4ef6\u5939\u91cc\uff0c\u627e\u5230&nbsp;.pm&nbsp;\u7ed3\u5c3e\u7684\u6587\u4ef6\uff08\u4f8b\u5982&nbsp;Myplugin.pm\uff09\u3002<\/li>\n\n\n\n<li>\u5c06\u8fd9\u4e2a&nbsp;.pm&nbsp;\u6587\u4ef6\u590d\u5236\u5230\u5ba2\u6237\u7aef\u7684 Perl \u6a21\u5757\u76ee\u5f55\u4e2d\u3002\n<ul class=\"wp-block-list\">\n<li>\u5e38\u89c1\u8def\u5f84\uff1a\/usr\/local\/share\/perl\/{perl\u7248\u672c}\/Ocsinventory\/Agent\/Modules<\/li>\n\n\n\n<li>\u5982\u679c\u662f\u7528 RPM \u5305\u5b89\u88c5\u7684 Agent\uff0c\u8def\u5f84\u53ef\u80fd\u662f\uff1a\/usr\/share\/perl5\/Ocsinventory\/Agent\/Modules<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u7f16\u8f91\u5ba2\u6237\u7aef\u7684\u6a21\u5757\u914d\u7f6e\u6587\u4ef6\uff1a<code>vi \/etc\/ocsinventory-agent\/modules.conf<\/code><\/li>\n\n\n\n<li>\u5728\u6587\u4ef6\u672b\u5c3e\u6dfb\u52a0\u4e00\u884c\uff0c\u5185\u5bb9\u4e3a&nbsp;use Ocsinventory::Agent::Modules::Myplugin;&nbsp;(\u5c06&nbsp;Myplugin&nbsp;\u66ff\u6362\u4e3a\u5b9e\u9645\u7684\u6587\u4ef6\u540d)\u3002<\/li>\n\n\n\n<li><strong>\u9a8c\u8bc1\uff1a<\/strong>&nbsp;\u8fd0\u884c&nbsp;perl \/etc\/ocsinventory-agent\/modules.conf\uff0c\u5982\u679c\u6ca1\u6709\u4efb\u4f55\u9519\u8bef\u4fe1\u606f\u8f93\u51fa\uff0c\u8bf4\u660e\u63d2\u4ef6\u5df2\u6b63\u786e\u52a0\u8f7d\u3002<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n\n\n\n<p>\u63d2\u4ef6\u88c5\u597d\u540e\uff0c\u5c31\u7b49\u5ba2\u6237\u7aef\u518d\u76d8\u70b9\u4e00\u6b21\uff0c\u8fdb\u7a0b\u4fe1\u606f\u5c31\u5230\u670d\u52a1\u5668\u4e0a\u6765\u4e86\uff08\u8fd9\u91cc\u6211\u88c5\u7684 processes \u63d2\u4ef6\uff0c\u5728\u8be6\u60c5\u9875\u7684 \u6742\u9879\u91cc\u770b\u8fdb\u7a0b\uff09\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"409\" src=\"https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/Snipaste_2025-08-08_15-57-55-1024x409.png\" alt=\"\" class=\"wp-image-2638\" srcset=\"https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/Snipaste_2025-08-08_15-57-55-1024x409.png 1024w, https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/Snipaste_2025-08-08_15-57-55-300x120.png 300w, https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/Snipaste_2025-08-08_15-57-55-768x307.png 768w, https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/Snipaste_2025-08-08_15-57-55-660x264.png 660w, https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/Snipaste_2025-08-08_15-57-55.png 1056w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%B8%B8%E7%94%A8%E6%8F%92%E4%BB%B6\"><\/span>\u5e38\u7528\u63d2\u4ef6<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>RunningProcesses<\/code> \u63d2\u4ef6\uff1a\u76d8\u70b9\u8fd0\u884c\u7684\u670d\u52a1\u6216\u8fdb\u7a0b<\/li>\n\n\n\n<li><code>PostgreSQL <\/code>\u63d2\u4ef6\uff1a\u76d8\u70b9 PostgreSQL \u6570\u636e\u5e93<\/li>\n\n\n\n<li><code>Oracle<\/code> \u63d2\u4ef6\uff1a\u76d8\u70b9Oracle\u4e3b\u9875<\/li>\n\n\n\n<li><code>Running Database<\/code> \u63d2\u4ef6\uff1a\u76d8\u70b9\u6b63\u5728\u8fd0\u884c\u7684\u6570\u636e\u5e93\u5b9e\u4f8b<\/li>\n<\/ul>\n\n\n\n<p>\u63d2\u4ef6\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"http:\/\/plugins.ocsinventory-ng.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">http:\/\/plugins.ocsinventory-ng.org\/<\/a><br>\u63d2\u4ef6\u5b89\u88c5\u6559\u7a0b\uff1a<a href=\"http:\/\/wiki.ocsinventory-ng.org\/10.Plugin-engine\/Using-plugins-installer\/\" target=\"_blank\" rel=\"noreferrer noopener\">http:\/\/wiki.ocsinventory-ng.org\/10.Plugin-engine\/Using-plugins-installer\/<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%88%86%E9%92%9F%E7%BA%A7%E5%88%AB%E7%9A%84%E7%9B%98%E7%82%B9\"><\/span>\u5206\u949f\u7ea7\u522b\u7684\u76d8\u70b9<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u5728\u5b9e\u73b0\u5206\u949f\u7ea7\u522b\u7684\u76d8\u70b9\u524d\uff0c\u5148\u6765\u7406\u89e3\u4e0b\u670d\u52a1\u5668\u4e0a\u7684\u4e24\u4e2a\u4e0e\u6b64\u76f8\u5173\u7684\u91cd\u8981\u53c2\u6570 FREQ_INVENTORY\u548c PROLOG_FREQ\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%9B%98%E7%82%B9%E9%A2%91%E7%8E%87%EF%BC%88FREQ_INVENTORY%EF%BC%89\"><\/span>\u76d8\u70b9\u9891\u7387\uff08FREQ_INVENTORY\uff09<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u5355\u4f4d\u662f\u5929\u3002\u76d8\u70b9\u9891\u7387\u5c5e\u6027\u89c4\u5b9a\u4e86\u4e00\u53f0\u8ba1\u7b97\u673a\u5728\u5411\u670d\u52a1\u5668\u62a5\u5230\u540e\uff0c\u81f3\u5c11\u8981\u95f4\u9694\u591a\u5c11\u5929\u624d\u80fd\u88ab\u8981\u6c42\u8fdb\u884c\u4e0b\u4e00\u6b21\u5b8c\u6574\u7684\u8d44\u4ea7\u76d8\u70b9\u3002\u8054\u7cfb\u9891\u7387PROLOG_FREQ \u5219\u89c4\u5b9a\u4e86\u4ee3\u7406\u5e94\u8be5\u591a\u4e45\u8054\u7cfb\u4e00\u6b21\u670d\u52a1\u5668\u6765\u201c\u6253\u4e2a\u62db\u547c\u201d\u5e76\u8bf7\u6c42\u4efb\u52a1\u3002<br>\u7531\u4e8e\u6700\u5c0f\u5355\u4f4d\u9650\u5236\uff0c\u4ec5\u901a\u8fc7\u670d\u52a1\u5668\u914d\u7f6e\uff0c\u80fd\u8fbe\u5230\u7684\u6700\u9ad8\u8054\u7cfb\u9891\u7387\u662f\u6bcf\u5c0f\u65f6\u4e00\u6b21 (PROLOG_FREQ=1)\u3002<br>\u82e5\u8981\u4ee5\u5206\u949f\u4e3a\u5355\u4f4d\u8fdb\u884c\u76d8\u70b9\uff0c\u5fc5\u987b\u5728\u5ba2\u6237\u7aef\u672c\u5730\uff08\u4ee3\u7406\u4e0a\uff09\u8fdb\u884c\u8bbe\u7f6e\uff0c\u5e76\u914d\u5408\u670d\u52a1\u5668\u7aef\u7684 <strong>FREQUENCY<\/strong> = 0\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"383\" src=\"https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/Snipaste_2025-09-15_16-21-46-1-1024x383.png\" alt=\"\" class=\"wp-image-2715\" srcset=\"https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/Snipaste_2025-09-15_16-21-46-1-1024x383.png 1024w, https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/Snipaste_2025-09-15_16-21-46-1-300x112.png 300w, https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/Snipaste_2025-09-15_16-21-46-1-768x287.png 768w, https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/Snipaste_2025-09-15_16-21-46-1-660x247.png 660w, https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/Snipaste_2025-09-15_16-21-46-1.png 1040w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E8%81%94%E7%B3%BB%E9%A2%91%E7%8E%87%EF%BC%88PROLOG_FREQ%EF%BC%89\"><\/span>\u8054\u7cfb\u9891\u7387\uff08PROLOG_FREQ\uff09<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u5355\u4f4d\u662f\u201c\u5c0f\u65f6\u201d\uff0c\u5b83\u89c4\u5b9a\u4e86\u4ee3\u7406\u5e94\u8be5\u591a\u4e45\u8054\u7cfb\u4e00\u6b21\u670d\u52a1\u5668\u6765\u201c\u6253\u4e2a\u62db\u547c\u201d\u5e76\u8bf7\u6c42\u4efb\u52a1\u3002\u4f8b\u5982\uff0c\u8bbe\u7f6e\u4e3a 24 (\u9ed8\u8ba4\u503c) \u610f\u5473\u7740\u4ee3\u7406\u6bcf24\u5c0f\u65f6\u8054\u7cfb\u4e00\u6b21\u670d\u52a1\u5668\u3002\u5728\u8054\u7cfb\u65f6\uff0c\u670d\u52a1\u5668\u4f1a\u68c0\u67e5\u81ea\u4e0a\u6b21\u76d8\u70b9\u4ee5\u6765\u662f\u5426\u5df2\u7ecf\u8d85\u8fc7\u4e86 <strong>FREQUENCY<\/strong> \u8bbe\u5b9a\u7684\u5929\u6570\uff0c\u5982\u679c\u8d85\u8fc7\u4e86\uff0c\u5c31\u547d\u4ee4\u4ee3\u7406\u5f00\u59cb\u76d8\u70b9\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%AE%9E%E7%8E%B0%E5%88%86%E9%92%9F%E7%BA%A7%E5%88%AB%E7%9A%84%E7%9B%98%E7%82%B9\"><\/span>\u5b9e\u73b0\u5206\u949f\u7ea7\u522b\u7684\u76d8\u70b9<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u8981\u5b9e\u73b0\u5206\u949f\u7ea7\u522b\u7684\u5224\u65ad\uff0c\u5fc5\u987b\u628a\u5ba2\u6237\u7aef\u4ee3\u7406\u4e0a\u5b9a\u65f6\u4efb\u52a1\u7684 &#8211;lazy \u53c2\u6570\u53bb\u6389\uff0c\u56e0\u4e3a\u5728 &#8211;lazy \u6a21\u5f0f\u4e0b\uff0c\u65e0\u8bba\u60a8\u7684 cron \u4efb\u52a1\u8fd0\u884c\u5f97\u591a\u9891\u7e41\uff0c\u6700\u7ec8\u51b3\u5b9a\u8054\u7cfb\u9891\u7387\u7684\u8fd8\u662f\u670d\u52a1\u5668\u4e0a\u7684 PROLOG_FREQ \u8bbe\u7f6e\u3002<\/p>\n\n\n\n<p>\uff081\uff09\u5bf9\u4e8e Ubuntu \u7cfb\u7edf\uff0c\u5177\u4f53\u6b65\u9aa4\u662f\uff0c\u5148\u8bbf\u95eeCron\u4efb\u52a1\u8ba1\u5212\uff0c\u4f4d\u7f6e\u5728 <code>\/etc\/cron.d\/ocsinventory-agent<\/code>\uff0c\u5c06\u91cc\u9762\u7684<br><code>57 5 * * * root \/usr\/local\/bin\/ocsinventory-agent --lazy &gt; \/dev\/null 2&gt;&amp;1<\/code><br>\u4fee\u6539\u4e3a\u6bcf\u5206\u949f\u8fd0\u884c\u4e00\u6b21\uff0c\u5e76\u5220\u9664 &#8211;lazy\uff0c\u7136\u540e\u4fdd\u5b58\uff08\u6539\u540e\u662f\u81ea\u52a8\u751f\u6548\u7684\uff09\uff0c\u6539\u540e\u5185\u5bb9\uff1a<br><code>*\/1 * * * * root \/usr\/local\/bin\/ocsinventory-agent &gt; \/dev\/null 2&gt;&amp;1<\/code><br>\uff082\uff09\u5bf9\u4e8e Windows 11\u7cfb\u7edf\uff0c\u9700\u8981\u5148\u505c\u7528 <code>OCS Inventory Service<\/code> \u8fd9\u4e2a\u670d\u52a1\uff0c\u7136\u540e\u521b\u5efa\u4e00\u4e2a Windows \u7684\u201c\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f\u201d\u6765\u66ff\u4ee3\u8fd9\u4e2a\u670d\u52a1\uff0c\u5177\u4f53\u89e6\u53d1\u8054\u7cfb\u548c\u76d8\u70b9\u7684\u7a0b\u5e8f\u662f &#8220;<code>C:\\Program Files\\OCS Inventory Agent\\OCSInventory.exe<\/code>&#8220;\uff0c\u65e0\u8bba\u670d\u52a1\u8fd8\u662f\u4efb\u52a1\u8ba1\u5212\u90fd\u662f\u901a\u8fc7\u8c03\u7528\u5b83\u6765\u5b9e\u73b0\u7684\u3002\u5176\u5b9e\u6211\u4eec\u4e5f\u53ef\u4ee5\u624b\u52a8\u53cc\u51fb\u8fd9\u4e2a OCSInventory.exe \u6765\u89e6\u53d1\u8054\u7cfb\u548c\u76d8\u70b9\uff0c\u6b64\u65f6\u670d\u52a1\u5668\u4e0a\u7684<strong>\u4e0a\u6b21\u8fde\u7cfb<\/strong>\u65f6\u95f4\u4f1a\u7acb\u5373\u66f4\u65b0\uff0c<strong>\u4e0a\u6b21\u76d8\u70b9<\/strong>\u5219\u8981\u7b49\u4e2a\u5341\u51e0\u79d2\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<div class=\"wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-ad2f72ca wp-block-group-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"590\" src=\"https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/\u914d\u7f6e\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f-1024x590.png\" alt=\"\" class=\"wp-image-2692\" srcset=\"https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/\u914d\u7f6e\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f-1024x590.png 1024w, https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/\u914d\u7f6e\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f-300x173.png 300w, https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/\u914d\u7f6e\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f-768x443.png 768w, https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/\u914d\u7f6e\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f-660x380.png 660w, https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/\u914d\u7f6e\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f.png 1067w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><br><\/p>\n<\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"488\" height=\"71\" src=\"https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/\u5fae\u4fe1\u56fe\u7247_2025-09-01_104349_476-1.png\" alt=\"\" class=\"wp-image-2690\" srcset=\"https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/\u5fae\u4fe1\u56fe\u7247_2025-09-01_104349_476-1.png 488w, https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/\u5fae\u4fe1\u56fe\u7247_2025-09-01_104349_476-1-300x44.png 300w\" sizes=\"auto, (max-width: 488px) 100vw, 488px\" \/><\/figure>\n\n\n\n<p>\u73b0\u5728\u5ba2\u6237\u7aef\u6bcf\u5206\u949f\u90fd\u4f1a\u8054\u7cfb\u670d\u52a1\u5668\u4e86\u3002\u4f46\u60a8\u8fd8\u9700\u8981\u544a\u8bc9\u670d\u52a1\u5668\uff0c\u6bcf\u6b21\u8054\u7cfb\u90fd\u5e94\u8be5\u8fdb\u884c\u4e00\u6b21\u5b8c\u6574\u7684\u76d8\u70b9\uff0c\u8fd9\u53ea\u8981\u5728\u670d\u52a1\u5668\u4e0a\u8bbe\u7f6e FREQ_INVENTORY = 0\uff0c\u7684\u610f\u601d\u662f\uff1a\u201c\u4e0d\u8981\u4f7f\u7528\u57fa\u4e8e\u65f6\u95f4\u7684\u76d8\u70b9\u903b\u8f91\u3002\u53ea\u8981\u6709\u4ee3\u7406\u8054\u7cfb\u6211\uff0c\u5c31\u7acb\u5373\u547d\u4ee4\u5b83\u6267\u884c\u4e00\u6b21\u5b8c\u6574\u7684\u76d8\u70b9\u3002\u201d<\/p>\n\n\n\n<p>\u9a8c\u8bc1\u914d\u7f6e\u662f\u5426\u751f\u6548\uff0c\u53ef\u4ee5\u53bb\u670d\u52a1\u5668\u9875\u9762\uff0c\u8fdb\u5165\u8bbe\u5907\u8be6\u60c5\u67e5\u770b \u201c\u6700\u540e\u76d8\u70b9\u65e5\u671f\u201d (Last Inventory) \u6216 \u201c\u6700\u540e\u8054\u7cfb\u201d (Last contact) \u5b57\u6bb5\u3002<\/p>\n\n\n\n<p>\u6211\u5728 Ubuntu22.04 \u4e0a\uff0c\u88c5\u4e86\u4e2a\u5e94\u7528 atop \u540e\u518d\u5220\u9664\uff0c2\u5206\u949f\u5185\u670d\u52a1\u5668\u4e0a\u89c2\u5bdf\u5230\u4e86\u5b89\u88c5\u4e0e\u5220\u9664\u7684\u53d8\u5316\u3002\u78c1\u76d8\u4f7f\u7528\u91cf\u7684\u53d8\u5316\u4e5f\u89c2\u5bdf\u5230\u4e86\u3002<\/p>\n\n\n\n<p>CPU \u548c\u5185\u5b58\u4f7f\u7528\u60c5\u51b5 \u4e0d\u53ef\u4ee5\u76d8\u70b9\uff0c\u53ea\u80fd\u76d8\u70b9\u5b83\u4eec\u7684\u9759\u6001\u4fe1\u606f\uff0c\u5982CPU: \u578b\u53f7\u3001\u4e3b\u9891\u3001\u6838\u5fc3\u6570\uff0c\u5185\u5b58: \u603b\u5bb9\u91cf\u3001\u63d2\u69fd\u6570\u91cf\u7b49\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"REST_API\"><\/span>REST API<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E4%B8%8D%E4%BD%BF%E7%94%A8_nginx_%E5%8F%8D%E5%90%91%E4%BB%A3%E7%90%86\"><\/span>\u4e0d\u4f7f\u7528 nginx \u53cd\u5411\u4ee3\u7406<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u76ee\u524d\uff0cOCS Inventory \u7684 REST API \u4f7f\u7528 Apache \u63d0\u4f9b\u5b89\u5168\u8eab\u4efd\u9a8c\u8bc1\uff0c\u914d\u7f6e\u597d\u8ba4\u8bc1\u540e\uff0c\u82e5\u7528\u4e86 nginx \u505a\u53cd\u5411\u4ee3\u7406\u53ef\u80fd\u8fd8\u662f\u65e0\u6cd5\u901a\u8fc7\u8ba4\u8bc1\u62a5401\u9519\u8bef\uff0c\u56e0\u6b64\u5efa\u8bae\u4e0d\u4f7f\u7528  nginx\uff0c\u76f4\u63a5\u8bbf\u95ee apache \u670d\u52a1\u5373\u53ef\u3002<\/p>\n\n\n\n<p>\u5982\u679c\u4e00\u5b9a\u8981\u8d70 nginx\uff0c\u5c31\u9700\u8981\u5728 nginx \u914d\u7f6e\u4e2d\u52a0\u4e0a\u7c7b\u4f3c\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">location \/ocsapi\/ {\n    proxy_pass http:\/\/apache-container-ip:80\/ocsapi\/;\n    proxy_set_header Authorization $http_authorization;\n}<\/pre>\n\n\n\n<p>\u786e\u4fdd nginx \u4f1a\u628a <code>Authorization<\/code> \u5934\u8f6c\u53d1\u7ed9 Apache\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E8%AE%A4%E8%AF%81%E9%85%8D%E7%BD%AE\"><\/span>\u8ba4\u8bc1\u914d\u7f6e<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u6700\u65b0\u7248\u7684 OCS Inventory \u5df2\u7ecf\u5c06\u65b0\u7684 REST API \u914d\u7f6e\u5206\u79bb\u5230\u4e86\u4e00\u4e2a\u4e13\u95e8\u7684 zz-ocsinventory-restapi.conf \u6587\u4ef6\u4e2d\u3002\u8fd9\u4e2a\u914d\u7f6e\u6240\u5728\u76ee\u5f55\u5df2\u7ecf\u5728 docker-compose \u91cc\u6620\u5c04\u51fa\u6765\u4e86\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">    volumes:\n      - \"httpdconfdata:\/etc\/apache2\/conf-available\"<\/pre>\n\n\n\n<p>\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"417\" height=\"269\" src=\"https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/Snipaste_2025-08-08_18-10-37.png\" alt=\"\" class=\"wp-image-2644\" srcset=\"https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/Snipaste_2025-08-08_18-10-37.png 417w, https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/Snipaste_2025-08-08_18-10-37-300x194.png 300w\" sizes=\"auto, (max-width: 417px) 100vw, 417px\" \/><\/figure>\n\n\n\n<p>\u7f16\u8f91\u6b64\u6587\u4ef6\u540e\uff0c\u5728 &lt;Location \/ocsapi&gt; \u91cc\u52a0\u5165\u4e00\u6bb5\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">  AuthType Basic\n  AuthName \"OCS Inventory NG REST API\"\n  AuthUserFile \/etc\/ocsinventory-server\/ocsapi.htpasswd\n  Require valid-user<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"661\" height=\"587\" src=\"https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/Snipaste_2025-08-08_18-12-36.png\" alt=\"\" class=\"wp-image-2645\" srcset=\"https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/Snipaste_2025-08-08_18-12-36.png 661w, https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/Snipaste_2025-08-08_18-12-36-300x266.png 300w\" sizes=\"auto, (max-width: 661px) 100vw, 661px\" \/><\/figure>\n\n\n\n<p><strong>\u521b\u5efa\u5bc6\u7801\u6587\u4ef6 (ocsapi.htpasswd)<\/strong><br>\u4e0a\u9762\u7684\u914d\u7f6e\u6307\u5b9a\u4e86\u4e00\u4e2a\u5bc6\u7801\u6587\u4ef6 <code>\/etc\/ocsinventory-server\/ocsapi.htpasswd<\/code>\u3002\u6211\u4eec\u9700\u8981\u521b\u5efa\u8fd9\u4e2a\u6587\u4ef6\uff0c\u5e76\u6dfb\u52a0\u4e00\u4e2a\u5141\u8bb8\u8bbf\u95ee API \u7684\u7528\u6237\u3002<br>\u5728\u5bb9\u5668\u5185\u90e8\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \u4f7f\u7528 htpasswd \u547d\u4ee4\u521b\u5efa\u6587\u4ef6\u5e76\u6dfb\u52a0\u7b2c\u4e00\u4e2a\u7528\u6237 'apiuser'\n# -c \u53c2\u6570\u8868\u793a\u521b\u5efa\u65b0\u6587\u4ef6\nhtpasswd -c \/etc\/ocsinventory-server\/ocsapi.htpasswd apiuser<\/pre>\n\n\n\n<p>\u7cfb\u7edf\u4f1a\u63d0\u793a\u60a8\u8f93\u5165\u4e24\u6b21\u5bc6\u7801\u3002\u8fd9\u4e2a apiuser \u548c\u5bc6\u7801\u5c31\u662f\u60a8\u672a\u6765\u8c03\u7528 API \u65f6\u9700\u8981\u4f7f\u7528\u7684\u51ed\u8bc1\u3002<br>\u3010\u5173\u952e\u3011 \u60a8\u521b\u5efa\u7684\u8fd9\u4e2a\u5bc6\u7801\u6587\u4ef6\u4f4d\u4e8e \/etc\/ocsinventory-server\/ \u76ee\u5f55\u4e0b\uff0c\u8fd9\u4e2a\u76ee\u5f55\u88ab\u60a8\u7684 perlcomdata \u5377\u6301\u4e45\u5316\u4e86\uff0c\u6240\u4ee5\u5b83\u4e0d\u4f1a\u56e0\u91cd\u542f\u800c\u4e22\u5931\u3002<\/p>\n\n\n\n<p><strong>\u9000\u51fa\u5bb9\u5668\u5e76\u91cd\u542f\u670d\u52a1\u3002<br><\/strong>\u6267\u884c exit \u9000\u51fa\u5bb9\u5668\u3002\u56de\u5230\u5bbf\u4e3b\u673a\u7ec8\u7aef\uff0c\u6267\u884c\u91cd\u542f\u547d\u4ee4\u4ee5\u52a0\u8f7d\u65b0\u7684 Apache \u914d\u7f6e\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">docker-compose restart ocsapplication<\/pre>\n\n\n\n<p>\u6ce8\u610f\uff1a\u901a\u8fc7\u63d2\u4ef6\u5b89\u88c5\u76d8\u70b9\u5230\u7684\u6570\u636e\u65e0\u6cd5\u901a\u8fc7 REST API\u62ff\u5230\uff0c\u6bd4\u5982\u8fd0\u884c\u4e2d\u7684\u8fdb\u7a0b\uff0c\u4f46\u662f\u53ef\u4ee5\u76f4\u63a5\u4ece\u6570\u636e\u5e93\u62ff\uff0c\u5bf9\u5e94\u7684\u8868\u662f <code>ocsweb.hardware<\/code>\u3002<\/p>\n\n\n\n<p>\u8f6f\u4ef6\u4fe1\u606f\u7684\u67e5\u8be2\u8fd8\u662f\u7528 <code>List one computer details<\/code> \u63a5\u53e3\u65b9\u4fbf\u70b9\uff0c\u76f4\u63a5\u67e5\u6570\u636e\u5e93\u7684\u8bdd\u5f97\u53bb\u5173\u8054\u591a\u4e2a\u8868\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%B5%8B%E8%AF%95\"><\/span>\u6d4b\u8bd5<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">curl -v -u apiuser:password http:\/\/192.168.3.226\/ocsapi\/v1\/computer\/1<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%AE%98%E6%96%B9%E5%8F%82%E8%80%83\"><\/span>\u5b98\u65b9\u53c2\u8003<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>REST API\u9a8c\u8bc1\uff1a<a href=\"http:\/\/wiki.ocsinventory-ng.org\/11.Rest-API\/Authentification\/\">http:\/\/wiki.ocsinventory-ng.org\/11.Rest-API\/Authentification\/<\/a><\/li>\n\n\n\n<li>REST API\u914d\u7f6e\uff1a<a href=\"http:\/\/wiki.ocsinventory-ng.org\/11.Rest-API\/Configuration\/\">http:\/\/wiki.ocsinventory-ng.org\/11.Rest-API\/Configuration\/<\/a><\/li>\n\n\n\n<li>REST API GET\u8bf7\u6c42\uff1a<a href=\"http:\/\/wiki.ocsinventory-ng.org\/11.Rest-API\/GET-Routes\/\">http:\/\/wiki.ocsinventory-ng.org\/11.Rest-API\/GET-Routes\/<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%95%B0%E6%8D%AE%E5%BA%93%E7%9B%B8%E5%85%B3%E8%A1%A8\"><\/span>\u6570\u636e\u5e93\u76f8\u5173\u8868<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>SELECT * FROM ocsweb.hardware;\uff08\u6240\u6709\u7684\u8ba1\u7b97\u673a\uff09<\/li>\n\n\n\n<li>SELECT * FROM ocsweb.cpus;<\/li>\n\n\n\n<li>SELECT * FROM ocsweb.memories;<\/li>\n\n\n\n<li>SELECT * FROM ocsweb.drives;<\/li>\n\n\n\n<li>SELECT * FROM ocsweb.bios;<\/li>\n\n\n\n<li>SELECT * FROM ocsweb.runningprocess;<\/li>\n\n\n\n<li>SELECT * FROM ocsweb.software;<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E8%BD%AF%E4%BB%B6%E5%8D%87%E7%BA%A7%E4%BC%9A%E6%8D%A2_ID\"><\/span>\u8f6f\u4ef6\u5347\u7ea7\u4f1a\u6362 ID<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u5728\u5f88\u591aLinux\u7cfb\u7edf\u4e2d\uff0c\u5f53\u4f7f\u7528&nbsp;apt\u3001yum&nbsp;\u6216&nbsp;dnf&nbsp;\u7b49\u5305\u7ba1\u7406\u5668\u5347\u7ea7\u4e00\u4e2a\u8f6f\u4ef6\u5305\u65f6\uff0cOCS Inventory \u7684\u5904\u7406\u65b9\u5f0f\u53ef\u80fd\u5e76\u4e0d\u662f\u201c\u5728\u539f\u5730\u66f4\u65b0\u201d\u8fd9\u6761\u8bb0\u5f55\u3002\u5b83\u5f88\u53ef\u80fd\u4f1a\u6267\u884c\u4ee5\u4e0b\u64cd\u4f5c\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u5220\u9664\u65e7\u8bb0\u5f55<\/strong>\uff1a\u5f53&nbsp;apt-utils 2.4.12&nbsp;\u88ab\u79fb\u9664\u65f6\uff0cOCS Agent \u4f1a\u4e0a\u62a5\u8fd9\u4e2a\u8f6f\u4ef6\u6d88\u5931\u4e86\u3002OCS Server \u53ef\u80fd\u4f1a\u56e0\u6b64<strong>\u5220\u9664<\/strong>\u6570\u636e\u5e93\u4e2d\u4ee3\u8868&nbsp;apt-utils 2.4.12&nbsp;\u7684\u90a3\u6761\u8bb0\u5f55\u3002<\/li>\n\n\n\n<li><strong>\u521b\u5efa\u65b0\u8bb0\u5f55<\/strong>\uff1a\u5f53&nbsp;apt-utils 2.4.14&nbsp;\u88ab\u5b89\u88c5\u65f6\uff0cOCS Agent \u4f1a\u4e0a\u62a5\u53d1\u73b0\u4e86\u4e00\u4e2a\u65b0\u8f6f\u4ef6\u3002OCS Server \u4f1a\u5728\u6570\u636e\u5e93\u4e2d<strong>\u521b\u5efa\u4e00\u6761\u5168\u65b0\u7684\u8bb0\u5f55<\/strong>\u6765\u4ee3\u8868&nbsp;apt-utils 2.4.14\u3002<\/li>\n<\/ol>\n\n\n\n<p><strong>\u6700\u5173\u952e\u7684\u662f\uff0c\u8fd9\u6761\u65b0\u8bb0\u5f55\u4f1a\u6709\u4e00\u4e2a\u5168\u65b0\u7684\u3001\u4e0e\u4e4b\u524d\u5b8c\u5168\u4e0d\u540c\u7684&nbsp;softwareId\uff08\u5373\u6570\u636e\u5e93\u4e3b\u952e ID\uff09\u3002<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"539\" src=\"https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/\u5fae\u4fe1\u56fe\u7247_20250819143547_178_3-1024x539.png\" alt=\"\" class=\"wp-image-2674\" srcset=\"https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/\u5fae\u4fe1\u56fe\u7247_20250819143547_178_3-1024x539.png 1024w, https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/\u5fae\u4fe1\u56fe\u7247_20250819143547_178_3-300x158.png 300w, https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/\u5fae\u4fe1\u56fe\u7247_20250819143547_178_3-768x404.png 768w, https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/\u5fae\u4fe1\u56fe\u7247_20250819143547_178_3-660x347.png 660w, https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/\u5fae\u4fe1\u56fe\u7247_20250819143547_178_3-380x200.png 380w, https:\/\/program.snlcw.com\/wp-content\/uploads\/2025\/08\/\u5fae\u4fe1\u56fe\u7247_20250819143547_178_3.png 1381w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u5982\u679c\u60a8\u975e\u5e38\u5e0c\u671b\u5728\u65e5\u5fd7\u4e2d\u660e\u786e\u770b\u5230\u201c\u7248\u672c\u53f7\u201d\u5b57\u6bb5\u7684\u53d8\u66f4\uff0c\u90a3\u4e48\u60a8\u9700\u8981\u4fee\u6539\u8f6f\u4ef6\u5339\u914d\u7684\u903b\u8f91\uff0c\u4e0d\u518d\u4f9d\u8d56&nbsp;softwareId\uff0c\u800c\u662f\u4f9d\u8d56\u66f4\u7a33\u5b9a\u7684\u8f6f\u4ef6\u540d\u79f0\u3002<br>\u8b66\u544a\uff1a \u8fd9\u79cd\u65b9\u5f0f\u6709\u4e00\u4e2a\u98ce\u9669\uff0c\u5373\u65e0\u6cd5\u5904\u7406\u540c\u4e00\u53f0\u8ba1\u7b97\u673a\u4e0a\u5b89\u88c5\u4e86\u591a\u4e2a\u540c\u540d\u8f6f\u4ef6\u7684\u6781\u7aef\u60c5\u51b5\u3002\u4f46\u5bf9\u4e8e apt-utils \u8fd9\u7c7b\u7cfb\u7edf\u5305\uff0c\u8fd9\u79cd\u60c5\u51b5\u57fa\u672c\u4e0d\u53ef\u80fd\u53d1\u751f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b98\u7f51\uff1ahttps:\/\/ocsinventory-ng.org\/ OCS\u8d44\u4ea7\u7ba1\u7406\u670d\u52a1\u5668\u75314\u4e2a\u4e3b\u8981\u7ec4\u4ef6\u7ec4\u6210\uff1a \u5b89\u88c5\u2026 <span class=\"read-more\"><a href=\"https:\/\/program.snlcw.com\/2620.html\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2620","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/program.snlcw.com\/wp-json\/wp\/v2\/posts\/2620","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/program.snlcw.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/program.snlcw.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/program.snlcw.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/program.snlcw.com\/wp-json\/wp\/v2\/comments?post=2620"}],"version-history":[{"count":38,"href":"https:\/\/program.snlcw.com\/wp-json\/wp\/v2\/posts\/2620\/revisions"}],"predecessor-version":[{"id":2730,"href":"https:\/\/program.snlcw.com\/wp-json\/wp\/v2\/posts\/2620\/revisions\/2730"}],"wp:attachment":[{"href":"https:\/\/program.snlcw.com\/wp-json\/wp\/v2\/media?parent=2620"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/program.snlcw.com\/wp-json\/wp\/v2\/categories?post=2620"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/program.snlcw.com\/wp-json\/wp\/v2\/tags?post=2620"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}