SNMP(Simple Network Management Protocol,簡單網絡管理協議),用來對通信線路進行管理。在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