chambear2809/splunk-cisco-skills/splunk-connect-for-snmp-setup

Claude Code and agent skill by chambear2809/splunk-cisco-skills

Trust tier 1
  • community
  • ext:[{"type":"config","description":"Configuration overrides"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

"Use when the user asks about SC4SNMP, Splunk Connect for SNMP, SNMP polling, or SNMP trap ingestion

Install

npx vskill@latest install chambear2809/splunk-cisco-skills/splunk-connect-for-snmp-setup

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as chambear2809/splunk-cisco-skills/splunk-connect-for-snmp-setup.

Splunk Connect for SNMP Setup

Prerequisites

Tool or accessPurposeVerify
Bash and Python 3Run bundled setup and validation helpersbash --version && python3 --version
Required product/platform accessInspect or configure the selected targetComplete the documented preflight
Credential files for live modesKeep secrets out of chatVerify paths only

Workflow Overview

text
┌───────────┐ ┌───────────────┐ ┌───────────────┐ ┌─────────────────┐
│ Preflight │ → │ Render/review │ → │ Apply/handoff │ → │ Validate evidence │
└───────────┘ └───────────────┘ └───────────────┘ └─────────────────┘

When to Activate

  • SC4SNMP, Splunk Connect for SNMP, SNMP polling, or SNMP trap ingestion through HEC.
  • Preview and review the splunk connect for snmp setup workflow before any live apply phase.
  • Diagnose failed prerequisites, generated assets, configuration, or validation evidence.

Scope

Follow the documented read-only or render-first path whenever it is available. This skill does not imply permission to mutate live systems. Require explicit apply flags, protected credentials, and operator review for state changes.

Examples

Inspect the supported setup modes before selecting one:

bash
bash skills/splunk-connect-for-snmp-setup/scripts/setup.sh --help

Expected output: usage, supported modes, and required arguments are displayed without changing the target environment.

Inspect validation modes before running completion checks:

bash
bash skills/splunk-connect-for-snmp-setup/scripts/validate.sh --help

Expected output: offline, live, and completion options are displayed when the skill supports them; help exits without mutation.

Troubleshooting

IssueCauseResolution
Preflight failsA required tool or access path is missingResolve it before rendering or applying
Rendered assets are incompleteRequired non-secret inputs are absentComplete intake and render again
Apply is blockedReview, credentials, or explicit acceptance is missingUse the documented handoff
Validation is incompleteLive evidence is unavailableRecord the gap and keep completion open

Automates the operator workflow for Splunk Connect for SNMP (SC4SNMP), an external collector that polls SNMP devices and listens for traps before sending events and metrics to Splunk over HEC.

How SC4SNMP Fits This Repo

SC4SNMP is not a Splunkbase app install. The skill handles two separate areas:

  1. Splunk-side preparation: create the default SC4SNMP indexes, verify or

create a HEC token, and validate the Cloud vs Enterprise HEC target.

  1. Runtime deployment: render deployment assets for customer-managed

SC4SNMP infrastructure:

  • Docker Compose for a simple host-managed deployment
  • Kubernetes with Helm for the supported clustered deployment model

Agent Behavior — Credentials

The agent must NEVER ask for HEC tokens, SNMPv3 credentials, or other secrets in chat.

  • Splunk credentials come from the project-root credentials file or

~/.splunk/credentials.

  • Use skills/splunk-connect-for-snmp-setup/template.example as the non-secret

intake worksheet.

  • Keep HEC tokens and SNMPv3 secrets in local-only files. For example:
bash
bash skills/shared/scripts/write_secret_file.sh /tmp/sc4snmp_hec_token
  • For Docker Compose, keep SNMPv3 secrets in a local-only secrets.json file.
  • For Kubernetes, prefer a token-free values.yaml plus a local-only

values.secret.yaml and operator-managed Kubernetes secrets for SNMPv3 credentials.

  • The default render path is the gitignored repo-local directory

./sc4snmp-rendered/. When a real HEC token is being rendered, the setup script blocks custom output directories inside the repo and asks you to use the default gitignored path or a directory outside the repo.

If credentials are not configured yet:

bash
bash skills/shared/scripts/setup_credentials.sh

Environment

ItemValue
Search-tier APISPLUNK_SEARCH_API_URI env var (legacy alias: SPLUNK_URI)
Cloud stackSPLUNK_CLOUD_STACK for Splunk Cloud
Runtime imageghcr.io/splunk/splunk-connect-for-snmp/container:latest
CredentialsProject-root credentials file (falls back to ~/.splunk/credentials)
Skill scriptsskills/splunk-connect-for-snmp-setup/scripts/
Templatesskills/splunk-connect-for-snmp-setup/templates/

Setup Workflow

Step 1: Collect Non-Secret Deployment Inputs

Copy the worksheet locally:

bash
cp skills/splunk-connect-for-snmp-setup/template.example template.local

Capture items such as:

  • Splunk platform: Cloud or Enterprise
  • deployment model: Docker Compose or Kubernetes
  • HEC URL and HEC token name
  • trap listener IP, trap port, and DNS server
  • poller inventory source
  • scheduler profiles/groups source
  • trap communities source
  • optional image, replica, and secret-file paths
Step 2: Prepare Splunk

Create the SC4SNMP indexes and verify or create a HEC token:

bash
bash skills/splunk-connect-for-snmp-setup/scripts/setup.sh --splunk-prep

Useful partial runs:

bash
bash skills/splunk-connect-for-snmp-setup/scripts/setup.sh --splunk-prep --indexes-only
bash
bash skills/splunk-connect-for-snmp-setup/scripts/setup.sh --splunk-prep --hec-only

If you want the script to write the created token value to a local-only file when Splunk REST returns it:

bash
bash skills/splunk-connect-for-snmp-setup/scripts/setup.sh \
--splunk-prep \
--write-hec-token-file /tmp/sc4snmp_hec_token

If Splunk cannot return that requested token value, preparation exits nonzero and emits a rotate/create handoff; it does not report a usable token file. Visible Selected Indexes restrictions must include every SC4SNMP event and metrics index; otherwise preparation and validation fail with a token handoff.

Step 3: Render Docker Compose Assets
bash
bash skills/splunk-connect-for-snmp-setup/scripts/setup.sh \
--render-compose \
--output-dir ./sc4snmp-rendered \
--hec-token-file /tmp/sc4snmp_hec_token

Optional custom config files:

bash
bash skills/splunk-connect-for-snmp-setup/scripts/setup.sh \
--render-compose \
--output-dir ./sc4snmp-rendered \
--hec-token-file /tmp/sc4snmp_hec_token \
--inventory-file /path/to/inventory.csv \
--scheduler-file /path/to/scheduler-config.yaml \
--traps-file /path/to/traps-config.yaml
Step 4: Render Kubernetes Assets
bash
bash skills/splunk-connect-for-snmp-setup/scripts/setup.sh \
--render-k8s \
--output-dir ./sc4snmp-rendered \
--namespace sc4snmp \
--release-name sc4snmp \
--poller-replicas 2 \
--trap-replicas 2 \
--hec-token-file /tmp/sc4snmp_hec_token

Optional trap service IP and DNS override:

bash
bash skills/splunk-connect-for-snmp-setup/scripts/setup.sh \
--render-k8s \
--output-dir ./sc4snmp-rendered \
--hec-token-file /tmp/sc4snmp_hec_token \
--trap-listener-ip 10.10.10.50 \
--dns-server 10.10.10.53
Step 5: Optionally Apply Rendered Assets

Live Compose or Kubernetes apply requires a nonempty, owner-only --hec-token-file (no group/other permission bits). A single combined run may instead use --splunk-prep --write-hec-token-file PATH; apply is blocked if preparation does not produce a nonempty token file.

Compose:

bash
bash skills/splunk-connect-for-snmp-setup/scripts/setup.sh \
--render-compose \
--output-dir ./sc4snmp-rendered \
--hec-token-file /tmp/sc4snmp_hec_token \
--apply-compose

Helm:

bash
bash skills/splunk-connect-for-snmp-setup/scripts/setup.sh \
--render-k8s \
--output-dir ./sc4snmp-rendered \
--hec-token-file /tmp/sc4snmp_hec_token \
--apply-k8s
Step 6: Validate
bash
bash skills/splunk-connect-for-snmp-setup/scripts/validate.sh

Runtime-specific checks:

bash
bash skills/splunk-connect-for-snmp-setup/scripts/validate.sh --check-compose
bash
bash skills/splunk-connect-for-snmp-setup/scripts/validate.sh --check-k8s

Key Learnings / Known Issues

  1. The default indexes are split by signal type: em_logs and netops are

event indexes, while em_metrics and netmetrics must be metrics indexes.

  1. SC4SNMP is hybrid in Splunk Cloud: prepare indexes and HEC in Splunk

Cloud, but run SC4SNMP on infrastructure you control.

  1. Trap listener IP planning matters: HA or MetalLB-style Kubernetes

deployments need an explicit shared IP.

  1. DNS matters for HEC reachability: the collector environment needs a DNS

server that can resolve the Splunk HEC endpoint.

  1. SNMPv3 secrets stay local-only: do not commit secrets.json,

values.secret.yaml, or token files to git.

  1. Re-run apply workflows for upgrades: compose apply now pulls images

before up -d, and Kubernetes apply continues to use helm upgrade --install.

Additional Resources

  • reference.md — indexes, deployment notes, and configuration

guardrails

notes

template notes

MCP Tools

This skill includes checked-in, read-only Splunk MCP custom tools generated from mcp_tools.source.yaml.

Validate or regenerate the tool artifact:

bash
python3 skills/shared/scripts/mcp_tools.py validate skills/splunk-connect-for-snmp-setup
python3 skills/shared/scripts/mcp_tools.py generate skills/splunk-connect-for-snmp-setup

Load the tools into Splunk MCP Server:

bash
bash skills/splunk-connect-for-snmp-setup/scripts/load_mcp_tools.sh

The loader uses the supported /mcp_tools REST batch endpoint by default. Use --allow-legacy-kv only for older MCP Server app versions that lack that endpoint.

Security

  • Security scanPassed, 81 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
29
Repository forks
7
7-day trend score
17

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 5 Jul 2026, 4 months ago.

Extension points

  • configConfiguration overrides

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/chambear2809/splunk-cisco-skills/splunk-connect-for-snmp-setup/badge)](https://verified-skill.com/skills/chambear2809/splunk-cisco-skills/splunk-connect-for-snmp-setup)

Something wrong with this skill or its page? Tell us.