snmpv2-scalars
Get scalar OID values as a single record using SNMPv2c.
snmpv2-scalars community=COMMUNITY host=HOST oid=OID [timeout=NUM{m|s}] [retry=RETRY]
- community=COMMUNITY
- Community string (e.g., public)
- host=HOST
- Comma-separated host:port list (e.g., 192.168.1.1:161,10.0.0.5)
- oid=OID
- Comma-separated scalar OID list ending with .0 (e.g., 1.3.6.1.2.1.1.1.0,1.3.6.1.2.1.1.3.0)
- timeout=NUM{m|s}
- Timeout in seconds (default: 5)
- retry=RETRY
- Retry count (default: 2)
Output Fields
| Field | Type | Name | Description |
|---|---|---|---|
| host | String | Host | Target host |