All MIBs › KEEPALIVED-MIB › realServerWeight
realServerWeight
Module: KEEPALIVED-MIB
OID (symbolic): KEEPALIVED-MIB::realServerWeight
OID (numeric): 1.3.6.1.4.1.9586.100.5.3.4.1.7
Node type: OBJECT-TYPE
Type: Integer32
Access: read-write
Description: Weight of this real server.
This value can be set to 0 to disable the real server.
What is realServerWeight?
The relative weight assigned to this real server for weighted load-balancing algorithms, where a higher number gets a proportionally larger share of traffic; setting this to 0 effectively removes the server from rotation without deleting its configuration. Admins write 0 here to gracefully drain a server for maintenance.
Examples
Walk all instances (SNMPv2c):
snmpwalk -v2c -c public <target> 1.3.6.1.4.1.9586.100.5.3.4.1.7 snmpwalk -v2c -c public <target> KEEPALIVED-MIB::realServerWeight
Get a specific instance (index 1):
snmpget -v2c -c public <target> 1.3.6.1.4.1.9586.100.5.3.4.1.7.1 snmpget -v2c -c public <target> KEEPALIVED-MIB::realServerWeight.1
Set instance 1 (SNMPv2c):
snmpset -v2c -c private <target> 1.3.6.1.4.1.9586.100.5.3.4.1.7.1 i <value>
Start monitoring Linux server running keepalived (VRRP high availability) with a free 30-day trial of IPNetwork Monitor. Create custom SNMP monitor using the KEEPALIVED-MIB::realServerWeight OID value, configure state conditions and alerts, and monitor any Linux server running keepalived (VRRP high availability) from a single console.
OID Breakdown
Upper-level ancestors (6 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 |
| Numeric OID | Name | Module |
|---|---|---|
| 1.3.6.1.4.1.9586 | debian | KEEPALIVED-MIB |
| 1.3.6.1.4.1.9586.100 | project | KEEPALIVED-MIB |
| 1.3.6.1.4.1.9586.100.5 | keepalived | KEEPALIVED-MIB |
| 1.3.6.1.4.1.9586.100.5.3 | check | KEEPALIVED-MIB |
| 1.3.6.1.4.1.9586.100.5.3.4 | realServerTable | KEEPALIVED-MIB |
| 1.3.6.1.4.1.9586.100.5.3.4.1 | realServerEntry | KEEPALIVED-MIB |
| 1.3.6.1.4.1.9586.100.5.3.4.1.7 | realServerWeight | KEEPALIVED-MIB |