欢迎光临
我们一直在努力

OCSInventory windows 客户端命令

注意:当OCS服务端ip换掉的时候,必须在客户端用命令去更新ip地址

如:进人客户端安装目录,运行以下命令,说明把服务端的ip更改为192.168.50.96

C:ProgramFilesOCS/InventoryAgent>

OCSInventory.exe /server=http://192.168.50.96/ocsinventory

贴一下OCSInventory.exe windows命令行用法:


Command Line Options:


Meaning:

——————–——————–——————–

 

 

 

/work_dir:”path to directory”


Agent must use “path to directory” as working dir (this directory may included configuration file). Default is “%ALLUSERSPROFILE%Application DataOCS Inventory NGAgent” or “%PROGRAMDATA%OCS Inventory NGAgent”

——————–——————–——————–

 

 

/local[=”path to folder”]


Agent do not contact communication server, and store inventory in xml compressed .ocs file into folder “path to folder”. If no “path to folder” provided, agent assume folder as data folder</nowiki>

——————–——————–——————–

 

 

 

 

 

/debug[=level]


Generate a very verbose log file “ocsinventory.log” into agent’s install folder.

  • 0 => disable verbose logs (default)
  • 1 => enable default verbose logs (default when no level provided provided)
  • 2 => enable debuging logs——————–——————–——————–
 

 

/notag


 

Agent must NOT prompt user for TAG in any case

——————–——————–——————–

 

/tag=”my value”


 

Agent must set “my value” as TAG value

——————–——————–——————–

 

 

/xml=[“path to folder”]


Agent must store inventory in uncompressed xml format into folder “path to folder”. If no “path to folder” provided, agent assume folder as data folder

——————–——————–——————–

 

/force


Always send inventory, even if server do not ask for it (use only for debugging purpose !)

——————–——————–——————–

 

/ipdisc=”network number”


Agent must launch IP discovery on network “network number” (use only for debugging purpose !) ——————–——————–——————–
 

/ipdisc_lat=”number of milliseconds”


Set latency between 2 IP Discover requests to “number of milliseconds”

——————–——————–——————–

 

/fastip


Never wait for latency between 2 IP Discover requests (use only for debugging purpose !)

——————–——————–——————–

 

/hkcu


Search also for software underHKEY_CURRENT_USER registry hive (do not work with service as LocalSystem !)

——————–——————–——————–

 

/uid


 

Agent must generate a new unique device ID

——————–——————–——————–

/server=http[s]://server.domain.tld[:port]/ocsinventory

 


Agent try to connect to Communication Server address and port Listening on http[s]://server.domain.tld[:port]/ocsinventory

——————–——————–——————–

 

 

 

/ssl=0|1


When usng SSL connections:

0 => SSL without certificate validation,

1 => SSL with server certificate validation required (needs CA certificate)

——————–——————–——————–

 

 

/ca=”path_to_cabundle.pem”


 

Path to CA certificate chain file in PEM format, for server certificate validation

——————–——————–——————–

 

/user=username /pwd=password

 


 

Communication Server authentication credentials

 

——————–——————–——————–

 

/proxy_type=0|1|2|3

 

 

 


Agent proxy use

  • 0 => no,
  • 1 => HTTP proxy,
  • 2 => Socks 4 proxy,
  • 3 => Socks 5 proxy)——————–——————–——————–
/proxy=proxy_address

 


Proxy server address (without protocol !)

 

——————–——————–——————–

/proxy_port=port


Proxy server port

——————–——————–——————–

/proxy_user=username /proxy_pwd=password

 


 

Proxy authentication credentials

——————–——————–——————–

窗外天空
关注公众号『窗外天空』

获取更多建站运营运维新知!
互联网创业、前沿技术......

赞(0) 打赏
文章名称:《OCSInventory windows 客户端命令》
文章链接:https://www.nixonli.com/150.html
本站资源仅供个人学习交流,请于下载后24小时内删除,不允许用于商业用途,否则法律问题自行承担。

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

非常感谢你的打赏,我们将继续给力更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫打赏

微信扫一扫打赏

请先暂停浏览器上的广告屏蔽插件,或者更换浏览器打开即可!