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

    配置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

  • 相关阅读:
    自动化单元测试工具 EvoSuite 的简单使用
    Dialog lookup method
    微软Axapta中PDF支持中文
    Connected to Ax AOS by code
    Dialog control field event
    Find the tables extending a specific extended data type
    sqlplus不使用服务名,直接使用IP地址连接Oracle
    ATL编写的带窗口的控件,无论VC6(ATL3.0) VC7.1(ATL7.0) 在Windows 7 或 Server 2008 下,WinForm调用时发生的问题
    Ice的slice文件自定义编译命令
    VC9 SP1中新增加的标准 C++ 库中的新功能
  • 原文地址:https://www.cnblogs.com/liulj0713/p/9895290.html
Copyright © 2011-2022 走看看