用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/automateyournetwork/netclaw --skill snmptrap-receiver命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | snmptrap-receiver |
| description | Receive and query SNMP traps from network devices via UDP. |
| version | 1.0.0 |
| license | Apache-2.0 |
| author | netclaw |
| tags | [] |
Receive and query SNMP traps from network devices via UDP.
snmptrap-receiver
This skill enables NetClaw to receive SNMP traps from network devices (routers, switches, firewalls) and query the collected data. It supports SNMPv1, SNMPv2c, and SNMPv3 trap formats.
snmptrap-mcp
| Tool | Purpose |
|---|---|
snmptrap_start_receiver | Start listening for SNMP traps |
snmptrap_stop_receiver | Stop the receiver |
snmptrap_get_status | Check receiver status and statistics |
snmptrap_query | Search traps with filters |
snmptrap_get_trap | Get full details of a specific trap |
snmptrap_get_counts | Get trap counts by type and source |
1. Use snmptrap_start_receiver with port 10162
2. Configure network devices to send traps to this port
3. Use snmptrap_get_status to verify traps are being received
1. Use snmptrap_query with trap_oid_prefix "1.3.6.1.6.3.1.1.5" for standard traps
2. Filter by source_ip to focus on specific device
3. Use snmptrap_get_trap for full variable binding details
1. Use snmptrap_get_counts to see trap distribution
2. Focus on linkDown, authenticationFailure counts
3. Query high-frequency trap sources for details
The snmptrap-mcp server is configured via environment variables:
SNMPTRAP_PORT: UDP listening port (default: 162)SNMPTRAP_BIND_ADDRESS: Bind address (default: 0.0.0.0)SNMPTRAP_RETENTION_HOURS: Trap retention (default: 24)SNMPTRAP_RATE_LIMIT: Max traps/second (default: 1000)SNMPTRAP_DEDUP_WINDOW: Dedup window in seconds (default: 5)syslog-receiver - Syslog message collectionipfix-receiver - Flow data collectiongnmi-telemetry - Streaming telemetry