summaryrefslogtreecommitdiffstats
path: root/mibs/LIBVIRT-HYPERVISOR-MIB.txt
blob: aa71481d9ae839d497dc681d78afa55291cc3588 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
LIBVIRT-HYPERVISOR-MIB DEFINITIONS ::= BEGIN

IMPORTS
    MODULE-IDENTITY, OBJECT-TYPE, Integer32, Unsigned32, Counter64
        FROM SNMPv2-SMI

    hostAssist
        FROM Intel-SA-MIB

    DisplayString
        FROM SNMPv2-TC;

--*****************************************************************************
--
-- MODULE IDENTITY AND REVISION GROUP
--
--*****************************************************************************

libvirtHypervisor MODULE-IDENTITY
    LAST-UPDATED "201710061110Z" -- coordinated universal time UTC format is YYMMDDHHmmZ
    ORGANIZATION "Intel, Server Management Software"
    CONTACT-INFO
        ""
    DESCRIPTION
        "This SNMP MIB module supports the libvirt SNMP subagent
        for monitoring information provided by monitoring metrics
        of virtualized guests, their attached block devices and
        network interfaces such as performance statistics, domain
        state, file system information, CPU pinning and CPU
        utilization, disk errors.

        Version:  1.0   09/08/2017

        Intel copyright information 2017"
    REVISION
        "201710061110Z"
    DESCRIPTION
        "Fixing types and units in MemoryTable"
    ::= { hostAssist 6 }

-------------------------------------------------------------------------------
-- Libvirt Hypervisor Domain Statistics Table
-------------------------------------------------------------------------------

lvhDomainTable OBJECT-TYPE
    SYNTAX      SEQUENCE OF LvhDomainTableEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
        "This Group defines the Libvirt Domain Stats Table."
    ::= { libvirtHypervisor 1 }

lvhDomainTableEntry OBJECT-TYPE
    SYNTAX      LvhDomainTableEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
        "This Group defines the Libvirt Domain Stats Table Entry."
    INDEX       { lvhDomainName }
    ::= { lvhDomainTable 1 }

LvhDomainTableEntry                 ::= SEQUENCE {
    lvhDomainName                   DisplayString,
    lvhDomainStateState             INTEGER,
    lvhDomainStateReason            INTEGER,
    lvhCPUTotalTimeUser             Counter64,
    lvhCPUTotalTimeSystem           Counter64,
    lvhVirtCPUTotal                 Integer32,
    lvhMemoryTotal                  Integer32
}

lvhDomainName OBJECT-TYPE
    SYNTAX      DisplayString (SIZE (0..50))
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
        "Textual string containing a VM name."
    ::= { lvhDomainTableEntry 1 }

lvhDomainStateState OBJECT-TYPE
    SYNTAX      INTEGER {
                    unknown(0),
                    running(1),
                    blocked(2),
                    paused(3),
                    shutdown(4),
                    shutoff(5),
                    crashed(6),
                    pmususpended(7)
                }
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
        "State of the VM, returned as number from virDomainState enum."
    ::= { lvhDomainTableEntry 2 }

lvhDomainStateReason OBJECT-TYPE
    SYNTAX      Integer32
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
        "Reason for entering given state, returned as int from
        virDomain*Reason enum corresponding to given state."
    ::= { lvhDomainTableEntry 3 }

lvhCPUTotalTimeUser OBJECT-TYPE
    SYNTAX      Counter64
    UNITS       "nanoseconds"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
        "User CPU time spent in nanoseconds."
    ::= { lvhDomainTableEntry 4 }

lvhCPUTotalTimeSystem OBJECT-TYPE
    SYNTAX      Counter64
    UNITS       "nanoseconds"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
        "System CPU time spent in nanoseconds."
    ::= { lvhDomainTableEntry 5 }

lvhVirtCPUTotal OBJECT-TYPE
    SYNTAX      Integer32
    UNITS       "percent"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
        "CPU utilization in percentage."
    ::= { lvhDomainTableEntry 6 }

