All MIBs › MSSQLSERVER-MIB › mssqlDbState
mssqlDbState
Module: MSSQLSERVER-MIB
OID (symbolic): MSSQLSERVER-MIB::mssqlDbState
OID (numeric): 1.3.6.1.4.1.311.1.4.1.1.5.1.3
Node type: OBJECT-TYPE
Type: INTEGER
Access: read-only
Description: The state of the database. Valid states are defined as follows: Active(1), Single User(2), DBO Only(3), Read Only(4), Offline(5), Suspect(6), Loading(7), and Publishing(8).
What is mssqlDbState?
This read-only OID reports a database's current state: active, singleUser, dboonly, readOnly, offline, suspect, loading, or publishing. A DBA treats 'suspect' as an urgent alert since it typically means the database failed recovery and needs investigation.
Examples
Walk all instances (SNMPv2c):
snmpwalk -v2c -c public <target> 1.3.6.1.4.1.311.1.4.1.1.5.1.3 snmpwalk -v2c -c public <target> MSSQLSERVER-MIB::mssqlDbState
Get a specific instance (index 1):
snmpget -v2c -c public <target> 1.3.6.1.4.1.311.1.4.1.1.5.1.3.1 snmpget -v2c -c public <target> MSSQLSERVER-MIB::mssqlDbState.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::mssqlDbState 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 OID | Name | Module |
|---|---|---|
| 1 | iso | LANART-AGENT |
| 1.3 | org | AirPair-MIB |
| 1.3.6 | dod | AirPair-MIB |
| 1.3.6.1 | internet | AirPair-MIB |
| 1.3.6.1.4 | private | AirPair-MIB |
| 1.3.6.1.4.1 | enterprises | AirPair-MIB |
| 1.3.6.1.4.1.311 | microsoft | InternetServer-MIB |
| 1.3.6.1.4.1.311.1 | software | InternetServer-MIB |
| Numeric OID | Name | Module |
|---|---|---|
| 1.3.6.1.4.1.311.1.4 | apps | MSSQLSERVER-MIB |
| 1.3.6.1.4.1.311.1.4.1 | mssqlServer | MSSQLSERVER-MIB |
| 1.3.6.1.4.1.311.1.4.1.1 | mssqlServerObjects | MSSQLSERVER-MIB |
| 1.3.6.1.4.1.311.1.4.1.1.5 | mssqlDbTable | MSSQLSERVER-MIB |
| 1.3.6.1.4.1.311.1.4.1.1.5.1 | mssqlDbEntry | MSSQLSERVER-MIB |
| 1.3.6.1.4.1.311.1.4.1.1.5.1.3 | mssqlDbState | MSSQLSERVER-MIB |