All MIBs › UCD-SNMP-MIB › memTotalSwap
memTotalSwap
Module: UCD-SNMP-MIB
OID (symbolic): UCD-SNMP-MIB::memTotalSwap
OID (numeric): 1.3.6.1.4.1.2021.4.3
Node type: OBJECT-TYPE
Type: Integer32
Access: read-only
Description:
The total amount of swap space configured for this host.
Examples
Walk all instances (SNMPv2c):
snmpwalk -v2c -c public <target> 1.3.6.1.4.1.2021.4.3 snmpwalk -v2c -c public <target> UCD-SNMP-MIB::memTotalSwap
Get a specific instance (index 1):
snmpget -v2c -c public <target> 1.3.6.1.4.1.2021.4.3.1 snmpget -v2c -c public <target> UCD-SNMP-MIB::memTotalSwap.1
How to Use in IPNetwork Monitor
Select a Unix/Linux server running the Net-SNMP (net-snmp/snmpd) 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 locate memTotalSwap under the memory branch of UCD-SNMP-MIB, then select it and click OK. It reports the total swap space configured on the host, in kilobytes — this is the classic Net-SNMP host-resources memory OID. 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 an Integer32-type OID, Value bounds is the most useful condition here — trigger an alert if this value unexpectedly drops below the swap capacity you expect to be configured, since it normally only changes when swap configuration itself changes. Click Finish to create the monitor; you can adjust any parameter later.
OID Breakdown
| Numeric OID | Name | Module |
|---|---|---|
| 1 | iso | LANART-AGENT |
| 1.3 | org | BIANCA-BRICK-PPP-MIB |
| 1.3.6 | dod | BIANCA-BRICK-PPP-MIB |
| 1.3.6.1 | internet | BIANCA-BRICK-PPP-MIB |
| 1.3.6.1.4 | private | BIANCA-BRICK-PPP-MIB |
| 1.3.6.1.4.1 | enterprises | ANIROOT-MIB |
| 1.3.6.1.4.1.2021 | ucdavis | UCD-SNMP-MIB |
| 1.3.6.1.4.1.2021.4 | memory | UCD-SNMP-MIB |
| 1.3.6.1.4.1.2021.4.3 | memTotalSwap | UCD-SNMP-MIB |