免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1254 | 回复: 0
打印 上一主题 下一主题

Configuring SNMP Agents [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-11-01 19:49 |只看该作者 |倒序浏览

Configuring SNMP agent in Windows XP/2000,2003
/
Configuring SNMP agent in Solaris
Configuring SNMP agent in Linux versions prior to 8
/
Configuring the Agent in Linux versions 8 and above
Configuring SNMP Agent in Windows XP, 2000, and 2003 Systems

For details about installing SNMP agents in Windows systems, refer to
Installing SNMP Agent on Windows Systems
.

To configure SNMP agent in Windows XP and 2000 systems, follow the steps given below:
Click Start, point to Settings, click Control Panel.
Under Administrative Tools, click Services.
In the details pane, right-click SNMP Service and select Properties.
In the Security tab, select Send authentication trap if you want a trap message to be sent whenever authentication fails.
Under Accepted community names, click Add.
Under Community Rights, select a permission level for this host to process SNMP requests from the selected community.
In Community Name, type a case-sensitive community name, and then click Add.
Specify whether or not to accept SNMP packets from a host:
    To accept SNMP requests from any host on the network, regardless of identity, click Accept SNMP packets from any host.
    To limit acceptance of SNMP packets, click Accept SNMP packets from these hosts, click Add, type the appropriate host name, IP or IPX address, and then click Add again.
Click Apply to apply the changes.
Top
To configure SNMP traps, follow the steps given below:
Click Start, point to Settings, click Control Panel.
Under Administrative Tools, click Services.
In the details pane, right-click SNMP Service and select Properties.
In the Traps tab, under Community name, type the case-sensitive community name to which this computer will send trap messages, and then click Add to list.
Under Trap destinations, click Add.
In the Host name, IP or IPX address field, type host name or its IP address of the server (OpManager server) to send the trap, and click Add.
Repeat steps 5 through 7 until you have added all the communities and trap destinations you want.
Click OK to apply the changes.
Top
Configuring SNMP Agent in Windows NT Systems

For details about installing SNMP agents in Windows systems, refer to
Installing SNMP Agent on Windows Systems
.

To configure SNMP agent in Windows NT systems, follow the steps given below:
Click Start, point to Settings, click Control Panel.
Under Administrative Tools, click Services.
In the details pane, right-click SNMP Service and select Properties.
In the Security tab, select Send authentication trap if you want a trap message to be sent whenever authentication fails.
Under Accepted Community Names, click Add.
In the Community Names box, type the community name to authenticate the SNMP requests.
To move the name to the Accepted Community Names list, click Add.
Repeat steps 6 and 7 for any additional community name.
To specify whether to accept SNMP packets from any host or from only specified hosts, click one of two options:
    Accept SNMP Packets From Any Host, if no SNMP packets are to be rejected on the basis of source computer ID.
    Only Accept SNMP Packets From These Hosts, if SNMP packets are to be accepted only from the computers listed. To designate specific hosts, click Add, type the names or addresses of the hosts from which you will accept requests in the IP Host or IPX Address box, and then click Add.
Repeat step 11 for any additional hosts.
In the Agent tab, specify the appropriate information (such as comments about the user, location, and services).
Click OK to apply the changes.
Further, the SNMP Agent running Windows NT does not respond to Host Resource Data, by default. To include this support, you should have Windows NT Service Pack 6 & above. Verify this and then follow the steps given below:
Extract the NTHR-MIB.zip available at  
http://bonitas.adventnet.com/opmanager/09Sep2004/NTHR-MIB.zip
into C:WinNTsystem32 folder.
Double click on the registry files to import the mibs into Windows registry.
Restart your Windows NT box.
Top
To Configure SNMP Traps, follow the steps given below:
Click Start, point to Settings, and then click Control Panel. Double-click Administrative Tools, and then double-click Services.
In the details pane, click SNMP Service, and then click Properties.
Click the Traps tab.
To identify each community to which you want this computer to send traps, type the name in the Community Name box. Community names are case sensitive.
After typing each name, click Add to add the name to the list.
To specify hosts for each community you send traps to, after you have added the community and while it is still highlighted, click Add under Trap Destination.
To move the name or address to the Trap Destination list for the selected community, type the host name in the IP Host/Address or IPX Address box, and then click Add.
Repeat step 10 for any additional hosts.
Click OK to apply the changes.
Top
Configuring the Agent in Linux versions prior to 8

For details about installing SNMP agents in Linux systems, refer to
Installing SNMP Agent on Linux Systems
.
Stop the agent if it is running already using the command:
/etc/rc.d/init.d/snmpd stop
Make the following changes in /etc/rc.d/init.d/snmpd file
    Replace the line
    daemon /usr/sbin/snmpd $OPTIONS

    with
    daemon /root/ucd_agent/sbin/snmpd $OPTIONS

    Replace the line
    killproc /usr/sbin/snmpd

    with
    killproc /root/ucd_agent/sbin/snmpd

    This is to choose the current installed version while starting and stopping the SNMP agent.
Start the agent using the command /etc/rc.d/init.d/snmpd start.
Top
Configuring the Agent in Linux versions 8 and above

On Linux versions 8 and above, the latest version of SNMP will already be available. You need to just make the following changes in snmpd.conf file:
Insert the line
view    allview      included   .1.3.6

next to the line
#       name           incl/excl    subtree         mask(optional)

Change the line
access  notConfigGroup ""      any       noauth   exact  systemview none none

next to the line
#       group          context sec.modelsec.level prefix read   write  notif

as
access  notConfigGroup ""      any       noauth   exact  allview none none

Then restart the snmp agent using the following command:
/etc/rc.d/init.d/snmpd restart

Top
Configuring the Agent in Solaris Systems

For details about installing SNMP agents in Solaris systems, refer to
Installing SNMP Agent on Solaris Systems
.
Stop the agent if it is running already using the following command:
/etc/init.d/init.snmpdx stop

Make the following changes in /etc/init.d/init.snmpdx file
    Replace the lines
    if [ -f /etc/snmp/conf/snmpdx.rsrc -a -x /usr/lib/snmp/snmpdx ]; then
    /usr/lib/snmp/snmpdx -y -c /etc/snmp/conf -d 3 -f 0
    fi

    with
    /sbin/snmpd

    Replace the line
    /usr/bin/pkill -9 -x -u 0 '(snmpdx|snmpv2d|mibiisa)'

    with
    /usr/bin/pkill -9 -x -u 0 '(snmpd)'

Restart the agent using the following command:
/etc/init.d/init.snmpdx start
.
Top
OpManager - Network Monitoring Software
Copyright © 2003-2005,
AdventNet
Inc. All Rights Reserved.

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/9924/showart_54703.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP