Windows服务器SNMP服务的配置方法
程序员文章站
2022-09-10 18:19:11
在windows服务器上配置snmp服务时,使用手动填写信息太麻烦。下面是使用命令行执行配置文件来实现。 创建snmp.inf 复制代码 代码如下: [netopti...
在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
创建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