您的位置:首页 > 其它

命令行配置Windows SNMP服务

2009-07-08 00:05 218 查看
[align=center]命令行配置Windows SNMP服务[/align]
[align=center]原文地址:/article/4410428.html[/align]

我转载这篇文章的目的和该文的作者一样,找个地方记下来:

[1楼]

jessq
[align=right]2009-06-12 18:26:18[/align]
熟悉命令行的用这个肯定很好,不过一般人不愿意记忆啊。

博主回复:
所以才用用博客把它记下来。
2009-06-13 09:35:10

原文如下:

经常需要在Windows服务器上配置SNMP服务,一项项手动填写信息太麻烦。所以就用命令行执行配置文件来实现。
1) 创建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
2) 在服务器上运行以下命令
C:\Windows\System32\Sysocmgr.exe /i:%windir%\inf\sysoc.inf /u:path_to_the_file/snmp.inf

Java程序员,上班那点事儿》,前言,目录
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: