zoukankan      html  css  js  c++  java
  • 港湾交换机-交换机配置

    1.1     配置TELNET SNMP

    启动SNMP服务的配置步骤如下:

    配置步骤

    步骤1 service snmp enable 使能SNMP agent服务

    步骤2 service snmp trap enable 使能SNMP trap服务

    步骤3 config snmp community readonly <string> 设置SNMP只读权限认证密码

    步骤4 config snmp community readwrite <string> 设置SNMP读写权限认证密码

    步骤5 config snmpauthentrap [enable|disable] 使用enable设置当SNMP认证失败时发送trap

    步骤6 show service 显示SNMP是否启动

    步骤7 show snmp community-string 显示当前的权限认证密码

    1.2    配置SNMP trap

    交换机上的SNMP agent会产生很多种类的trap信息,如启动(start)、接口(interface)、RMON(远程监控)等。可以在交换机上配置SNMP trap来指定一台或多台trap接收站(trap receiver),并指定哪些种类的trap信息会发送到这些接收站。

    配置步骤

    步骤1 service snmp enable 使能SNMP agent服务

    步骤2 service snmp trap enable 使能SNMP trap服务

    步骤3 config snmp trap type [all|interface|bgp|ospf|vrrp|stp|rmon|start|auth|pppoe|isis] [on|off] 配置发送trap的类型

    步骤4 config snmp trapreceiver add <A.B.C.D> version [v1|v2c] {community <string>}*1 添加一个trap接收站

    步骤5 config snmp trapreceiver add <A.B.C.D> version [v1|v2c] {community <string>}*1 添加另一个trap接收站

    步骤6 show snmp trap type 显示系统允许发送的trap种类

    步骤7 Show snmp trapreceiver 显示已经添加的所有trap接收站

  • 相关阅读:
    干将莫邪
    Rancher
    Rancher 1.6 版本 只能在 linux 下用
    野蛮人大作战
    Oracle
    Gradle
    正则表达式 我遇到的
    Redis
    NestJS 用TypeScript开发 nodeJS后端
    Koa2
  • 原文地址:https://www.cnblogs.com/dyh004/p/9253116.html
Copyright © 2011-2022 走看看