ntsystemContextSwitchesPerSec
WINDOWS-NT-PERFORMANCE ·
.1.3.6.1.4.1.311.1.1.3.1.1.33.7
Object
Context Switches/sec is the rate of switches from one thread to another. Thread switches can occur either inside of a single process or across processes. A thread switch may be caused either by one thread asking another for information, or by a thread being preempted by another, higher priority thread becoming ready to run. Unlike some early operating systems, Windows NT uses process boundaries for subsystem protection in addition to the traditional protection of User and Privileged modes. These subsystem processes provide additional protection. Therefore, some work done by Windows NT on behalf of an application may appear in other subsystem processes in addition to the Privileged Time in the application. Switching to the subsystem process causes one Context Switch in the application thread. Switching back causes another Context Switch in the subsystem thread.
Context
- MIB
- WINDOWS-NT-PERFORMANCE
- OID
.1.3.6.1.4.1.311.1.1.3.1.1.33.7- Type
- scalar
- Access
- readonly
- Status
- mandatory
- Parent
- ntsystem
Net-SNMP examples
How SNMP and these commands workScalars have one instance, identified by the .0 suffix.
Read the scalar instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'WINDOWS-NT-PERFORMANCE' -M '/opt/observium/mibs/microsoft:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'WINDOWS-NT-PERFORMANCE::ntsystemContextSwitchesPerSec.0'
More examples
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'WINDOWS-NT-PERFORMANCE' -M '/opt/observium/mibs/microsoft:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'WINDOWS-NT-PERFORMANCE::ntsystemContextSwitchesPerSec'
Syntax
- Source
- RFC1155-SMICounter
- Base type
Unsigned32
Values & Constraints
Type Constraints
range: 0..4294967295