lvhMemoryTotal OBJECT-TYPE
    SYNTAX      Integer32
    UNITS       "bytes"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
        "Memory in bytes used by the domain."
    ::= { lvhDomainTableEntry 7 }

-------------------------------------------------------------------------------
-- Libvirt Hypervisor Memory Statistics Table
-------------------------------------------------------------------------------

lvhMemoryTable OBJECT-TYPE
    SYNTAX      SEQUENCE OF LvhMemoryTableEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
        "This Group defines the Libvirt Hypervisor Memory Table."
    ::= { libvirtHypervisor 2 }

lvhMemoryTableEntry OBJECT-TYPE
    SYNTAX      LvhMemoryTableEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
        "This Group defines the Libvirt Hypervisor Memory Table Entry."
    INDEX       { lvhMemoryDomainName }
    ::= { lvhMemoryTable 1 }

LvhMemoryTableEntry                 ::= SEQUENCE {
    lvhMemoryDomainName             DisplayString,
    lvhMemorySwapIn                 Unsigned32,
    lvhMemorySwapOut                Unsigned32,
    lvhMemoryMajorFault             Unsigned32,
    lvhMemoryMinorFault             Unsigned32,
    lvhMemoryUnused                 Unsigned32,
    lvhMemoryAvailable              Unsigned32,
    lvhMemoryActualBalloon          Unsigned32,
    lvhMemoryRss                    Unsigned32,
    lvhMemoryUsable                 Unsigned32,
    lvhMemoryLastUpdate             Counter64
}

lvhMemoryDomainName OBJECT-TYPE
    SYNTAX      DisplayString (SIZE (0..50))
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
        "Textual string containing a VM name."
    ::= { lvhMemoryTableEntry 1 }

lvhMemorySwapIn OBJECT-TYPE
    SYNTAX      Unsigned32
    UNITS       "bytes"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
        "Amount of data read from swap space."
    ::= { lvhMemoryTableEntry 2 }

lvhMemorySwapOut OBJECT-TYPE
    SYNTAX      Unsigned32
    UNITS       "bytes"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
        "Amount of memory written out to swap space."
    ::= { lvhMemoryTableEntry 3 }

lvhMemoryMajorFault OBJECT-TYPE
    SYNTAX      Unsigned32
    UNITS       "in 24h (x1024)"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
        "Number of page faults when disk IO was required."
    ::= { lvhMemoryTableEntry 4 }

lvhMemoryMinorFault OBJECT-TYPE
    SYNTAX      Unsigned32
    UNITS       "in 24h (x1024)"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
        "Number of other page faults."
    ::= { lvhMemoryTableEntry 5 }

lvhMemoryUnused OBJECT-TYPE
    SYNTAX      Unsigned32
    UNITS       "bytes"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
        "Amount of memory left unused by the system."
    ::= { lvhMemoryTableEntry 6 }

lvhMemoryAvailable OBJECT-TYPE
    SYNTAX      Unsigned32
    UNITS       "bytes"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
        "Amount of usable memory as seen by the domain."
    ::= { lvhMemoryTableEntry 7 }

lvhMemoryActualBalloon OBJECT-TYPE
    SYNTAX      Unsigned32
    UNITS       "bytes"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
        "Memory currently used."
    ::= { lvhMemoryTableEntry 8 }

lvhMemoryRss OBJECT-TYPE
    SYNTAX      Unsigned32
    UNITS       "bytes"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
        "Resident Set Size of running domain's process."
    ::= { lvhMemoryTableEntry 9 }

lvhMemoryUsable OBJECT-TYPE
    SYNTAX      Unsigned32
    UNITS       "bytes"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
        "Amount of memory which can be reclaimed by
        balloon without causing host swapping."
    ::= { lvhMemoryTableEntry 10 }

