如何在各系统平台配置SNMP.docxVIP

  • 5
  • 0
  • 约 9页
  • 2017-08-11 发布于重庆
  • 举报
如何在各系统平台配置SNMP

在各系统平台配置SNMP Windows 2008 打开服务器管理,选择功能选项,单击添加功能。 勾选SNMP服务,单击“下一步”,自动安装 在“管理工具”- “服务“ ,双击SNMP Service,开始配置SNMP 在“安全“栏,选择添加社区 设置“社区名称” 和“团体权限” 添加主机 输入IP地址 配置完成,点击“确认”退出 红旗Linux 红旗linux系统,自带net-snmp,默认操作系统已安装net-snmp。 # rpm -qa|grep net-snmp //检查有无安装net-snmp net-snmp-libs-5.1.2-18.2 net-snmp-devel-5.1.2-18.2 net-snmp-perl-5.1.2-18.2 net-snmp-5.1.2-18.2 net-snmp-utils-5.1.2-18.2 编辑net-snmp配置文件 # vi /etc/snmp/snmpd.conf //添加以下绿色字体内容 … # First, map the community name public into a security name # source community # 设置允许某个IP,通过public 进行访问 com2sec mynetwork 48 public #### # Second, map the security name into a group name: # groupName securityModel securityName … 保存后,重启NET-SNMP服务 # Service snmpd stop //停止snmpd服务 #Service snmpd start //启动snmpd服务HP-UX HP-UX默认已安装SNMP。 编辑配置文件 #ls –l /etc/snmpd* //系统默认创建了配置文件的链接到/etc/目录下 Snmpd.conf -- /etc/SnmpAgent.d/snmpd.conf #vi /etc/snmpd.conf //修改绿色字体部分如下: get-community-name: public IP: 48 #set-community-name: # enter community name #contact: # enter contact person for agent #location: # enter location of agent #max-trap-dest: # enter max no. of trap-dest entries to be maintained. #trap-dest: # enter trap destination启动SNMP服务 #snmpd Start SNMP Master Network Management daemon SNMP Research SNMP Agent Resident Module Version Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997 SNMP Research, Inc. Start SNMP HP-UNIX Network Management subAgent Start SNMP MIB-2 Network Management subAgent Start SNMP Trap Dest Network Management subAgent Start SNMP PCI FDDI Network Management subAgent 四、AIX AIX5.3 默认已安装SNMP 编辑配置文件 # vi /etc/snmpd.conf //添加以下绿色字体部分 … community mynetwork 48 55 readwrite … 更改SNMP版本,系统默认版本为v3,需要更改为v1 # /usr/sbin/snmpv3_ssw -1 Stop daemon: snmpmibd In /etc/rc.tcpip file, comment out the line that contains: snmpmibd In /etc/rc.tcpip file, remove the comment from the line that contains: dpid2 Mak

文档评论(0)

1亿VIP精品文档

相关文档