snmp-doc

简单网络管理协议(SNMP),由一组网络管理的标准组成,包含一个应用层协议(application layer protocol)、数据库模型(database schema)和一组资源对象。

install snmp

1
yum list net-snmp* -y

config snmp

1
2
3
4
5
6
7
8
# vim /etc/snmp/snmpd.conf
view systemview included .1.3.6.1.2.1.25.1.1 //找到这行,增加下面配置
view systemview included .1 // 这个是新增加的
proc mountd // 找到这些配置,把注释去掉
proc ntalkd 4
proc sendmail 10 1
disk / 10000
load 12 14 14

start snmp

1
2
sudo service snmpd start
sudo /etc/init.d/snmpd restart

examples

在 Linux 系统中,我们可以选择 net-snmp 来处理绝大多数和 SNMP 相关的工作。
NET-SNMP 是一种开放源代码的 SNMP 协议实现。它支持 SNMP v1, SNMP v2c 与 SNMP v3,并可以使用 IPV4 及 IPV6 。也包含 SNMP Trap 的所有相关实现。Net-snmp 包含了 snmp 实用程序集和完整的 snmp 开发库。
用户使用 net-snmp 提供的工具,可以完成很多关于 SNMP 的操作,具体说来,包括以下一些命令行应用程序:

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
[whoami@server1 ~]$  snmpget -v 1 -c public localhost system.sysUpTime.0                      
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (929311) 2:34:53.11

# 返回所有 system 节点以下的 MIB 对象的值
[whoami@server1 ~]$ snmpwalk -v 2c -c public localhost system|wc -l
31

# snmpget,snmpset
[whoami@server1 ~]$ snmpget -v 2c -c public localhost ucdDemoPublicString.0
UCD-DEMO-MIB::ucdDemoPublicString.0 = No Such Object available on this agent at this OID

#目标系统上获得类似 netstat 的信息
[whoami@server1 ~]$ snmpnetstat -v 2c -c public -Ca localhost
Active Internet (tcp) Connections (including servers)
Proto Local Address Remote Address (state)
tcp *.ssh *.* LISTEN
tcp *.mysql *.* LISTEN
tcp *.4200 *.* LISTEN
tcp localhost.smtp *.* LISTEN
tcp localhost.smux *.* LISTEN
tcp server1.ssh 192.168.2.1.59082 ESTABLISHED
tcp server1.http *.* LISTEN
Active Internet (udp) Connections
Proto Local Address
udp *.snmp
udp *.60439

# snmptranslate 命令将 MIB OIDs 的两种表现形式 ( 数字及文字 ) 相互转换
[whoami@server1 ~]$ snmptranslate .1.3.6.1.2.1.1.3.0
DISMAN-EVENT-MIB::sysUpTimeInstance
[whoami@server1 ~]$ snmptranslate -On SNMPv2-MIB::sysUpTime.0
.1.3.6.1.2.1.1.3.0