lvhMemoryLastUpdate OBJECT-TYPE
    SYNTAX      Counter64
    UNITS       "seconds (x1024)"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
        "Timestamp of the last update of statistics."
    ::= { lvhMemoryTableEntry 11 }

-------------------------------------------------------------------------------
-- Libvirt Hypervisor Perf Statistics Table
-------------------------------------------------------------------------------

lvhPerfTable OBJECT-TYPE
    SYNTAX      SEQUENCE OF LvhPerfTableEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
        "This Group defines the Libvirt Hypervisor Perf Table."
    ::= { libvirtHypervisor 3 }

lvhPerfTableEntry OBJECT-TYPE
    SYNTAX      LvhPerfTableEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
        "This Group defines the Libvirt Hypervisor Perf Table Entry."
    INDEX       { lvhPerfDomainName }
    ::= { lvhPerfTable 1 }

LvhPerfTableEntry                   ::= SEQUENCE {
    lvhPerfDomainName               DisplayString,
    lvhPerfAlignmentFaults          Integer32,
    lvhPerfBranchInstructions       Integer32,
    lvhPerfBranchMisses             Integer32,
    lvhPerfBusCycles                Integer32,
    lvhPerfCacheMisses              Integer32,
    lvhPerfCacheReferences          Integer32,
    lvhPerfCmt                      Integer32,
    lvhPerfContextSwitches          Integer32,
    lvhPerfCPUClock                 Counter64,
    lvhPerfCPUCycles                Counter64,
    lvhPerfCPUMigrations            Integer32,
    lvhPerfEmulationFaults          Integer32,
    lvhPerfInstructions             Integer32,
    lvhPerfMbml                     Integer32,
    lvhPerfMbmt                     Integer32,
    lvhPerfPageFaults               Integer32,
    lvhPerfPageFaultsMaj            Integer32,
    lvhPerfPageFaultsMin            Integer32,
    lvhPerfRefCPUCycles             Counter64,
    lvhPerfTaskClock                Counter64
}

lvhPerfDomainName OBJECT-TYPE
    SYNTAX      DisplayString (SIZE (0..50))
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Textual string containing a VM name."
    ::= { lvhPerfTableEntry 1 }

lvhPerfAlignmentFaults OBJECT-TYPE
    SYNTAX      Integer32
    UNITS       "in 24h"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Count of alignment faults."
    ::= { lvhPerfTableEntry 2 }

lvhPerfBranchInstructions OBJECT-TYPE
    SYNTAX      Integer32
    UNITS       "in 24h"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Count of branch instructions."
    ::= { lvhPerfTableEntry 3 }

lvhPerfBranchMisses OBJECT-TYPE
    SYNTAX      Integer32
    UNITS       "in 24h"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Count of branch misses."
    ::= { lvhPerfTableEntry 4 }

lvhPerfBusCycles OBJECT-TYPE
    SYNTAX      Integer32
    UNITS       "in 24h"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Count of bus cycles."
    ::= { lvhPerfTableEntry 5 }

lvhPerfCacheMisses OBJECT-TYPE
    SYNTAX      Integer32
    UNITS       "in 24h"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Count of cache misses."
    ::= { lvhPerfTableEntry 6 }

lvhPerfCacheReferences OBJECT-TYPE
    SYNTAX      Integer32
    UNITS       "in 24h"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Count of cache hits."
    ::= { lvhPerfTableEntry 7 }

lvhPerfCmt OBJECT-TYPE
    SYNTAX      Integer32
    UNITS       "bytes"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Cache usage in bytes."
    ::= { lvhPerfTableEntry 8 }

lvhPerfContextSwitches OBJECT-TYPE
    SYNTAX      Integer32
    UNITS       "in 24h"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Count of context switches."
    ::= { lvhPerfTableEntry 9 }

lvhPerfCPUClock OBJECT-TYPE
    SYNTAX      Counter64
    UNITS       "in 24h"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Count of CPU clock time."
    ::= { lvhPerfTableEntry 10 }

