SNMPBULKGET(1)

πŸ’– NAME πŸ’–

snmpbulkget β€” the lil bestie that talks to a network entity using SNMP GETBULK requests. no cap.


✨ SYNOPSIS ✨

snmpbulkget [COMMON OPTIONS] [-Cn <num>] [-Cr <NUM>] AGENT OID [OID]...

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so snmpbulkget is an SNMP application that uses the SNMP GETBULK request to query a network entity efficiently for information. like, it's the same energy as a regular get but it's grabbing a whole handful at once instead of one lil guy at a time. main character efficiency fr fr. πŸ”₯

One or more object identifiers (OIDs) may be given as arguments on the command line. Each variable name is given in the format specified in variables(5). so you literally just line them up like a little queue. πŸ‘‘

If the network entity has an error processing the request packet, an error packet will be returned and a message will be shown, helping to pinpoint why the request was malformed. so it's not gonna ghost you β€” it tells you what went wrong. 🫢


πŸ’… OPTIONS πŸ’…

  • -Cn<NUM> β€” sets the non-repeaters field in the GETBULK PDU. this specifies the number of supplied variables that should not be iterated over. the default is 0. (i.e. these ones get asked once and then they're done, no looping. bye. πŸ™ˆ)
  • -Cr<NUM> β€” sets the max-repetitions field in the GETBULK PDU. this specifies the maximum number of iterations over the repeating variables. the default is 10. (so it's like, how many times do we go around the loop, bestie. πŸŽ€)

In addition to these options, snmpbulkget takes the common options described in the snmpcmd(1) manual page.

⚠️ heads up bestie ⚠️ Note that snmpbulkget REQUIRES an argument specifying the agent to query and at least one OID argument, as described there. like you cannot skip these. it will simply not slay. πŸ’€

🌸 EXAMPLE 🌸

The command:

snmpbulkget -v2c -Cn1 -Cr5 -Os -c public zeus system ifTable

will retrieve the variable system.sysDescr.0 (which is the lexicographically next object to system) and the first 5 objects in the ifTable:

sysDescr.0 = STRING: "SunOS zeus.net.cmu.edu 4.1.3_U1 1 sun4m"
ifIndex.1 = INTEGER: 1
ifIndex.2 = INTEGER: 2
ifDescr.1 = STRING: "lo0"
et cetera.

ate that. no crumbs. 🌈


⭐ NOTE ⭐

As the name implies, snmpbulkget utilizes the SNMP GETBULK message, which is not available in SNMPv1.

so if you're on SNMPv1, this one's simply not for you, sorry babe. πŸ’”

🧚 SEE ALSO 🧚

snmpcmd(1), variables(5), RFC 1905.


okay that's the whole vibe ✨ this page is from Net-SNMP, version V5.9.5.2, dated 01 May 2002 β€” yeah she's an elder icon and she still eats every time πŸ’œ πŸŽ€

πŸ“¦ where this page comes from