zoukankan      html  css  js  c++  java
  • Boke光纤交换机的snmp配置

    今天我配置了一下Boke光纤交换机e-300的snmp trap的配置

     敲击help命令你会发现配置snmp的命令共有四个

    snmpconfig                      Configure SNMP
    snmpmibcapset              Set options for configuring SNMP Mib/Trap Capability
    snmpmibcapshow          Show SNMP Mib/Trap Configuration
    snmptraps                        Configure SNMP traps

    我这里只需要配置trap事件,故只需要使用一个命令就是snmpconfig这个命令,这个命令的格式如下

    Usage: snmpConfig  [--show | --set | --default] [snmpv1 | snmpv3 | accessControl | mibCapability | systemGroup | secLevel]

    我这里设置snmpv1版

    =============================

    swd77:admin> snmpconfig --set snmpv1

    SNMP community and trap recipient configuration:
    Community (rw): [Secret C0de] public
    Trap Recipient's IP address : [0.0.0.0] 10.0.1.83
    Trap recipient Severity level : (0..5) [0] 0
    Trap recipient Port : (0..65535) [162] 
    Community (rw): [OrigEquipMfr] public
    Trap Recipient's IP address : [0.0.0.0] 10.0.1.83
    Trap recipient Severity level : (0..5) [0]  
    Trap recipient Port : (0..65535) [162] 
    Community (rw): [private] public
    Trap Recipient's IP address : [0.0.0.0] 10.0.1.83
    Trap recipient Severity level : (0..5) [0] 
    Trap recipient Port : (0..65535) [162] 
    Community (ro): [public] public
    Trap Recipient's IP address : [0.0.0.0] 10.0.1.83
    Trap recipient Severity level : (0..5) [0] 
    Trap recipient Port : (0..65535) [162] 
    Community (ro): [common] public
    Trap Recipient's IP address : [0.0.0.0] 10.0.1.83
    Trap recipient Severity level : (0..5) [0] 
    Trap recipient Port : (0..65535) [162] 
    Community (ro): [FibreChannel] public
    Trap Recipient's IP address : [0.0.0.0] 10.0.1.83
    Trap recipient Severity level : (0..5) [0] 
    Trap recipient Port : (0..65535) [162] 
    Committing configuration.....done.
    ===========================

    这里已经显示配置完成!

    再使用发送命令进行测试

    ===========================

    swd77:admin> snmptraps --send -ip_address 10.0.1.83
    Number of traps sent : 21

    ======================

    发送完成,如果不配置直接使用以上命令,那就会出现以下错误

    ==========================

    swd77:admin> snmpTraps --send  -ip_address 10.0.1.83
    Trap receiver ip address not configured: 10.0.1.83

  • 相关阅读:
    webpack 3 零基础入门教程 #3
    webpack 3 零基础入门教程 #2
    webpack 3 零基础入门教程 #1
    webpack 3 零基础入门教程 #4
    'System.Array' does not contain a definition for 'ToArray' and no extension method 'ToArray' accepting a first argument of type 'System.Array' could be found (are you missing a using directive or an a
    Excel将两列依次合并为一列
    Unity3D射线的方向
    关于非奇异矩阵
    Unity3D获取游戏屏幕大小
    JS中的路径问题
  • 原文地址:https://www.cnblogs.com/oskb/p/6513247.html
Copyright © 2011-2022 走看看