lvhPerfCPUCycles OBJECT-TYPE
    SYNTAX      Counter64
    UNITS       "in 24h"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Count of CPU cycles (total/elapsed)."
    ::= { lvhPerfTableEntry 11 }

lvhPerfCPUMigrations OBJECT-TYPE
    SYNTAX      Integer32
    UNITS       "in 24h"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Count of CPU migrations."
    ::= { lvhPerfTableEntry 12 }

lvhPerfEmulationFaults OBJECT-TYPE
    SYNTAX      Integer32
    UNITS       "in 24h"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Count of emulation faults."
    ::= { lvhPerfTableEntry 13 }

lvhPerfInstructions OBJECT-TYPE
    SYNTAX      Integer32
    UNITS       "in 24h"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Count of instructions."
    ::= { lvhPerfTableEntry 14 }

lvhPerfMbml OBJECT-TYPE
    SYNTAX      Integer32
    UNITS       "bytes/s"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Traffic bandwidth for a memory controller."
    ::= { lvhPerfTableEntry 15 }

lvhPerfMbmt OBJECT-TYPE
    SYNTAX      Integer32
    UNITS       "bytes/s"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Total system bandwidth from one cache level."
    ::= { lvhPerfTableEntry 16 }

lvhPerfPageFaults OBJECT-TYPE
    SYNTAX      Integer32
    UNITS       "in 24h"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Count of page faults."
    ::= { lvhPerfTableEntry 17 }

lvhPerfPageFaultsMaj OBJECT-TYPE
    SYNTAX      Integer32
    UNITS       "in 24h"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Count of major page faults."
    ::= { lvhPerfTableEntry 18 }

lvhPerfPageFaultsMin OBJECT-TYPE
    SYNTAX      Integer32
    UNITS       "in 24h"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Count of minor page faults."
    ::= { lvhPerfTableEntry 19 }

lvhPerfRefCPUCycles OBJECT-TYPE
    SYNTAX      Counter64
    UNITS       "in 24h"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "The count of ref CPU cycles."
    ::= { lvhPerfTableEntry 20 }

lvhPerfTaskClock OBJECT-TYPE
    SYNTAX      Counter64
    UNITS       "in 24h"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Count of task clock time."
    ::= { lvhPerfTableEntry 21 }

-------------------------------------------------------------------------------
-- Libvirt Hypervisor CPUAffinity Table
-------------------------------------------------------------------------------

lvhCPUAffinityTable OBJECT-TYPE
    SYNTAX      SEQUENCE OF LvhCPUAffinityTableEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION "This Group defines the CPUAffinity Table Entry."
    ::= { libvirtHypervisor 4 }

lvhCPUAffinityTableEntry OBJECT-TYPE
    SYNTAX      LvhCPUAffinityTableEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION "This Group defines the Libvirt Hypervisor CPU Affinity Table Entry."
    INDEX       { lvhAffinityDomainName, lvhCPUIndex, lvhVCPUIndex }
    ::= { lvhCPUAffinityTable 1 }

LvhCPUAffinityTableEntry            ::= SEQUENCE {
    lvhAffinityDomainName           DisplayString,
    lvhCPUIndex                     Integer32,
    lvhVCPUIndex                    Integer32,
    lvhCPUAffinity                  Integer32
}

lvhAffinityDomainName OBJECT-TYPE
    SYNTAX      DisplayString (SIZE (0..50))
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Textual string containing the VM name."
    ::= { lvhCPUAffinityTableEntry 1 }

lvhCPUIndex OBJECT-TYPE
    SYNTAX      Integer32 (0..999)
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "CPU index."
    ::= { lvhCPUAffinityTableEntry 2 }

lvhVCPUIndex OBJECT-TYPE
    SYNTAX      Integer32 (0..999)
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Virtual CPU index."
    ::= { lvhCPUAffinityTableEntry 3 }