# 正常运行时间和数据包统计数据
[whoami@server1 ~]$ snmpstatus -v1 -c public localhost
[UDP: [127.0.0.1]:161->[0.0.0.0]]=>[Linux server1 2.6.32-573.el6.x86_64 #1 SMP Wed Jul 1 18:23:37 EDT 2015 x86_64] Up: 2:58:21.39
Interfaces: 2, Recv/Trans packets: 289031/287982 | IP: 288940/287820

[whoami@server1 ~]$ snmpget -v1 -c public localhost system.sysUpTime.0 system.sysContact.0
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (1080018) 3:00:00.18
SNMPv2-MIB::sysContact.0 = STRING: Root <root@localhost> (configure /etc/snmp/snmp.local.conf)

[whoami@server1 ~]$ snmpget -v1 -c public localhost 1.3.6.1.2.1.1.3.0
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (1091247) 3:01:52.47

# 跟踪一段时间snmp数据
[whoami@server1 ~]$ snmpwalk -v 1 localhost -c public UCD-SNMP-MIB::dskTable
UCD-SNMP-MIB::dskIndex.1 = INTEGER: 1
UCD-SNMP-MIB::dskPath.1 = STRING: /
UCD-SNMP-MIB::dskDevice.1 = STRING: /dev/sda1
UCD-SNMP-MIB::dskMinimum.1 = INTEGER: 10000
UCD-SNMP-MIB::dskMinPercent.1 = INTEGER: -1
UCD-SNMP-MIB::dskTotal.1 = INTEGER: 20511356
UCD-SNMP-MIB::dskAvail.1 = INTEGER: 14736548
UCD-SNMP-MIB::dskUsed.1 = INTEGER: 4726232
UCD-SNMP-MIB::dskPercent.1 = INTEGER: 24
UCD-SNMP-MIB::dskPercentNode.1 = INTEGER: 12
UCD-SNMP-MIB::dskTotalLow.1 = Gauge32: 20511356
UCD-SNMP-MIB::dskTotalHigh.1 = Gauge32: 0
UCD-SNMP-MIB::dskAvailLow.1 = Gauge32: 14736548
UCD-SNMP-MIB::dskAvailHigh.1 = Gauge32: 0
UCD-SNMP-MIB::dskUsedLow.1 = Gauge32: 4726232
UCD-SNMP-MIB::dskUsedHigh.1 = Gauge32: 0
UCD-SNMP-MIB::dskErrorFlag.1 = INTEGER: noError(0)
UCD-SNMP-MIB::dskErrorMsg.1 = STRING:

[whoami@server1 ~]$ snmptranslate -On UCD-SNMP-MIB::dskAvail
.1.3.6.1.4.1.2021.9.1.7
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
参考《SNMP OID列表 监控需要用到的OID》
http://www.ttlsa.com/monitor/snmp-oid/
https://tools.ietf.org/html/rfc3418

获取主机名
[whoami@server1 ~]$ snmpwalk -c public -v 2c localhost sysName //使用名称
SNMPv2-MIB::sysName.0 = STRING: server1

[whoami@server1 ~]$ snmpwalk -c public -v 2c server1 .1.3.6.1.2.1.1.5.0 //使用OID
SNMPv2-MIB::sysName.0 = STRING: server1

[whoami@server1 ~]$ uname -a
Linux server1 2.6.32-573.el6.x86_64 #1 SMP Wed Jul 1 18:23:37 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux

#1,5,15min平均负载
[whoami@server1 ~]$ snmpwalk -c public -v 2c localhost .1|grep laLoad
HOST-RESOURCES-MIB::hrSWRunParameters.2450 = STRING: "laLoad"
UCD-SNMP-MIB::laLoad.1 = STRING: 0.29
UCD-SNMP-MIB::laLoad.2 = STRING: 0.07
UCD-SNMP-MIB::laLoad.3 = STRING: 0.02
UCD-SNMP-MIB::laLoadInt.1 = INTEGER: 28
UCD-SNMP-MIB::laLoadInt.2 = INTEGER: 7
UCD-SNMP-MIB::laLoadInt.3 = INTEGER: 2
UCD-SNMP-MIB::laLoadFloat.1 = Opaque: Float: 0.290000
UCD-SNMP-MIB::laLoadFloat.2 = Opaque: Float: 0.070000
UCD-SNMP-MIB::laLoadFloat.3 = Opaque: Float: 0.020000

#CPU信息:
[whoami@server1 ~]$ snmpwalk -c public -v 2c localhost .1|grep Cpu
HOST-RESOURCES-MIB::hrSWRunParameters.2440 = STRING: "Cpu"
UCD-SNMP-MIB::ssCpuUser.0 = INTEGER: 5
UCD-SNMP-MIB::ssCpuSystem.0 = INTEGER: 2
UCD-SNMP-MIB::ssCpuIdle.0 = INTEGER: 91
UCD-SNMP-MIB::ssCpuRawUser.0 = Counter32: 806
UCD-SNMP-MIB::ssCpuRawNice.0 = Counter32: 0
UCD-SNMP-MIB::ssCpuRawSystem.0 = Counter32: 1500
UCD-SNMP-MIB::ssCpuRawIdle.0 = Counter32: 203559
UCD-SNMP-MIB::ssCpuRawWait.0 = Counter32: 1664
UCD-SNMP-MIB::ssCpuRawKernel.0 = Counter32: 0
UCD-SNMP-MIB::ssCpuRawInterrupt.0 = Counter32: 3
UCD-SNMP-MIB::ssCpuRawSoftIRQ.0 = Counter32: 124

#MEM信息
[whoami@server1 ~]$ snmpwalk -c public -v 2c localhost .1|grep mem
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Physical memory
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Virtual memory
HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: Cached memory
HOST-RESOURCES-MIB::hrSWRunName.917 = STRING: "vmmemctl"
HOST-RESOURCES-MIB::hrSWRunPath.917 = STRING: "vmmemctl"
HOST-RESOURCES-MIB::hrSWRunParameters.2438 = STRING: "mem"
UCD-SNMP-MIB::memIndex.0 = INTEGER: 0
UCD-SNMP-MIB::memErrorName.0 = STRING: swap
UCD-SNMP-MIB::memTotalSwap.0 = INTEGER: 7340028 kB
UCD-SNMP-MIB::memAvailSwap.0 = INTEGER: 7340028 kB
UCD-SNMP-MIB::memTotalReal.0 = INTEGER: 3640428 kB
UCD-SNMP-MIB::memAvailReal.0 = INTEGER: 3297912 kB
UCD-SNMP-MIB::memTotalFree.0 = INTEGER: 10637940 kB
UCD-SNMP-MIB::memMinimumSwap.0 = INTEGER: 16000 kB
UCD-SNMP-MIB::memBuffer.0 = INTEGER: 16240 kB
UCD-SNMP-MIB::memCached.0 = INTEGER: 134004 kB
UCD-SNMP-MIB::memSwapError.0 = INTEGER: noError(0)
UCD-SNMP-MIB::memSwapErrorMsg.0 = STRING:
NET-SNMP-AGENT-MIB::nsModuleName."".8.1.3.6.1.4.1.2021.4.127 = STRING: memory
NET-SNMP-AGENT-MIB::nsModuleName."".9.1.3.6.1.4.1.2021.4.100.127 = STRING: memSwapError
NET-SNMP-AGENT-MIB::nsModuleName."".9.1.3.6.1.4.1.2021.4.101.127 = STRING: memSwapErrMsg

# disk信息
[whoami@server1 ~]$ snmpwalk -c public -v 2c localhost .1|grep dsk
HOST-RESOURCES-MIB::hrSWRunParameters.2458 = STRING: "dsk"
UCD-SNMP-MIB::dskIndex.1 = INTEGER: 1
UCD-SNMP-MIB::dskPath.1 = STRING: /
UCD-SNMP-MIB::dskDevice.1 = STRING: /dev/sda1
UCD-SNMP-MIB::dskMinimum.1 = INTEGER: 10000
UCD-SNMP-MIB::dskMinPercent.1 = INTEGER: -1
UCD-SNMP-MIB::dskTotal.1 = INTEGER: 20511356
UCD-SNMP-MIB::dskAvail.1 = INTEGER: 14736648
UCD-SNMP-MIB::dskUsed.1 = INTEGER: 4726132
UCD-SNMP-MIB::dskPercent.1 = INTEGER: 24
UCD-SNMP-MIB::dskPercentNode.1 = INTEGER: 12
UCD-SNMP-MIB::dskTotalLow.1 = Gauge32: 20511356
UCD-SNMP-MIB::dskTotalHigh.1 = Gauge32: 0
UCD-SNMP-MIB::dskAvailLow.1 = Gauge32: 14736648
UCD-SNMP-MIB::dskAvailHigh.1 = Gauge32: 0
UCD-SNMP-MIB::dskUsedLow.1 = Gauge32: 4726132
UCD-SNMP-MIB::dskUsedHigh.1 = Gauge32: 0
UCD-SNMP-MIB::dskErrorFlag.1 = INTEGER: noError(0)
UCD-SNMP-MIB::dskErrorMsg.1 = STRING:

#系统运行时间
[whoami@server1 ~]$ snmpwalk -c public -v 2c localhost .1.3.6.1.2.1.1.3.0
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (231819) 0:38:38.19

# sys
[whoami@server1 ~]$ snmpwalk -c public -v 2c localhost .1|grep ':sys'
SNMPv2-MIB::sysDescr.0 = STRING: Linux server1 2.6.32-573.el6.x86_64 #1 SMP Wed Jul 1 18:23:37 EDT 2015 x86_64
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (238236) 0:39:42.36
SNMPv2-MIB::sysContact.0 = STRING: Root <root@localhost> (configure /etc/snmp/snmp.local.conf)
SNMPv2-MIB::sysName.0 = STRING: server1
SNMPv2-MIB::sysLocation.0 = STRING: Unknown (edit /etc/snmp/snmpd.conf)
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (116) 0:00:01.16
SNMPv2-MIB::sysORID.1 = OID: SNMP-MPD-MIB::snmpMPDMIBObjects.3.1.1
SNMPv2-MIB::sysORID.2 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORID.3 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.4 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.5 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.6 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.7 = OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.8 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORDescr.1 = STRING: The MIB for Message Processing and Dispatching.
SNMPv2-MIB::sysORDescr.2 = STRING: The MIB for Message Processing and Dispatching.
SNMPv2-MIB::sysORDescr.3 = STRING: The SNMP Management Architecture MIB.
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for SNMPv2 entities
SNMPv2-MIB::sysORDescr.5 = STRING: The MIB module for managing TCP implementations
SNMPv2-MIB::sysORDescr.6 = STRING: The MIB module for managing IP and ICMP implementations
SNMPv2-MIB::sysORDescr.7 = STRING: The MIB module for managing UDP implementations
SNMPv2-MIB::sysORDescr.8 = STRING: View-based Access Control Model for SNMP.
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (116) 0:00:01.16
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (116) 0:00:01.16
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (116) 0:00:01.16
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (116) 0:00:01.16
SNMPv2-MIB::sysORUpTime.5 = Timeticks: (116) 0:00:01.16
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (116) 0:00:01.16
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (116) 0:00:01.16
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (116) 0:00:01.16
HOST-RESOURCES-MIB::hrSWRunParameters.2467 = STRING: ":sys"

#SNMP Interfaces Group:
[whoami@server1 ~]$ snmpwalk -c public -v 2c localhost .1|grep 'IF-MIB::if'|wc -l
85

#SNMP IP Group
[whoami@server1 ~]$ snmpwalk -c public -v 2c localhost .1|grep 'IP-MIB::ip'
SNMPv2-MIB::sysORID.6 = OID: IP-MIB::ip
IP-MIB::ipForwarding.0 = INTEGER: notForwarding(2)
IP-MIB::ipDefaultTTL.0 = INTEGER: 64
IP-MIB::ipInReceives.0 = Counter32: 225341
IP-MIB::ipInHdrErrors.0 = Counter32: 0
IP-MIB::ipInAddrErrors.0 = Counter32: 21
IP-MIB::ipForwDatagrams.0 = Counter32: 0
IP-MIB::ipInUnknownProtos.0 = Counter32: 0
IP-MIB::ipInDiscards.0 = Counter32: 0
IP-MIB::ipInDelivers.0 = Counter32: 225318
IP-MIB::ipOutRequests.0 = Counter32: 225328
IP-MIB::ipOutDiscards.0 = Counter32: 0
IP-MIB::ipOutNoRoutes.0 = Counter32: 0
IP-MIB::ipReasmTimeout.0 = INTEGER: 30 seconds
IP-MIB::ipReasmReqds.0 = Counter32: 0
IP-MIB::ipReasmOKs.0 = Counter32: 0
IP-MIB::ipReasmFails.0 = Counter32: 0
IP-MIB::ipFragOKs.0 = Counter32: 0
IP-MIB::ipFragFails.0 = Counter32: 0
IP-MIB::ipFragCreates.0 = Counter32: 0
IP-MIB::ipAdEntAddr.127.0.0.1 = IpAddress: 127.0.0.1
IP-MIB::ipAdEntAddr.192.168.2.124 = IpAddress: 192.168.2.124
IP-MIB::ipAdEntIfIndex.127.0.0.1 = INTEGER: 1
IP-MIB::ipAdEntIfIndex.192.168.2.124 = INTEGER: 2
IP-MIB::ipAdEntNetMask.127.0.0.1 = IpAddress: 255.0.0.0
IP-MIB::ipAdEntNetMask.192.168.2.124 = IpAddress: 255.255.255.0
IP-MIB::ipAdEntBcastAddr.127.0.0.1 = INTEGER: 0
IP-MIB::ipAdEntBcastAddr.192.168.2.124 = INTEGER: 1
IP-MIB::ipNetToMediaIfIndex.2.192.168.2.1 = INTEGER: 2
IP-MIB::ipNetToMediaPhysAddress.2.192.168.2.1 = STRING: 0:50:56:c0:0:1
IP-MIB::ipNetToMediaNetAddress.2.192.168.2.1 = IpAddress: 192.168.2.1
IP-MIB::ipNetToMediaType.2.192.168.2.1 = INTEGER: dynamic(3)
IP-MIB::ipRoutingDiscards.0 = Counter32: 0
IP-MIB::ipv6IpForwarding.0 = INTEGER: notForwarding(2)
IP-MIB::ipv6IpDefaultHopLimit.0 = INTEGER: 64
IP-MIB::ipv4InterfaceTableLastChange.0 = Timeticks: (0) 0:00:00.00
IP-MIB::ipv4InterfaceReasmMaxSize.1 = INTEGER: 65535
IP-MIB::ipv4InterfaceReasmMaxSize.2 = INTEGER: 65535
IP-MIB::ipv4InterfaceEnableStatus.1 = INTEGER: up(1)
IP-MIB::ipv4InterfaceEnableStatus.2 = INTEGER: up(1)
IP-MIB::ipv4InterfaceRetransmitTime.1 = Gauge32: 1000 milliseconds
IP-MIB::ipv4InterfaceRetransmitTime.2 = Gauge32: 1000 milliseconds
IP-MIB::ipv6InterfaceTableLastChange.0 = Timeticks: (0) 0:00:00.00
IP-MIB::ipv6InterfaceReasmMaxSize.1 = Gauge32: 65535 octets
IP-MIB::ipv6InterfaceReasmMaxSize.2 = Gauge32: 65535 octets
IP-MIB::ipv6InterfaceIdentifier.1 = STRING:
IP-MIB::ipv6InterfaceIdentifier.2 = STRING: 20c:29ff:fe83:c975
IP-MIB::ipv6InterfaceEnableStatus.1 = INTEGER: up(1)
IP-MIB::ipv6InterfaceEnableStatus.2 = INTEGER: up(1)
IP-MIB::ipv6InterfaceReachableTime.1 = Gauge32: 30000 milliseconds
IP-MIB::ipv6InterfaceReachableTime.2 = Gauge32: 30000 milliseconds
IP-MIB::ipv6InterfaceRetransmitTime.1 = Gauge32: 1000 milliseconds
IP-MIB::ipv6InterfaceRetransmitTime.2 = Gauge32: 1000 milliseconds
IP-MIB::ipv6InterfaceForwarding.1 = INTEGER: notForwarding(2)
IP-MIB::ipv6InterfaceForwarding.2 = INTEGER: notForwarding(2)
IP-MIB::ipSystemStatsInReceives.ipv4 = Counter32: 225129
IP-MIB::ipSystemStatsInReceives.ipv6 = Counter32: 0
IP-MIB::ipSystemStatsHCInReceives.ipv4 = Counter64: 225129
IP-MIB::ipSystemStatsHCInReceives.ipv6 = Counter64: 0
IP-MIB::ipSystemStatsInOctets.ipv6 = Counter32: 0
IP-MIB::ipSystemStatsHCInOctets.ipv6 = Counter64: 0
IP-MIB::ipSystemStatsInHdrErrors.ipv4 = Counter32: 0
IP-MIB::ipSystemStatsInHdrErrors.ipv6 = Counter32: 0
IP-MIB::ipSystemStatsInNoRoutes.ipv4 = Counter32: 0
IP-MIB::ipSystemStatsInNoRoutes.ipv6 = Counter32: 0
IP-MIB::ipSystemStatsInAddrErrors.ipv4 = Counter32: 21
IP-MIB::ipSystemStatsInAddrErrors.ipv6 = Counter32: 0
IP-MIB::ipSystemStatsInUnknownProtos.ipv4 = Counter32: 0
IP-MIB::ipSystemStatsInUnknownProtos.ipv6 = Counter32: 0
IP-MIB::ipSystemStatsInTruncatedPkts.ipv4 = Counter32: 0
IP-MIB::ipSystemStatsInTruncatedPkts.ipv6 = Counter32: 0
IP-MIB::ipSystemStatsInForwDatagrams.ipv4 = Counter32: 0
IP-MIB::ipSystemStatsInForwDatagrams.ipv6 = Counter32: 0
IP-MIB::ipSystemStatsHCInForwDatagrams.ipv4 = Counter64: 0
IP-MIB::ipSystemStatsHCInForwDatagrams.ipv6 = Counter64: 0
IP-MIB::ipSystemStatsReasmReqds.ipv4 = Counter32: 0
IP-MIB::ipSystemStatsReasmReqds.ipv6 = Counter32: 0
IP-MIB::ipSystemStatsReasmOKs.ipv4 = Counter32: 0
IP-MIB::ipSystemStatsReasmOKs.ipv6 = Counter32: 0
IP-MIB::ipSystemStatsReasmFails.ipv4 = Counter32: 0
IP-MIB::ipSystemStatsReasmFails.ipv6 = Counter32: 0
IP-MIB::ipSystemStatsInDiscards.ipv4 = Counter32: 0
IP-MIB::ipSystemStatsInDiscards.ipv6 = Counter32: 0
IP-MIB::ipSystemStatsInDelivers.ipv4 = Counter32: 225106
IP-MIB::ipSystemStatsInDelivers.ipv6 = Counter32: 0
IP-MIB::ipSystemStatsHCInDelivers.ipv4 = Counter64: 225106
IP-MIB::ipSystemStatsHCInDelivers.ipv6 = Counter64: 0
IP-MIB::ipSystemStatsOutRequests.ipv4 = Counter32: 225133
IP-MIB::ipSystemStatsOutRequests.ipv6 = Counter32: 6
IP-MIB::ipSystemStatsHCOutRequests.ipv4 = Counter64: 225133
IP-MIB::ipSystemStatsHCOutRequests.ipv6 = Counter64: 6
IP-MIB::ipSystemStatsOutNoRoutes.ipv4 = Counter32: 0
IP-MIB::ipSystemStatsOutNoRoutes.ipv6 = Counter32: 0
IP-MIB::ipSystemStatsOutForwDatagrams.ipv4 = Counter32: 0
IP-MIB::ipSystemStatsOutForwDatagrams.ipv6 = Counter32: 0
IP-MIB::ipSystemStatsHCOutForwDatagrams.ipv4 = Counter64: 0
IP-MIB::ipSystemStatsHCOutForwDatagrams.ipv6 = Counter64: 0
IP-MIB::ipSystemStatsOutDiscards.ipv4 = Counter32: 0
IP-MIB::ipSystemStatsOutDiscards.ipv6 = Counter32: 0
IP-MIB::ipSystemStatsOutFragReqds.ipv4 = Counter32: 0
IP-MIB::ipSystemStatsOutFragReqds.ipv6 = Counter32: 0
IP-MIB::ipSystemStatsOutFragOKs.ipv4 = Counter32: 0
IP-MIB::ipSystemStatsOutFragOKs.ipv6 = Counter32: 0
IP-MIB::ipSystemStatsOutFragFails.ipv4 = Counter32: 0
IP-MIB::ipSystemStatsOutFragFails.ipv6 = Counter32: 0
IP-MIB::ipSystemStatsOutFragCreates.ipv4 = Counter32: 0
IP-MIB::ipSystemStatsOutFragCreates.ipv6 = Counter32: 0
IP-MIB::ipSystemStatsOutTransmits.ipv4 = Counter32: 225133
IP-MIB::ipSystemStatsOutTransmits.ipv6 = Counter32: 6
IP-MIB::ipSystemStatsHCOutTransmits.ipv4 = Counter64: 225133
IP-MIB::ipSystemStatsHCOutTransmits.ipv6 = Counter64: 6
IP-MIB::ipSystemStatsOutOctets.ipv6 = Counter32: 384
IP-MIB::ipSystemStatsHCOutOctets.ipv6 = Counter64: 384
IP-MIB::ipSystemStatsInMcastPkts.ipv4 = Counter32: 0
IP-MIB::ipSystemStatsInMcastPkts.ipv6 = Counter32: 0
IP-MIB::ipSystemStatsHCInMcastPkts.ipv4 = Counter64: 0
IP-MIB::ipSystemStatsHCInMcastPkts.ipv6 = Counter64: 0
IP-MIB::ipSystemStatsInMcastOctets.ipv6 = Counter32: 0
IP-MIB::ipSystemStatsHCInMcastOctets.ipv6 = Counter64: 0
IP-MIB::ipSystemStatsOutMcastPkts.ipv4 = Counter32: 0
IP-MIB::ipSystemStatsOutMcastPkts.ipv6 = Counter32: 8
IP-MIB::ipSystemStatsHCOutMcastPkts.ipv4 = Counter64: 0
IP-MIB::ipSystemStatsHCOutMcastPkts.ipv6 = Counter64: 8
IP-MIB::ipSystemStatsOutMcastOctets.ipv6 = Counter32: 536
IP-MIB::ipSystemStatsHCOutMcastOctets.ipv6 = Counter64: 536
IP-MIB::ipSystemStatsInBcastPkts.ipv4 = Counter32: 148
IP-MIB::ipSystemStatsHCInBcastPkts.ipv4 = Counter64: 148
IP-MIB::ipSystemStatsOutBcastPkts.ipv4 = Counter32: 0
IP-MIB::ipSystemStatsHCOutBcastPkts.ipv4 = Counter64: 0
IP-MIB::ipSystemStatsDiscontinuityTime.ipv4 = Timeticks: (0) 0:00:00.00
IP-MIB::ipSystemStatsDiscontinuityTime.ipv6 = Timeticks: (0) 0:00:00.00
IP-MIB::ipSystemStatsRefreshRate.ipv4 = Gauge32: 60000 milli-seconds
IP-MIB::ipSystemStatsRefreshRate.ipv6 = Gauge32: 60000 milli-seconds
IP-MIB::ipIfStatsTableLastChange.0 = Timeticks: (0) 0:00:00.00
IP-MIB::ipIfStatsInReceives.ipv6.1 = Counter32: 0
IP-MIB::ipIfStatsInReceives.ipv6.2 = Counter32: 0
IP-MIB::ipIfStatsHCInReceives.ipv6.1 = Counter64: 0
IP-MIB::ipIfStatsHCInReceives.ipv6.2 = Counter64: 0
IP-MIB::ipIfStatsInOctets.ipv6.1 = Counter32: 0
IP-MIB::ipIfStatsInOctets.ipv6.2 = Counter32: 0
IP-MIB::ipIfStatsHCInOctets.ipv6.1 = Counter64: 0
IP-MIB::ipIfStatsHCInOctets.ipv6.2 = Counter64: 0
IP-MIB::ipIfStatsInHdrErrors.ipv6.1 = Counter32: 0
IP-MIB::ipIfStatsInHdrErrors.ipv6.2 = Counter32: 0
IP-MIB::ipIfStatsInNoRoutes.ipv6.1 = Counter32: 0
IP-MIB::ipIfStatsInNoRoutes.ipv6.2 = Counter32: 0
IP-MIB::ipIfStatsInAddrErrors.ipv6.1 = Counter32: 0
IP-MIB::ipIfStatsInAddrErrors.ipv6.2 = Counter32: 0
IP-MIB::ipIfStatsInUnknownProtos.ipv6.1 = Counter32: 0
IP-MIB::ipIfStatsInUnknownProtos.ipv6.2 = Counter32: 0
IP-MIB::ipIfStatsInTruncatedPkts.ipv6.1 = Counter32: 0
IP-MIB::ipIfStatsInTruncatedPkts.ipv6.2 = Counter32: 0
IP-MIB::ipIfStatsInForwDatagrams.ipv6.1 = Counter32: 0
IP-MIB::ipIfStatsInForwDatagrams.ipv6.2 = Counter32: 0
IP-MIB::ipIfStatsHCInForwDatagrams.ipv6.1 = Counter64: 0
IP-MIB::ipIfStatsHCInForwDatagrams.ipv6.2 = Counter64: 0
IP-MIB::ipIfStatsReasmReqds.ipv6.1 = Counter32: 0
IP-MIB::ipIfStatsReasmReqds.ipv6.2 = Counter32: 0
IP-MIB::ipIfStatsReasmOKs.ipv6.1 = Counter32: 0
IP-MIB::ipIfStatsReasmOKs.ipv6.2 = Counter32: 0
IP-MIB::ipIfStatsReasmFails.ipv6.1 = Counter32: 0
IP-MIB::ipIfStatsReasmFails.ipv6.2 = Counter32: 0
IP-MIB::ipIfStatsInDiscards.ipv6.1 = Counter32: 0
IP-MIB::ipIfStatsInDiscards.ipv6.2 = Counter32: 0
IP-MIB::ipIfStatsInDelivers.ipv6.1 = Counter32: 0
IP-MIB::ipIfStatsInDelivers.ipv6.2 = Counter32: 0
IP-MIB::ipIfStatsHCInDelivers.ipv6.1 = Counter64: 0
IP-MIB::ipIfStatsHCInDelivers.ipv6.2 = Counter64: 0
IP-MIB::ipIfStatsOutRequests.ipv6.1 = Counter32: 0
IP-MIB::ipIfStatsOutRequests.ipv6.2 = Counter32: 6
IP-MIB::ipIfStatsHCOutRequests.ipv6.1 = Counter64: 0
IP-MIB::ipIfStatsHCOutRequests.ipv6.2 = Counter64: 6
IP-MIB::ipIfStatsOutForwDatagrams.ipv6.1 = Counter32: 0
IP-MIB::ipIfStatsOutForwDatagrams.ipv6.2 = Counter32: 0
IP-MIB::ipIfStatsHCOutForwDatagrams.ipv6.1 = Counter64: 0
IP-MIB::ipIfStatsHCOutForwDatagrams.ipv6.2 = Counter64: 0
IP-MIB::ipIfStatsOutDiscards.ipv6.1 = Counter32: 0
IP-MIB::ipIfStatsOutDiscards.ipv6.2 = Counter32: 0
IP-MIB::ipIfStatsOutFragReqds.ipv6.1 = Counter32: 0
IP-MIB::ipIfStatsOutFragReqds.ipv6.2 = Counter32: 0
IP-MIB::ipIfStatsOutFragOKs.ipv6.1 = Counter32: 0
IP-MIB::ipIfStatsOutFragOKs.ipv6.2 = Counter32: 0
IP-MIB::ipIfStatsOutFragFails.ipv6.1 = Counter32: 0
IP-MIB::ipIfStatsOutFragFails.ipv6.2 = Counter32: 0
IP-MIB::ipIfStatsOutFragCreates.ipv6.1 = Counter32: 0
IP-MIB::ipIfStatsOutFragCreates.ipv6.2 = Counter32: 0
IP-MIB::ipIfStatsOutTransmits.ipv6.1 = Counter32: 0
IP-MIB::ipIfStatsOutTransmits.ipv6.2 = Counter32: 6
IP-MIB::ipIfStatsHCOutTransmits.ipv6.1 = Counter64: 0
IP-MIB::ipIfStatsHCOutTransmits.ipv6.2 = Counter64: 6
IP-MIB::ipIfStatsOutOctets.ipv6.1 = Counter32: 0
IP-MIB::ipIfStatsOutOctets.ipv6.2 = Counter32: 384
IP-MIB::ipIfStatsHCOutOctets.ipv6.1 = Counter64: 0
IP-MIB::ipIfStatsHCOutOctets.ipv6.2 = Counter64: 384
IP-MIB::ipIfStatsInMcastPkts.ipv6.1 = Counter32: 0
IP-MIB::ipIfStatsInMcastPkts.ipv6.2 = Counter32: 0
IP-MIB::ipIfStatsHCInMcastPkts.ipv6.1 = Counter64: 0
IP-MIB::ipIfStatsHCInMcastPkts.ipv6.2 = Counter64: 0
IP-MIB::ipIfStatsInMcastOctets.ipv6.1 = Counter32: 0
IP-MIB::ipIfStatsInMcastOctets.ipv6.2 = Counter32: 0
IP-MIB::ipIfStatsHCInMcastOctets.ipv6.1 = Counter64: 0
IP-MIB::ipIfStatsHCInMcastOctets.ipv6.2 = Counter64: 0
IP-MIB::ipIfStatsOutMcastPkts.ipv6.1 = Counter32: 0
IP-MIB::ipIfStatsOutMcastPkts.ipv6.2 = Counter32: 8
IP-MIB::ipIfStatsHCOutMcastPkts.ipv6.1 = Counter64: 0
IP-MIB::ipIfStatsHCOutMcastPkts.ipv6.2 = Counter64: 8
IP-MIB::ipIfStatsOutMcastOctets.ipv6.1 = Counter32: 0
IP-MIB::ipIfStatsOutMcastOctets.ipv6.2 = Counter32: 536
IP-MIB::ipIfStatsHCOutMcastOctets.ipv6.1 = Counter64: 0
IP-MIB::ipIfStatsHCOutMcastOctets.ipv6.2 = Counter64: 536
IP-MIB::ipIfStatsDiscontinuityTime.ipv6.1 = Timeticks: (0) 0:00:00.00
IP-MIB::ipIfStatsDiscontinuityTime.ipv6.2 = Timeticks: (0) 0:00:00.00
IP-MIB::ipIfStatsRefreshRate.ipv6.1 = Gauge32: 60000 milli-seconds
IP-MIB::ipIfStatsRefreshRate.ipv6.2 = Gauge32: 60000 milli-seconds
IP-MIB::ipAddressPrefixOrigin.1.ipv4."127.0.0.0".8 = INTEGER: manual(2)
IP-MIB::ipAddressPrefixOrigin.1.ipv6."00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:01".128 = INTEGER: manual(2)
IP-MIB::ipAddressPrefixOrigin.2.ipv4."192.168.2.0".24 = INTEGER: manual(2)
IP-MIB::ipAddressPrefixOrigin.2.ipv6."fe:80:00:00:00:00:00:00:00:00:00:00:00:00:00:00".64 = INTEGER: wellknown(3)
IP-MIB::ipAddressPrefixOnLinkFlag.1.ipv4."127.0.0.0".8 = INTEGER: true(1)
IP-MIB::ipAddressPrefixOnLinkFlag.1.ipv6."00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:01".128 = INTEGER: true(1)
IP-MIB::ipAddressPrefixOnLinkFlag.2.ipv4."192.168.2.0".24 = INTEGER: true(1)
IP-MIB::ipAddressPrefixOnLinkFlag.2.ipv6."fe:80:00:00:00:00:00:00:00:00:00:00:00:00:00:00".64 = INTEGER: true(1)
IP-MIB::ipAddressPrefixAutonomousFlag.1.ipv4."127.0.0.0".8 = INTEGER: false(2)
IP-MIB::ipAddressPrefixAutonomousFlag.1.ipv6."00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:01".128 = INTEGER: false(2)
IP-MIB::ipAddressPrefixAutonomousFlag.2.ipv4."192.168.2.0".24 = INTEGER: false(2)
IP-MIB::ipAddressPrefixAutonomousFlag.2.ipv6."fe:80:00:00:00:00:00:00:00:00:00:00:00:00:00:00".64 = INTEGER: false(2)
IP-MIB::ipAddressPrefixAdvPreferredLifetime.1.ipv4."127.0.0.0".8 = Gauge32: 4294967295 seconds
IP-MIB::ipAddressPrefixAdvPreferredLifetime.1.ipv6."00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:01".128 = Gauge32: 4294967295 seconds
IP-MIB::ipAddressPrefixAdvPreferredLifetime.2.ipv4."192.168.2.0".24 = Gauge32: 4294967295 seconds
IP-MIB::ipAddressPrefixAdvPreferredLifetime.2.ipv6."fe:80:00:00:00:00:00:00:00:00:00:00:00:00:00:00".64 = Gauge32: 4294967295 seconds
IP-MIB::ipAddressPrefixAdvValidLifetime.1.ipv4."127.0.0.0".8 = Gauge32: 4294967295 seconds
IP-MIB::ipAddressPrefixAdvValidLifetime.1.ipv6."00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:01".128 = Gauge32: 4294967295 seconds
IP-MIB::ipAddressPrefixAdvValidLifetime.2.ipv4."192.168.2.0".24 = Gauge32: 4294967295 seconds
IP-MIB::ipAddressPrefixAdvValidLifetime.2.ipv6."fe:80:00:00:00:00:00:00:00:00:00:00:00:00:00:00".64 = Gauge32: 4294967295 seconds
IP-MIB::ipAddressSpinLock.0 = INTEGER: 461048564
IP-MIB::ipAddressIfIndex.ipv4."127.0.0.1" = INTEGER: 1
IP-MIB::ipAddressIfIndex.ipv4."192.168.2.124" = INTEGER: 2
IP-MIB::ipAddressIfIndex.ipv4."192.168.2.255" = INTEGER: 2
IP-MIB::ipAddressIfIndex.ipv6."00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:01" = INTEGER: 1
IP-MIB::ipAddressIfIndex.ipv6."fe:80:00:00:00:00:00:00:02:0c:29:ff:fe:83:c9:75" = INTEGER: 2
IP-MIB::ipAddressType.ipv4."127.0.0.1" = INTEGER: unicast(1)
IP-MIB::ipAddressType.ipv4."192.168.2.124" = INTEGER: unicast(1)
IP-MIB::ipAddressType.ipv4."192.168.2.255" = INTEGER: broadcast(3)
IP-MIB::ipAddressType.ipv6."00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:01" = INTEGER: unicast(1)
IP-MIB::ipAddressType.ipv6."fe:80:00:00:00:00:00:00:02:0c:29:ff:fe:83:c9:75" = INTEGER: unicast(1)
IP-MIB::ipAddressPrefix.ipv4."127.0.0.1" = OID: IP-MIB::ipAddressPrefixOrigin.1.ipv4."127.0.0.0".8
IP-MIB::ipAddressPrefix.ipv4."192.168.2.124" = OID: IP-MIB::ipAddressPrefixOrigin.2.ipv4."192.168.2.0".24
IP-MIB::ipAddressPrefix.ipv4."192.168.2.255" = OID: IP-MIB::ipAddressPrefixOrigin.2.ipv4."192.168.2.0".24
IP-MIB::ipAddressPrefix.ipv6."00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:01" = OID: IP-MIB::ipAddressPrefixOrigin.1.ipv6."00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:01".128
IP-MIB::ipAddressPrefix.ipv6."fe:80:00:00:00:00:00:00:02:0c:29:ff:fe:83:c9:75" = OID: IP-MIB::ipAddressPrefixOrigin.2.ipv6."fe:80:00:00:00:00:00:00:00:00:00:00:00:00:00:00".64
IP-MIB::ipAddressOrigin.ipv4."127.0.0.1" = INTEGER: manual(2)
IP-MIB::ipAddressOrigin.ipv4."192.168.2.124" = INTEGER: manual(2)
IP-MIB::ipAddressOrigin.ipv4."192.168.2.255" = INTEGER: manual(2)
IP-MIB::ipAddressOrigin.ipv6."00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:01" = INTEGER: manual(2)
IP-MIB::ipAddressOrigin.ipv6."fe:80:00:00:00:00:00:00:02:0c:29:ff:fe:83:c9:75" = INTEGER: linklayer(5)
IP-MIB::ipAddressStatus.ipv4."127.0.0.1" = INTEGER: preferred(1)
IP-MIB::ipAddressStatus.ipv4."192.168.2.124" = INTEGER: preferred(1)
IP-MIB::ipAddressStatus.ipv4."192.168.2.255" = INTEGER: preferred(1)
IP-MIB::ipAddressStatus.ipv6."00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:01" = INTEGER: preferred(1)
IP-MIB::ipAddressStatus.ipv6."fe:80:00:00:00:00:00:00:02:0c:29:ff:fe:83:c9:75" = INTEGER: preferred(1)
IP-MIB::ipAddressCreated.ipv4."127.0.0.1" = Timeticks: (0) 0:00:00.00
IP-MIB::ipAddressCreated.ipv4."192.168.2.124" = Timeticks: (0) 0:00:00.00
IP-MIB::ipAddressCreated.ipv4."192.168.2.255" = Timeticks: (0) 0:00:00.00
IP-MIB::ipAddressCreated.ipv6."00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:01" = Timeticks: (0) 0:00:00.00
IP-MIB::ipAddressCreated.ipv6."fe:80:00:00:00:00:00:00:02:0c:29:ff:fe:83:c9:75" = Timeticks: (0) 0:00:00.00
IP-MIB::ipAddressLastChanged.ipv4."127.0.0.1" = Timeticks: (0) 0:00:00.00
IP-MIB::ipAddressLastChanged.ipv4."192.168.2.124" = Timeticks: (0) 0:00:00.00
IP-MIB::ipAddressLastChanged.ipv4."192.168.2.255" = Timeticks: (0) 0:00:00.00
IP-MIB::ipAddressLastChanged.ipv6."00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:01" = Timeticks: (0) 0:00:00.00
IP-MIB::ipAddressLastChanged.ipv6."fe:80:00:00:00:00:00:00:02:0c:29:ff:fe:83:c9:75" = Timeticks: (0) 0:00:00.00
IP-MIB::ipAddressRowStatus.ipv4."127.0.0.1" = INTEGER: active(1)
IP-MIB::ipAddressRowStatus.ipv4."192.168.2.124" = INTEGER: active(1)
IP-MIB::ipAddressRowStatus.ipv4."192.168.2.255" = INTEGER: active(1)
IP-MIB::ipAddressRowStatus.ipv6."00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:01" = INTEGER: active(1)
IP-MIB::ipAddressRowStatus.ipv6."fe:80:00:00:00:00:00:00:02:0c:29:ff:fe:83:c9:75" = INTEGER: active(1)
IP-MIB::ipAddressStorageType.ipv4."127.0.0.1" = INTEGER: volatile(2)
IP-MIB::ipAddressStorageType.ipv4."192.168.2.124" = INTEGER: volatile(2)
IP-MIB::ipAddressStorageType.ipv4."192.168.2.255" = INTEGER: volatile(2)
IP-MIB::ipAddressStorageType.ipv6."00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:01" = INTEGER: volatile(2)
IP-MIB::ipAddressStorageType.ipv6."fe:80:00:00:00:00:00:00:02:0c:29:ff:fe:83:c9:75" = INTEGER: permanent(4)
IP-MIB::ipNetToPhysicalPhysAddress.2.ipv4."192.168.2.1" = STRING: 0:50:56:c0:0:1
IP-MIB::ipNetToPhysicalLastUpdated.2.ipv4."192.168.2.1" = Timeticks: (260796) 0:43:27.96
IP-MIB::ipNetToPhysicalType.2.ipv4."192.168.2.1" = INTEGER: dynamic(3)
IP-MIB::ipNetToPhysicalState.2.ipv4."192.168.2.1" = INTEGER: reachable(1)
IP-MIB::ipNetToPhysicalRowStatus.2.ipv4."192.168.2.1" = INTEGER: active(1)
IP-MIB::ipv6ScopeZoneIndexLinkLocal.2 = Gauge32: 2
IP-MIB::ipv6ScopeZoneIndex3.2 = Gauge32: 0
IP-MIB::ipv6ScopeZoneIndexAdminLocal.2 = Gauge32: 0
IP-MIB::ipv6ScopeZoneIndexSiteLocal.2 = Gauge32: 0
IP-MIB::ipv6ScopeZoneIndex6.2 = Gauge32: 0
IP-MIB::ipv6ScopeZoneIndex7.2 = Gauge32: 0
IP-MIB::ipv6ScopeZoneIndexOrganizationLocal.2 = Gauge32: 0
IP-MIB::ipv6ScopeZoneIndex9.2 = Gauge32: 0
IP-MIB::ipv6ScopeZoneIndexA.2 = Gauge32: 0
IP-MIB::ipv6ScopeZoneIndexB.2 = Gauge32: 0
IP-MIB::ipv6ScopeZoneIndexC.2 = Gauge32: 0
IP-MIB::ipv6ScopeZoneIndexD.2 = Gauge32: 0
IP-MIB::ipDefaultRouterLifetime.ipv4."192.168.2.1".2 = Gauge32: 4294967295 seconds
IP-MIB::ipDefaultRouterPreference.ipv4."192.168.2.1".2 = INTEGER: medium(0)
HOST-RESOURCES-MIB::hrSWRunParameters.2484 = STRING: "IP-MIB::ip"

#SNMP ICMP Group
[whoami@server1 ~]$ snmpwalk -c public -v 2c localhost .1|grep 'IP-MIB::icmp'
IP-MIB::icmpInMsgs.0 = Counter32: 1
IP-MIB::icmpInErrors.0 = Counter32: 0
IP-MIB::icmpInDestUnreachs.0 = Counter32: 1
IP-MIB::icmpInTimeExcds.0 = Counter32: 0
IP-MIB::icmpInParmProbs.0 = Counter32: 0
IP-MIB::icmpInSrcQuenchs.0 = Counter32: 0
IP-MIB::icmpInRedirects.0 = Counter32: 0
IP-MIB::icmpInEchos.0 = Counter32: 0
IP-MIB::icmpInEchoReps.0 = Counter32: 0
IP-MIB::icmpInTimestamps.0 = Counter32: 0
IP-MIB::icmpInTimestampReps.0 = Counter32: 0
IP-MIB::icmpInAddrMasks.0 = Counter32: 0
IP-MIB::icmpInAddrMaskReps.0 = Counter32: 0
IP-MIB::icmpOutMsgs.0 = Counter32: 1
IP-MIB::icmpOutErrors.0 = Counter32: 0
IP-MIB::icmpOutDestUnreachs.0 = Counter32: 1
IP-MIB::icmpOutTimeExcds.0 = Counter32: 0
IP-MIB::icmpOutParmProbs.0 = Counter32: 0
IP-MIB::icmpOutSrcQuenchs.0 = Counter32: 0
IP-MIB::icmpOutRedirects.0 = Counter32: 0
IP-MIB::icmpOutEchos.0 = Counter32: 0
IP-MIB::icmpOutEchoReps.0 = Counter32: 0
IP-MIB::icmpOutTimestamps.0 = Counter32: 0
IP-MIB::icmpOutTimestampReps.0 = Counter32: 0
IP-MIB::icmpOutAddrMasks.0 = Counter32: 0
IP-MIB::icmpOutAddrMaskReps.0 = Counter32: 0
IP-MIB::icmpStatsInMsgs.ipv4 = Counter32: 1
IP-MIB::icmpStatsInMsgs.ipv6 = Counter32: 0
IP-MIB::icmpStatsInErrors.ipv4 = Counter32: 0
IP-MIB::icmpStatsInErrors.ipv6 = Counter32: 0
IP-MIB::icmpStatsOutMsgs.ipv4 = Counter32: 1
IP-MIB::icmpStatsOutMsgs.ipv6 = Counter32: 6
IP-MIB::icmpStatsOutErrors.ipv4 = Counter32: 0
IP-MIB::icmpStatsOutErrors.ipv6 = Counter32: 0
IP-MIB::icmpMsgStatsInPkts.ipv4.3 = Counter32: 1
IP-MIB::icmpMsgStatsOutPkts.ipv4.3 = Counter32: 1
IP-MIB::icmpMsgStatsOutPkts.ipv6.133 = Counter32: 3
IP-MIB::icmpMsgStatsOutPkts.ipv6.135 = Counter32: 1
IP-MIB::icmpMsgStatsOutPkts.ipv6.143 = Counter32: 2
HOST-RESOURCES-MIB::hrSWRunParameters.2495 = STRING: "IP-MIB::icmp"

# SNMP TCP Group:
[whoami@server1 ~]$ snmpwalk -c public -v 2c localhost 1|grep 'TCP-MIB::tcp'
SNMPv2-MIB::sysORID.5 = OID: TCP-MIB::tcpMIB
TCP-MIB::tcpRtoAlgorithm.0 = INTEGER: other(1)
TCP-MIB::tcpRtoMin.0 = INTEGER: 200 milliseconds
TCP-MIB::tcpRtoMax.0 = INTEGER: 120000 milliseconds
TCP-MIB::tcpMaxConn.0 = INTEGER: -1
TCP-MIB::tcpActiveOpens.0 = Counter32: 0
TCP-MIB::tcpPassiveOpens.0 = Counter32: 1
TCP-MIB::tcpAttemptFails.0 = Counter32: 0
TCP-MIB::tcpEstabResets.0 = Counter32: 0
TCP-MIB::tcpCurrEstab.0 = Gauge32: 1
TCP-MIB::tcpInSegs.0 = Counter32: 3325
TCP-MIB::tcpOutSegs.0 = Counter32: 3437
TCP-MIB::tcpRetransSegs.0 = Counter32: 0
TCP-MIB::tcpConnState.0.0.0.0.22.0.0.0.0.0 = INTEGER: listen(2)
TCP-MIB::tcpConnState.0.0.0.0.3306.0.0.0.0.0 = INTEGER: listen(2)
TCP-MIB::tcpConnState.0.0.0.0.4200.0.0.0.0.0 = INTEGER: listen(2)
TCP-MIB::tcpConnState.127.0.0.1.25.0.0.0.0.0 = INTEGER: listen(2)
TCP-MIB::tcpConnState.127.0.0.1.199.0.0.0.0.0 = INTEGER: listen(2)
TCP-MIB::tcpConnState.192.168.2.124.22.192.168.2.1.59082 = INTEGER: established(5)
TCP-MIB::tcpConnState.192.168.2.124.80.0.0.0.0.0 = INTEGER: listen(2)
TCP-MIB::tcpConnLocalAddress.0.0.0.0.22.0.0.0.0.0 = IpAddress: 0.0.0.0
TCP-MIB::tcpConnLocalAddress.0.0.0.0.3306.0.0.0.0.0 = IpAddress: 0.0.0.0
TCP-MIB::tcpConnLocalAddress.0.0.0.0.4200.0.0.0.0.0 = IpAddress: 0.0.0.0
TCP-MIB::tcpConnLocalAddress.127.0.0.1.25.0.0.0.0.0 = IpAddress: 127.0.0.1
TCP-MIB::tcpConnLocalAddress.127.0.0.1.199.0.0.0.0.0 = IpAddress: 127.0.0.1
TCP-MIB::tcpConnLocalAddress.192.168.2.124.22.192.168.2.1.59082 = IpAddress: 192.168.2.124
TCP-MIB::tcpConnLocalAddress.192.168.2.124.80.0.0.0.0.0 = IpAddress: 192.168.2.124
TCP-MIB::tcpConnLocalPort.0.0.0.0.22.0.0.0.0.0 = INTEGER: 22
TCP-MIB::tcpConnLocalPort.0.0.0.0.3306.0.0.0.0.0 = INTEGER: 3306
TCP-MIB::tcpConnLocalPort.0.0.0.0.4200.0.0.0.0.0 = INTEGER: 4200
TCP-MIB::tcpConnLocalPort.127.0.0.1.25.0.0.0.0.0 = INTEGER: 25
TCP-MIB::tcpConnLocalPort.127.0.0.1.199.0.0.0.0.0 = INTEGER: 199
TCP-MIB::tcpConnLocalPort.192.168.2.124.22.192.168.2.1.59082 = INTEGER: 22
TCP-MIB::tcpConnLocalPort.192.168.2.124.80.0.0.0.0.0 = INTEGER: 80
TCP-MIB::tcpConnRemAddress.0.0.0.0.22.0.0.0.0.0 = IpAddress: 0.0.0.0
TCP-MIB::tcpConnRemAddress.0.0.0.0.3306.0.0.0.0.0 = IpAddress: 0.0.0.0
TCP-MIB::tcpConnRemAddress.0.0.0.0.4200.0.0.0.0.0 = IpAddress: 0.0.0.0
TCP-MIB::tcpConnRemAddress.127.0.0.1.25.0.0.0.0.0 = IpAddress: 0.0.0.0
TCP-MIB::tcpConnRemAddress.127.0.0.1.199.0.0.0.0.0 = IpAddress: 0.0.0.0
TCP-MIB::tcpConnRemAddress.192.168.2.124.22.192.168.2.1.59082 = IpAddress: 192.168.2.1
TCP-MIB::tcpConnRemAddress.192.168.2.124.80.0.0.0.0.0 = IpAddress: 0.0.0.0
TCP-MIB::tcpConnRemPort.0.0.0.0.22.0.0.0.0.0 = INTEGER: 0
TCP-MIB::tcpConnRemPort.0.0.0.0.3306.0.0.0.0.0 = INTEGER: 0
TCP-MIB::tcpConnRemPort.0.0.0.0.4200.0.0.0.0.0 = INTEGER: 0
TCP-MIB::tcpConnRemPort.127.0.0.1.25.0.0.0.0.0 = INTEGER: 0
TCP-MIB::tcpConnRemPort.127.0.0.1.199.0.0.0.0.0 = INTEGER: 0
TCP-MIB::tcpConnRemPort.192.168.2.124.22.192.168.2.1.59082 = INTEGER: 59082
TCP-MIB::tcpConnRemPort.192.168.2.124.80.0.0.0.0.0 = INTEGER: 0
TCP-MIB::tcpInErrs.0 = Counter32: 0
TCP-MIB::tcpOutRsts.0 = Counter32: 0
TCP-MIB::tcpConnectionState.ipv4."192.168.2.124".22.ipv4."192.168.2.1".59082 = INTEGER: established(5)
TCP-MIB::tcpConnectionProcess.ipv4."192.168.2.124".22.ipv4."192.168.2.1".59082 = Gauge32: 2301
TCP-MIB::tcpListenerProcess.ipv4."0.0.0.0".22 = Gauge32: 1924
TCP-MIB::tcpListenerProcess.ipv4."0.0.0.0".3306 = Gauge32: 2063
TCP-MIB::tcpListenerProcess.ipv4."0.0.0.0".4200 = Gauge32: 2172
TCP-MIB::tcpListenerProcess.ipv4."127.0.0.1".25 = Gauge32: 2158
TCP-MIB::tcpListenerProcess.ipv4."127.0.0.1".199 = Gauge32: 1907
TCP-MIB::tcpListenerProcess.ipv4."192.168.2.124".80 = Gauge32: 2229
TCP-MIB::tcpListenerProcess.ipv6."00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00".22 = Gauge32: 1924
TCP-MIB::tcpListenerProcess.ipv6."00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:01".25 = Gauge32: 2158
HOST-RESOURCES-MIB::hrSWRunParameters.2499 = STRING: "TCP-MIB::tcp"

# SNMP UDP Group
[whoami@server1 ~]$ snmpwalk -c public -v 2c localhost 1|grep 'UDP-MIB::udp'
SNMPv2-MIB::sysORID.7 = OID: UDP-MIB::udpMIB
UDP-MIB::udpInDatagrams.0 = Counter32: 267890
UDP-MIB::udpNoPorts.0 = Counter32: 1
UDP-MIB::udpInErrors.0 = Counter32: 0
UDP-MIB::udpOutDatagrams.0 = Counter32: 267894
UDP-MIB::udpLocalAddress.0.0.0.0.161 = IpAddress: 0.0.0.0
UDP-MIB::udpLocalAddress.0.0.0.0.47639 = IpAddress: 0.0.0.0
UDP-MIB::udpLocalPort.0.0.0.0.161 = INTEGER: 161
UDP-MIB::udpLocalPort.0.0.0.0.47639 = INTEGER: 47639
UDP-MIB::udpEndpointProcess.ipv4."0.0.0.0".161.ipv4."0.0.0.0".0.13836 = Gauge32: 1907
UDP-MIB::udpEndpointProcess.ipv4."0.0.0.0".42595.ipv4."0.0.0.0".0.279484 = Gauge32: 2498
HOST-RESOURCES-MIB::hrSWRunParameters.2502 = STRING: "UDP-MIB::udp"

# SNMP Group:
snmpInPkts 1.3.6.1.2.1.11.1
snmpOutPkts 1.3.6.1.2.1.11.2
snmpInBadVersions 1.3.6.1.2.1.11.3
snmpInBadCommunityNames 1.3.6.1.2.1.11.4
snmpInBadCommunityUses 1.3.6.1.2.1.11.5
snmpInASNParseErrs 1.3.6.1.2.1.11.6
NOT USED 1.3.6.1.2.1.11.7
snmpInTooBigs 1.3.6.1.2.1.11.8
snmpInNoSuchNames 1.3.6.1.2.1.11.9
snmpInBadValues 1.3.6.1.2.1.11.10
snmpInReadOnlys 1.3.6.1.2.1.11.11
snmpInGenErrs 1.3.6.1.2.1.11.12
snmpInTotalReqVars 1.3.6.1.2.1.11.13
snmpInTotalSetVars 1.3.6.1.2.1.11.14
snmpInGetRequests 1.3.6.1.2.1.11.15
snmpInGetNexts 1.3.6.1.2.1.11.16
snmpInSetRequests 1.3.6.1.2.1.11.17
snmpInGetResponses 1.3.6.1.2.1.11.18
snmpInTraps 1.3.6.1.2.1.11.19
snmpOutTooBigs 1.3.6.1.2.1.11.20
snmpOutNoSuchNames 1.3.6.1.2.1.11.21
snmpOutBadValues 1.3.6.1.2.1.11.22
NOT USED 1.3.6.1.2.1.11.23
snmpOutGenErrs 1.3.6.1.2.1.11.24
snmpOutGetRequests 1.3.6.1.2.1.11.25
snmpOutGetNexts 1.3.6.1.2.1.11.26
snmpOutSetRequests 1.3.6.1.2.1.11.27
snmpOutGetResponses 1.3.6.1.2.1.11.28
snmpOutTraps 1.3.6.1.2.1.11.29
snmpEnableAuthenTraps 1.3.6.1.2.1.11.30

#案例

1
2
3
4
5
6
7
8
9
10
11
12
13
#当前服务器连接数:
[whoami@server1 ~]$ snmpwalk -c public -v 2c localhost 1.3.6.1.2.1.6.13.1.1
TCP-MIB::tcpConnState.0.0.0.0.22.0.0.0.0.0 = INTEGER: listen(2)
TCP-MIB::tcpConnState.0.0.0.0.3306.0.0.0.0.0 = INTEGER: listen(2)
TCP-MIB::tcpConnState.0.0.0.0.4200.0.0.0.0.0 = INTEGER: listen(2)
TCP-MIB::tcpConnState.127.0.0.1.25.0.0.0.0.0 = INTEGER: listen(2)
TCP-MIB::tcpConnState.127.0.0.1.199.0.0.0.0.0 = INTEGER: listen(2)
TCP-MIB::tcpConnState.192.168.2.124.22.192.168.2.1.59082 = INTEGER: established(5)
TCP-MIB::tcpConnState.192.168.2.124.80.0.0.0.0.0 = INTEGER: listen(2)

#服务器1分钟负载
[whoami@server1 ~]$ snmpwalk -c public -v 2c localhost .1.3.6.1.4.1.2021.10.1.3.1
UCD-SNMP-MIB::laLoad.1 = STRING: 0.03

snmptrap

1
2
3
4
5
6
7
8
9
10
[whoami@server1 ~]$ man snmptrap 

SYNOPSIS
snmptrap -v 1 [COMMON OPTIONS] [-Ci] enterprise-oid agent generic-trap specific-trap uptime [OID TYPE VALUE]...

snmptrap -v [2c|3] [COMMON OPTIONS] [-Ci] uptime trap-oid [OID TYPE VALUE]...

snmpinform -v [2c|3] [COMMON OPTIONS] uptime trap-oid [OID TYPE VALUE]...

http://www.ibm.com/developerworks/cn/linux/l-cn-snmp/

原创文章,转载请注明: 转载自Itweet的博客
本博客的文章集合: http://www.itweet.cn/blog/archive/