AGENT-STATS-MIB2 :: cmdTotal

MIB Reference — IPNetwork Monitor · Updated October 05, 2026

All MIBs › AGENT-STATS-MIB2 › cmdTotal

cmdTotal

Module: AGENT-STATS-MIB2

OID (symbolic): AGENT-STATS-MIB2::cmdTotal

OID (numeric): 1.3.6.1.4.1.42.2.12.2.2.30.2.1

Node type: OBJECT-TYPE

Type: Counter32

Access: read-only

Description: The number of commands that have been executed

What is cmdTotal?

This OID reports an integer counter representing the cumulative total number of SNMP commands executed since the agent process started. This metric is valuable for network operations to assess overall SNMP activity levels and command processing demand on the agent. A concrete example might be 45,823, indicating that 45,823 SNMP commands have been processed since startup.

Examples

Walk all instances (SNMPv2c):

snmpwalk -v2c -c public <target> 1.3.6.1.4.1.42.2.12.2.2.30.2.1
snmpwalk -v2c -c public <target> AGENT-STATS-MIB2::cmdTotal

Get a specific instance (index 1):

snmpget -v2c -c public <target> 1.3.6.1.4.1.42.2.12.2.2.30.2.1.1
snmpget -v2c -c public <target> AGENT-STATS-MIB2::cmdTotal.1

Start monitoring Unix/Solaris hosts running an SNMP agent with a free 30-day trial of IPNetwork Monitor. Create custom SNMP monitor using the AGENT-STATS-MIB2::cmdTotal OID value, configure state conditions and alerts, and monitor any Unix/Solaris hosts running an SNMP agent from a single console.

How to Use in IPNetwork Monitor

Select an Unix/Solaris hosts running an SNMP agent as the target host to create a monitor — the SNMP service should be up and running on it. Click New Monitor, then check SNMP Custom on the Favorites tab, click Next, and confirm the host. On the next page, click Select... to open the built-in SNMP MIB Browser and type cmdTotal into the Find box to locate it in the OID tree, then select it and click OK. The number of commands that have been executed. On the monitor's Main parameters page you can set the target's SNMP port (default 161), credentials, polling interval, and other settings — see the SNMP Monitor help for details. On the State conditions and Alerting tabs, configure when the monitor should change state and trigger an alert; since this is a Counter32-type OID, Value bounds is the most useful condition here — trigger an alert if the counter increases sharply between polls relative to its normal baseline, since an unexpected spike often reflects a real change in traffic or activity. Click Finish to create the monitor; you can adjust any parameter later.

OID Breakdown

Upper-level ancestors (6 from the standard OID tree / other modules)
Numeric OIDNameModule
1isoLANART-AGENT
1.3orgAirPair-MIB
1.3.6dodAirPair-MIB
1.3.6.1internetAirPair-MIB
1.3.6.1.4privateAirPair-MIB
1.3.6.1.4.1enterprisesAirPair-MIB
Numeric OIDNameModule
1.3.6.1.4.1.42sunAGENT-STATS-MIB2
1.3.6.1.4.1.42.2prodAGENT-STATS-MIB2
1.3.6.1.4.1.42.2.12sunsymonAGENT-STATS-MIB2
1.3.6.1.4.1.42.2.12.2agentAGENT-STATS-MIB2
1.3.6.1.4.1.42.2.12.2.2modulesAGENT-STATS-MIB2
1.3.6.1.4.1.42.2.12.2.2.30agentStatsAGENT-STATS-MIB2
1.3.6.1.4.1.42.2.12.2.2.30.2commandsAGENT-STATS-MIB2
1.3.6.1.4.1.42.2.12.2.2.30.2.1cmdTotalAGENT-STATS-MIB2