lvhCPUAffinity OBJECT-TYPE
    SYNTAX      Integer32 (0..1)
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Pinning of domain VCPU to host physical CPU."
    ::= { lvhCPUAffinityTableEntry 4 }

-------------------------------------------------------------------------------
-- Libvirt Hypervisor VCPU Table
-------------------------------------------------------------------------------

lvhVirtVCPUTable OBJECT-TYPE
    SYNTAX      SEQUENCE OF LvhVirtVCPUTableEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION "This Group defines the VirtVCPU Table Entry."
    ::= { libvirtHypervisor 5 }

lvhVirtVCPUTableEntry OBJECT-TYPE
    SYNTAX      LvhVirtVCPUTableEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION "This Group defines the Libvirt Hypervisor VirtVCPU Table Entry."
    INDEX       { lvhVCPUDomainName, lvhVCPUVCPUIndex }
    ::= { lvhVirtVCPUTable 1 }

LvhVirtVCPUTableEntry               ::= SEQUENCE {
    lvhVCPUDomainName               DisplayString,
    lvhVCPUVCPUIndex                Integer32,
    lvhVirtVCPU                     Counter64
}

lvhVCPUDomainName OBJECT-TYPE
    SYNTAX      DisplayString (SIZE (0..50))
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Textual string containing the VM name."
    ::= { lvhVirtVCPUTableEntry 1 }

lvhVCPUVCPUIndex OBJECT-TYPE
    SYNTAX      Integer32 (0..999)
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Virtual CPU index."
    ::= { lvhVirtVCPUTableEntry 2 }

lvhVirtVCPU OBJECT-TYPE
    SYNTAX      Counter64
    UNITS       "nanoseconds"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Time spent by virtual CPU."
    ::= { lvhVirtVCPUTableEntry 3 }

-------------------------------------------------------------------------------
-- Libvirt Hypervisor DiskError Table
-------------------------------------------------------------------------------

lvhDiskErrorTable OBJECT-TYPE
    SYNTAX      SEQUENCE OF LvhDiskErrorTableEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION "This Group defines the Libvirt Hypervisor DiskError Table."
    ::= { libvirtHypervisor 6 }

lvhDiskErrorTableEntry OBJECT-TYPE
    SYNTAX      LvhDiskErrorTableEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION "This Group defines the Libvirt Hypervisor DiskEror Table Entry."
    INDEX       { lvhDiskDomainName, lvhDiskName }
    ::= { lvhDiskErrorTable 1 }

LvhDiskErrorTableEntry                         ::= SEQUENCE {
    lvhDiskDomainName                          DisplayString,
    lvhDiskName                                DisplayString,
    lvhDiskError                               INTEGER
}

lvhDiskDomainName OBJECT-TYPE
    SYNTAX      DisplayString (SIZE (0..50))
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Textual string containing a VM name."
    ::= { lvhDiskErrorTableEntry 1 }

lvhDiskName OBJECT-TYPE
    SYNTAX      DisplayString (SIZE (0..20))
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Textual string containing a disk name."
    ::= { lvhDiskErrorTableEntry 2 }

lvhDiskError OBJECT-TYPE
    SYNTAX      INTEGER {
                    none(0),
                    unspec(1),
                    nospace(2)
                }
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Disk error code."
    ::= { lvhDiskErrorTableEntry 3 }

-------------------------------------------------------------------------------
-- Libvirt Hypervisor Block Device Statistics Table
-------------------------------------------------------------------------------

lvhBlockDeviceTable OBJECT-TYPE
    SYNTAX      SEQUENCE OF LvhBlockDeviceTableEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
        "This Group defines the Libvirt Hypervisor Block Device Table."
    ::= { libvirtHypervisor 7 }

lvhBlockDeviceTableEntry OBJECT-TYPE
    SYNTAX      LvhBlockDeviceTableEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
        "This Group defines the Libvirt Hypervisor Block Device Table Entry."
    INDEX       { lvhBlockDomainName, lvhBlockDeviceName }
    ::= { lvhBlockDeviceTable 1 }

