{"schemaVersion":1,"resourceType":"connector","slug":"snmp","name":"SNMP","catalog":"snmp","description":"Query SNMP v1/v2c/v3 devices from SQL: GET, WALK and MIB tables as typed rows","language":"Python","categories":["devtools"],"repository":"https://github.com/Query-farm/vgi-snmp","license":"0BSD","generatedAt":"2026-12-01T18:22:16+00:00","runtime":{"engineVersion":"2.0.1","protocolVersion":"3.4"},"release":{"tag":"v0.2.0","publishedAt":"2026-11-25T18:09:57Z","url":"https://github.com/Query-farm/vgi-snmp/releases/tag/v0.2.0"},"links":{"html":"https://query.farm/products/orchard/connectors/snmp/","llms":"https://query.farm/products/orchard/connectors/snmp/llms.txt","markdown":"https://query.farm/products/orchard/connectors/snmp/index.md","json":"https://query.farm/products/orchard/api/v1/connectors/snmp.json","objects":"https://query.farm/products/orchard/api/v1/connectors/snmp/objects.json","search":"https://query.farm/products/orchard/api/v1/search.json?kind=object&connector=snmp&q={query}"},"authentication":{"mode":"required","guidance":"Supply your own service credentials or required connection options before querying protected data.","interpretation":"Secret parameter required flags describe the upstream declaration; they do not override the service-level mode above. Keep secrets in environment variables or the deployment secret store. SQL values in angle brackets are placeholders, not automatic environment lookups. Native DuckDB and Haybarn 2.0.1 do not provide a SQL getenv() function, even when worker-supplied snippets mention it. Read environment variables in your application and pass credential values through client parameter bindings (for example, Python con.execute(\"CREATE SECRET stripe (TYPE stripe, api_key ?)\", [os.environ[\"STRIPE_API_KEY\"]]) after attaching the connector. Omit unused optional parameters and keep real values out of saved SQL and logs.","secrets":[{"type":"snmp","description":"SNMP credentials: a v1/v2c community or SNMPv3 USM user. SCOPE is matched as a 'snmp://<host>' (every port on a host), 'snmp://<host>:<port>' (one agent) or 'snmp://' (all agents).","documentation":"https://github.com/Query-farm/vgi-snmp#credentials","parameters":[{"name":"community","type":"VARCHAR","required":false,"redact":true,"description":"SNMPv1/v2c community string."},{"name":"user","type":"VARCHAR","required":false,"redact":false,"description":"SNMPv3 USM user (security name)."},{"name":"auth_protocol","type":"VARCHAR","required":false,"redact":false,"description":"SNMPv3 auth protocol: none, md5, sha, sha224, sha256, sha384 or sha512."},{"name":"auth_key","type":"VARCHAR","required":false,"redact":true,"description":"SNMPv3 authentication passphrase."},{"name":"priv_protocol","type":"VARCHAR","required":false,"redact":false,"description":"SNMPv3 privacy protocol: none, des, 3des, aes (aes128), aes192 or aes256."},{"name":"priv_key","type":"VARCHAR","required":false,"redact":true,"description":"SNMPv3 privacy (encryption) passphrase."}],"requiredBy":[],"createSql":"CREATE SECRET snmp (\n    TYPE snmp,\n    community     '<SNMP_COMMUNITY>',  -- secret\n    user          '<user>',\n    auth_protocol '<auth_protocol>',\n    auth_key      '<AUTH_KEY>',  -- secret\n    priv_protocol '<priv_protocol>',\n    priv_key      '<PRIV_KEY>'  -- secret\n);"}]},"deployment":{"local":{"methods":[{"id":"uvx","label":"uvx","icon":"simple-icons:python","steps":[{"title":"Attach with uvx","description":"Needs uv. uvx builds the worker from its release tag on first attach and reuses the cached environment after that.","lang":"sql","code":"ATTACH 'snmp' AS snmp (\n  TYPE vgi,\n  LOCATION 'uvx --from git+https://github.com/Query-farm/vgi-snmp@v0.2.0 vgi-snmp-worker'\n);"}]},{"id":"docker","label":"Docker","icon":"simple-icons:docker","steps":[{"title":"Attach the signed image","description":"Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.","lang":"sql","code":"ATTACH 'snmp' AS snmp (\n  TYPE vgi,\n  LOCATION 'oci://ghcr.io/query-farm/vgi-snmp:0.2.0'\n);"}]}],"pinnedMethods":[{"id":"uvx","label":"uvx","icon":"simple-icons:python","steps":[{"title":"Attach with uvx","description":"Needs uv. uvx builds the worker from its release tag on first attach and reuses the cached environment after that.","lang":"sql","code":"ATTACH 'snmp' AS snmp (\n  TYPE vgi,\n  LOCATION 'uvx --from git+https://github.com/Query-farm/vgi-snmp@v0.2.0 vgi-snmp-worker'\n);"}]},{"id":"docker","label":"Docker","icon":"simple-icons:docker","steps":[{"title":"Attach the signed image","description":"Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.","lang":"sql","code":"ATTACH 'snmp' AS snmp (\n  TYPE vgi,\n  LOCATION 'oci://ghcr.io/query-farm/vgi-snmp:0.2.0'\n);"}]}]},"selfHost":{"instructions":"https://github.com/Query-farm/vgi-snmp","connectionGuide":"https://query.farm/vgi/connect-to-a-worker/","guidance":"Deploy using the connector repository instructions and use its supported HTTP or SSH transport. Replace example URLs with your actual deployment; configure its authentication."},"queryFarm":{"available":false,"console":null,"organizationMonthlyMinimumUsd":null,"pricing":"https://query.farm/products/orchard/hosted/"},"publicDemo":null},"setup":{"extensions":{"duckdb":"SET allow_extension_repositories = 'allowed';\n\nCREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm\n    WITH PREFIX 'https://duckdb-extensions.query.farm';\n\nINSTALL vgi FROM query_farm;\nLOAD vgi FROM query_farm;","haybarn":"INSTALL vgi FROM community;\nLOAD vgi;"},"attachSql":"ATTACH 'snmp' AS snmp (\n  TYPE vgi,\n  LOCATION 'uvx --from git+https://github.com/Query-farm/vgi-snmp@v0.2.0 vgi-snmp-worker'\n);","attachOptions":[],"note":"Install and load VGI, attach the connector using the catalog alias shown here, then create required secrets. Replace placeholders and omit unused optional secret parameters. Satisfy file, network and credential prerequisites before executing a query."},"example":{"title":"Read a network device’s name and location","sql":"SELECT object, value FROM snmp.main.snmp_get('192.0.2.10', 'sysName.0', 'sysDescr.0', 'sysLocation.0') ORDER BY object","requiresCredentials":true,"note":"Replace the documentation address with the address of a device you manage.","objects":[{"name":"snmp.main.snmp_get","kind":"table_function","links":{"html":"https://query.farm/products/orchard/connectors/snmp/#obj-main-snmp_get","markdown":"https://query.farm/products/orchard/connectors/snmp/objects/table_function.bWFpbg.c25tcF9nZXQ.md","json":"https://query.farm/products/orchard/api/v1/connectors/snmp/objects/table_function.bWFpbg.c25tcF9nZXQ.json"}}],"evidence":{"status":"not_captured","note":"No executed result is recorded for this exact example. Catalog verification does not establish that this query ran."},"artifact":null},"objects":{"total":6,"index":"https://query.farm/products/orchard/api/v1/connectors/snmp/objects.json","search":"https://query.farm/products/orchard/api/v1/search.json?kind=object&connector=snmp&q={query}"},"agentTasks":["Using the snmp worker, what is the numeric OID of IF-MIB's ifHCInOctets column?","Which MIB object and instance does the OID 1.3.6.1.2.1.1.3.0 refer to?","How many columns does the IF-MIB ifTable define, according to the snmp worker's MIBs?","List the names of the IF-MIB columns whose syntax is Counter64, in OID order.","When the snmp worker reads IF-MIB's ifXTable from a device, what DuckDB type does the ifHCInOctets column have? Answer without contacting a device.","Which column of the snmp worker's single-instance GET results holds a counter's exact integer value, and what is its DuckDB type? Answer without contacting a device.","I need to poll interface ifIndex 7 with a tool that only takes numeric OIDs. Using the snmp worker's MIBs, list every IF-MIB column whose syntax is Counter64 together with the numeric OID of its instance for ifIndex 7. Return two columns: name and oid, in OID order.","How many columns does the snmp worker's subtree walk return? Answer without contacting a device."],"provenance":{"generatedAt":"2026-12-01T18:22:16+00:00","repository":"https://github.com/Query-farm/vgi-snmp","harvest":{"status":"ok","method":"subprocess","error":null,"vgi_version":"9773130dde"},"catalogVerification":{"verified":true,"status":"passed","total":6,"passed":6,"failed":0,"needs_credentials":0,"location":"uvx --from git+https://github.com/Query-farm/vgi-snmp@v0.2.0 vgi-snmp-worker","transport":"subprocess","environment":{"vgi_extension_version":"9773130dde","haybarn_version":"2.0.1rc3","engine_version":"v2.0.1","python":"3.12.4","platform":"darwin_arm64","protocol_version":"3.4.0"},"checked_at":"2026-12-01T06:18:15+00:00"},"interpretation":"Catalog verification records the harvest environment. It is not proof that every query or current live API call succeeds. Only an example with captured_result has a saved result for that exact SQL."},"interpretation":["Missing, null, or undeclared metadata means unknown; do not invent defaults, credential scope, platform support or endpoint URLs.","Search is keyword retrieval, not proof of a capability. Read the exact object declaration before generating SQL.","A table and a table function can have the same name. Preserve parentheses and use the matching overload and schema.","Service credentials, external data availability and deployment authentication are separate requirements."]}