MSSQLSERVER-MIB :: mssqlSrvState

MIB Reference — IPNetwork Monitor · Updated September 14, 2026

All MIBsMSSQLSERVER-MIBmssqlSrvState

mssqlSrvState

Module: MSSQLSERVER-MIB

OID (symbolic): MSSQLSERVER-MIB::mssqlSrvState

OID (numeric): 1.3.6.1.4.1.311.1.4.1.1.1.1.5

Node type: OBJECT-TYPE

Type: INTEGER

Access: read-only

Description: The state of SQL Server. Unknown(1) means we are unable to determine the state of the server, Running(2) means the server is available and can be used, Paused(3) means the server is running, but new connections cannot currently be established, and Stopped(4) means the server is not running and unavailable.

What is mssqlSrvState?

This read-only OID reports the current lifecycle state of the SQL Server process, such as running, paused, stopped, starting, stopping, continuing, or pausing. A monitoring system alerts when this value isn't 'running' since that means client connections may fail or new ones can't be established.

Examples

Walk all instances (SNMPv2c):

snmpwalk -v2c -c public <target> 1.3.6.1.4.1.311.1.4.1.1.1.1.5
snmpwalk -v2c -c public <target> MSSQLSERVER-MIB::mssqlSrvState

Get a specific instance (index 1):

snmpget -v2c -c public <target> 1.3.6.1.4.1.311.1.4.1.1.1.1.5.1
snmpget -v2c -c public <target> MSSQLSERVER-MIB::mssqlSrvState.1

SNMPv3 example:

snmpget -v3 -l authPriv -u snmpv3-user -a SHA -A "AuthPassword1" -x AES -X "PrivPassword1" <target> mssqlSrvState.1

Start monitoring Windows servers running Microsoft SQL Server with a free 30-day trial of IPNetwork Monitor. Create custom SNMP monitor using the MSSQLSERVER-MIB::mssqlSrvState OID value, configure state conditions and alerts, and monitor any Windows servers running Microsoft SQL Server from a single console.

OID Breakdown

Upper-level ancestors (8 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
1.3.6.1.4.1.311microsoftInternetServer-MIB
1.3.6.1.4.1.311.1softwareInternetServer-MIB
Numeric OIDNameModule
1.3.6.1.4.1.311.1.4appsMSSQLSERVER-MIB
1.3.6.1.4.1.311.1.4.1mssqlServerMSSQLSERVER-MIB
1.3.6.1.4.1.311.1.4.1.1mssqlServerObjectsMSSQLSERVER-MIB
1.3.6.1.4.1.311.1.4.1.1.1mssqlSrvTableMSSQLSERVER-MIB
1.3.6.1.4.1.311.1.4.1.1.1.1mssqlSrvEntryMSSQLSERVER-MIB
1.3.6.1.4.1.311.1.4.1.1.1.1.5mssqlSrvStateMSSQLSERVER-MIB