LvhBlockDeviceTableEntry            ::= SEQUENCE {
    lvhBlockDomainName              DisplayString,
    lvhBlockDeviceName              DisplayString,
    lvhDiskOpsRead                  Integer32,
    lvhDiskOpsWrite                 Integer32,
    lvhDiskOctetsRead               Integer32,
    lvhDiskOctetsWrite              Integer32,
    lvhDiskTimeCacheRead            Counter64,
    lvhDiskTimeCacheWrite           Counter64
}

lvhBlockDomainName OBJECT-TYPE
    SYNTAX      DisplayString (SIZE (0..50))
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Textual string containing a VM name."
    ::= { lvhBlockDeviceTableEntry 1 }

lvhBlockDeviceName OBJECT-TYPE
    SYNTAX      DisplayString (SIZE (0..20))
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Textual string containing a block device name."
    ::= { lvhBlockDeviceTableEntry 2 }

lvhDiskOpsRead OBJECT-TYPE
    SYNTAX      Integer32
    UNITS       "in 24h"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Number of read requests."
    ::= { lvhBlockDeviceTableEntry 3 }

lvhDiskOpsWrite OBJECT-TYPE
    SYNTAX      Integer32
    UNITS       "in 24h"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Number of write requests."
    ::= { lvhBlockDeviceTableEntry 4 }

lvhDiskOctetsRead OBJECT-TYPE
    SYNTAX      Integer32
    UNITS       "in 24h"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Number of read bytes."
    ::= { lvhBlockDeviceTableEntry 5 }

lvhDiskOctetsWrite OBJECT-TYPE
    SYNTAX      Integer32
    UNITS       "in 24h"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Number of write bytes."
    ::= { lvhBlockDeviceTableEntry 6 }

lvhDiskTimeCacheRead OBJECT-TYPE
    SYNTAX      Counter64
    UNITS       "nanoseconds"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Total time spent on cache reads."
    ::= { lvhBlockDeviceTableEntry 7 }

lvhDiskTimeCacheWrite OBJECT-TYPE
    SYNTAX      Counter64
    UNITS       "nanoseconds"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Total times spent on cache writes."
    ::= { lvhBlockDeviceTableEntry 8 }

-------------------------------------------------------------------------------
-- Libvirt Hypervisor Block Device Flush Statistics Table
-------------------------------------------------------------------------------

lvhBlockDevFlushTable OBJECT-TYPE
    SYNTAX      SEQUENCE OF LvhBlockDevFlushTableEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
        "This Group defines the Libvirt Hypervisor Block Device Table."
    ::= { libvirtHypervisor 8 }

lvhBlockDevFlushTableEntry OBJECT-TYPE
    SYNTAX      LvhBlockDevFlushTableEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
        "This Group defines the Libvirt Hypervisor Block Device Table Entry."
    INDEX       { lvhBlockDevFlushDomainName, lvhBlockDevFlushDeviceName }
    ::= { lvhBlockDevFlushTable 1 }

LvhBlockDevFlushTableEntry          ::= SEQUENCE {
    lvhBlockDevFlushDomainName      DisplayString,
    lvhBlockDevFlushDeviceName      DisplayString,
    lvhTotalRequestsFlush           Integer32,
    lvhTotalTimeInMsFlush           Integer32
}

lvhBlockDevFlushDomainName OBJECT-TYPE
    SYNTAX      DisplayString (SIZE (0..50))
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Textual string containing a VM name."
    ::= { lvhBlockDevFlushTableEntry 1 }

lvhBlockDevFlushDeviceName OBJECT-TYPE
    SYNTAX      DisplayString (SIZE (0..20))
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Textual string containing a block device name."
    ::= { lvhBlockDevFlushTableEntry 2 }

