Monitoring Through SNMP
You can monitor disk partitions, files, load average, and processes by setting up SNMP polling. Configure SNMP at the CLI in the network
category and the snmp
command.
When enabling SNMP, you must specify a whitelist of IP addresses for SNMP managers. CIDR control access is supported.
CT-VL supports both SNMP v3 and v2c. SNMP v3 supports password authentication, encryption, and a choice of encryption and password hashing algorithms.
Note
SNMP traps are not supported.
Supported MIB OIDs
Below are some MIB OIDs that CT-VL supports:
CPU Load Average Monitoring
1 minute load average .1.3.6.1.4.1.2021.10.1.3.1
5 minute load average .1.3.6.1.4.1.2021.10.1.3.2
15 minute load average .1.3.6.1.4.1.2021.10.1.3.3
System Uptime
.1.3.6.1.2.1.1.3.0
Memory Statistics
Total Memory .1.3.6.1.4.1.2021.4.5.0
Total Memory Used .1.3.6.1.4.1.2021.4.6.0
Total Memory Free .1.3.6.1.4.1.2021.4.11.0
Total Swap Space .1.3.6.1.4.1.2021.4.3.0
Total Availabe Swap .1.3.6.1.4.1.2021.4.4.0
Disk Statistics:
Total size of disk partition .1.3.6.1.4.1.2021.9.1.6.1
Total disk space used .1.3.6.1.4.1.2021.9.1.8.1
Total available disk space .1.3.6.1.4.1.2021.9.1.7.1
Examples
Below are examples using the snmpwalk
command.
Get Total Memory on CT-VL VM
snmpwalk -v 2c -c mystring ctvl-ip .1.3.6.1.4.1.2021.4.5.0
UCD-SNMP-MIB::memTotalReal.0 = INTEGER: 16431432 kB
Get System Uptime
snmpwalk -v 2c -c mystring ctvl-ip .1.3.6.1.2.1.1.3.0
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (22329) 0:03:43.29
Note
SNMP on CT-VL is disabled by default. Use the CLI to enable access.
SNMP manager(s) must be set to allow access to CT-VL.
Configuring SNMP
To configure SNMP, use the
network snmp
CLI command.main> network snmp usage: snmp command [options]SNMP Configurationcommands: user SNMPv3 user setup community SNMPv2c community access. Do not set if you don't want to enable SNMPv2 monitor Monitor Services Setup (processes, load average, disk space, and file size) manager SNMP Managers Setup service Enable, disable, and show SNMP Service system SNMP System Information Setup
Create a user.
main> network snmp user usage: user [-h] [--show] [--add USERNAME] [--delete USERNAME [USERNAME ...]] [--authpass PASSWORD] [--privpass PASSWORD] [-x {DES,AES}] [-a {MD5,SHA}]
Create a community string.
main> network snmp community usage: community [-h] [--show] [--add STRING] [--delete STRING] [-y]
Enable SNMP as SNMP is disabled by default.
main> network snmp service --enable
Set SNMP managers who will access CT-VL.
main> network snmp manager usage: server [-h] [--show] [--add IP [IP ...]] [--remove IP [IP ...]]
Monitor disk, file, load, and processes.
main> network snmp monitor usage: monitor [-h] [--show] [--set {disk,file,load,proc}] [--delete {disk,file,load,proc}] [--value VALUE]