在Windows服务器上配置SNMP服务时,使用手动填写信息太麻烦。下面是使用命令行执行配置文件来实现。
创建snmp.inf
代码如下:
[NetOptionalComponents]
SNMP = 1
[SNMP]
Contact_Name = "ITSupport"
Location = "ServerRoom"
Service = Physical, Applications, End-to-End
Community_Name = Type_your_string_here
Traps = Type_the_destination_IP
Send_Authentication = Yes
Accept_CommunityName = Type_your_string_here:Read_Only
Any_Host = no
Limit_Host = Type_the_destination_IP
在服务器上运行以下命令
C:\Windows\System32\Sysocmgr.exe /i:%windir%\inf\sysoc.inf /u:path_to_the_file/snmp.inf
您可能感兴趣的文章:CentOS服务器+监控宝SNMP监控全攻略分享linux下采用shell脚本实现批量为指定文件夹下图片添加水印的方法Shell脚本实现的memcached进程监控简单的Linux查找后门思路和shell脚本分享阿里云主机一键安装lamp、lnmp环境的shell脚本分享使用LNMP一键安装包配置CentOS服务器环境教程centos系统下LNMP环境一键安装Linux下实现SNMP一键安装的Shell脚本
snmp
方法
windows