lvhTotalRequestsFlush OBJECT-TYPE
    SYNTAX      Integer32
    UNITS       "in 24h"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Total number of flush requests."
    ::= { lvhBlockDevFlushTableEntry 3 }

lvhTotalTimeInMsFlush OBJECT-TYPE
    SYNTAX      Integer32
    UNITS       "milliseconds"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "The total time spent on cache flushing."
    ::= { lvhBlockDevFlushTableEntry 4 }

-------------------------------------------------------------------------------
-- Libvirt Hypervisor Network Interface Statistics Table
-------------------------------------------------------------------------------

lvhNetworkIfaceTable OBJECT-TYPE
    SYNTAX      SEQUENCE OF LvhNetworkIfaceTableEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION "This Group defines the Libvirt Hypervisor Network Interface
                Table."
    ::= { libvirtHypervisor 9 }

lvhNetworkIfaceTableEntry OBJECT-TYPE
    SYNTAX      LvhNetworkIfaceTableEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
        "This Group defines the Libvirt Hypervisor Network Interface Table Entry."
    INDEX       { lvhNetIfDomainName, lvhInterfaceName }
    ::= { lvhNetworkIfaceTable 1 }

LvhNetworkIfaceTableEntry           ::= SEQUENCE {
    lvhNetIfDomainName              DisplayString,
    lvhInterfaceName                DisplayString,
    lvhIfBytesReceived              Counter64,
    lvhIfBytesTransmitted           Counter64,
    lvhIfPacketsReceived            Counter64,
    lvhIfPacketsTransmitted         Counter64,
    lvhIfErrorsReceive              Counter64,
    lvhIfErrorsTransmission         Counter64,
    lvhIfDroppedReceive             Counter64,
    lvhIfDroppedTransmit            Counter64
}

lvhNetIfDomainName OBJECT-TYPE
    SYNTAX      DisplayString (SIZE (0..50))
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Textual string containing a VM name."
    ::= { lvhNetworkIfaceTableEntry 1 }

lvhInterfaceName OBJECT-TYPE
    SYNTAX      DisplayString (SIZE (0..20))
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Textual string containing a network interface name."
    ::= { lvhNetworkIfaceTableEntry 2 }

lvhIfBytesReceived OBJECT-TYPE
    SYNTAX      Counter64
    UNITS       "in 24h"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Number of bytes received."
    ::= { lvhNetworkIfaceTableEntry 3 }

lvhIfBytesTransmitted OBJECT-TYPE
    SYNTAX      Counter64
    UNITS       "in 24h"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Number of bytes transmitted."
    ::= { lvhNetworkIfaceTableEntry 4 }

lvhIfPacketsReceived OBJECT-TYPE
    SYNTAX      Counter64
    UNITS       "in 24h"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Number of packets received."
    ::= { lvhNetworkIfaceTableEntry 5 }

lvhIfPacketsTransmitted OBJECT-TYPE
    SYNTAX      Counter64
    UNITS       "in 24h"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Number of packets transmitted."
    ::= { lvhNetworkIfaceTableEntry 6 }

lvhIfErrorsReceive OBJECT-TYPE
    SYNTAX      Counter64
    UNITS       "in 24h"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Number of receive errors."
    ::= { lvhNetworkIfaceTableEntry 7 }

lvhIfErrorsTransmission OBJECT-TYPE
    SYNTAX      Counter64
    UNITS       "in 24h"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Number of transmission errors."
    ::= { lvhNetworkIfaceTableEntry 8 }

lvhIfDroppedReceive OBJECT-TYPE
    SYNTAX      Counter64
    UNITS       "in 24h"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Number of receive packets dropped."
    ::= { lvhNetworkIfaceTableEntry 9 }

lvhIfDroppedTransmit OBJECT-TYPE
    SYNTAX      Counter64
    UNITS       "in 24h"
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION "Number of transmit packets dropped."
    ::= { lvhNetworkIfaceTableEntry 10 }

END