博科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

posted @   liulj0713  阅读(12096)  评论(1编辑  收藏  举报
编辑推荐:
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 单元测试从入门到精通
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
点击右上角即可分享
微信分享提示