SNMPDELTA(1)
π SNMPDELTA(1) π
okay bestie, welcome to snmpdelta from the Net-SNMP crew β it's the manual page, but make it cute. let's get into it π¦
β¨ NAME β¨
snmpdelta β watch the delta differences in SNMP counter values π (aka: the little changes over time, she's tracking them)
πΈ SYNOPSIS πΈ
snmpdelta [ COMMON OPTIONS ] [-Cf] [ -Ct ] [ -Cs ] [ -CS ] [ -Cm ] [ -CF
configfile ] [ -Cl ] [ -Cp period ] [ -CP Peaks ] [ -Ck ] [ -CT ] AGENT
OID [ OID ... ]
π DESCRIPTION π
So snmpdelta will monitor the integer valued OIDs you tell it about, and then report the changes over time. that's the whole vibe. she watches, she reports, she serves π
AGENT identifies a target SNMP agent, which is instrumented to monitor the given objects. at its simplest, the AGENT spec is just a hostname or an IPv4 address. in that case, the command will try to talk to the agent using UDP/IPv4 to port 161 of the given target host. for the full list of possible formats for AGENT, go read snmpcmd(1) β she has the receipts.
OID is an object identifier which uniquely identifies the object type within a MIB. and yes, you can put multiple OIDs on a single snmpdelta command. the more the merrier fr fr π
β¨ OPTIONS β¨
π«Ά COMMON OPTIONS
please go see snmpcmd(1) for the list of possible values for COMMON OPTIONS and their descriptions. not me outsourcing the lore, but that's where it lives π
-Cfβ don't fix errors and don't retry the request. without this option, if multiple oids were specified for a single request and the request for one or more of those oids fails,snmpdeltawill retry the request so that data for the oids apart from the ones that failed still comes back. specifying-Cftellssnmpdeltanot to retry a request, even when there are multiple oids specified. she said no take-backs π-Ctβ this flag determines the time interval from the monitored entity.-Csβ this flag displays a timestamp. clocking in, as she should π-CSβ generates a "sum count" in addition to the individual instance counts. the "sum count" is the total of all the individual deltas for each time period. math girlies rise π₯-Cmβ prints the max value ever attained. peak performance, literally π-CF configfileβ tellssnmpdeltato read its configuration from the specified file. this option lets the input be set up in advance instead of having to be typed out on the command line. prep ahead, main character energy π-Clβ tellssnmpdeltato write its configuration to files whose names correspond to the MIB instances monitored. for example,snmpdelta -Cl localhost ifInOctets.1will create a file"localhost-ifInOctets.1". journaling era π-Cpβ specifies the number of seconds between polling periods. polling = sending a request to the agent. the default polling period is one second.-CP peaksβ specifies the reporting period in number of polling periods. if this option is specified,snmpdeltapolls the agent peaks number of times before reporting the results. the result reported includes the average value over the reporting period. on top of that, the highest polled value within the reporting period is shown. average AND the overachiever, we love to see it β¨-Ckβ when the polling period (-Cp) is an increment of 60 seconds and the timestamp is displayed in the output (-Cs), then the default display shows the timestamp in the formathh:mm mm/dd. this option causes the timestamp format to behh:mm:ss mm/dd. glow-up for your timestamps π¦-CTβ makessnmpdeltaprint its output in tabular form. organized queen π-Cv vars/pktβ specifies the maximum number of oids allowed to be packaged in a single PDU. multiple PDUs can be created in a single request. the default value of variables per packet is 60. this option is useful if a request response results in an error because the packet is too big. little packets, big feelings π
β οΈ note thatsnmpdeltaREQUIRES an argument specifying the agent to query and at least one OID argument, as described in thesnmpcmd(1)manual page. non-negotiable bestie, she needs both π€
π EXAMPLES π
first one, timestamped and living her best life:
$ snmpdelta -c public -v 1 -Cs localhost IF-MIB::ifInUcastPkts.3 IF-MIB::ifOutUcastPkts.3
[20:15:43 6/14] ifInUcastPkts.3 /1 sec: 158
[20:15:43 6/14] ifOutUcastPkts.3 /1 sec: 158
[20:15:44 6/14] ifInUcastPkts.3 /1 sec: 184
[20:15:44 6/14] ifOutUcastPkts.3 /1 sec: 184
[20:15:45 6/14] ifInUcastPkts.3 /1 sec: 184
[20:15:45 6/14] ifOutUcastPkts.3 /1 sec: 184
[20:15:46 6/14] ifInUcastPkts.3 /1 sec: 158
[20:15:46 6/14] ifOutUcastPkts.3 /1 sec: 158
[20:15:47 6/14] ifInUcastPkts.3 /1 sec: 184
[20:15:47 6/14] ifOutUcastPkts.3 /1 sec: 184
[20:15:48 6/14] ifInUcastPkts.3 /1 sec: 184
[20:15:48 6/14] ifOutUcastPkts.3 /1 sec: 184
[20:15:49 6/14] ifInUcastPkts.3 /1 sec: 158
[20:15:49 6/14] ifOutUcastPkts.3 /1 sec: 158
^C
and now the tabular version, -CT said let's make it a table:
$ snmpdelta -c public -v 1 -Cs -CT localhost IF-MIB:ifInUcastPkts.3 IF-MIB:ifOutcastPkts.3
localhost ifInUcastPkts.3 ifOutUcastPkts.3
[20:15:59 6/14] 184.00 184.00
[20:16:00 6/14] 158.00 158.00
[20:16:01 6/14] 184.00 184.00
[20:16:02 6/14] 184.00 184.00
[20:16:03 6/14] 158.00 158.00
[20:16:04 6/14] 184.00 184.00
[20:16:05 6/14] 184.00 184.00
[20:16:06 6/14] 158.00 158.00
^C
the following example uses a number of options. since the Cl option is specified, the output is sent to a file and not to the screen π
$ snmpdelta -c public -v 1 -Ct -Cs -CS -Cm -Cl -Cp 60 -CP 60
interlink.sw.net.cmu.edu .1.3.6.1.2.1.2.2.1.16.3 .1.3.6.1.2.1.2.2.1.16.4
π SEE ALSO π
and that's the page, bestie!! go monitor some counters, you absolute icon π
this was V5.9.5.2, dated 25 Jul 2003 β old but iconic, and still serving. periodt. πβ¨
π¦ where this page comes from
- alpine 3.23: net-snmp-doc 5.9.5.2-r0 Β· Net-SNMP
- alpine 3.24: net-snmp-doc 5.9.5.2-r0 Β· Net-SNMP
- arch rolling: net-snmp 5.9.5.2-2 Β· BSD
- fedora 44: net-snmp-utils 1:5.9.5.2-4.fc44 Β· MIT-CMU AND BSD-3-Clause AND MIT
- nixos 26.05: net-snmp 5.9.5.2
- nixpkgs unstable: net-snmp 5.9.5.2
- ubuntu stonking: snmp 5.9.5.2+dfsg-2.1ubuntu5
- Copyright 2003 Sun Microsystems, Inc. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms