%confdir%mp.txtren%confdir%\%confname%%confname%.bakren%confdir%mp.txt%confname%REM判断操作系统为64位还是32位if/i%ostype%==x86(  gotoWIN32-IMDN开发者社群-imdn.cn"> %confdir%mp.txtren%confdir%\%confname%%confname%.bakren%confdir%mp.txt%confname%REM判断操作系统为64位还是32位if/i%ostype%==x86(  gotoWIN32 - IMDN开发者社群-imdn.cn">
登录
首页 » shell » zabbix自动安装及卸载脚本

zabbix自动安装及卸载脚本

于 2022-08-07 发布 文件大小:953.73 kB
0 64
下载积分: 2 下载次数: 1

代码说明:

@echo offREM *********************************************REM 用途:用于windows自动安装zabbix客户端REM 编制人:REM 修订人:无REM *********************************************REM 变量定义set homepath=C:zabbixset confname=zabbix_agentd.win.confset confdir=%homepath%confset win32dir=%homepath%win32set win64dir=%homepath%win64set ostype=%PROCESSOR_IDENTIFIER:~0,3%REM 获取主机名for /f "delims=" %%x in ("hostname") do set Hname=%%xREM 更新conf文件内容(for /f "delims=" %%i in (%confdir%\%confname%) do (   Set str=%%i  SetLocal EnableDelayedExpansion  Set str=!Str:tempname=%Hname%!  echo !str!  EndLocal ))>%confdir% mp.txtren %confdir%\%confname% %confname%.bakren %confdir% mp.txt %confname%REM 判断操作系统为64位还是32位if /i %ostype% == x86 (   goto WIN32

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 696524资源总数
  • 103986会员总数
  • 80今日下载