├── img
├── photo5019462669371025653.jpg
├── photo5019462669371025655.jpg
├── photo5019462669371025656.jpg
├── RFC-1215.txt
├── IPV6-FLOW-LABEL-MIB.txt
├── NET-SNMP-MIB.txt
├── SNMP-USM-AES-MIB.txt
├── UCD-DEMO-MIB.txt
├── IPV6-TC.txt
├── RFC1155-SMI.txt
├── UCD-DLMOD-MIB.txt
├── NET-SNMP-PASS-MIB.txt
├── IANA-RTPROTO-MIB.txt
├── SNMP-USM-HMAC-SHA2-MIB.txt
├── IANA-LANGUAGE-MIB.txt
├── HCNUM-TC.txt
├── NET-SNMP-TC.txt
├── SMUX-MIB.txt
├── IF-INVERTED-STACK-MIB.txt
├── NET-SNMP-VACM-MIB.txt
├── UCD-DISKIO-MIB.txt
├── SNMP-MPD-MIB.txt
├── IPV6-UDP-MIB.txt
├── SNMPv2-TM.txt
├── LM-SENSORS-MIB.txt
├── IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt
├── UCD-IPFWACC-MIB.txt
├── SNMPv2-CONF.txt
├── SNMP-TSM-MIB.txt
├── IPV6-TCP-MIB.txt
├── SNMP-PROXY-MIB.txt
├── NET-SNMP-EXAMPLES-MIB.txt
├── SNMPv2-SMI.txt
└── NET-SNMP-EXTEND-MIB.txt
├── requirements.txt
├── OLT
└── 700-Chassi Huawei.xml
├── Templates
├── template-andrade-solutions.xml
├── zbx_export_templates (7).xml
└── zbx_export_templates (6).xml
├── README.md
├── biblioteca-index-oid.txt
├── Downdetector-Grafana-All.json
└── model.sh
/img/photo5019462669371025653.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/matheusandrades/Zabbix-Grafana-Huawei/HEAD/img/photo5019462669371025653.jpg
--------------------------------------------------------------------------------
/img/photo5019462669371025655.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/matheusandrades/Zabbix-Grafana-Huawei/HEAD/img/photo5019462669371025655.jpg
--------------------------------------------------------------------------------
/img/photo5019462669371025656.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/matheusandrades/Zabbix-Grafana-Huawei/HEAD/img/photo5019462669371025656.jpg
--------------------------------------------------------------------------------
/requirements.txt:
--------------------------------------------------------------------------------
1 | beautifulsoup4==4.9.0
2 | certifi==2020.4.5.1
3 | chardet==3.0.4
4 | cloudscraper==1.2.33
5 | idna==2.9
6 | requests==2.23.0
7 | requests-toolbelt==0.9.1
8 | soupsieve==2.0
9 | urllib3==1.25.9
10 |
--------------------------------------------------------------------------------
/img/RFC-1215.txt:
--------------------------------------------------------------------------------
1 |
2 | RFC-1215 DEFINITIONS ::= BEGIN
3 |
4 | -- This module is a empty module. It has been created solely for the
5 | -- purpose of allowing other modules to correctly import the TRAP-TYPE
6 | -- clause from RFC-1215 where it should be imported from. It's a
7 | -- built in type in the UCD-SNMP code, and in fact RFC-1215 doesn't
8 | -- actually define a mib at all; it only defines macros. However,
9 | -- importing the TRAP-TYPE is conventionally done from an import
10 | -- clause pointing to RFC-1215.
11 | --
12 | -- Wes 7/17/98
13 |
14 | TRAP-TYPE MACRO ::=
15 | BEGIN
16 | TYPE NOTATION ::= "ENTERPRISE" value
17 | (enterprise OBJECT IDENTIFIER)
18 | VarPart
19 | DescrPart
20 | ReferPart
21 | VALUE NOTATION ::= value (VALUE INTEGER)
22 | VarPart ::=
23 | "VARIABLES" "{" VarTypes "}"
24 | | empty
25 | VarTypes ::=
26 | VarType | VarTypes "," VarType
27 | VarType ::=
28 | value (vartype ObjectName)
29 | DescrPart ::=
30 | "DESCRIPTION" value (description DisplayString)
31 | | empty
32 | ReferPart ::=
33 | "REFERENCE" value (reference DisplayString)
34 | | empty
35 | END
36 |
37 |
38 | END
39 |
--------------------------------------------------------------------------------
/OLT/700-Chassi Huawei.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 5.0
4 | 2021-03-24T20:21:39Z
5 |
6 |
7 | Templates/Chassi
8 |
9 |
10 |
11 |
12 | 700-Chassi Huawei
13 | 700-Chassi Huawei
14 |
15 |
16 | 1000-Interfaces_Generico
17 |
18 |
19 | 1003-SNMP
20 |
21 |
22 | 1004-ICMP
23 |
24 |
25 | 1006-Base_SNMPv2
26 |
27 |
28 | 1800-Geral
29 |
30 |
31 | 1801-PON
32 |
33 |
34 | 1802-Placas Chassi
35 |
36 |
37 |
38 |
39 | Templates/Chassi
40 |
41 |
42 |
43 |
44 | {$FABRICANTE}
45 | Chassi Huawei
46 |
47 |
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/img/IPV6-FLOW-LABEL-MIB.txt:
--------------------------------------------------------------------------------
1 | IPV6-FLOW-LABEL-MIB DEFINITIONS ::= BEGIN
2 |
3 | IMPORTS
4 |
5 | MODULE-IDENTITY, mib-2, Integer32 FROM SNMPv2-SMI
6 | TEXTUAL-CONVENTION FROM SNMPv2-TC;
7 |
8 | ipv6FlowLabelMIB MODULE-IDENTITY
9 |
10 | LAST-UPDATED "200308280000Z" -- 28 August 2003
11 | ORGANIZATION "IETF Operations and Management Area"
12 | CONTACT-INFO "Bert Wijnen (Editor)
13 | Lucent Technologies
14 | Schagen 33
15 | 3461 GL Linschoten
16 | Netherlands
17 |
18 | Phone: +31 348-407-775
19 | EMail: bwijnen@lucent.com
20 |
21 | Send comments to .
22 | "
23 | DESCRIPTION "This MIB module provides commonly used textual
24 | conventions for IPv6 Flow Labels.
25 |
26 | Copyright (C) The Internet Society (2003). This
27 | version of this MIB module is part of RFC 3595,
28 | see the RFC itself for full legal notices.
29 | "
30 | -- Revision History
31 |
32 | REVISION "200308280000Z" -- 28 August 2003
33 | DESCRIPTION "Initial version, published as RFC 3595."
34 | ::= { mib-2 103 }
35 |
36 | IPv6FlowLabel ::= TEXTUAL-CONVENTION
37 | DISPLAY-HINT "d"
38 | STATUS current
39 | DESCRIPTION "The flow identifier or Flow Label in an IPv6
40 | packet header that may be used to discriminate
41 | traffic flows.
42 | "
43 | REFERENCE "Internet Protocol, Version 6 (IPv6) specification,
44 | section 6. RFC 2460.
45 | "
46 | SYNTAX Integer32 (0..1048575)
47 |
48 | IPv6FlowLabelOrAny ::= TEXTUAL-CONVENTION
49 | DISPLAY-HINT "d"
50 | STATUS current
51 | DESCRIPTION "The flow identifier or Flow Label in an IPv6
52 | packet header that may be used to discriminate
53 | traffic flows. The value of -1 is used to
54 | indicate a wildcard, i.e. any value.
55 | "
56 | SYNTAX Integer32 (-1 | 0..1048575)
57 |
58 | END
59 |
--------------------------------------------------------------------------------
/img/NET-SNMP-MIB.txt:
--------------------------------------------------------------------------------
1 | NET-SNMP-MIB DEFINITIONS ::= BEGIN
2 |
3 | --
4 | -- Top-level infrastructure of the Net-SNMP project enterprise MIB tree
5 | --
6 |
7 | IMPORTS
8 | MODULE-IDENTITY, enterprises FROM SNMPv2-SMI;
9 |
10 | netSnmp MODULE-IDENTITY
11 | LAST-UPDATED "200201300000Z"
12 | ORGANIZATION "www.net-snmp.org"
13 | CONTACT-INFO
14 | "postal: Wes Hardaker
15 | P.O. Box 382
16 | Davis CA 95617
17 |
18 | email: net-snmp-coders@lists.sourceforge.net"
19 | DESCRIPTION
20 | "Top-level infrastructure of the Net-SNMP project enterprise MIB tree"
21 | REVISION "200201300000Z"
22 | DESCRIPTION
23 | "First draft"
24 | ::= { enterprises 8072}
25 |
26 |
27 | --
28 | -- Net-SNMP enterprise-specific management objects
29 | --
30 |
31 | netSnmpObjects OBJECT IDENTIFIER ::= {netSnmp 1}
32 | -- netSnmpExamples OBJECT IDENTIFIER ::= {netSnmp 2}
33 | netSnmpEnumerations OBJECT IDENTIFIER ::= {netSnmp 3}
34 | netSnmpModuleIDs OBJECT IDENTIFIER ::= {netSnmpEnumerations 1}
35 | netSnmpAgentOIDs OBJECT IDENTIFIER ::= {netSnmpEnumerations 2}
36 | netSnmpDomains OBJECT IDENTIFIER ::= {netSnmpEnumerations 3}
37 | netSnmpExperimental OBJECT IDENTIFIER ::= {netSnmp 9999}
38 |
39 | --
40 | -- A subtree specifically designed for private testing purposes.
41 | -- No "public" management objects should ever be defined within this tree.
42 | --
43 | -- It is provided for private experimentation, prior to transferring a MIB
44 | -- structure to another part of the overall OID tree
45 | --
46 | netSnmpPlaypen OBJECT IDENTIFIER ::= {netSnmpExperimental 9999}
47 |
48 |
49 | --
50 | -- Notifications
51 | --
52 |
53 | netSnmpNotificationPrefix OBJECT IDENTIFIER ::= {netSnmp 4}
54 | netSnmpNotifications OBJECT IDENTIFIER ::= {netSnmpNotificationPrefix 0}
55 | netSnmpNotificationObjects OBJECT IDENTIFIER ::= {netSnmpNotificationPrefix 1}
56 |
57 |
58 | --
59 | -- Conformance
60 | -- (No laughing at the back!)
61 | --
62 |
63 | netSnmpConformance OBJECT IDENTIFIER ::= {netSnmp 5}
64 | netSnmpCompliances OBJECT IDENTIFIER ::= {netSnmpConformance 1}
65 | netSnmpGroups OBJECT IDENTIFIER ::= {netSnmpConformance 2}
66 |
67 | END
68 |
--------------------------------------------------------------------------------
/img/SNMP-USM-AES-MIB.txt:
--------------------------------------------------------------------------------
1 | SNMP-USM-AES-MIB DEFINITIONS ::= BEGIN
2 | IMPORTS
3 | MODULE-IDENTITY, OBJECT-IDENTITY,
4 | snmpModules FROM SNMPv2-SMI -- [RFC2578]
5 | snmpPrivProtocols FROM SNMP-FRAMEWORK-MIB; -- [RFC3411]
6 |
7 | snmpUsmAesMIB MODULE-IDENTITY
8 | LAST-UPDATED "200406140000Z"
9 | ORGANIZATION "IETF"
10 | CONTACT-INFO "Uri Blumenthal
11 | Lucent Technologies / Bell Labs
12 | 67 Whippany Rd.
13 | 14D-318
14 | Whippany, NJ 07981, USA
15 | 973-386-2163
16 | uri@bell-labs.com
17 |
18 | Fabio Maino
19 | Andiamo Systems, Inc.
20 | 375 East Tasman Drive
21 | San Jose, CA 95134, USA
22 | 408-853-7530
23 | fmaino@andiamo.com
24 |
25 | Keith McCloghrie
26 | Cisco Systems, Inc.
27 | 170 West Tasman Drive
28 | San Jose, CA 95134-1706, USA
29 |
30 | 408-526-5260
31 | kzm@cisco.com"
32 | DESCRIPTION "Definitions of Object Identities needed for
33 | the use of AES by SNMP's User-based Security
34 | Model.
35 |
36 | Copyright (C) The Internet Society (2004).
37 |
38 | This version of this MIB module is part of RFC 3826;
39 | see the RFC itself for full legal notices.
40 | Supplementary information may be available on
41 | http://www.ietf.org/copyrights/ianamib.html."
42 |
43 | REVISION "200406140000Z"
44 | DESCRIPTION "Initial version, published as RFC3826"
45 | ::= { snmpModules 20 }
46 |
47 | usmAesCfb128Protocol OBJECT-IDENTITY
48 | STATUS current
49 | DESCRIPTION "The CFB128-AES-128 Privacy Protocol."
50 | REFERENCE "- Specification for the ADVANCED ENCRYPTION
51 | STANDARD. Federal Information Processing
52 | Standard (FIPS) Publication 197.
53 | (November 2001).
54 |
55 | - Dworkin, M., NIST Recommendation for Block
56 | Cipher Modes of Operation, Methods and
57 | Techniques. NIST Special Publication 800-38A
58 | (December 2001).
59 | "
60 | ::= { snmpPrivProtocols 4 }
61 |
62 | END
63 |
--------------------------------------------------------------------------------
/img/UCD-DEMO-MIB.txt:
--------------------------------------------------------------------------------
1 | UCD-DEMO-MIB DEFINITIONS ::= BEGIN
2 |
3 | IMPORTS
4 | MODULE-IDENTITY, OBJECT-TYPE, Integer32 FROM SNMPv2-SMI
5 | ucdavis FROM UCD-SNMP-MIB;
6 |
7 | ucdDemoMIB MODULE-IDENTITY
8 | LAST-UPDATED "9912090000Z"
9 | ORGANIZATION "University of California, Davis"
10 | CONTACT-INFO
11 | "This mib is no longer being maintained by the University of
12 | California and is now in life-support-mode and being
13 | maintained by the net-snmp project. The best place to write
14 | for public questions about the net-snmp-coders mailing list
15 | at net-snmp-coders@lists.sourceforge.net.
16 |
17 | postal: Wes Hardaker
18 | P.O. Box 382
19 | Davis CA 95617
20 |
21 | email: net-snmp-coders@lists.sourceforge.net
22 | "
23 | DESCRIPTION
24 | "The UCD-SNMP Demonstration MIB."
25 | REVISION "9912090000Z"
26 | DESCRIPTION
27 | "SMIv2 version converted from older MIB definitions."
28 | ::= { ucdavis 14 }
29 |
30 | ucdDemoMIBObjects OBJECT IDENTIFIER ::= { ucdDemoMIB 1 }
31 |
32 | ucdDemoPublic OBJECT IDENTIFIER ::= { ucdDemoMIBObjects 1 }
33 |
34 | ucdDemoResetKeys OBJECT-TYPE
35 | SYNTAX Integer32 (0..2147483647)
36 | MAX-ACCESS read-write
37 | STATUS current
38 | DESCRIPTION
39 | "A set of value 1 to this object resets the
40 | demonstration user's auth and priv keys to the
41 | keys based on the P->Ku->Kul transformation of the
42 | value of the ucdDemoPasspharse object.
43 |
44 | Values other than 1 are ignored."
45 | ::= { ucdDemoPublic 1 }
46 |
47 | ucdDemoPublicString OBJECT-TYPE
48 | SYNTAX OCTET STRING (SIZE(0..1024))
49 | MAX-ACCESS read-write
50 | STATUS current
51 | DESCRIPTION
52 | "A publicly settable string that can be set for testing
53 | snmpsets. This value has no real usage other than
54 | testing purposes."
55 | ::= { ucdDemoPublic 2 }
56 |
57 | ucdDemoUserList OBJECT-TYPE
58 | SYNTAX OCTET STRING
59 | MAX-ACCESS read-only
60 | STATUS current
61 | DESCRIPTION
62 | "The list of users affected by the ucdDemoResetKeys object."
63 | ::= { ucdDemoPublic 3 }
64 |
65 | ucdDemoPassphrase OBJECT-TYPE
66 | SYNTAX OCTET STRING
67 | MAX-ACCESS read-only
68 | STATUS current
69 | DESCRIPTION
70 | "The demo passphrase that ucdDemoResetKeys changes each
71 | users localized key to based on the P->Ku->Kul transformation."
72 | ::= { ucdDemoPublic 4 }
73 |
74 | END
75 |
--------------------------------------------------------------------------------
/Templates/template-andrade-solutions.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 5.0
4 | 2021-02-23T13:19:43Z
5 |
6 |
7 | Templates
8 |
9 |
10 |
11 |
12 | Template Module Discovery OLT Huawei
13 | Template Module Discovery OLT Huawei
14 | Template adaptador por Matheus da Silva Andrade
15 |
16 | 24-981677124
17 |
18 |
19 | Templates
20 |
21 |
22 |
23 |
24 | Distancia ONU
25 |
26 |
27 | pon
28 |
29 |
30 | Sinal ONU Cliente
31 |
32 |
33 | Slot Porta PON
34 |
35 |
36 | Status ONU
37 |
38 |
39 | Temperatura
40 |
41 |
42 | teste
43 |
44 |
45 |
46 |
47 | Discovery ONU
48 | SNMP_AGENT
49 | discovery[{#OLTPORT},ifName,{#SNMPVALUE},1.3.6.1.4.1.2011.6.128.1.1.2.43.1.9]
50 | pon.desc
51 | 15s
52 | 0
53 |
54 |
55 | status {#SNMPVALUE} {#SNMPINDEX}
56 | SNMP_AGENT
57 | .1.3.6.1.4.1.2011.6.128.1.1.2.46.1.15.{#SNMPINDEX}
58 | .1.3.6.1.4.1.2011.6.128.1.1.2.46.1.15.[{#SNMPVALUE}]
59 | 5m
60 | 30d
61 | 0
62 |
63 |
64 | Status ONU
65 |
66 |
67 |
68 |
69 | clientes online
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
--------------------------------------------------------------------------------
/img/IPV6-TC.txt:
--------------------------------------------------------------------------------
1 | IPV6-TC DEFINITIONS ::= BEGIN
2 |
3 | -- Copyright (c) 2017 IETF Trust and the persons identified as
4 | -- authors of the code. All rights reserved.
5 |
6 | -- Redistribution and use in source and binary forms, with or without
7 | -- modification, is permitted pursuant to, and subject to the license
8 | -- terms contained in, the Simplified BSD License set forth in Section
9 | -- 4.c of the IETF Trust's Legal Provisions Relating to IETF Documents
10 | -- (http://trustee.ietf.org/license-info).
11 |
12 | IMPORTS
13 | Integer32 FROM SNMPv2-SMI
14 | TEXTUAL-CONVENTION FROM SNMPv2-TC;
15 |
16 | -- definition of textual conventions
17 | Ipv6Address ::= TEXTUAL-CONVENTION
18 | DISPLAY-HINT "2x:"
19 | STATUS obsolete
20 | DESCRIPTION
21 | "This data type is used to model IPv6 addresses.
22 | This is a binary string of 16 octets in network
23 | byte-order.
24 |
25 | This object is obsoleted by INET-ADDRESS-MIB::InetAddress."
26 | SYNTAX OCTET STRING (SIZE (16))
27 |
28 | Ipv6AddressPrefix ::= TEXTUAL-CONVENTION
29 | DISPLAY-HINT "2x:"
30 | STATUS obsolete
31 | DESCRIPTION
32 | "This data type is used to model IPv6 address
33 | prefixes. This is a binary string of up to 16
34 | octets in network byte-order.
35 | This object is obsoleted by INET-ADDRESS-MIB::InetAddress."
36 | SYNTAX OCTET STRING (SIZE (0..16))
37 |
38 | Ipv6AddressIfIdentifier ::= TEXTUAL-CONVENTION
39 | DISPLAY-HINT "2x:"
40 | STATUS obsolete
41 | DESCRIPTION
42 | "This data type is used to model IPv6 address
43 | interface identifiers. This is a binary string
44 | of up to 8 octets in network byte-order.
45 |
46 | This object is obsoleted by IP-MIB::Ipv6AddressIfIdentifierTC."
47 | SYNTAX OCTET STRING (SIZE (0..8))
48 |
49 | Ipv6IfIndex ::= TEXTUAL-CONVENTION
50 | DISPLAY-HINT "d"
51 | STATUS obsolete
52 | DESCRIPTION
53 | "A unique value, greater than zero for each
54 | internetwork-layer interface in the managed
55 | system. It is recommended that values are assigned
56 | contiguously starting from 1. The value for each
57 | internetwork-layer interface must remain constant
58 | at least from one re-initialization of the entity's
59 | network management system to the next
60 | re-initialization.
61 |
62 | This object is obsoleted by IF-MIB::InterfaceIndex."
63 | SYNTAX Integer32 (1..2147483647)
64 |
65 | Ipv6IfIndexOrZero ::= TEXTUAL-CONVENTION
66 | DISPLAY-HINT "d"
67 | STATUS obsolete
68 | DESCRIPTION
69 | "This textual convention is an extension of the
70 | Ipv6IfIndex convention. The latter defines
71 | a greater than zero value used to identify an IPv6
72 | interface in the managed system. This extension
73 | permits the additional value of zero. The value
74 | zero is object-specific and must therefore be
75 | defined as part of the description of any object
76 | which uses this syntax. Examples of the usage of
77 | zero might include situations where interface was
78 | unknown, or when none or all interfaces need to be
79 | referenced.
80 |
81 | This object is obsoleted by IF-MIB::InterfaceIndexOrZero."
82 | SYNTAX Integer32 (0..2147483647)
83 |
84 | END
85 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Zabbix-Grafana
2 | 
3 |
4 | (ANTES DE QUALQUER COISA TAMBEM DEIXEI UM TEMPLATE DAS ONU AUTORIZADAS POR PON, SÃO DOIS TEMPLATES DIFERENTES MAS VOCÊ PODE UNIR OS DOIS)
5 |
6 | ## Olá hoje venho trazer pra vocês uma solução de tratar OID´s que contem "sub-index", neste exemplo vamos consultar o total de ONU online por PON de uma OLT HUAWEI que por padrão não existe 1 só oid que retorne este valor total. Como iremos realizar isso?
7 |
8 |
9 |
10 | ### 1° passo: Faça o download dos templates que disponibilizei no repositorio, feito isso importe para o ZABBIX e para o GRAFANA, depois de importa os templates, devemos esperar retornar os valores no zabbix e depois partimos para o grafana.
11 |
12 |
13 | ## 2° passo: Precisamos consultar a biblioteca de index de determinada PON, para isso vamos o snmpwalk com o oid iso.3.6.1.2.1.31.1.1.1.1, ele ira nos retorna algo semelhante :
14 |
15 |
16 | IF-MIB::ifName.4194328576 = STRING: GPON 0/3/0
17 |
18 | IF-MIB::ifName.4194328832 = STRING: GPON 0/3/1
19 |
20 | IF-MIB::ifName.4194329088 = STRING: GPON 0/3/2
21 |
22 | IF-MIB::ifName.4194329344 = STRING: GPON 0/3/3
23 |
24 | IF-MIB::ifName.4194329600 = STRING: GPON 0/3/4
25 |
26 | IF-MIB::ifName.4194329856 = STRING: GPON 0/3/5
27 |
28 | IF-MIB::ifName.4194330112 = STRING: GPON 0/3/6
29 |
30 | IF-MIB::ifName.4194330368 = STRING: GPON 0/3/7
31 |
32 | IF-MIB::ifName.4194330624 = STRING: GPON 0/3/8
33 |
34 | IF-MIB::ifName.4194330880 = STRING: GPON 0/3/9
35 |
36 | IF-MIB::ifName.4194331136 = STRING: GPON 0/3/10
37 |
38 | IF-MIB::ifName.4194331392 = STRING: GPON 0/3/11
39 |
40 | IF-MIB::ifName.4194331648 = STRING: GPON 0/3/12
41 |
42 | IF-MIB::ifName.4194331904 = STRING: GPON 0/3/13
43 |
44 | IF-MIB::ifName.4194332160 = STRING: GPON 0/3/14
45 |
46 | IF-MIB::ifName.4194332416 = STRING: GPON 0/3/15
47 |
48 |
49 | depois disso precisamos separar todos os index desse snmp exempo : (4194328576 = GPON 0/3/0), vamos ultilar somente a informação do index que é onde q vemos que o numero 4194328576 é referente a PON 0/3/0, no template que disponibilizei ja existem algumas criadas entao vocês só precisam adicionar de acordo com sua demanda. Tambem ja deixei disponibilizado uma "biblioteca" de index porem só vai da pon 0/1/x ate a 0/7/x.
50 |
51 |
52 | ## 3° passo: Depois que ja identificamos todos os index com suas determinadas PON´s nos vamos para o grafana onde iremos personalizar de acordo com nossa demanda, por default eu deixei somente a gpon 0/3/0 ate a 0/3/15, mas vocês podem adicionar com sua demanda, para fazer isso você só vai replicar o painel e trocar o index na parte de ITENS para seu respectivo index da PON. no grafana eu adicionei algumas fuctions onde eu retiro todo resultado que é = 2 (OFFLINE) e só deixo oq for respectivo = 1 (ONLINE) depois disso agrupei em um grupo q faz a media dentro de 5 minutos e soma este valor.
53 |
54 | 
55 |
56 | Na verdade o processo é o seguinte quando realizamos a consulta pelo zabbix atraves do oid iso.3.6.1.2.1.31.1.1.1.1 declaramos uma variavel e feito isso usamos ela no nome do item de descoberta, feito isso usamos uma formula regex pra retornar todos os itens de determinada pon, depois aplicamos as funções no grafana e Badunts temos nosso resultado.
57 |
58 |
59 | 
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
--------------------------------------------------------------------------------
/img/RFC1155-SMI.txt:
--------------------------------------------------------------------------------
1 | RFC1155-SMI DEFINITIONS ::= BEGIN
2 |
3 | EXPORTS -- EVERYTHING
4 | internet, directory, mgmt,
5 | experimental, private, enterprises,
6 | OBJECT-TYPE, ObjectName, ObjectSyntax, SimpleSyntax,
7 | ApplicationSyntax, NetworkAddress, IpAddress,
8 | Counter, Gauge, TimeTicks, Opaque;
9 |
10 | -- the path to the root
11 |
12 | internet OBJECT IDENTIFIER ::= { iso org(3) dod(6) 1 }
13 |
14 | directory OBJECT IDENTIFIER ::= { internet 1 }
15 |
16 | mgmt OBJECT IDENTIFIER ::= { internet 2 }
17 |
18 | experimental OBJECT IDENTIFIER ::= { internet 3 }
19 |
20 | private OBJECT IDENTIFIER ::= { internet 4 }
21 | enterprises OBJECT IDENTIFIER ::= { private 1 }
22 |
23 | -- definition of object types
24 |
25 | OBJECT-TYPE MACRO ::=
26 | BEGIN
27 | TYPE NOTATION ::= "SYNTAX" type (TYPE ObjectSyntax)
28 | "ACCESS" Access
29 | "STATUS" Status
30 | VALUE NOTATION ::= value (VALUE ObjectName)
31 |
32 | Access ::= "read-only"
33 | | "read-write"
34 | | "write-only"
35 | | "not-accessible"
36 | Status ::= "mandatory"
37 | | "optional"
38 | | "obsolete"
39 | END
40 |
41 | -- names of objects in the MIB
42 |
43 | ObjectName ::=
44 | OBJECT IDENTIFIER
45 |
46 | -- syntax of objects in the MIB
47 |
48 | ObjectSyntax ::=
49 | CHOICE {
50 | simple
51 | SimpleSyntax,
52 | -- note that simple SEQUENCEs are not directly
53 | -- mentioned here to keep things simple (i.e.,
54 | -- prevent mis-use). However, application-wide
55 | -- types which are IMPLICITly encoded simple
56 | -- SEQUENCEs may appear in the following CHOICE
57 |
58 | application-wide
59 | ApplicationSyntax
60 | }
61 |
62 | SimpleSyntax ::=
63 | CHOICE {
64 | number
65 | INTEGER,
66 | string
67 | OCTET STRING,
68 | object
69 | OBJECT IDENTIFIER,
70 | empty
71 | NULL
72 | }
73 |
74 | ApplicationSyntax ::=
75 | CHOICE {
76 | address
77 | NetworkAddress,
78 | counter
79 | Counter,
80 | gauge
81 | Gauge,
82 | ticks
83 | TimeTicks,
84 | arbitrary
85 | Opaque
86 |
87 | -- other application-wide types, as they are
88 | -- defined, will be added here
89 | }
90 |
91 | -- application-wide types
92 |
93 | NetworkAddress ::=
94 | CHOICE {
95 | internet
96 | IpAddress
97 | }
98 |
99 | IpAddress ::=
100 | [APPLICATION 0] -- in network-byte order
101 | IMPLICIT OCTET STRING (SIZE (4))
102 |
103 | Counter ::=
104 | [APPLICATION 1]
105 | IMPLICIT INTEGER (0..4294967295)
106 |
107 | Gauge ::=
108 | [APPLICATION 2]
109 | IMPLICIT INTEGER (0..4294967295)
110 |
111 | TimeTicks ::=
112 | [APPLICATION 3]
113 | IMPLICIT INTEGER (0..4294967295)
114 |
115 | Opaque ::=
116 | [APPLICATION 4] -- arbitrary ASN.1 value,
117 | IMPLICIT OCTET STRING -- "double-wrapped"
118 |
119 | END
120 |
--------------------------------------------------------------------------------
/img/UCD-DLMOD-MIB.txt:
--------------------------------------------------------------------------------
1 | UCD-DLMOD-MIB DEFINITIONS ::= BEGIN
2 |
3 | -- Why do we have dlmodNextIndex if the dlmodTable is read-write?
4 | -- What exactly is the dlmodName and dlmodPath?
5 | -- Should there not be a timestamp associated with dlmodError?
6 | -- What exactly do the dlmodStatus enumerations mean?
7 |
8 | IMPORTS
9 | OBJECT-TYPE, MODULE-IDENTITY, Integer32 FROM SNMPv2-SMI
10 | DisplayString FROM SNMPv2-TC
11 | ucdExperimental FROM UCD-SNMP-MIB;
12 |
13 | ucdDlmodMIB MODULE-IDENTITY
14 | LAST-UPDATED "200001260000Z"
15 | ORGANIZATION "University of California, Davis"
16 | CONTACT-INFO
17 | "This mib is no longer being maintained by the University of
18 | California and is now in life-support-mode and being
19 | maintained by the net-snmp project. The best place to write
20 | for public questions about the net-snmp-coders mailing list
21 | at net-snmp-coders@lists.sourceforge.net.
22 |
23 | postal: Wes Hardaker
24 | P.O. Box 382
25 | Davis CA 95617
26 |
27 | email: net-snmp-coders@lists.sourceforge.net
28 | "
29 | DESCRIPTION
30 | "This file defines the MIB objects for dynamic
31 | loadable MIB modules."
32 |
33 | REVISION "200001260000Z"
34 | DESCRIPTION
35 | "Renamed MIB root object"
36 |
37 | REVISION "9912100000Z"
38 | DESCRIPTION
39 | "SMIv2 version converted from older MIB definitions."
40 | ::= { ucdExperimental 14 }
41 |
42 | dlmodNextIndex OBJECT-TYPE
43 | SYNTAX Integer32
44 | MAX-ACCESS read-only
45 | STATUS current
46 | DESCRIPTION
47 | "The index number of next appropiate unassigned entry
48 | in the dlmodTable."
49 | ::= { ucdDlmodMIB 1 }
50 |
51 | dlmodTable OBJECT-TYPE
52 | SYNTAX SEQUENCE OF DlmodEntry
53 | MAX-ACCESS not-accessible
54 | STATUS current
55 | DESCRIPTION
56 | "A table of dlmodEntry."
57 | ::= { ucdDlmodMIB 2 }
58 |
59 | dlmodEntry OBJECT-TYPE
60 | SYNTAX DlmodEntry
61 | MAX-ACCESS not-accessible
62 | STATUS current
63 | DESCRIPTION
64 | "The parameters of dynamically loaded MIB module."
65 | INDEX { dlmodIndex }
66 | ::= { dlmodTable 1 }
67 |
68 | DlmodEntry ::= SEQUENCE {
69 | dlmodIndex Integer32,
70 | dlmodName DisplayString,
71 | dlmodPath DisplayString,
72 | dlmodError DisplayString,
73 | dlmodStatus INTEGER
74 | }
75 |
76 | dlmodIndex OBJECT-TYPE
77 | SYNTAX Integer32 (1..65535)
78 | MAX-ACCESS not-accessible
79 | STATUS current
80 | DESCRIPTION
81 | "An index that uniqely identifies an entry in the dlmodTable."
82 | ::= { dlmodEntry 1 }
83 |
84 | dlmodName OBJECT-TYPE
85 | SYNTAX DisplayString
86 | MAX-ACCESS read-write
87 | STATUS current
88 | DESCRIPTION
89 | "The module name."
90 | ::= { dlmodEntry 2 }
91 |
92 | dlmodPath OBJECT-TYPE
93 | SYNTAX DisplayString
94 | MAX-ACCESS read-write
95 | STATUS current
96 | DESCRIPTION
97 | "The path of the module executable file."
98 | ::= { dlmodEntry 3 }
99 |
100 | dlmodError OBJECT-TYPE
101 | SYNTAX DisplayString
102 | MAX-ACCESS read-only
103 | STATUS current
104 | DESCRIPTION
105 | "The last error from dlmod_load_module."
106 | ::= { dlmodEntry 4 }
107 |
108 | dlmodStatus OBJECT-TYPE
109 | SYNTAX INTEGER {
110 | loaded(1),
111 | unloaded(2),
112 | error(3),
113 | load(4),
114 | unload(5),
115 | create(6),
116 | delete(7)
117 | }
118 | MAX-ACCESS read-write
119 | STATUS current
120 | DESCRIPTION
121 | "The current status of the loaded module."
122 | ::= { dlmodEntry 5 }
123 |
124 | END
125 |
--------------------------------------------------------------------------------
/biblioteca-index-oid.txt:
--------------------------------------------------------------------------------
1 | [PLACA_0]
2 | PON_0 = 4194304000
3 | PON_1 = 4194304256
4 | PON_2 = 4194304512
5 | PON_3 = 4194304768
6 | PON_4 = 4194305024
7 | PON_5 = 4194305280
8 | PON_6 = 4194305536
9 | PON_7 = 4194305792
10 | PON_8 = 4194306048
11 | PON_9 = 4194306304
12 | PON_10 = 4194306560
13 | PON_11 = 4194306816
14 | PON_12 = 4194307072
15 | PON_13 = 4194307328
16 | PON_14 = 4194307584
17 |
18 | [PLACA_1]
19 | PON_0 = 4194312192
20 | PON_1 = 4194312448
21 | PON_2 = 4194312704
22 | PON_3 = 4194312960
23 | PON_4 = 4194313216
24 | PON_5 = 4194313472
25 | PON_6 = 4194313728
26 | PON_7 = 4194313984
27 | PON_8 = 4194314240
28 | PON_9 = 4194314496
29 | PON_10 = 4194314752
30 | PON_11 = 4194315008
31 | PON_12 = 4194315264
32 | PON_13 = 4194315520
33 | PON_14 = 4194315776
34 | PON_15 = 4194316032
35 |
36 | [PLACA_2]
37 | PON_0 = 4194320384
38 | PON_1 = 4194320640
39 | PON_2 = 4194320896
40 | PON_3 = 4194321152
41 | PON_4 = 4194321408
42 | PON_5 = 4194321664
43 | PON_6 = 4194321920
44 | PON_7 = 4194322176
45 | PON_8 = 4194322432
46 | PON_9 = 4194322688
47 | PON_10 = 4194322944
48 | PON_11 = 4194323200
49 | PON_12 = 4194323456
50 | PON_13 = 4194323712
51 | PON_14 = 4194323968
52 | PON_15 = 4194324224
53 |
54 | [PLACA_3]
55 | PON_0 = 4194328576
56 | PON_1 = 4194328832
57 | PON_2 = 4194329088
58 | PON_3 = 4194329344
59 | PON_4 = 4194329600
60 | PON_5 = 4194329856
61 | PON_6 = 4194330112
62 | PON_7 = 4194330368
63 | PON_8 = 4194330624
64 | PON_9 = 4194330880
65 | PON_10 = 4194331136
66 | PON_11 = 4194331392
67 | PON_12 = 4194331648
68 | PON_13 = 4194331904
69 | PON_14 = 4194332160
70 | PON_15 = 4194332416
71 |
72 |
73 | [PLACA_4]
74 | PON_0 = 4194336768
75 | PON_1 = 4194337024
76 | PON_2 = 4194337280
77 | PON_3 = 4194337536
78 | PON_4 = 4194337792
79 | PON_5 = 4194338048
80 | PON_6 = 4194338304
81 | PON_7 = 4194338560
82 | PON_8 = 4194338816
83 | PON_9 = 4194339072
84 | PON_10 = 4194339328
85 | PON_11 = 4194339584
86 | PON_12 = 4194339840
87 | PON_13 = 4194340096
88 | PON_14 = 4194340352
89 | PON_15 = 4194340608
90 |
91 | [PLACA_5]
92 | PON_0 = 4194344960
93 | PON_1 = 4194345216
94 | PON_2 = 4194345472
95 | PON_3 = 4194345728
96 | PON_4 = 4194345984
97 | PON_5 = 4194346240
98 | PON_6 = 4194346496
99 | PON_7 = 4194346752
100 | PON_8 = 4194347008
101 | PON_9 = 4194347264
102 | PON_10 = 4194347520
103 | PON_11 = 4194347776
104 | PON_12 = 4194348032
105 | PON_13 = 4194348288
106 | PON_14 = 4194348544
107 | PON_15 = 4194348800
108 |
109 |
110 | [PLACA_6]
111 | PON_0 = 4194353152
112 | PON_1 = 4194353408
113 | PON_2 = 4194353664
114 | PON_3 = 4194353920
115 | PON_4 = 4194354176
116 | PON_5 = 4194354432
117 | PON_6 = 4194354688
118 | PON_7 = 4194354944
119 | PON_8 = 4194355200
120 | PON_9 = 4194355456
121 | PON_10 = 4194355712
122 | PON_11 = 4194355968
123 | PON_12 = 4194356224
124 | PON_13 = 4194356480
125 | PON_14 = 4194356736
126 | PON_15 = 4194356992
127 |
128 |
129 |
130 | [PLACA_7]
131 | PON_0 = 4194361344
132 | PON_1 = 4194361600
133 | PON_2 = 4194361856
134 | PON_3 = 4194362112
135 | PON_4 = 4194362368
136 | PON_5 = 4194362624
137 | PON_6 = 4194362880
138 | PON_7 = 4194363136
139 | PON_8 = 4194363392
140 | PON_9 = 4194363648
141 | PON_10 = 4194363904
142 | PON_11 = 4194364160
143 | PON_12 = 4194364416
144 | PON_13 = 4194364672
145 | PON_14 = 4194364928
146 | PON_15 = 4194365184
147 |
148 | /4194304000/
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
--------------------------------------------------------------------------------
/img/NET-SNMP-PASS-MIB.txt:
--------------------------------------------------------------------------------
1 | NET-SNMP-PASS-MIB DEFINITIONS ::= BEGIN
2 |
3 | --
4 | -- Example MIB objects for "pass" and "pass-persist" extension script
5 | --
6 |
7 | IMPORTS
8 | MODULE-IDENTITY, OBJECT-TYPE, TimeTicks, IpAddress,
9 | Counter32, Gauge32, Integer32 FROM SNMPv2-SMI
10 | SnmpAdminString FROM SNMP-FRAMEWORK-MIB
11 | netSnmpExamples FROM NET-SNMP-EXAMPLES-MIB
12 | ;
13 |
14 | netSnmpPassExamples MODULE-IDENTITY
15 | LAST-UPDATED "200905280000Z"
16 | ORGANIZATION "www.net-snmp.org"
17 | CONTACT-INFO
18 | "postal: Wes Hardaker
19 | P.O. Box 382
20 | Davis CA 95617
21 |
22 | email: net-snmp-coders@lists.sourceforge.net"
23 | DESCRIPTION
24 | "Example MIB objects for pass/pass-persist extension script"
25 | ::= { netSnmpExamples 255 }
26 |
27 | --
28 | -- Example scalars
29 | --
30 |
31 | netSnmpPassString OBJECT-TYPE
32 | SYNTAX SnmpAdminString
33 | MAX-ACCESS read-write
34 | STATUS current
35 | DESCRIPTION "Example string scalar object."
36 | DEFVAL { "Life, the Universe, and Everything" }
37 | ::= { netSnmpPassExamples 1 }
38 |
39 | netSnmpPassTimeTicks OBJECT-TYPE
40 | SYNTAX TimeTicks
41 | MAX-ACCESS read-write
42 | STATUS current
43 | DESCRIPTION "Example timetick object."
44 | DEFVAL { 363136200 } -- 42 days, 0:42:42.00
45 | ::= { netSnmpPassExamples 3 }
46 |
47 | netSnmpPassIpAddress OBJECT-TYPE
48 | SYNTAX IpAddress
49 | MAX-ACCESS read-write
50 | STATUS current
51 | DESCRIPTION "Example IP Address object."
52 | DEFVAL { '7f000001'H } -- 127.0.0.1
53 | ::= { netSnmpPassExamples 4 }
54 |
55 | netSnmpPassCounter OBJECT-TYPE
56 | SYNTAX Counter32
57 | MAX-ACCESS read-only
58 | STATUS current
59 | DESCRIPTION "Example counter object.
60 | Note that this object will always return the value '42'."
61 | ::= { netSnmpPassExamples 5 }
62 |
63 | netSnmpPassGauge OBJECT-TYPE
64 | SYNTAX Gauge32
65 | MAX-ACCESS read-write
66 | STATUS current
67 | DESCRIPTION "Example Gauge object."
68 | DEFVAL { 42 }
69 | ::= { netSnmpPassExamples 6 }
70 |
71 | netSnmpPassCounter64 OBJECT-TYPE
72 | SYNTAX Counter64
73 | MAX-ACCESS read-only
74 | STATUS current
75 | DESCRIPTION "Example Counter64 object."
76 | ::= { netSnmpPassExamples 7 }
77 |
78 | netSnmpPassInteger64 OBJECT-TYPE
79 | SYNTAX Opaque
80 | MAX-ACCESS read-only
81 | STATUS current
82 | DESCRIPTION "Example Opaque Integer64 object."
83 | ::= { netSnmpPassExamples 8 }
84 |
85 |
86 | netSnmpPassOIDValue OBJECT IDENTIFIER
87 | ::= { netSnmpPassExamples 99 }
88 |
89 | --
90 | -- Example Table
91 | --
92 |
93 | netSnmpPassTable OBJECT-TYPE
94 | SYNTAX SEQUENCE OF NetSnmpPassEntry
95 | MAX-ACCESS not-accessible
96 | STATUS current
97 | DESCRIPTION "Example table"
98 | ::= { netSnmpPassExamples 2 }
99 |
100 | netSnmpPassEntry OBJECT-TYPE
101 | SYNTAX NetSnmpPassEntry
102 | MAX-ACCESS not-accessible
103 | STATUS current
104 | DESCRIPTION "Conceptual row in the example table."
105 | INDEX { netSnmpPassIndex }
106 | ::= {netSnmpPassTable 1 }
107 |
108 | NetSnmpPassEntry ::= SEQUENCE {
109 | netSnmpPassIndex Integer32,
110 | netSnmpPassInteger Integer32,
111 | netSnmpPassOID OBJECT IDENTIFIER
112 | }
113 |
114 | netSnmpPassIndex OBJECT-TYPE
115 | SYNTAX Integer32
116 | MAX-ACCESS not-accessible
117 | STATUS current
118 | DESCRIPTION "Arbitrary index into the netSnmpPassTable.
119 | Note that there will always be one row, with index 1"
120 | ::= { netSnmpPassEntry 1 }
121 |
122 | netSnmpPassInteger OBJECT-TYPE
123 | SYNTAX Integer32
124 | MAX-ACCESS read-write
125 | STATUS current
126 | DESCRIPTION "Example Integer (table) object."
127 | DEFVAL { 42 }
128 | ::= { netSnmpPassEntry 2 }
129 |
130 | netSnmpPassOID OBJECT-TYPE
131 | SYNTAX OBJECT IDENTIFIER
132 | MAX-ACCESS read-write
133 | STATUS current
134 | DESCRIPTION "Example OID (table) object."
135 | DEFVAL { netSnmpPassOIDValue }
136 | ::= { netSnmpPassEntry 3 }
137 |
138 | END
139 |
--------------------------------------------------------------------------------
/img/IANA-RTPROTO-MIB.txt:
--------------------------------------------------------------------------------
1 | IANA-RTPROTO-MIB DEFINITIONS ::= BEGIN
2 |
3 | IMPORTS
4 | MODULE-IDENTITY, mib-2 FROM SNMPv2-SMI
5 | TEXTUAL-CONVENTION FROM SNMPv2-TC;
6 |
7 | ianaRtProtoMIB MODULE-IDENTITY
8 | LAST-UPDATED "201604250000Z" -- April 25, 2016
9 | ORGANIZATION "IANA"
10 | CONTACT-INFO
11 | " Internet Assigned Numbers Authority
12 | Internet Corporation for Assigned Names and Numbers
13 | 12025 Waterfront Drive, Suite 300
14 | Los Angeles, CA 90094-2536
15 |
16 | Phone: +1 310 301 5800
17 | EMail: iana&iana.org"
18 | DESCRIPTION
19 | "This MIB module defines the IANAipRouteProtocol and
20 | IANAipMRouteProtocol textual conventions for use in MIBs
21 | which need to identify unicast or multicast routing
22 | mechanisms.
23 |
24 | Any additions or changes to the contents of this MIB module
25 | require either publication of an RFC, or Designated Expert
26 | Review as defined in RFC 2434, Guidelines for Writing an
27 | IANA Considerations Section in RFCs. The Designated Expert
28 | will be selected by the IESG Area Director(s) of the Routing
29 | Area."
30 |
31 | REVISION "201604250000Z" -- April 25, 2016
32 | DESCRIPTION "Corrected typographical error in revision date."
33 |
34 | REVISION "201604060000Z" -- April 6, 2016
35 | DESCRIPTION "Added ttdp(20)."
36 |
37 | REVISION "201208300000Z" -- August 30, 2012
38 | DESCRIPTION "Added dhcp(19)."
39 |
40 | REVISION "201107220000Z" -- July 22, 2011
41 | DESCRIPTION "Added rpl(18) ."
42 |
43 | REVISION "200009260000Z" -- September 26, 2000
44 | DESCRIPTION "Original version, published in coordination
45 | with RFC 2932."
46 | ::= { mib-2 84 }
47 |
48 | IANAipRouteProtocol ::= TEXTUAL-CONVENTION
49 | STATUS current
50 | DESCRIPTION
51 | "A mechanism for learning routes. Inclusion of values for
52 | routing protocols is not intended to imply that those
53 | protocols need be supported."
54 | SYNTAX INTEGER {
55 | other (1), -- not specified
56 | local (2), -- local interface
57 | netmgmt (3), -- static route
58 | icmp (4), -- result of ICMP Redirect
59 |
60 | -- the following are all dynamic
61 | -- routing protocols
62 |
63 | egp (5), -- Exterior Gateway Protocol
64 | ggp (6), -- Gateway-Gateway Protocol
65 | hello (7), -- FuzzBall HelloSpeak
66 | rip (8), -- Berkeley RIP or RIP-II
67 | isIs (9), -- Dual IS-IS
68 | esIs (10), -- ISO 9542
69 | ciscoIgrp (11), -- Cisco IGRP
70 | bbnSpfIgp (12), -- BBN SPF IGP
71 | ospf (13), -- Open Shortest Path First
72 | bgp (14), -- Border Gateway Protocol
73 | idpr (15), -- InterDomain Policy Routing
74 | ciscoEigrp (16), -- Cisco EIGRP
75 | dvmrp (17), -- DVMRP
76 | rpl (18), -- RPL [RFC-ietf-roll-rpl-19]
77 | dhcp (19), -- DHCP [RFC2132]
78 | ttdp (20) -- Train Topology Discovery Protocol (TTDP) [IEC 61375-2-5]
79 | }
80 |
81 | IANAipMRouteProtocol ::= TEXTUAL-CONVENTION
82 | STATUS current
83 | DESCRIPTION
84 | "The multicast routing protocol. Inclusion of values for
85 | multicast routing protocols is not intended to imply that
86 | those protocols need be supported."
87 | SYNTAX INTEGER {
88 | other(1), -- none of the following
89 | local(2), -- e.g., manually configured
90 | netmgmt(3), -- set via net.mgmt protocol
91 | dvmrp(4),
92 | mospf(5),
93 | pimSparseDense(6), -- PIMv1, both DM and SM
94 | cbt(7),
95 | pimSparseMode(8), -- PIM-SM
96 | pimDenseMode(9), -- PIM-DM
97 | igmpOnly(10),
98 | bgmp(11),
99 | msdp(12)
100 | }
101 |
102 | END
103 |
--------------------------------------------------------------------------------
/Downdetector-Grafana-All.json:
--------------------------------------------------------------------------------
1 | {
2 | "annotations": {
3 | "list": [
4 | {
5 | "builtIn": 1,
6 | "datasource": "-- Grafana --",
7 | "enable": true,
8 | "hide": true,
9 | "iconColor": "rgba(0, 211, 255, 1)",
10 | "name": "Annotations & Alerts",
11 | "type": "dashboard"
12 | }
13 | ]
14 | },
15 | "editable": true,
16 | "gnetId": null,
17 | "graphTooltip": 0,
18 | "id": 44,
19 | "links": [],
20 | "panels": [
21 | {
22 | "datasource": null,
23 | "fieldConfig": {
24 | "defaults": {
25 | "custom": {},
26 | "mappings": [
27 | {
28 | "from": "",
29 | "id": 0,
30 | "operator": "",
31 | "text": "😀",
32 | "to": "",
33 | "type": 1,
34 | "value": "1"
35 | },
36 | {
37 | "from": "",
38 | "id": 1,
39 | "operator": "",
40 | "text": "🙄",
41 | "to": "",
42 | "type": 1,
43 | "value": "2"
44 | },
45 | {
46 | "from": "",
47 | "id": 2,
48 | "operator": "",
49 | "text": "😡",
50 | "to": "",
51 | "type": 1,
52 | "value": "3"
53 | },
54 | {
55 | "from": "",
56 | "id": 3,
57 | "operator": "",
58 | "text": "Err",
59 | "to": "",
60 | "type": 1,
61 | "value": "0"
62 | }
63 | ],
64 | "max": 3,
65 | "min": 0,
66 | "thresholds": {
67 | "mode": "absolute",
68 | "steps": [
69 | {
70 | "color": "rgb(255, 255, 255)",
71 | "value": null
72 | },
73 | {
74 | "color": "dark-blue",
75 | "value": 0.1
76 | },
77 | {
78 | "color": "semi-dark-orange",
79 | "value": 1.1
80 | },
81 | {
82 | "color": "semi-dark-red",
83 | "value": 2.1
84 | }
85 | ]
86 | }
87 | },
88 | "overrides": []
89 | },
90 | "gridPos": {
91 | "h": 20,
92 | "w": 24,
93 | "x": 0,
94 | "y": 0
95 | },
96 | "id": 2,
97 | "options": {
98 | "colorMode": "background",
99 | "graphMode": "none",
100 | "justifyMode": "center",
101 | "orientation": "auto",
102 | "reduceOptions": {
103 | "calcs": [
104 | "last"
105 | ],
106 | "values": false
107 | }
108 | },
109 | "pluginVersion": "7.0.1",
110 | "targets": [
111 | {
112 | "application": {
113 | "filter": "Site"
114 | },
115 | "functions": [],
116 | "group": {
117 | "filter": "DownDetector"
118 | },
119 | "host": {
120 | "filter": "DownDetector"
121 | },
122 | "item": {
123 | "filter": "/.*/"
124 | },
125 | "options": {
126 | "showDisabledItems": false,
127 | "skipEmptyValues": false
128 | },
129 | "proxy": {
130 | "filter": ""
131 | },
132 | "queryType": 0,
133 | "refId": "A",
134 | "resultFormat": "time_series",
135 | "table": {
136 | "skipEmptyValues": false
137 | },
138 | "tags": {
139 | "filter": ""
140 | },
141 | "trigger": {
142 | "filter": ""
143 | },
144 | "triggers": {
145 | "acknowledged": 2,
146 | "count": true,
147 | "minSeverity": 3
148 | }
149 | }
150 | ],
151 | "timeFrom": null,
152 | "timeShift": null,
153 | "title": "DOWNDETECTOR",
154 | "transparent": true,
155 | "type": "stat"
156 | }
157 | ],
158 | "refresh": "5m",
159 | "schemaVersion": 25,
160 | "style": "dark",
161 | "tags": [],
162 | "templating": {
163 | "list": []
164 | },
165 | "time": {
166 | "from": "now-6h",
167 | "to": "now"
168 | },
169 | "timepicker": {},
170 | "timezone": "",
171 | "title": "Downdetector All",
172 | "uid": "7QMpxniGk",
173 | "version": 6
174 | }
--------------------------------------------------------------------------------
/img/SNMP-USM-HMAC-SHA2-MIB.txt:
--------------------------------------------------------------------------------
1 | SNMP-USM-HMAC-SHA2-MIB DEFINITIONS ::= BEGIN
2 | IMPORTS
3 | MODULE-IDENTITY, OBJECT-IDENTITY,
4 | mib-2 FROM SNMPv2-SMI -- RFC 2578
5 | snmpAuthProtocols FROM SNMP-FRAMEWORK-MIB; -- RFC 3411
6 |
7 | snmpUsmHmacSha2MIB MODULE-IDENTITY
8 | LAST-UPDATED "201604180000Z" -- 18 April 2016, midnight
9 | ORGANIZATION "SNMPv3 Working Group"
10 | CONTACT-INFO "WG email: OPSAWG@ietf.org
11 | Subscribe:
12 | https://www.ietf.org/mailman/listinfo/opsawg
13 | Editor: Johannes Merkle
14 | secunet Security Networks
15 | Postal: Mergenthaler Allee 77
16 | D-65760 Eschborn
17 | Germany
18 | Phone: +49 20154543091
19 | Email: johannes.merkle@secunet.com
20 |
21 | Co-Editor: Manfred Lochter
22 | Bundesamt fuer Sicherheit in der
23 | Informationstechnik (BSI)
24 | Postal: Postfach 200363
25 | D-53133 Bonn
26 | Germany
27 | Phone: +49 228 9582 5643
28 | Email: manfred.lochter@bsi.bund.de"
29 | DESCRIPTION
30 | "Definitions of Object Identities needed for the use of
31 | HMAC-SHA2 Authentication Protocols by SNMP's User-based Security
32 | Model.
33 |
34 | Copyright (c) 2016 IETF Trust and the persons identified as
35 | authors of the code. All rights reserved.
36 |
37 | Redistribution and use in source and binary forms, with or
38 | without modification, is permitted pursuant to, and subject
39 | to the license terms contained in, the Simplified BSD License
40 | set forth in Section 4.c of the IETF Trust's Legal Provisions
41 |
42 | Relating to IETF Documents
43 | (http://trustee.ietf.org/license-info)."
44 |
45 | REVISION "201604180000Z" -- 18 April 2016, midnight
46 | DESCRIPTION
47 | "Version correcting the MODULE-IDENTITY value,
48 | published as RFC 7860"
49 |
50 | REVISION "201510140000Z" -- 14 October 2015, midnight
51 | DESCRIPTION
52 | "Initial version, published as RFC 7630"
53 | ::= { mib-2 235 }
54 |
55 | usmHMAC128SHA224AuthProtocol OBJECT-IDENTITY
56 | STATUS current
57 | DESCRIPTION "The Authentication Protocol
58 | usmHMAC128SHA224AuthProtocol uses HMAC-SHA-224 and
59 | truncates output to 128 bits."
60 | REFERENCE "- Krawczyk, H., Bellare, M., and R. Canetti,
61 | HMAC: Keyed-Hashing for Message Authentication,
62 | RFC 2104.
63 | - National Institute of Standards and Technology,
64 | Secure Hash Standard (SHS), FIPS PUB 180-4, 2012."
65 | ::= { snmpAuthProtocols 4 }
66 |
67 | usmHMAC192SHA256AuthProtocol OBJECT-IDENTITY
68 | STATUS current
69 | DESCRIPTION "The Authentication Protocol
70 | usmHMAC192SHA256AuthProtocol uses HMAC-SHA-256 and
71 | truncates output to 192 bits."
72 | REFERENCE "- Krawczyk, H., Bellare, M., and R. Canetti,
73 | HMAC: Keyed-Hashing for Message Authentication,
74 | RFC 2104.
75 | - National Institute of Standards and Technology,
76 | Secure Hash Standard (SHS), FIPS PUB 180-4, 2012."
77 | ::= { snmpAuthProtocols 5 }
78 |
79 | usmHMAC256SHA384AuthProtocol OBJECT-IDENTITY
80 | STATUS current
81 | DESCRIPTION "The Authentication Protocol
82 | usmHMAC256SHA384AuthProtocol uses HMAC-SHA-384 and
83 | truncates output to 256 bits."
84 | REFERENCE "- Krawczyk, H., Bellare, M., and R. Canetti,
85 | HMAC: Keyed-Hashing for Message Authentication,
86 | RFC 2104.
87 | - National Institute of Standards and Technology,
88 | Secure Hash Standard (SHS), FIPS PUB 180-4, 2012."
89 | ::= { snmpAuthProtocols 6 }
90 |
91 | usmHMAC384SHA512AuthProtocol OBJECT-IDENTITY
92 | STATUS current
93 | DESCRIPTION "The Authentication Protocol
94 | usmHMAC384SHA512AuthProtocol uses HMAC-SHA-512 and
95 | truncates output to 384 bits."
96 | REFERENCE "- Krawczyk, H., Bellare, M., and R. Canetti,
97 | HMAC: Keyed-Hashing for Message Authentication,
98 | RFC 2104.
99 | - National Institute of Standards and Technology,
100 | Secure Hash Standard (SHS), FIPS PUB 180-4, 2012."
101 | ::= { snmpAuthProtocols 7 }
102 |
103 | END
104 |
--------------------------------------------------------------------------------
/img/IANA-LANGUAGE-MIB.txt:
--------------------------------------------------------------------------------
1 | IANA-LANGUAGE-MIB DEFINITIONS ::= BEGIN
2 |
3 | IMPORTS
4 | MODULE-IDENTITY, OBJECT-IDENTITY, mib-2
5 | FROM SNMPv2-SMI;
6 |
7 | ianaLanguages MODULE-IDENTITY
8 | LAST-UPDATED "201405220000Z" -- May 22, 2014
9 | ORGANIZATION "IANA"
10 | CONTACT-INFO
11 | "Internet Assigned Numbers Authority (IANA)
12 |
13 | Postal: ICANN
14 | 12025 Waterfront Drive, Suite 300
15 | Los Angeles, CA 90094-2536
16 |
17 | Tel: +1 310-301-5800
18 | E-Mail: iana&iana.org"
19 | DESCRIPTION
20 | "The MIB module registers object identifier values for
21 | well-known programming and scripting languages. Every
22 | language registration MUST describe the format used
23 | when transferring scripts written in this language.
24 |
25 | Any additions or changes to the contents of this MIB
26 | module require Designated Expert Review as defined in
27 | the Guidelines for Writing IANA Considerations Section
28 | document. The Designated Expert will be selected by
29 | the IESG Area Director of the OPS Area.
30 |
31 | Note, this module does not have to register all possible
32 | languages since languages are identified by object
33 | identifier values. It is therefore possible to registered
34 | languages in private OID trees. The references given below are not
35 | normative with regard to the language version. Other
36 | references might be better suited to describe some newer
37 | versions of this language. The references are only
38 | provided as `a pointer into the right direction'."
39 |
40 | -- Revision log, in reverse chronological order
41 |
42 | REVISION "201405220000Z" -- May 22, 2014
43 | DESCRIPTION "Updated contact info."
44 |
45 | REVISION "200005100000Z" -- May 10, 2000
46 | DESCRIPTION "Import mib-2 instead of experimental, so that
47 | this module compiles"
48 |
49 | REVISION "199909090900Z" -- September 9, 1999
50 | DESCRIPTION "Initial version as published at time of
51 | publication of RFC 2591."
52 | ::= { mib-2 73 }
53 |
54 | ianaLangJavaByteCode OBJECT-IDENTITY
55 | STATUS current
56 | DESCRIPTION
57 | "Java byte code to be processed by a Java virtual machine.
58 | A script written in Java byte code is transferred by using
59 | the Java archive file format (JAR)."
60 | REFERENCE
61 | "The Java Virtual Machine Specification.
62 | ISBN 0-201-63452-X"
63 | ::= { ianaLanguages 1 }
64 |
65 | ianaLangTcl OBJECT-IDENTITY
66 | STATUS current
67 | DESCRIPTION
68 | "The Tool Command Language (Tcl). A script written in the
69 | Tcl language is transferred in Tcl source code format."
70 | REFERENCE
71 | "Tcl and the Tk Toolkit.
72 | ISBN 0-201-63337-X"
73 | ::= { ianaLanguages 2 }
74 |
75 | ianaLangPerl OBJECT-IDENTITY
76 | STATUS current
77 | DESCRIPTION
78 | "The Perl language. A script written in the Perl language
79 | is transferred in Perl source code format."
80 | REFERENCE
81 | "Programming Perl.
82 | ISBN 1-56592-149-6"
83 | ::= { ianaLanguages 3 }
84 |
85 | ianaLangScheme OBJECT-IDENTITY
86 | STATUS current
87 | DESCRIPTION
88 | "The Scheme language. A script written in the Scheme
89 | language is transferred in Scheme source code format."
90 | REFERENCE
91 | "The Revised^4 Report on the Algorithmic Language Scheme.
92 | MIT Press"
93 | ::= { ianaLanguages 4 }
94 |
95 | ianaLangSRSL OBJECT-IDENTITY
96 | STATUS current
97 | DESCRIPTION
98 | "The SNMP Script Language defined by SNMP Research. A
99 | script written in the SNMP Script Language is transferred
100 | in the SNMP Script Language source code format."
101 | ::= { ianaLanguages 5 }
102 |
103 | ianaLangPSL OBJECT-IDENTITY
104 | STATUS current
105 | DESCRIPTION
106 | "The Patrol Script Language defined by BMC Software. A script
107 | written in the Patrol Script Language is transferred in the
108 | Patrol Script Language source code format."
109 | REFERENCE
110 | "PATROL Script Language Reference Manual, Version 3.0,
111 | November 30, 1995. BMC Software, Inc. 2101 City West Blvd.,
112 | Houston, Texas 77042."
113 | ::= { ianaLanguages 6 }
114 |
115 | ianaLangSMSL OBJECT-IDENTITY
116 | STATUS current
117 | DESCRIPTION
118 | "The Systems Management Scripting Language. A script written
119 | in the SMSL language is transferred in the SMSL source code
120 | format."
121 | REFERENCE
122 | "ISO/ITU Command Sequencer.
123 | ISO 10164-21 or ITU X.753"
124 | ::= { ianaLanguages 7 }
125 |
126 | END
127 |
--------------------------------------------------------------------------------
/img/HCNUM-TC.txt:
--------------------------------------------------------------------------------
1 | HCNUM-TC DEFINITIONS ::= BEGIN
2 |
3 | IMPORTS
4 | MODULE-IDENTITY, mib-2, Counter64
5 | FROM SNMPv2-SMI
6 | TEXTUAL-CONVENTION
7 | FROM SNMPv2-TC;
8 |
9 | hcnumTC MODULE-IDENTITY
10 | LAST-UPDATED "200006080000Z"
11 |
12 | ORGANIZATION "IETF OPS Area"
13 | CONTACT-INFO
14 | " E-mail: mibs@ops.ietf.org
15 | Subscribe: majordomo@psg.com
16 | with msg body: subscribe mibs
17 |
18 | Andy Bierman
19 | Cisco Systems Inc.
20 | 170 West Tasman Drive
21 | San Jose, CA 95134 USA
22 | +1 408-527-3711
23 | abierman@cisco.com
24 |
25 | Keith McCloghrie
26 | Cisco Systems Inc.
27 | 170 West Tasman Drive
28 | San Jose, CA 95134 USA
29 | +1 408-526-5260
30 | kzm@cisco.com
31 |
32 | Randy Presuhn
33 | BMC Software, Inc.
34 | Office 1-3141
35 | 2141 North First Street
36 | San Jose, California 95131 USA
37 | +1 408 546-1006
38 | rpresuhn@bmc.com"
39 | DESCRIPTION
40 | "A MIB module containing textual conventions
41 | for high capacity data types. This module
42 | addresses an immediate need for data types not directly
43 | supported in the SMIv2. This short-term solution
44 | is meant to be deprecated as a long-term solution
45 | is deployed."
46 | REVISION "200006080000Z"
47 | DESCRIPTION
48 | "Initial Version of the High Capacity Numbers
49 | MIB module, published as RFC 2856."
50 | ::= { mib-2 78 }
51 |
52 | CounterBasedGauge64 ::= TEXTUAL-CONVENTION
53 | STATUS current
54 | DESCRIPTION
55 | "The CounterBasedGauge64 type represents a non-negative
56 | integer, which may increase or decrease, but shall never
57 | exceed a maximum value, nor fall below a minimum value. The
58 | maximum value can not be greater than 2^64-1
59 | (18446744073709551615 decimal), and the minimum value can
60 |
61 | not be smaller than 0. The value of a CounterBasedGauge64
62 | has its maximum value whenever the information being modeled
63 | is greater than or equal to its maximum value, and has its
64 | minimum value whenever the information being modeled is
65 | smaller than or equal to its minimum value. If the
66 | information being modeled subsequently decreases below
67 | (increases above) the maximum (minimum) value, the
68 | CounterBasedGauge64 also decreases (increases).
69 |
70 | Note that this TC is not strictly supported in SMIv2,
71 | because the 'always increasing' and 'counter wrap' semantics
72 | associated with the Counter64 base type are not preserved.
73 | It is possible that management applications which rely
74 | solely upon the (Counter64) ASN.1 tag to determine object
75 | semantics will mistakenly operate upon objects of this type
76 | as they would for Counter64 objects.
77 |
78 | This textual convention represents a limited and short-term
79 | solution, and may be deprecated as a long term solution is
80 | defined and deployed to replace it."
81 | SYNTAX Counter64
82 |
83 | ZeroBasedCounter64 ::= TEXTUAL-CONVENTION
84 | STATUS current
85 | DESCRIPTION
86 | "This TC describes an object which counts events with the
87 | following semantics: objects of this type will be set to
88 | zero(0) on creation and will thereafter count appropriate
89 | events, wrapping back to zero(0) when the value 2^64 is
90 | reached.
91 |
92 | Provided that an application discovers the new object within
93 | the minimum time to wrap it can use the initial value as a
94 | delta since it last polled the table of which this object is
95 | part. It is important for a management station to be aware
96 | of this minimum time and the actual time between polls, and
97 | to discard data if the actual time is too long or there is
98 | no defined minimum time.
99 |
100 | Typically this TC is used in tables where the INDEX space is
101 | constantly changing and/or the TimeFilter mechanism is in
102 | use.
103 |
104 | Note that this textual convention does not retain all the
105 | semantics of the Counter64 base type. Specifically, a
106 | Counter64 has an arbitrary initial value, but objects
107 | defined with this TC are required to start at the value
108 |
109 | zero. This behavior is not likely to have any adverse
110 | effects on management applications which are expecting
111 | Counter64 semantics.
112 |
113 | This textual convention represents a limited and short-term
114 | solution, and may be deprecated as a long term solution is
115 | defined and deployed to replace it."
116 | SYNTAX Counter64
117 |
118 | END
119 |
--------------------------------------------------------------------------------
/model.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | ip=$1
4 | community=$2
5 | fabricante=$3
6 | timeout='10'
7 | exec 2>/dev/null ## Jogando mensagens de erro para o limbo
8 |
9 | case $fabricante in
10 | 'Mikrotik')
11 | cmd=$(timeout 10 snmpget -v2c -c$community $ip 1.3.6.1.2.1.1.1.0 | awk -F ' ' '{$1=$2=$3=""; print $0}')
12 | if [[ -z "$cmd" ]]; then
13 | echo 'Modelo Desconhecido'
14 | else
15 | echo $cmd
16 | fi
17 | ;;
18 | 'Radio Ubiquiti')
19 | snmpwalk=$(timeout 10 snmpwalk -c $community -Cc -v1 $ip iso.2.840.10036.3.1.2.1.3)
20 | resultado=$(echo "$snmpwalk" | awk -F ":" '/"/{print $2}' | sed 's/"//g'| head -n 1)
21 | airfiber_snmpwalk=$(timeout 10 snmpwalk -c $community -Cc -v1 $ip .1.3.6.1.4.1.41112.1.3.2.1.1.1)
22 | if [[ -n "$airfiber_snmpwalk" ]] && [[ $airfiber_snmpwalk != "End of MIB" ]]; then
23 | echo "AirFiber"
24 | else
25 | if [[ -z "$resultado" ]]; then
26 | echo "Modelo Desconhecido"
27 | else
28 | echo $resultado
29 | fi
30 | fi
31 |
32 | ;;
33 | 'Monitoramento Externo' )echo "Monitoramento Externo" ;;
34 | 'Switch Cisco')
35 | snmpwalk=$(snmpwalk -c $community -v2c $ip 1.3.6.1.2.1.47.1.1.1.1.13 | grep STRING | awk -F ":" '/"/{print $4}' | sed 's/"//g' | tr -d '"')
36 | matriz=( $snmpwalk )
37 | resultado=""
38 | for i in "${matriz[@]}"
39 | do
40 | if [[ $i =~ CISCO.*|SG500.*|WS.*|^ME|^N3K-C3064PQ ]]
41 | then
42 | resultado=$i
43 | fi
44 | done
45 | echo $resultado
46 | ;;
47 | 'Switch Datacom') cmd=$(timeout 10 snmpwalk -v2c -c $community $ip sysDescr | awk -F ' ' '{$1=$2=$3=""; print $0}' | tr -d '"')
48 | if [[ -z "$cmd" ]]; then
49 | echo 'Modelo Desconhecido'
50 | else
51 | echo $cmd
52 | fi
53 | ;;
54 | 'Router Cisco') cmd=$(timeout 10 snmpget -v2c -c$community $ip .1.3.6.1.2.1.47.1.1.1.1.13.1 | awk -F ' ' '{$1=$2=$3=""; print $0}' | tr -d '"')
55 | if [[ -z "$cmd" ]]; then
56 | echo 'Modelo Desconhecido'
57 | else
58 | echo $cmd
59 | fi
60 | ;;
61 | 'Monitoramento Link')echo "Monitoramento Link" ;;
62 | 'Monitoramento Linux')echo "Monitoramento Linux" ;;
63 | 'Monitoramento VMWare')echo "Monitoramento VMWare" ;;
64 | 'Zabbix Proxy') echo "Ubuntu Server 16.04" ;;
65 | 'SwitchOS')
66 | cmd=$(timeout 10 snmpget -v1 -c$community $ip sysDescr.0 | awk -F ' ' '{$1=$2=$3=""; print $0}')
67 | if [[ -z "$cmd" ]]; then
68 | echo 'Modelo Desconhecido'
69 | else
70 | echo $cmd
71 | fi
72 | ;;
73 | 'Switch Intelbras SG')
74 | cmd=$(timeout 10 snmpget -v2c -c$community $ip .1.3.6.1.2.1.16.19.3.0 | awk -F ' ' '{$1=$2=$3=""; print $0}' | tr -d '"')
75 | if [[ -z "$cmd" ]]; then
76 | echo 'Modelo Desconhecido'
77 | else
78 | echo $cmd
79 | fi
80 | ;;
81 | 'Asustor')
82 | cmd=$(timeout 10 snmpget -v2c -c$community $ip .1.3.6.1.4.1.44738.2.1.0 | awk -F ' ' '{$1=$2=$3=""; print $0}')
83 | if [[ -z "$cmd" ]]; then
84 | echo 'Modelo Desconhecido'
85 | else
86 | echo $cmd
87 | fi
88 | ;;
89 | 'Switch Huawei')
90 | cmd=$(timeout 10 snmpget -v2c -c$community $ip .1.3.6.1.2.1.47.1.1.1.1.7.67108867 | awk -F ' ' '{$1=$2=$3=""; print $0}' | tr -d '"')
91 | if [[ -z "$cmd" ]]; then
92 | echo 'Modelo Desconhecido'
93 | else
94 | echo $cmd
95 | fi
96 | ;;
97 |
98 |
99 | 'NE20') cmd=$(timeout 10 snmpget -v2c -c$community $ip .1.3.6.1.4.1.2011.6.3.11.4.0 | awk -F ' ' '{$1=$2=$3=""; print $0}' | tr -d '"')
100 | if [[ -z "$cmd" ]]; then
101 | echo 'Modelo Desconhecido'
102 | else
103 | echo $cmd
104 | fi
105 | ;;
106 |
107 | 'Edgeswitch') cmd=$(timeout 10 snmpget -v2c -c$community $ip .1.3.6.1.4.1.4413.1.1.1.1.1.2.0 | awk -F ' ' '{$1=$2=$3=""; print $0}' | tr -d '"')
108 | if [[ -z "$cmd" ]]; then
109 | echo 'Modelo Desconhecido'
110 | else
111 | echo $cmd
112 | fi
113 | ;;
114 |
115 |
116 | esac
117 |
--------------------------------------------------------------------------------
/img/NET-SNMP-TC.txt:
--------------------------------------------------------------------------------
1 | NET-SNMP-TC DEFINITIONS ::= BEGIN
2 |
3 | --
4 | -- Textual conventions and enumerations for the Net-SNMP project
5 | --
6 |
7 | IMPORTS
8 | netSnmpModuleIDs, netSnmpAgentOIDs, netSnmpDomains FROM NET-SNMP-MIB
9 |
10 | MODULE-IDENTITY, Opaque FROM SNMPv2-SMI
11 |
12 | TEXTUAL-CONVENTION FROM SNMPv2-TC;
13 |
14 | netSnmpTCs MODULE-IDENTITY
15 | LAST-UPDATED "200510140000Z"
16 | ORGANIZATION "www.net-snmp.org"
17 | CONTACT-INFO
18 | "postal: Wes Hardaker
19 | P.O. Box 382
20 | Davis CA 95617
21 |
22 | email: net-snmp-coders@lists.sourceforge.net"
23 | DESCRIPTION
24 | "Textual conventions and enumerations for the Net-SNMP project"
25 | REVISION "200202120000Z"
26 | DESCRIPTION
27 | "First draft"
28 | ::= { netSnmpModuleIDs 1}
29 |
30 |
31 | -- =====================
32 | --
33 | -- Textual Conventions
34 | --
35 | -- =====================
36 |
37 | --
38 | -- Define the Float Textual Convention
39 | -- This definition was written by David Perkins.
40 | --
41 |
42 | Float ::= TEXTUAL-CONVENTION
43 | STATUS current
44 | DESCRIPTION
45 | "A single precision floating-point number. The semantics
46 | and encoding are identical for type 'single' defined in
47 | IEEE Standard for Binary Floating-Point,
48 | ANSI/IEEE Std 754-1985.
49 | The value is restricted to the BER serialization of
50 | the following ASN.1 type:
51 | FLOATTYPE ::= [120] IMPLICIT FloatType
52 | (note: the value 120 is the sum of '30'h and '48'h)
53 | The BER serialization of the length for values of
54 | this type must use the definite length, short
55 | encoding form.
56 |
57 | For example, the BER serialization of value 123
58 | of type FLOATTYPE is '9f780442f60000'h. (The tag
59 | is '9f78'h; the length is '04'h; and the value is
60 | '42f60000'h.) The BER serialization of value
61 | '9f780442f60000'h of data type Opaque is
62 | '44079f780442f60000'h. (The tag is '44'h; the length
63 | is '07'h; and the value is '9f780442f60000'h.)"
64 | SYNTAX Opaque (SIZE (7))
65 |
66 |
67 | -- =====================
68 | --
69 | -- Enumerations
70 | --
71 | -- =====================
72 |
73 | --
74 | -- System Object ID values
75 | --
76 | -- XXX - do we want to distinguish between O/S versions ?
77 | -- (as is currently done with HP-UX)
78 | --
79 |
80 | hpux9 OBJECT IDENTIFIER ::= { netSnmpAgentOIDs 1 }
81 | sunos4 OBJECT IDENTIFIER ::= { netSnmpAgentOIDs 2 }
82 | solaris OBJECT IDENTIFIER ::= { netSnmpAgentOIDs 3 }
83 | osf OBJECT IDENTIFIER ::= { netSnmpAgentOIDs 4 }
84 | ultrix OBJECT IDENTIFIER ::= { netSnmpAgentOIDs 5 }
85 | hpux10 OBJECT IDENTIFIER ::= { netSnmpAgentOIDs 6 }
86 | netbsd OBJECT IDENTIFIER ::= { netSnmpAgentOIDs 7 }
87 | freebsd OBJECT IDENTIFIER ::= { netSnmpAgentOIDs 8 }
88 | irix OBJECT IDENTIFIER ::= { netSnmpAgentOIDs 9 }
89 | linux OBJECT IDENTIFIER ::= { netSnmpAgentOIDs 10 }
90 | bsdi OBJECT IDENTIFIER ::= { netSnmpAgentOIDs 11 }
91 | openbsd OBJECT IDENTIFIER ::= { netSnmpAgentOIDs 12 }
92 | win32 OBJECT IDENTIFIER ::= { netSnmpAgentOIDs 13 } -- unlucky
93 | hpux11 OBJECT IDENTIFIER ::= { netSnmpAgentOIDs 14 }
94 | aix OBJECT IDENTIFIER ::= { netSnmpAgentOIDs 15 }
95 | macosx OBJECT IDENTIFIER ::= { netSnmpAgentOIDs 16 }
96 | dragonfly OBJECT IDENTIFIER ::= { netSnmpAgentOIDs 17 }
97 | unknown OBJECT IDENTIFIER ::= { netSnmpAgentOIDs 255 }
98 |
99 |
100 |
101 | --
102 | -- Transport Domains
103 | --
104 | -- Object identifiers for the non-standard transports that UCD/Net-SNMP
105 | -- supports. Note that snmpTCPDomain is the subject of Internet Draft
106 | -- draft-irtf-nmrg-snmp-tcp-06.txt, which defines the OID
107 | -- .iso.org.dod.internet.experimental.nmrg.nmrgSnmpDomains.snmpTCPDomain
108 | -- (.1.3.6.1.3.91.1.1) for the SNMP over TCP over IPv4 transport domain.
109 | -- This draft (or its successor) is available from the Network Management
110 | -- Research Group web page at http://www.ibr.cs.tu-bs.de/projects/nmrg/
111 | --
112 | -- The NMRG OID for snmpTCPDomain is currently used by the code, but in case
113 | -- this is thought to be a Bad Idea, we define a private transport domain here
114 | -- that we could use instead. The Unix domain, AAL5 PVC domain and
115 | -- the IPv6 domains are also defined privately here (for now).
116 |
117 | netSnmpTCPDomain OBJECT IDENTIFIER ::= { netSnmpDomains 1 } -- obsolete
118 | netSnmpUnixDomain OBJECT IDENTIFIER ::= { netSnmpDomains 2 } -- obsolete
119 | netSnmpAAL5PVCDomain OBJECT IDENTIFIER ::= { netSnmpDomains 3 }
120 | netSnmpUDPIPv6Domain OBJECT IDENTIFIER ::= { netSnmpDomains 4 } -- obsolete
121 | netSnmpTCPIPv6Domain OBJECT IDENTIFIER ::= { netSnmpDomains 5 } -- obsolete
122 | netSnmpCallbackDomain OBJECT IDENTIFIER ::= { netSnmpDomains 6 }
123 | netSnmpAliasDomain OBJECT IDENTIFIER ::= { netSnmpDomains 7 }
124 | netSnmpDTLSUDPDomain OBJECT IDENTIFIER ::= { netSnmpDomains 8 }
125 | netSnmpDTLSSCTPDomain OBJECT IDENTIFIER ::= { netSnmpDomains 9 }
126 | netSnmpTLSTCPDomain OBJECT IDENTIFIER ::= { netSnmpDomains 10 }
127 |
128 | END
129 |
--------------------------------------------------------------------------------
/img/SMUX-MIB.txt:
--------------------------------------------------------------------------------
1 | SMUX-MIB DEFINITIONS ::= BEGIN
2 |
3 | IMPORTS
4 | enterprises
5 | FROM RFC1155-SMI
6 | DisplayString
7 | FROM SNMPv2-TC
8 | OBJECT-TYPE
9 | FROM RFC-1212;
10 |
11 | unix OBJECT IDENTIFIER ::= { enterprises 4 }
12 |
13 | smux OBJECT IDENTIFIER ::= { unix 4 }
14 |
15 | smuxPeerTable OBJECT-TYPE
16 | SYNTAX SEQUENCE OF SmuxPeerEntry
17 | ACCESS not-accessible
18 | STATUS mandatory
19 | DESCRIPTION
20 | "The SMUX peer table."
21 | ::= { smux 1 }
22 |
23 | smuxPeerEntry OBJECT-TYPE
24 | SYNTAX SmuxPeerEntry
25 | ACCESS not-accessible
26 | STATUS mandatory
27 | DESCRIPTION
28 | "An entry in the SMUX peer table."
29 | INDEX { smuxPindex }
30 | ::= { smuxPeerTable 1}
31 |
32 | SmuxPeerEntry ::=
33 | SEQUENCE {
34 | smuxPindex
35 | INTEGER,
36 | smuxPidentity
37 | OBJECT IDENTIFIER,
38 | smuxPdescription
39 | DisplayString,
40 | smuxPstatus
41 | INTEGER
42 | }
43 |
44 | smuxPindex OBJECT-TYPE
45 | SYNTAX INTEGER
46 | ACCESS read-only
47 | STATUS mandatory
48 | DESCRIPTION
49 | "An index which uniquely identifies a SMUX peer."
50 | ::= { smuxPeerEntry 1 }
51 |
52 | smuxPidentity OBJECT-TYPE
53 | SYNTAX OBJECT IDENTIFIER
54 | ACCESS read-only
55 | STATUS mandatory
56 | DESCRIPTION
57 | "The authoritative designation for a SMUX peer."
58 | ::= { smuxPeerEntry 2 }
59 |
60 | smuxPdescription OBJECT-TYPE
61 | SYNTAX DisplayString (SIZE (0..255))
62 | ACCESS read-only
63 | STATUS mandatory
64 | DESCRIPTION
65 | "A human-readable description of a SMUX peer."
66 | ::= { smuxPeerEntry 3 }
67 |
68 | smuxPstatus OBJECT-TYPE
69 | SYNTAX INTEGER { valid(1), invalid(2), connecting(3) }
70 | ACCESS read-write
71 | STATUS mandatory
72 | DESCRIPTION
73 | "The type of SMUX peer.
74 |
75 | Setting this object to the value invalid(2) has
76 | the effect of invaliding the corresponding entry
77 | in the smuxPeerTable. It is an implementation-
78 | specific matter as to whether the agent removes an
79 | invalidated entry from the table. Accordingly,
80 | management stations must be prepared to receive
81 | tabular information from agents that correspond to
82 | entries not currently in use. Proper
83 | interpretation of such entries requires
84 | examination of the relative smuxPstatus object."
85 | ::= { smuxPeerEntry 4 }
86 |
87 | smuxTreeTable OBJECT-TYPE
88 | SYNTAX SEQUENCE OF SmuxTreeEntry
89 | ACCESS not-accessible
90 | STATUS mandatory
91 | DESCRIPTION
92 | "The SMUX tree table."
93 | ::= { smux 2 }
94 |
95 | smuxTreeEntry OBJECT-TYPE
96 | SYNTAX SmuxTreeEntry
97 | ACCESS not-accessible
98 | STATUS mandatory
99 | DESCRIPTION
100 | "An entry in the SMUX tree table."
101 | INDEX { smuxTsubtree, smuxTpriority }
102 | ::= { smuxTreeTable 1}
103 |
104 | SmuxTreeEntry ::=
105 | SEQUENCE {
106 | smuxTsubtree
107 | OBJECT IDENTIFIER,
108 | smuxTpriority
109 | INTEGER,
110 | smuxTindex
111 | INTEGER,
112 | smuxTstatus
113 | INTEGER
114 | }
115 |
116 | smuxTsubtree OBJECT-TYPE
117 | SYNTAX OBJECT IDENTIFIER
118 | ACCESS read-only
119 | STATUS mandatory
120 | DESCRIPTION
121 | "The MIB subtree being exported by a SMUX peer."
122 | ::= { smuxTreeEntry 1 }
123 |
124 | smuxTpriority OBJECT-TYPE
125 | SYNTAX INTEGER (0..'07fffffff'h)
126 | ACCESS read-only
127 | STATUS mandatory
128 | DESCRIPTION
129 | "The SMUX peer's priority when exporting the MIB
130 | subtree."
131 | ::= { smuxTreeEntry 2 }
132 |
133 | smuxTindex OBJECT-TYPE
134 | SYNTAX INTEGER
135 | ACCESS read-only
136 | STATUS mandatory
137 | DESCRIPTION
138 | "The SMUX peer's identity."
139 | ::= { smuxTreeEntry 3 }
140 |
141 | smuxTstatus OBJECT-TYPE
142 | SYNTAX INTEGER { valid(1), invalid(2) }
143 | ACCESS read-write
144 | STATUS mandatory
145 | DESCRIPTION
146 | "The type of SMUX tree.
147 |
148 | Setting this object to the value invalid(2) has
149 | the effect of invaliding the corresponding entry
150 | in the smuxTreeTable. It is an implementation-
151 | specific matter as to whether the agent removes an
152 | invalidated entry from the table. Accordingly,
153 | management stations must be prepared to receive
154 | tabular information from agents that correspond to
155 | entries not currently in use. Proper
156 | interpretation of such entries requires
157 | examination of the relative smuxTstatus object."
158 | ::= { smuxTreeEntry 4 }
159 |
160 | END
161 |
--------------------------------------------------------------------------------
/img/IF-INVERTED-STACK-MIB.txt:
--------------------------------------------------------------------------------
1 | IF-INVERTED-STACK-MIB DEFINITIONS ::= BEGIN
2 |
3 | IMPORTS
4 | MODULE-IDENTITY, OBJECT-TYPE, mib-2 FROM SNMPv2-SMI
5 | RowStatus FROM SNMPv2-TC
6 | MODULE-COMPLIANCE, OBJECT-GROUP FROM SNMPv2-CONF
7 | ifStackGroup2,
8 | ifStackHigherLayer, ifStackLowerLayer FROM IF-MIB;
9 |
10 | ifInvertedStackMIB MODULE-IDENTITY
11 | LAST-UPDATED "200006140000Z"
12 | ORGANIZATION "IETF Interfaces MIB Working Group"
13 | CONTACT-INFO
14 | " Keith McCloghrie
15 | Cisco Systems, Inc.
16 | 170 West Tasman Drive
17 | San Jose, CA 95134-1706
18 | US
19 |
20 | 408-526-5260
21 | kzm@cisco.com"
22 | DESCRIPTION
23 | "The MIB module which provides the Inverted Stack Table for
24 | interface sub-layers."
25 | REVISION "200006140000Z"
26 | DESCRIPTION
27 | "Initial revision, published as RFC 2864"
28 | ::= { mib-2 77 }
29 |
30 | ifInvMIBObjects OBJECT IDENTIFIER ::= { ifInvertedStackMIB 1 }
31 |
32 | --
33 | -- The Inverted Interface Stack Group
34 | --
35 |
36 | ifInvStackTable OBJECT-TYPE
37 | SYNTAX SEQUENCE OF IfInvStackEntry
38 | MAX-ACCESS not-accessible
39 | STATUS current
40 | DESCRIPTION
41 | "A table containing information on the relationships between
42 |
43 | the multiple sub-layers of network interfaces. In
44 | particular, it contains information on which sub-layers run
45 | 'underneath' which other sub-layers, where each sub-layer
46 | corresponds to a conceptual row in the ifTable. For
47 | example, when the sub-layer with ifIndex value x runs
48 | underneath the sub-layer with ifIndex value y, then this
49 | table contains:
50 |
51 | ifInvStackStatus.x.y=active
52 |
53 | For each ifIndex value, z, which identifies an active
54 | interface, there are always at least two instantiated rows
55 | in this table associated with z. For one of these rows, z
56 | is the value of ifStackHigherLayer; for the other, z is the
57 | value of ifStackLowerLayer. (If z is not involved in
58 | multiplexing, then these are the only two rows associated
59 | with z.)
60 |
61 | For example, two rows exist even for an interface which has
62 | no others stacked on top or below it:
63 |
64 | ifInvStackStatus.z.0=active
65 | ifInvStackStatus.0.z=active
66 |
67 | This table contains exactly the same number of rows as the
68 | ifStackTable, but the rows appear in a different order."
69 | REFERENCE
70 | "ifStackTable of RFC 2863"
71 | ::= { ifInvMIBObjects 1 }
72 |
73 | ifInvStackEntry OBJECT-TYPE
74 | SYNTAX IfInvStackEntry
75 | MAX-ACCESS not-accessible
76 | STATUS current
77 | DESCRIPTION
78 | "Information on a particular relationship between two sub-
79 | layers, specifying that one sub-layer runs underneath the
80 | other sub-layer. Each sub-layer corresponds to a conceptual
81 | row in the ifTable."
82 | INDEX { ifStackLowerLayer, ifStackHigherLayer }
83 | ::= { ifInvStackTable 1 }
84 |
85 | IfInvStackEntry ::=
86 | SEQUENCE {
87 | ifInvStackStatus RowStatus
88 | }
89 |
90 | ifInvStackStatus OBJECT-TYPE
91 | SYNTAX RowStatus
92 | MAX-ACCESS read-only
93 | STATUS current
94 | DESCRIPTION
95 | "The status of the relationship between two sub-layers.
96 |
97 | An instance of this object exists for each instance of the
98 | ifStackStatus object, and vice versa. For example, if the
99 | variable ifStackStatus.H.L exists, then the variable
100 | ifInvStackStatus.L.H must also exist, and vice versa. In
101 | addition, the two variables always have the same value.
102 |
103 | However, unlike ifStackStatus, the ifInvStackStatus object
104 | is NOT write-able. A network management application wishing
105 | to change a relationship between sub-layers H and L cannot
106 | do so by modifying the value of ifInvStackStatus.L.H, but
107 | must instead modify the value of ifStackStatus.H.L. After
108 | the ifStackTable is modified, the change will be reflected
109 | in this table."
110 | ::= { ifInvStackEntry 1 }
111 |
112 | -- conformance information
113 |
114 | ifInvConformance OBJECT IDENTIFIER ::= { ifInvMIBObjects 2 }
115 |
116 | ifInvGroups OBJECT IDENTIFIER ::= { ifInvConformance 1 }
117 | ifInvCompliances OBJECT IDENTIFIER ::= { ifInvConformance 2 }
118 |
119 | -- compliance statements
120 |
121 | ifInvCompliance MODULE-COMPLIANCE
122 | STATUS current
123 | DESCRIPTION
124 | "The compliance statement for SNMP entities which provide
125 | inverted information on the layering of network interfaces."
126 |
127 | MODULE -- this module
128 | MANDATORY-GROUPS { ifInvStackGroup }
129 |
130 | OBJECT ifInvStackStatus
131 | SYNTAX INTEGER { active(1) }
132 | DESCRIPTION
133 | "Support is only required for 'active'."
134 |
135 | MODULE IF-MIB
136 | MANDATORY-GROUPS { ifStackGroup2 }
137 | ::= { ifInvCompliances 1 }
138 |
139 | -- units of conformance
140 |
141 | ifInvStackGroup OBJECT-GROUP
142 | OBJECTS { ifInvStackStatus }
143 | STATUS current
144 | DESCRIPTION
145 | "A collection of objects providing inverted information on
146 | the layering of MIB-II interfaces."
147 | ::= { ifInvGroups 1 }
148 |
149 | END
150 |
--------------------------------------------------------------------------------
/img/NET-SNMP-VACM-MIB.txt:
--------------------------------------------------------------------------------
1 | NET-SNMP-VACM-MIB DEFINITIONS ::= BEGIN
2 |
3 | --
4 | -- Defines Net-SNMP extensions to the standard VACM view table.
5 | --
6 |
7 | IMPORTS
8 | SnmpAdminString
9 | FROM SNMP-FRAMEWORK-MIB
10 |
11 | netSnmpObjects, netSnmpGroups
12 | FROM NET-SNMP-MIB
13 |
14 | vacmGroupName, vacmAccessContextPrefix, vacmAccessSecurityModel,
15 | vacmAccessSecurityLevel
16 | FROM SNMP-VIEW-BASED-ACM-MIB
17 |
18 | OBJECT-TYPE, MODULE-IDENTITY
19 | FROM SNMPv2-SMI
20 |
21 | OBJECT-GROUP, NOTIFICATION-GROUP
22 | FROM SNMPv2-CONF
23 |
24 | TEXTUAL-CONVENTION, DisplayString, RowStatus, StorageType
25 | FROM SNMPv2-TC;
26 |
27 |
28 | netSnmpVacmMIB MODULE-IDENTITY
29 | LAST-UPDATED "200608270000Z"
30 | ORGANIZATION "www.net-snmp.org"
31 | CONTACT-INFO
32 | "postal: Wes Hardaker
33 | P.O. Box 382
34 | Davis CA 95617
35 |
36 | email: net-snmp-coders@lists.sourceforge.net"
37 | DESCRIPTION
38 | "Defines Net-SNMP extensions to the standard VACM view table."
39 | REVISION "200608270000Z"
40 | DESCRIPTION
41 | "First draft"
42 | ::= { netSnmpObjects 9 }
43 |
44 |
45 | nsVacmAccessTable OBJECT-TYPE
46 | SYNTAX SEQUENCE OF NsVacmAccessEntry
47 | MAX-ACCESS not-accessible
48 | STATUS current
49 | DESCRIPTION "Net-SNMP extensions to vacmAccessTable."
50 | ::= { netSnmpVacmMIB 1 }
51 |
52 | nsVacmAccessEntry OBJECT-TYPE
53 | SYNTAX NsVacmAccessEntry
54 | MAX-ACCESS not-accessible
55 | STATUS current
56 | DESCRIPTION "Net-SNMP extensions to vacmAccessTable."
57 | INDEX { vacmGroupName,
58 | vacmAccessContextPrefix,
59 | vacmAccessSecurityModel,
60 | vacmAccessSecurityLevel,
61 | nsVacmAuthType
62 | }
63 | ::= { nsVacmAccessTable 1 }
64 |
65 | NsVacmAccessEntry ::= SEQUENCE
66 | {
67 | nsVacmAuthType SnmpAdminString,
68 | nsVacmContextMatch INTEGER,
69 | nsVacmViewName SnmpAdminString,
70 | nsVacmStorageType StorageType,
71 | nsVacmStatus RowStatus
72 | }
73 |
74 | nsVacmAuthType OBJECT-TYPE
75 | SYNTAX SnmpAdminString (SIZE(0..32))
76 | MAX-ACCESS not-accessible
77 | STATUS current
78 | DESCRIPTION "The type of processing that the specified view
79 | should be applied to. See 'snmpd.conf(5)' and
80 | 'snmptrapd.conf(5)' for details."
81 | ::= { nsVacmAccessEntry 1 }
82 |
83 | nsVacmContextMatch OBJECT-TYPE
84 | SYNTAX INTEGER
85 | { exact (1), -- exact match of prefix and contextName
86 | prefix (2) -- Only match to the prefix
87 | }
88 | MAX-ACCESS read-create
89 | STATUS current
90 | DESCRIPTION "If the value of this object is exact(1), then all
91 | rows where the contextName exactly matches
92 | vacmAccessContextPrefix are selected.
93 |
94 | If the value of this object is prefix(2), then all
95 | rows where the contextName whose starting octets
96 | exactly match vacmAccessContextPrefix are selected.
97 | This allows for a simple form of wildcarding.
98 |
99 | The value of this object should be consistent across
100 | all nsVacmAccessEntries corresponding to a single
101 | row of the vacmAccessTable.
102 | "
103 | DEFVAL { exact }
104 | ::= { nsVacmAccessEntry 2 }
105 |
106 | nsVacmViewName OBJECT-TYPE
107 | SYNTAX SnmpAdminString (SIZE(0..32))
108 | MAX-ACCESS read-create
109 | STATUS current
110 | DESCRIPTION "The MIB view authorised for the appropriate style
111 | of processing (as indicated by nsVacmToken).
112 |
113 | The interpretation of this value is the same as for
114 | the standard VACM ViewName objects."
115 | DEFVAL { ''H } -- the empty string
116 | ::= { nsVacmAccessEntry 3 }
117 |
118 |
119 | nsVacmStorageType OBJECT-TYPE
120 | SYNTAX StorageType
121 | MAX-ACCESS read-create
122 | STATUS current
123 | DESCRIPTION "The storage type for this (group of) conceptual rows.
124 |
125 | Conceptual rows having the value 'permanent' need not
126 | allow write-access to any columnar objects in the row.
127 |
128 | The value of this object should be consistent across
129 | all nsVacmAccessEntries corresponding to a single
130 | row of the vacmAccessTable.
131 | "
132 | DEFVAL { nonVolatile }
133 | ::= { nsVacmAccessEntry 4 }
134 |
135 | nsVacmStatus OBJECT-TYPE
136 | SYNTAX RowStatus
137 | MAX-ACCESS read-create
138 | STATUS current
139 | DESCRIPTION "The status of this (group of) conceptual rows.
140 |
141 | The RowStatus TC [RFC2579] requires that this
142 | DESCRIPTION clause states under which circumstances
143 | other objects in this row can be modified:
144 |
145 | The value of this object has no effect on whether
146 | other objects in this conceptual row can be modified.
147 |
148 | The value of this object should be consistent across
149 | all nsVacmAccessEntries corresponding to a single
150 | row of the vacmAccessTable.
151 | "
152 | ::= { nsVacmAccessEntry 5 }
153 |
154 | END
155 |
--------------------------------------------------------------------------------
/img/UCD-DISKIO-MIB.txt:
--------------------------------------------------------------------------------
1 | UCD-DISKIO-MIB DEFINITIONS ::= BEGIN
2 |
3 | --
4 | -- Derived from the original VEST-INTERNETT-MIB. Open issues:
5 | --
6 | -- (a) where to register this MIB?
7 | -- (b) use not-accessible for diskIOIndex?
8 | --
9 |
10 |
11 | IMPORTS
12 | MODULE-IDENTITY, OBJECT-TYPE, Integer32, Counter32, Counter64
13 | FROM SNMPv2-SMI
14 | DisplayString
15 | FROM SNMPv2-TC
16 | ucdExperimental
17 | FROM UCD-SNMP-MIB;
18 |
19 | ucdDiskIOMIB MODULE-IDENTITY
20 | LAST-UPDATED "201604040000Z"
21 | ORGANIZATION "University of California, Davis"
22 | CONTACT-INFO
23 | "This mib is no longer being maintained by the University of
24 | California and is now in life-support-mode and being
25 | maintained by the net-snmp project. The best place to write
26 | for public questions about the net-snmp-coders mailing list
27 | at net-snmp-coders@lists.sourceforge.net.
28 |
29 | postal: Wes Hardaker
30 | P.O. Box 382
31 | Davis CA 95617
32 |
33 | email: net-snmp-coders@lists.sourceforge.net
34 | "
35 | DESCRIPTION
36 | "This MIB module defines objects for disk IO statistics."
37 |
38 | REVISION "201604040000Z"
39 | DESCRIPTION
40 | "Add 64-bit counter for busy micro-seconds."
41 |
42 | REVISION "200504200000Z"
43 | DESCRIPTION
44 | "Add 64 bit counters. Patch from Dan Nelson."
45 |
46 | REVISION "200202130000Z"
47 | DESCRIPTION
48 | "Add 1, 5 and 15-minute load average objects"
49 |
50 | REVISION "200001260000Z"
51 | DESCRIPTION
52 | "SMIv2 version derived from older definitions contained
53 | in the VEST-INTERNETT-MIB module."
54 | ::= { ucdExperimental 15 }
55 |
56 | diskIOTable OBJECT-TYPE
57 | SYNTAX SEQUENCE OF DiskIOEntry
58 | MAX-ACCESS not-accessible
59 | STATUS current
60 | DESCRIPTION
61 | "Table of IO devices and how much data they have read/written."
62 | ::= { ucdDiskIOMIB 1 }
63 |
64 | diskIOEntry OBJECT-TYPE
65 | SYNTAX DiskIOEntry
66 | MAX-ACCESS not-accessible
67 | STATUS current
68 | DESCRIPTION
69 | "An entry containing a device and its statistics."
70 | INDEX { diskIOIndex }
71 | ::= { diskIOTable 1 }
72 |
73 | DiskIOEntry ::= SEQUENCE {
74 | diskIOIndex Integer32,
75 | diskIODevice DisplayString,
76 | diskIONRead Counter32,
77 | diskIONWritten Counter32,
78 | diskIOReads Counter32,
79 | diskIOWrites Counter32,
80 | diskIOLA1 Integer32,
81 | diskIOLA5 Integer32,
82 | diskIOLA15 Integer32,
83 | diskIONReadX Counter64,
84 | diskIONWrittenX Counter64,
85 | diskIOBusyTime Counter64
86 | }
87 |
88 | diskIOIndex OBJECT-TYPE
89 | SYNTAX Integer32 (0..65535)
90 | MAX-ACCESS read-only
91 | STATUS current
92 | DESCRIPTION
93 | "Reference index for each observed device."
94 | ::= { diskIOEntry 1 }
95 |
96 | diskIODevice OBJECT-TYPE
97 | SYNTAX DisplayString
98 | MAX-ACCESS read-only
99 | STATUS current
100 | DESCRIPTION
101 | "The name of the device we are counting/checking."
102 | ::= { diskIOEntry 2 }
103 |
104 | diskIONRead OBJECT-TYPE
105 | SYNTAX Counter32
106 | MAX-ACCESS read-only
107 | STATUS current
108 | DESCRIPTION
109 | "The number of bytes read from this device since boot."
110 | ::= { diskIOEntry 3 }
111 |
112 | diskIONWritten OBJECT-TYPE
113 | SYNTAX Counter32
114 | MAX-ACCESS read-only
115 | STATUS current
116 | DESCRIPTION
117 | "The number of bytes written to this device since boot."
118 | ::= { diskIOEntry 4 }
119 |
120 | diskIOReads OBJECT-TYPE
121 | SYNTAX Counter32
122 | MAX-ACCESS read-only
123 | STATUS current
124 | DESCRIPTION
125 | "The number of read accesses from this device since boot."
126 | ::= { diskIOEntry 5 }
127 |
128 | diskIOWrites OBJECT-TYPE
129 | SYNTAX Counter32
130 | MAX-ACCESS read-only
131 | STATUS current
132 | DESCRIPTION
133 | "The number of write accesses to this device since boot."
134 | ::= { diskIOEntry 6 }
135 |
136 | diskIOLA1 OBJECT-TYPE
137 | SYNTAX Integer32 (0..100)
138 | MAX-ACCESS read-only
139 | STATUS current
140 | DESCRIPTION
141 | "The 1 minute average load of disk (%)"
142 | ::= { diskIOEntry 9 }
143 |
144 | diskIOLA5 OBJECT-TYPE
145 | SYNTAX Integer32 (0..100)
146 | MAX-ACCESS read-only
147 | STATUS current
148 | DESCRIPTION
149 | "The 5 minute average load of disk (%)"
150 | ::= { diskIOEntry 10 }
151 |
152 | diskIOLA15 OBJECT-TYPE
153 | SYNTAX Integer32 (0..100)
154 | MAX-ACCESS read-only
155 | STATUS current
156 | DESCRIPTION
157 | "The 15 minute average load of disk (%)"
158 | ::= { diskIOEntry 11 }
159 |
160 | diskIONReadX OBJECT-TYPE
161 | SYNTAX Counter64
162 | MAX-ACCESS read-only
163 | STATUS current
164 | DESCRIPTION
165 | "The number of bytes read from this device since boot."
166 | ::= { diskIOEntry 12 }
167 |
168 | diskIONWrittenX OBJECT-TYPE
169 | SYNTAX Counter64
170 | MAX-ACCESS read-only
171 | STATUS current
172 | DESCRIPTION
173 | "The number of bytes written to this device since boot."
174 | ::= { diskIOEntry 13 }
175 |
176 |
177 | diskIOBusyTime OBJECT-TYPE
178 | SYNTAX Counter64
179 | MAX-ACCESS read-only
180 | STATUS current
181 | DESCRIPTION
182 | "The number of usecs the drive has been busy since boot."
183 | ::= { diskIOEntry 14 }
184 |
185 | END
186 |
--------------------------------------------------------------------------------
/Templates/zbx_export_templates (7).xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 5.0
4 | 2021-02-23T13:26:03Z
5 |
6 |
7 | Templates/Modules
8 |
9 |
10 |
11 |
12 | Template Module ICMP Ping
13 | Template Module ICMP Ping
14 | Template Module ICMP Ping
15 |
16 | Template tooling version used: 0.34
17 |
18 |
19 | Templates/Modules
20 |
21 |
22 |
23 |
24 | Status
25 |
26 |
27 |
28 | -
29 | ICMP ping
30 | SIMPLE
31 | icmpping
32 | 1w
33 |
34 |
35 | Status
36 |
37 |
38 |
39 | Service state
40 |
41 |
42 |
43 | {max(#3)}=0
44 | Unavailable by ICMP ping
45 | HIGH
46 | Last three attempts returned timeout. Please check device connectivity.
47 |
48 |
49 |
50 | -
51 | ICMP loss
52 | SIMPLE
53 | icmppingloss
54 | 1w
55 | FLOAT
56 | %
57 |
58 |
59 | Status
60 |
61 |
62 |
63 |
64 | {min(5m)}>{$ICMP_LOSS_WARN} and {min(5m)}<100
65 | High ICMP ping loss
66 | Loss: {ITEM.LASTVALUE1}
67 | WARNING
68 |
69 |
70 | Unavailable by ICMP ping
71 | {Template Module ICMP Ping:icmpping.max(#3)}=0
72 |
73 |
74 |
75 |
76 |
77 | -
78 | ICMP response time
79 | SIMPLE
80 | icmppingsec
81 | 1w
82 | FLOAT
83 | s
84 |
85 |
86 | Status
87 |
88 |
89 |
90 |
91 | {avg(5m)}>{$ICMP_RESPONSE_TIME_WARN}
92 | High ICMP ping response time
93 | Value: {ITEM.LASTVALUE1}
94 | WARNING
95 |
96 |
97 | High ICMP ping loss
98 | {Template Module ICMP Ping:icmppingloss.min(5m)}>{$ICMP_LOSS_WARN} and {Template Module ICMP Ping:icmppingloss.min(5m)}<100
99 |
100 |
101 | Unavailable by ICMP ping
102 | {Template Module ICMP Ping:icmpping.max(#3)}=0
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 | {$ICMP_LOSS_WARN}
112 | 20
113 |
114 |
115 | {$ICMP_RESPONSE_TIME_WARN}
116 | 0.15
117 |
118 |
119 |
120 |
121 |
122 |
123 | Service state
124 |
125 |
126 | 0
127 | Down
128 |
129 |
130 | 1
131 | Up
132 |
133 |
134 |
135 |
136 |
137 |
--------------------------------------------------------------------------------
/img/SNMP-MPD-MIB.txt:
--------------------------------------------------------------------------------
1 | SNMP-MPD-MIB DEFINITIONS ::= BEGIN
2 |
3 | IMPORTS
4 | MODULE-COMPLIANCE, OBJECT-GROUP FROM SNMPv2-CONF
5 | MODULE-IDENTITY, OBJECT-TYPE,
6 | snmpModules, Counter32 FROM SNMPv2-SMI;
7 |
8 | snmpMPDMIB MODULE-IDENTITY
9 | LAST-UPDATED "200210140000Z"
10 | ORGANIZATION "SNMPv3 Working Group"
11 | CONTACT-INFO "WG-EMail: snmpv3@lists.tislabs.com
12 | Subscribe: snmpv3-request@lists.tislabs.com
13 |
14 | Co-Chair: Russ Mundy
15 | Network Associates Laboratories
16 | postal: 15204 Omega Drive, Suite 300
17 | Rockville, MD 20850-4601
18 | USA
19 |
20 | EMail: mundy@tislabs.com
21 | phone: +1 301-947-7107
22 |
23 | Co-Chair &
24 | Co-editor: David Harrington
25 | Enterasys Networks
26 | postal: 35 Industrial Way
27 | P. O. Box 5005
28 | Rochester NH 03866-5005
29 | USA
30 | EMail: dbh@enterasys.com
31 | phone: +1 603-337-2614
32 |
33 | Co-editor: Jeffrey Case
34 | SNMP Research, Inc.
35 | postal: 3001 Kimberlin Heights Road
36 | Knoxville, TN 37920-9716
37 | USA
38 | EMail: case@snmp.com
39 | phone: +1 423-573-1434
40 |
41 | Co-editor: Randy Presuhn
42 | BMC Software, Inc.
43 | postal: 2141 North First Street
44 | San Jose, CA 95131
45 | USA
46 | EMail: randy_presuhn@bmc.com
47 | phone: +1 408-546-1006
48 |
49 | Co-editor: Bert Wijnen
50 | Lucent Technologies
51 | postal: Schagen 33
52 | 3461 GL Linschoten
53 | Netherlands
54 | EMail: bwijnen@lucent.com
55 | phone: +31 348-680-485
56 | "
57 | DESCRIPTION "The MIB for Message Processing and Dispatching
58 |
59 | Copyright (C) The Internet Society (2002). This
60 | version of this MIB module is part of RFC 3412;
61 | see the RFC itself for full legal notices.
62 | "
63 | REVISION "200210140000Z" -- 14 October 2002
64 | DESCRIPTION "Updated addresses, published as RFC 3412."
65 | REVISION "199905041636Z" -- 4 May 1999
66 | DESCRIPTION "Updated addresses, published as RFC 2572."
67 |
68 | REVISION "199709300000Z" -- 30 September 1997
69 | DESCRIPTION "Original version, published as RFC 2272."
70 | ::= { snmpModules 11 }
71 |
72 | -- Administrative assignments ***************************************
73 |
74 | snmpMPDAdmin OBJECT IDENTIFIER ::= { snmpMPDMIB 1 }
75 | snmpMPDMIBObjects OBJECT IDENTIFIER ::= { snmpMPDMIB 2 }
76 | snmpMPDMIBConformance OBJECT IDENTIFIER ::= { snmpMPDMIB 3 }
77 |
78 | -- Statistics for SNMP Messages *************************************
79 |
80 | snmpMPDStats OBJECT IDENTIFIER ::= { snmpMPDMIBObjects 1 }
81 |
82 | snmpUnknownSecurityModels OBJECT-TYPE
83 | SYNTAX Counter32
84 | MAX-ACCESS read-only
85 | STATUS current
86 | DESCRIPTION "The total number of packets received by the SNMP
87 | engine which were dropped because they referenced a
88 | securityModel that was not known to or supported by
89 | the SNMP engine.
90 | "
91 | ::= { snmpMPDStats 1 }
92 |
93 | snmpInvalidMsgs OBJECT-TYPE
94 | SYNTAX Counter32
95 | MAX-ACCESS read-only
96 | STATUS current
97 | DESCRIPTION "The total number of packets received by the SNMP
98 | engine which were dropped because there were invalid
99 | or inconsistent components in the SNMP message.
100 | "
101 | ::= { snmpMPDStats 2 }
102 |
103 | snmpUnknownPDUHandlers OBJECT-TYPE
104 | SYNTAX Counter32
105 | MAX-ACCESS read-only
106 | STATUS current
107 | DESCRIPTION "The total number of packets received by the SNMP
108 | engine which were dropped because the PDU contained
109 | in the packet could not be passed to an application
110 | responsible for handling the pduType, e.g. no SNMP
111 | application had registered for the proper
112 | combination of the contextEngineID and the pduType.
113 | "
114 | ::= { snmpMPDStats 3 }
115 |
116 | -- Conformance information ******************************************
117 |
118 | snmpMPDMIBCompliances OBJECT IDENTIFIER ::= {snmpMPDMIBConformance 1}
119 | snmpMPDMIBGroups OBJECT IDENTIFIER ::= {snmpMPDMIBConformance 2}
120 |
121 | -- Compliance statements
122 |
123 | snmpMPDCompliance MODULE-COMPLIANCE
124 | STATUS current
125 | DESCRIPTION "The compliance statement for SNMP entities which
126 | implement the SNMP-MPD-MIB.
127 | "
128 | MODULE -- this module
129 | MANDATORY-GROUPS { snmpMPDGroup }
130 | ::= { snmpMPDMIBCompliances 1 }
131 |
132 | snmpMPDGroup OBJECT-GROUP
133 | OBJECTS {
134 | snmpUnknownSecurityModels,
135 | snmpInvalidMsgs,
136 | snmpUnknownPDUHandlers
137 | }
138 | STATUS current
139 | DESCRIPTION "A collection of objects providing for remote
140 | monitoring of the SNMP Message Processing and
141 | Dispatching process.
142 | "
143 | ::= { snmpMPDMIBGroups 1 }
144 |
145 | END
146 |
--------------------------------------------------------------------------------
/img/IPV6-UDP-MIB.txt:
--------------------------------------------------------------------------------
1 | IPV6-UDP-MIB DEFINITIONS ::= BEGIN
2 |
3 | IMPORTS
4 | MODULE-COMPLIANCE, OBJECT-GROUP FROM SNMPv2-CONF
5 | MODULE-IDENTITY, OBJECT-TYPE,
6 | mib-2, experimental FROM SNMPv2-SMI
7 | Ipv6Address, Ipv6IfIndexOrZero FROM IPV6-TC;
8 |
9 | ipv6UdpMIB MODULE-IDENTITY
10 | LAST-UPDATED "201702220000Z"
11 | ORGANIZATION "IETF IPv6 MIB Working Group"
12 | CONTACT-INFO
13 | " Mike Daniele
14 |
15 | Postal: Compaq Computer Corporation
16 | 110 Spitbrook Rd
17 | Nashua, NH 03062.
18 | US
19 |
20 | Phone: +1 603 884 1423
21 | Email: daniele@zk3.dec.com"
22 | DESCRIPTION
23 | "The obsolete MIB module for entities implementing UDP
24 | over IPv6. Use the UDP-MIB instead.
25 |
26 | Copyright (c) 2017 IETF Trust and the persons
27 | identified as authors of the code. All rights reserved.
28 |
29 | Redistribution and use in source and binary forms,
30 | with or without modification, is permitted pursuant to,
31 | and subject to the license terms contained in, the
32 | Simplified BSD License set forth in Section 4.c of the IETF
33 | Trust's Legal Provisions Relating to IETF Documents
34 | (http://trustee.ietf.org/license-info)."
35 | REVISION "201702220000Z"
36 | DESCRIPTION
37 | "Obsoleting this MIB module; it has been replaced by
38 | the revised UDP-MIB (RFC 4113)."
39 | REVISION "9801290000Z"
40 | DESCRIPTION
41 | "First revision, published as RFC 2454"
42 | ::= { experimental 87 }
43 |
44 | -- objects specific to UDP for IPv6
45 |
46 | udp OBJECT IDENTIFIER ::= { mib-2 7 }
47 |
48 | -- the UDP over IPv6 Listener table
49 |
50 | -- This table contains information about this entity's
51 | -- UDP/IPv6 endpoints. Only endpoints utilizing IPv6 addresses
52 | -- are contained in this table. This entity's UDP/IPv4 endpoints
53 | -- are contained in udpTable.
54 |
55 | ipv6UdpTable OBJECT-TYPE
56 | SYNTAX SEQUENCE OF Ipv6UdpEntry
57 | MAX-ACCESS not-accessible
58 | STATUS obsolete
59 | DESCRIPTION
60 | "A table containing UDP listener information for
61 | UDP/IPv6 endpoints.
62 |
63 | This table is obsoleted by UDP-MIB::udpEndpointTable."
64 | ::= { udp 6 }
65 |
66 | ipv6UdpEntry OBJECT-TYPE
67 | SYNTAX Ipv6UdpEntry
68 | MAX-ACCESS not-accessible
69 | STATUS obsolete
70 | DESCRIPTION
71 | "Information about a particular current UDP listener.
72 |
73 | Note that conceptual rows in this table require an
74 | additional index object compared to udpTable, since
75 | IPv6 addresses are not guaranteed to be unique on the
76 | managed node.
77 |
78 | This entry is obsoleted by UDP-MIB::udpEndpointTable."
79 | INDEX { ipv6UdpLocalAddress,
80 | ipv6UdpLocalPort,
81 | ipv6UdpIfIndex }
82 | ::= { ipv6UdpTable 1 }
83 |
84 | Ipv6UdpEntry ::= SEQUENCE {
85 |
86 | ipv6UdpLocalAddress Ipv6Address,
87 | ipv6UdpLocalPort INTEGER,
88 | ipv6UdpIfIndex Ipv6IfIndexOrZero }
89 |
90 | ipv6UdpLocalAddress OBJECT-TYPE
91 | SYNTAX Ipv6Address
92 | MAX-ACCESS not-accessible
93 | STATUS obsolete
94 | DESCRIPTION
95 | "The local IPv6 address for this UDP listener.
96 | In the case of a UDP listener which is willing
97 | to accept datagrams for any IPv6 address
98 | associated with the managed node, the value ::0
99 | is used.
100 |
101 | This object is obsoleted by UDP-MIB::udpEndpointLocalAddress."
102 | ::= { ipv6UdpEntry 1 }
103 |
104 | ipv6UdpLocalPort OBJECT-TYPE
105 | SYNTAX INTEGER (0..65535)
106 | MAX-ACCESS not-accessible
107 | STATUS obsolete
108 | DESCRIPTION
109 | "The local port number for this UDP listener.
110 |
111 | This object is obsoleted by UDP-MIB::udpEndpointLocalPort."
112 | ::= { ipv6UdpEntry 2 }
113 |
114 | ipv6UdpIfIndex OBJECT-TYPE
115 | SYNTAX Ipv6IfIndexOrZero
116 | MAX-ACCESS read-only
117 | STATUS obsolete
118 | DESCRIPTION
119 | "An index object used to disambiguate conceptual rows in
120 | the table, since the ipv6UdpLocalAddress/ipv6UdpLocalPort
121 | pair may not be unique.
122 |
123 | This object identifies the local interface that is
124 | associated with ipv6UdpLocalAddress for this UDP listener.
125 | If such a local interface cannot be determined, this object
126 | should take on the value 0. (A possible example of this
127 | would be if the value of ipv6UdpLocalAddress is ::0.)
128 |
129 | The interface identified by a particular non-0 value of
130 | this index is the same interface as identified by the same
131 | value of ipv6IfIndex.
132 |
133 | The value of this object must remain constant during
134 |
135 | the life of this UDP endpoint.
136 |
137 | This object is obsoleted by the zone identifier in
138 | an InetAddressIPv6z address in
139 | UDP-MIB::udpEndpointLocalAddress."
140 | ::= { ipv6UdpEntry 3 }
141 |
142 | --
143 | -- conformance information
144 | --
145 |
146 | ipv6UdpConformance OBJECT IDENTIFIER ::= { ipv6UdpMIB 2 }
147 |
148 | ipv6UdpCompliances OBJECT IDENTIFIER ::= { ipv6UdpConformance 1 }
149 | ipv6UdpGroups OBJECT IDENTIFIER ::= { ipv6UdpConformance 2 }
150 |
151 | -- compliance statements
152 |
153 | ipv6UdpCompliance MODULE-COMPLIANCE
154 | STATUS obsolete
155 | DESCRIPTION
156 | "The compliance statement for SNMPv2 entities which
157 | implement UDP over IPv6.
158 |
159 | This object is obsoleted by UDP-MIB::udpMIBCompliance2."
160 | MODULE -- this module
161 | MANDATORY-GROUPS { ipv6UdpGroup }
162 | ::= { ipv6UdpCompliances 1 }
163 |
164 | ipv6UdpGroup OBJECT-GROUP
165 | OBJECTS { -- these are defined in this module
166 | -- ipv6UdpLocalAddress (not-accessible)
167 | -- ipv6UdpLocalPort (not-accessible)
168 | ipv6UdpIfIndex }
169 | STATUS obsolete
170 | DESCRIPTION
171 | "The group of objects providing management of
172 | UDP over IPv6.
173 |
174 | This group is obsoleted by several groups in UDP-MIB."
175 | ::= { ipv6UdpGroups 1 }
176 |
177 | END
178 |
--------------------------------------------------------------------------------
/img/SNMPv2-TM.txt:
--------------------------------------------------------------------------------
1 | SNMPv2-TM DEFINITIONS ::= BEGIN
2 |
3 | IMPORTS
4 | MODULE-IDENTITY, OBJECT-IDENTITY,
5 | snmpModules, snmpDomains, snmpProxys
6 | FROM SNMPv2-SMI
7 | TEXTUAL-CONVENTION
8 | FROM SNMPv2-TC;
9 |
10 | snmpv2tm MODULE-IDENTITY
11 | LAST-UPDATED "200210160000Z"
12 | ORGANIZATION "IETF SNMPv3 Working Group"
13 | CONTACT-INFO
14 | "WG-EMail: snmpv3@lists.tislabs.com
15 | Subscribe: snmpv3-request@lists.tislabs.com
16 |
17 | Co-Chair: Russ Mundy
18 | Network Associates Laboratories
19 | postal: 15204 Omega Drive, Suite 300
20 | Rockville, MD 20850-4601
21 | USA
22 | EMail: mundy@tislabs.com
23 | phone: +1 301 947-7107
24 |
25 | Co-Chair: David Harrington
26 | Enterasys Networks
27 | postal: 35 Industrial Way
28 | P. O. Box 5005
29 | Rochester, NH 03866-5005
30 | USA
31 | EMail: dbh@enterasys.com
32 | phone: +1 603 337-2614
33 |
34 | Editor: Randy Presuhn
35 | BMC Software, Inc.
36 | postal: 2141 North First Street
37 | San Jose, CA 95131
38 | USA
39 | EMail: randy_presuhn@bmc.com
40 | phone: +1 408 546-1006"
41 | DESCRIPTION
42 | "The MIB module for SNMP transport mappings.
43 |
44 | Copyright (C) The Internet Society (2002). This
45 | version of this MIB module is part of RFC 3417;
46 | see the RFC itself for full legal notices.
47 | "
48 | REVISION "200210160000Z"
49 | DESCRIPTION
50 | "Clarifications, published as RFC 3417."
51 | REVISION "199601010000Z"
52 | DESCRIPTION
53 | "Clarifications, published as RFC 1906."
54 | REVISION "199304010000Z"
55 | DESCRIPTION
56 | "The initial version, published as RFC 1449."
57 | ::= { snmpModules 19 }
58 |
59 | -- SNMP over UDP over IPv4
60 |
61 | snmpUDPDomain OBJECT-IDENTITY
62 | STATUS current
63 | DESCRIPTION
64 | "The SNMP over UDP over IPv4 transport domain.
65 | The corresponding transport address is of type
66 | SnmpUDPAddress."
67 | ::= { snmpDomains 1 }
68 |
69 | SnmpUDPAddress ::= TEXTUAL-CONVENTION
70 | DISPLAY-HINT "1d.1d.1d.1d/2d"
71 | STATUS current
72 | DESCRIPTION
73 | "Represents a UDP over IPv4 address:
74 |
75 | octets contents encoding
76 | 1-4 IP-address network-byte order
77 | 5-6 UDP-port network-byte order
78 | "
79 | SYNTAX OCTET STRING (SIZE (6))
80 |
81 | -- SNMP over OSI
82 |
83 | snmpCLNSDomain OBJECT-IDENTITY
84 | STATUS current
85 | DESCRIPTION
86 | "The SNMP over CLNS transport domain.
87 | The corresponding transport address is of type
88 | SnmpOSIAddress."
89 | ::= { snmpDomains 2 }
90 |
91 | snmpCONSDomain OBJECT-IDENTITY
92 | STATUS current
93 | DESCRIPTION
94 | "The SNMP over CONS transport domain.
95 | The corresponding transport address is of type
96 | SnmpOSIAddress."
97 | ::= { snmpDomains 3 }
98 |
99 | SnmpOSIAddress ::= TEXTUAL-CONVENTION
100 | DISPLAY-HINT "*1x:/1x:"
101 | STATUS current
102 | DESCRIPTION
103 | "Represents an OSI transport-address:
104 |
105 | octets contents encoding
106 | 1 length of NSAP 'n' as an unsigned-integer
107 | (either 0 or from 3 to 20)
108 | 2..(n+1) NSAP concrete binary representation
109 | (n+2)..m TSEL string of (up to 64) octets
110 | "
111 | SYNTAX OCTET STRING (SIZE (1 | 4..85))
112 |
113 | -- SNMP over DDP
114 |
115 | snmpDDPDomain OBJECT-IDENTITY
116 | STATUS current
117 | DESCRIPTION
118 | "The SNMP over DDP transport domain. The corresponding
119 | transport address is of type SnmpNBPAddress."
120 | ::= { snmpDomains 4 }
121 |
122 | SnmpNBPAddress ::= TEXTUAL-CONVENTION
123 | STATUS current
124 | DESCRIPTION
125 | "Represents an NBP name:
126 |
127 | octets contents encoding
128 | 1 length of object 'n' as an unsigned integer
129 | 2..(n+1) object string of (up to 32) octets
130 | n+2 length of type 'p' as an unsigned integer
131 | (n+3)..(n+2+p) type string of (up to 32) octets
132 | n+3+p length of zone 'q' as an unsigned integer
133 | (n+4+p)..(n+3+p+q) zone string of (up to 32) octets
134 |
135 | For comparison purposes, strings are
136 | case-insensitive. All strings may contain any octet
137 | other than 255 (hex ff)."
138 | SYNTAX OCTET STRING (SIZE (3..99))
139 |
140 | -- SNMP over IPX
141 |
142 | snmpIPXDomain OBJECT-IDENTITY
143 | STATUS current
144 | DESCRIPTION
145 | "The SNMP over IPX transport domain. The corresponding
146 | transport address is of type SnmpIPXAddress."
147 | ::= { snmpDomains 5 }
148 |
149 | SnmpIPXAddress ::= TEXTUAL-CONVENTION
150 | DISPLAY-HINT "4x.1x:1x:1x:1x:1x:1x.2d"
151 | STATUS current
152 | DESCRIPTION
153 | "Represents an IPX address:
154 |
155 | octets contents encoding
156 | 1-4 network-number network-byte order
157 | 5-10 physical-address network-byte order
158 | 11-12 socket-number network-byte order
159 | "
160 | SYNTAX OCTET STRING (SIZE (12))
161 |
162 | -- for proxy to SNMPv1 (RFC 1157)
163 |
164 | rfc1157Proxy OBJECT IDENTIFIER ::= { snmpProxys 1 }
165 |
166 | rfc1157Domain OBJECT-IDENTITY
167 | STATUS deprecated
168 | DESCRIPTION
169 | "The transport domain for SNMPv1 over UDP over IPv4.
170 | The corresponding transport address is of type
171 | SnmpUDPAddress."
172 | ::= { rfc1157Proxy 1 }
173 |
174 | -- ::= { rfc1157Proxy 2 } this OID is obsolete
175 |
176 | END
177 |
--------------------------------------------------------------------------------
/img/LM-SENSORS-MIB.txt:
--------------------------------------------------------------------------------
1 | LM-SENSORS-MIB DEFINITIONS ::= BEGIN
2 |
3 | --
4 | -- Derived from the original VEST-INTERNETT-MIB. Open issues:
5 | --
6 | -- (a) where to register this MIB?
7 | -- (b) use not-accessible for diskIOIndex?
8 | --
9 |
10 |
11 | IMPORTS
12 | MODULE-IDENTITY, OBJECT-TYPE, Integer32, Gauge32
13 | FROM SNMPv2-SMI
14 | DisplayString
15 | FROM SNMPv2-TC
16 | ucdExperimental
17 | FROM UCD-SNMP-MIB;
18 |
19 | lmSensorsMIB MODULE-IDENTITY
20 | LAST-UPDATED "200011050000Z"
21 | ORGANIZATION "AdamsNames Ltd"
22 | CONTACT-INFO
23 | "Primary Contact: M J Oldfield
24 | email: m@mail.tc"
25 | DESCRIPTION
26 | "This MIB module defines objects for lm_sensor derived data."
27 | REVISION "200011050000Z"
28 | DESCRIPTION
29 | "Derived from DISKIO-MIB ex UCD."
30 | ::= { lmSensors 1 }
31 |
32 | lmSensors OBJECT IDENTIFIER ::= { ucdExperimental 16 }
33 |
34 | --
35 |
36 | lmTempSensorsTable OBJECT-TYPE
37 | SYNTAX SEQUENCE OF LMTempSensorsEntry
38 | MAX-ACCESS not-accessible
39 | STATUS current
40 | DESCRIPTION
41 | "Table of temperature sensors and their values."
42 | ::= { lmSensors 2 }
43 |
44 | lmTempSensorsEntry OBJECT-TYPE
45 | SYNTAX LMTempSensorsEntry
46 | MAX-ACCESS not-accessible
47 | STATUS current
48 | DESCRIPTION
49 | "An entry containing a device and its statistics."
50 | INDEX { lmTempSensorsIndex }
51 | ::= { lmTempSensorsTable 1 }
52 |
53 | LMTempSensorsEntry ::= SEQUENCE {
54 | lmTempSensorsIndex Integer32,
55 | lmTempSensorsDevice DisplayString,
56 | lmTempSensorsValue Gauge32
57 | }
58 |
59 | lmTempSensorsIndex OBJECT-TYPE
60 | SYNTAX Integer32 (0..65535)
61 | MAX-ACCESS read-only
62 | STATUS current
63 | DESCRIPTION
64 | "Reference index for each observed device."
65 | ::= { lmTempSensorsEntry 1 }
66 |
67 | lmTempSensorsDevice OBJECT-TYPE
68 | SYNTAX DisplayString
69 | MAX-ACCESS read-only
70 | STATUS current
71 | DESCRIPTION
72 | "The name of the temperature sensor we are reading."
73 | ::= { lmTempSensorsEntry 2 }
74 |
75 | lmTempSensorsValue OBJECT-TYPE
76 | SYNTAX Gauge32
77 | MAX-ACCESS read-only
78 | STATUS current
79 | DESCRIPTION
80 | "The temperature of this sensor in mC."
81 | ::= { lmTempSensorsEntry 3 }
82 | --
83 |
84 | lmFanSensorsTable OBJECT-TYPE
85 | SYNTAX SEQUENCE OF LMFanSensorsEntry
86 | MAX-ACCESS not-accessible
87 | STATUS current
88 | DESCRIPTION
89 | "Table of fan sensors and their values."
90 | ::= { lmSensors 3 }
91 |
92 | lmFanSensorsEntry OBJECT-TYPE
93 | SYNTAX LMFanSensorsEntry
94 | MAX-ACCESS not-accessible
95 | STATUS current
96 | DESCRIPTION
97 | "An entry containing a device and its statistics."
98 | INDEX { lmFanSensorsIndex }
99 | ::= { lmFanSensorsTable 1 }
100 |
101 | LMFanSensorsEntry ::= SEQUENCE {
102 | lmFanSensorsIndex Integer32,
103 | lmFanSensorsDevice DisplayString,
104 | lmFanSensorsValue Gauge32
105 | }
106 |
107 | lmFanSensorsIndex OBJECT-TYPE
108 | SYNTAX Integer32 (0..65535)
109 | MAX-ACCESS read-only
110 | STATUS current
111 | DESCRIPTION
112 | "Reference index for each observed device."
113 | ::= { lmFanSensorsEntry 1 }
114 |
115 | lmFanSensorsDevice OBJECT-TYPE
116 | SYNTAX DisplayString
117 | MAX-ACCESS read-only
118 | STATUS current
119 | DESCRIPTION
120 | "The name of the fan sensor we are reading."
121 | ::= { lmFanSensorsEntry 2 }
122 |
123 | lmFanSensorsValue OBJECT-TYPE
124 | SYNTAX Gauge32
125 | MAX-ACCESS read-only
126 | STATUS current
127 | DESCRIPTION
128 | "The rotation speed of the fan in RPM."
129 | ::= { lmFanSensorsEntry 3 }
130 |
131 | --
132 |
133 | lmVoltSensorsTable OBJECT-TYPE
134 | SYNTAX SEQUENCE OF LMVoltSensorsEntry
135 | MAX-ACCESS not-accessible
136 | STATUS current
137 | DESCRIPTION
138 | "Table of voltage sensors and their values."
139 | ::= { lmSensors 4 }
140 |
141 | lmVoltSensorsEntry OBJECT-TYPE
142 | SYNTAX LMVoltSensorsEntry
143 | MAX-ACCESS not-accessible
144 | STATUS current
145 | DESCRIPTION
146 | "An entry containing a device and its statistics."
147 | INDEX { lmVoltSensorsIndex }
148 | ::= { lmVoltSensorsTable 1 }
149 |
150 | LMVoltSensorsEntry ::= SEQUENCE {
151 | lmVoltSensorsIndex Integer32,
152 | lmVoltSensorsDevice DisplayString,
153 | lmVoltSensorsValue Gauge32
154 | }
155 |
156 | lmVoltSensorsIndex OBJECT-TYPE
157 | SYNTAX Integer32 (0..65535)
158 | MAX-ACCESS read-only
159 | STATUS current
160 | DESCRIPTION
161 | "Reference index for each observed device."
162 | ::= { lmVoltSensorsEntry 1 }
163 |
164 | lmVoltSensorsDevice OBJECT-TYPE
165 | SYNTAX DisplayString
166 | MAX-ACCESS read-only
167 | STATUS current
168 | DESCRIPTION
169 | "The name of the device we are reading."
170 | ::= { lmVoltSensorsEntry 2 }
171 |
172 | lmVoltSensorsValue OBJECT-TYPE
173 | SYNTAX Gauge32
174 | MAX-ACCESS read-only
175 | STATUS current
176 | DESCRIPTION
177 | "The voltage in mV."
178 | ::= { lmVoltSensorsEntry 3 }
179 |
180 | --
181 |
182 | lmMiscSensorsTable OBJECT-TYPE
183 | SYNTAX SEQUENCE OF LMMiscSensorsEntry
184 | MAX-ACCESS not-accessible
185 | STATUS current
186 | DESCRIPTION
187 | "Table of miscellaneous sensor devices and their values."
188 | ::= { lmSensors 5 }
189 |
190 | lmMiscSensorsEntry OBJECT-TYPE
191 | SYNTAX LMMiscSensorsEntry
192 | MAX-ACCESS not-accessible
193 | STATUS current
194 | DESCRIPTION
195 | "An entry containing a device and its statistics."
196 | INDEX { lmMiscSensorsIndex }
197 | ::= { lmMiscSensorsTable 1 }
198 |
199 | LMMiscSensorsEntry ::= SEQUENCE {
200 | lmMiscSensorsIndex Integer32,
201 | lmMiscSensorsDevice DisplayString,
202 | lmMiscSensorsValue Gauge32
203 | }
204 |
205 | lmMiscSensorsIndex OBJECT-TYPE
206 | SYNTAX Integer32 (0..65535)
207 | MAX-ACCESS read-only
208 | STATUS current
209 | DESCRIPTION
210 | "Reference index for each observed device."
211 | ::= { lmMiscSensorsEntry 1 }
212 |
213 | lmMiscSensorsDevice OBJECT-TYPE
214 | SYNTAX DisplayString
215 | MAX-ACCESS read-only
216 | STATUS current
217 | DESCRIPTION
218 | "The name of the device we are reading."
219 | ::= { lmMiscSensorsEntry 2 }
220 |
221 | lmMiscSensorsValue OBJECT-TYPE
222 | SYNTAX Gauge32
223 | MAX-ACCESS read-only
224 | STATUS current
225 | DESCRIPTION
226 | "The value of this sensor."
227 | ::= { lmMiscSensorsEntry 3 }
228 |
229 |
230 | END
231 |
--------------------------------------------------------------------------------
/img/IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt:
--------------------------------------------------------------------------------
1 | IANA-ADDRESS-FAMILY-NUMBERS-MIB DEFINITIONS ::= BEGIN
2 |
3 | IMPORTS
4 | MODULE-IDENTITY,
5 | mib-2 FROM SNMPv2-SMI
6 | TEXTUAL-CONVENTION FROM SNMPv2-TC;
7 |
8 | ianaAddressFamilyNumbers MODULE-IDENTITY
9 | LAST-UPDATED "201409020000Z" -- September 2, 2014
10 | ORGANIZATION "IANA"
11 | CONTACT-INFO
12 | "Postal: Internet Assigned Numbers Authority
13 | Internet Corporation for Assigned Names and Numbers
14 | 12025 Waterfront Drive, Suite 300
15 | Los Angeles, CA 90094-2536
16 | USA
17 |
18 | Tel: +1 310-301-5800
19 | E-Mail: iana&iana.org"
20 | DESCRIPTION
21 | "The MIB module defines the AddressFamilyNumbers
22 | textual convention."
23 |
24 | -- revision history
25 |
26 | REVISION "201409020000Z" -- September 2, 2014
27 | DESCRIPTION "Assigned value 16396."
28 |
29 | REVISION "201309250000Z" -- September 25, 2013
30 | DESCRIPTION "Assigned values 16391-16395."
31 |
32 | REVISION "201307160000Z" -- July 16, 2013
33 | DESCRIPTION "Fixed labels for 16389-16390."
34 |
35 | REVISION "201306260000Z" -- June 26, 2013
36 | DESCRIPTION "Added assignments 26-28."
37 |
38 | REVISION "201306180000Z" -- June 18, 2013
39 | DESCRIPTION "Added assignments 16384-16390. Assignment
40 | 25 added in 2007 revision."
41 |
42 | REVISION "200203140000Z" -- March 14, 2002
43 | DESCRIPTION "AddressFamilyNumbers assignment 22 to
44 | fibreChannelWWPN. AddressFamilyNumbers
45 | assignment 23 to fibreChannelWWNN.
46 | AddressFamilyNumers assignment 24 to gwid."
47 |
48 | REVISION "200009080000Z" -- September 8, 2000
49 | DESCRIPTION "AddressFamilyNumbers assignment 19 to xtpOverIpv4.
50 | AddressFamilyNumbers assignment 20 to xtpOverIpv6.
51 | AddressFamilyNumbers assignment 21 to xtpNativeModeXTP."
52 |
53 | REVISION "200003010000Z" -- March 1, 2000
54 | DESCRIPTION "AddressFamilyNumbers assignment 17 to distinguishedName.
55 | AddressFamilyNumbers assignment 18 to asNumber."
56 |
57 | REVISION "200002040000Z" -- February 4, 2000
58 | DESCRIPTION "AddressFamilyNumbers assignment 16 to dns."
59 |
60 | REVISION "9908260000Z" -- August 26, 1999
61 | DESCRIPTION "Initial version, published as RFC 2677."
62 | ::= { mib-2 72 }
63 |
64 | AddressFamilyNumbers ::= TEXTUAL-CONVENTION
65 | STATUS current
66 | DESCRIPTION
67 | "The definition of this textual convention with the
68 | addition of newly assigned values is published
69 | periodically by the IANA, in either the Assigned
70 | Numbers RFC, or some derivative of it specific to
71 | Internet Network Management number assignments.
72 | (The latest arrangements can be obtained by
73 | contacting the IANA.)
74 |
75 | The enumerations are described as:
76 |
77 | other(0), -- none of the following
78 | ipV4(1), -- IP Version 4
79 | ipV6(2), -- IP Version 6
80 | nsap(3), -- NSAP
81 | hdlc(4), -- (8-bit multidrop)
82 | bbn1822(5),
83 | all802(6), -- (includes all 802 media
84 | -- plus Ethernet 'canonical format')
85 | e163(7),
86 | e164(8), -- (SMDS, Frame Relay, ATM)
87 | f69(9), -- (Telex)
88 | x121(10), -- (X.25, Frame Relay)
89 | ipx(11), -- IPX (Internet Protocol Exchange)
90 | appleTalk(12), -- Apple Talk
91 | decnetIV(13), -- DEC Net Phase IV
92 | banyanVines(14), -- Banyan Vines
93 | e164withNsap(15),
94 | -- (E.164 with NSAP format subaddress)
95 | dns(16), -- (Domain Name System)
96 | distinguishedName(17), -- (Distinguished Name, per X.500)
97 | asNumber(18), -- (16-bit quantity, per the AS number space)
98 | xtpOverIpv4(19), -- XTP over IP version 4
99 | xtpOverIpv6(20), -- XTP over IP version 6
100 | xtpNativeModeXTP(21), -- XTP native mode XTP
101 | fibreChannelWWPN(22), -- Fibre Channel World-Wide Port Name
102 | fibreChannelWWNN(23), -- Fibre Channel World-Wide Node Name
103 | gwid(24), -- Gateway Identifier
104 | afi(25), -- AFI for L2VPN information
105 | mplsTpSectionEndpointIdentifier(26), -- MPLS-TP Section Endpoint Identifier
106 | mplsTpLspEndpointIdentifier(27), -- MPLS-TP LSP Endpoint Identifier
107 | mplsTpPseudowireEndpointIdentifier(28), -- MPLS-TP Pseudowire Endpoint Identifier
108 | eigrpCommonServiceFamily(16384), -- EIGRP Common Service Family
109 | eigrpIpv4ServiceFamily(16385), -- EIGRP IPv4 Service Family
110 | eigrpIpv6ServiceFamily(16386), -- EIGRP IPv6 Service Family
111 | lispCanonicalAddressFormat(16387), -- LISP Canonical Address Format (LCAF)
112 | bgpLs(16388), -- BGP-LS
113 | fortyeightBitMacBitMac(16389), -- 48-bit MAC
114 | sixtyfourBitMac(16390), -- 64-bit MAC
115 | oui(16391), -- OUI
116 | mac24(16392), -- MAC/24
117 | mac40(16393), -- MAC/40
118 | ipv664(16394), -- IPv6/64
119 | rBridgePortID(16395), -- RBridge Port ID
120 | trillNickname(16396), -- TRILL Nickname
121 | reserved(65535)
122 |
123 | Requests for new values should be made to IANA via
124 | email (iana&iana.org)."
125 | SYNTAX INTEGER {
126 | other(0),
127 | ipV4(1),
128 | ipV6(2),
129 | nsap(3),
130 | hdlc(4),
131 | bbn1822(5),
132 | all802(6),
133 | e163(7),
134 | e164(8),
135 | f69(9),
136 | x121(10),
137 | ipx(11),
138 | appleTalk(12),
139 | decnetIV(13),
140 | banyanVines(14),
141 | e164withNsap(15),
142 | dns(16),
143 | distinguishedName(17), -- (Distinguished Name, per X.500)
144 | asNumber(18), -- (16-bit quantity, per the AS number space)
145 | xtpOverIpv4(19),
146 | xtpOverIpv6(20),
147 | xtpNativeModeXTP(21),
148 | fibreChannelWWPN(22),
149 | fibreChannelWWNN(23),
150 | gwid(24),
151 | afi(25),
152 | mplsTpSectionEndpointIdentifier(26),
153 | mplsTpLspEndpointIdentifier(27),
154 | mplsTpPseudowireEndpointIdentifier(28),
155 | eigrpCommonServiceFamily(16384),
156 | eigrpIpv4ServiceFamily(16385),
157 | eigrpIpv6ServiceFamily(16386),
158 | lispCanonicalAddressFormat(16387),
159 | bgpLs(16388),
160 | fortyeightBitMac(16389),
161 | sixtyfourBitMac(16390),
162 | oui(16391),
163 | mac24(16392),
164 | mac40(16393),
165 | ipv664(16394),
166 | rBridgePortID(16395),
167 | trillNickname(16396),
168 | reserved(65535)
169 | }
170 | END
171 |
--------------------------------------------------------------------------------
/Templates/zbx_export_templates (6).xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 5.0
4 | 2021-02-23T13:25:06Z
5 |
6 |
7 | GPON
8 |
9 |
10 |
11 |
12 | HUAWEI OLT
13 | HUAWEI OLT
14 |
15 |
16 | Template Module ICMP Ping
17 |
18 |
19 |
20 |
21 | GPON
22 |
23 |
24 |
25 |
26 | CPU OLT
27 |
28 |
29 | EthSpeed
30 |
31 |
32 | OLT_HW
33 |
34 |
35 | ONU
36 |
37 |
38 | ONU - Distancia
39 |
40 |
41 | ONU - Distancia d
42 |
43 |
44 | ONU - STATUS
45 |
46 |
47 | ONU -TEMPERATURA
48 |
49 |
50 | Temp OLT
51 |
52 |
53 |
54 |
55 | OLT Boards
56 | SNMP_AGENT
57 | discovery[{#OLTBOARD},1.3.6.1.4.1.2011.6.3.3.2.1.1]
58 | hwSlotIndex
59 | 6h
60 |
61 |
62 | Board {#SNMPINDEX} temp
63 | SNMP_AGENT
64 | 1.3.6.1.4.1.2011.6.3.3.2.1.13.{#SNMPINDEX}
65 | OltBoardCpuTemp[{#SNMPINDEX}]
66 | 10m
67 | 2w
68 | ºC
69 |
70 |
71 | OLT_HW
72 |
73 |
74 | POST
75 |
76 |
77 | Olt CPU util board {#SNMPINDEX}
78 | SNMP_AGENT
79 | 1.3.6.1.4.1.2011.2.6.7.1.1.2.1.5.{#SNMPINDEX}
80 | OltCpuUtilBoard[{#SNMPINDEX}]
81 | 5m
82 | %
83 |
84 |
85 | OLT_HW
86 |
87 |
88 | POST
89 |
90 |
91 | POST
92 |
93 |
94 | OLT IF
95 | SNMP_AGENT
96 | discovery[{#OLTPORT},ifName,{#SNMPVALUE},1.3.6.1.4.1.2011.6.128.1.1.2.43.1.9]
97 | olt_pcb
98 | 10m
99 | 1w
100 |
101 |
102 | Olt link state {#OLTPORT}
103 | SNMP_AGENT
104 | 1.3.6.1.4.1.2011.6.128.1.1.2.21.1.10.{#SNMPINDEX}
105 | OltLinktState[{#OLTPORT}]
106 | 10m
107 | 90d
108 | 1 - link,
109 | 2 - down
110 |
111 |
112 | OLT_HW
113 |
114 |
115 | POST
116 |
117 |
118 | {diff()}=1
119 | and
120 | {last()}=2
121 | RECOVERY_EXPRESSION
122 | {diff()}=1
123 | and
124 | {last()}=1
125 | Interface status changed {#OLTPORT} - link down
126 | DISASTER
127 | YES
128 |
129 |
130 |
131 |
132 | Qt {#OLTPORT}
133 | SNMP_AGENT
134 | 1.3.6.1.4.1.2011.6.128.1.1.2.21.1.16.{#SNMPINDEX}
135 | qtont[{#OLTPORT}]
136 | 60m
137 | 90d
138 | 1 - link,
139 | 2 - down
140 |
141 |
142 | OLT_HW
143 |
144 |
145 |
146 |
147 |
148 |
149 | OLT interface status $1
150 |
151 |
152 | 1A7C11
153 | -
154 | HUAWEI OLT
155 | OltLinktState[{#OLTPORT}]
156 |
157 |
158 |
159 |
160 |
161 | POST
162 |
163 |
164 |
165 |
166 | {$SNMP_COMMUNITY}
167 | public
168 |
169 |
170 |
171 |
172 |
173 |
--------------------------------------------------------------------------------
/img/UCD-IPFWACC-MIB.txt:
--------------------------------------------------------------------------------
1 | UCD-IPFWACC-MIB DEFINITIONS ::= BEGIN
2 |
3 | IMPORTS
4 | OBJECT-TYPE, MODULE-IDENTITY, IpAddress, Integer32, Counter32
5 | FROM SNMPv2-SMI
6 | DisplayString
7 | FROM SNMPv2-TC
8 | ucdExperimental
9 | FROM UCD-SNMP-MIB;
10 |
11 | ucdIpFwAccMIB MODULE-IDENTITY
12 | LAST-UPDATED "9912160000Z"
13 | ORGANIZATION "University of California, Davis"
14 | CONTACT-INFO
15 | "This mib is no longer being maintained by the University of
16 | California and is now in life-support-mode and being
17 | maintained by the net-snmp project. The best place to write
18 | for public questions about the net-snmp-coders mailing list
19 | at net-snmp-coders@lists.sourceforge.net.
20 |
21 | postal: Wes Hardaker
22 | P.O. Box 382
23 | Davis CA 95617
24 |
25 | email: net-snmp-coders@lists.sourceforge.net
26 | "
27 | DESCRIPTION
28 | "This module defines MIB components for reading information
29 | from the accounting rules IP Firewall. This would typically
30 | let you read the rules and the counters. I did not include
31 | some flags and fields that I considered irrelevant for the
32 | accounting rules. Resetting the counters of the rules by SNMP
33 | would be simple, but I don't consider it so useful. I gave no
34 | consideration to implementing write access for allowing
35 | modification of the accounting rules.
36 |
37 | Cristian.Estan@net.utcluj.ro "
38 | REVISION "9912160000Z"
39 | DESCRIPTION
40 | "SMIv2 version converted from an older MIB definition."
41 | ::= { ucdExperimental 1 }
42 |
43 | ipFwAccTable OBJECT-TYPE
44 | SYNTAX SEQUENCE OF IpFwAccEntry
45 | MAX-ACCESS not-accessible
46 | STATUS current
47 | DESCRIPTION
48 | "A table with the accounting rules of the IP firewall"
49 | ::= { ucdIpFwAccMIB 1 }
50 |
51 | ipFwAccEntry OBJECT-TYPE
52 | SYNTAX IpFwAccEntry
53 | MAX-ACCESS not-accessible
54 | STATUS current
55 | DESCRIPTION
56 | "An accounting rule of the IP firewall"
57 | INDEX { ipFwAccIndex }
58 | ::= { ipFwAccTable 1 }
59 |
60 | IpFwAccEntry ::= SEQUENCE {
61 | ipFwAccIndex Integer32,
62 | ipFwAccSrcAddr IpAddress,
63 | ipFwAccSrcNetMask IpAddress,
64 | ipFwAccDstAddr IpAddress,
65 | ipFwAccDstNetMask IpAddress,
66 | ipFwAccViaName DisplayString,
67 | ipFwAccViaAddr IpAddress,
68 | ipFwAccProto INTEGER,
69 | ipFwAccBidir INTEGER,
70 | ipFwAccDir INTEGER,
71 | ipFwAccBytes Counter32,
72 | ipFwAccPackets Counter32,
73 | ipFwAccNrSrcPorts Integer32,
74 | ipFwAccNrDstPorts Integer32,
75 | ipFwAccSrcIsRange INTEGER,
76 | ipFwAccDstIsRange INTEGER,
77 | ipFwAccPort1 Integer32,
78 | ipFwAccPort2 Integer32,
79 | ipFwAccPort3 Integer32,
80 | ipFwAccPort4 Integer32,
81 | ipFwAccPort5 Integer32,
82 | ipFwAccPort6 Integer32,
83 | ipFwAccPort7 Integer32,
84 | ipFwAccPort8 Integer32,
85 | ipFwAccPort9 Integer32,
86 | ipFwAccPort10 Integer32
87 | }
88 |
89 | ipFwAccIndex OBJECT-TYPE
90 | SYNTAX Integer32 (0..2147483647)
91 | MAX-ACCESS read-only
92 | STATUS current
93 | DESCRIPTION
94 | "Reference index for each firewall rule."
95 | ::= { ipFwAccEntry 1 }
96 |
97 | ipFwAccSrcAddr OBJECT-TYPE
98 | SYNTAX IpAddress
99 | MAX-ACCESS read-only
100 | STATUS current
101 | DESCRIPTION
102 | "The source address in the firewall rule."
103 | ::= { ipFwAccEntry 2 }
104 |
105 | ipFwAccSrcNetMask OBJECT-TYPE
106 | SYNTAX IpAddress
107 | MAX-ACCESS read-only
108 | STATUS current
109 | DESCRIPTION
110 | "The netmask of the source address in the firewall rule."
111 | ::= { ipFwAccEntry 3 }
112 |
113 | ipFwAccDstAddr OBJECT-TYPE
114 | SYNTAX IpAddress
115 | MAX-ACCESS read-only
116 | STATUS current
117 | DESCRIPTION
118 | "The destination address in the firewall rule."
119 | ::= { ipFwAccEntry 4 }
120 |
121 | ipFwAccDstNetMask OBJECT-TYPE
122 | SYNTAX IpAddress
123 | MAX-ACCESS read-only
124 | STATUS current
125 | DESCRIPTION
126 | "The netmask of the destination address in the firewall rule."
127 | ::= { ipFwAccEntry 5 }
128 |
129 | ipFwAccViaName OBJECT-TYPE
130 | SYNTAX DisplayString (SIZE(1..64))
131 | MAX-ACCESS read-only
132 | STATUS current
133 | DESCRIPTION
134 | "The name of the interface to which the rule applies. If no
135 | interface is associated with the present rule, this should
136 | contain a dash (-)."
137 | ::= { ipFwAccEntry 6 }
138 |
139 | ipFwAccViaAddr OBJECT-TYPE
140 | SYNTAX IpAddress
141 | MAX-ACCESS read-only
142 | STATUS current
143 | DESCRIPTION
144 | "The address of the interface to which the rule applies.
145 | Using this parameter makes sense when multiple addresses are
146 | associated to the same physical interface. If not defined
147 | for the current rule this should be set to 0."
148 | ::= { ipFwAccEntry 7 }
149 |
150 | ipFwAccProto OBJECT-TYPE
151 | SYNTAX INTEGER {
152 | other(1),
153 | all(2),
154 | tcp(3),
155 | udp(4),
156 | icmp(5)
157 | }
158 | MAX-ACCESS read-only
159 | STATUS current
160 | DESCRIPTION
161 | "The protocol(s) to which the rule applies."
162 | ::= { ipFwAccEntry 8 }
163 |
164 | ipFwAccBidir OBJECT-TYPE
165 | SYNTAX INTEGER {
166 | unidirectional(1),
167 | bidirectional(2)
168 | }
169 | MAX-ACCESS read-only
170 | STATUS current
171 | DESCRIPTION
172 | "Whether the rule works in both directions (i.e. with the
173 | source and destination parts swapped) or not."
174 | ::= { ipFwAccEntry 9 }
175 |
176 | ipFwAccDir OBJECT-TYPE
177 | SYNTAX INTEGER {
178 | both(1),
179 | in(2),
180 | out(3)
181 | }
182 | MAX-ACCESS read-only
183 | STATUS current
184 | DESCRIPTION
185 | "Whether the rule applies to packets entering or exiting the
186 | kernel."
187 | ::= { ipFwAccEntry 10 }
188 |
189 | ipFwAccBytes OBJECT-TYPE
190 | SYNTAX Counter32
191 | MAX-ACCESS read-only
192 | STATUS current
193 | DESCRIPTION
194 | "The number of bytes that matched this rule since the last
195 | reset of the counters."
196 | ::= { ipFwAccEntry 11 }
197 |
198 | ipFwAccPackets OBJECT-TYPE
199 | SYNTAX Counter32
200 | MAX-ACCESS read-only
201 | STATUS current
202 | DESCRIPTION
203 | "The number of packets that matched this rule since the last
204 | reset of the counters."
205 | ::= { ipFwAccEntry 12 }
206 |
207 | ipFwAccNrSrcPorts OBJECT-TYPE
208 | SYNTAX Integer32
209 | MAX-ACCESS read-only
210 | STATUS current
211 | DESCRIPTION
212 | "The number of ports that refer to the source address."
213 | ::= { ipFwAccEntry 13 }
214 |
215 | ipFwAccNrDstPorts OBJECT-TYPE
216 | SYNTAX Integer32
217 | MAX-ACCESS read-only
218 | STATUS current
219 | DESCRIPTION
220 | "The number of ports that refer to the destination address."
221 | ::= { ipFwAccEntry 14 }
222 |
223 | ipFwAccSrcIsRange OBJECT-TYPE
224 | SYNTAX INTEGER {
225 | srchasrange(1),
226 | srchasnorange(2)
227 | }
228 | MAX-ACCESS read-only
229 | STATUS current
230 | DESCRIPTION
231 | "Interpret the first two ports of the source part as
232 | the upper and lower limit of an interval or not."
233 | ::= { ipFwAccEntry 15 }
234 |
235 | ipFwAccDstIsRange OBJECT-TYPE
236 | SYNTAX INTEGER {
237 | dsthasrange(1),
238 | dsthasnorange(2)
239 | }
240 | MAX-ACCESS read-only
241 | STATUS current
242 | DESCRIPTION
243 | "Interpret the first two ports of the destination part as
244 | the upper and lower limit of an interval or not."
245 | ::= { ipFwAccEntry 16 }
246 |
247 | ipFwAccPort1 OBJECT-TYPE
248 | SYNTAX Integer32
249 | MAX-ACCESS read-only
250 | STATUS current
251 | DESCRIPTION
252 | "Port number 1."
253 | ::= { ipFwAccEntry 17 }
254 |
255 | ipFwAccPort2 OBJECT-TYPE
256 | SYNTAX Integer32
257 | MAX-ACCESS read-only
258 | STATUS current
259 | DESCRIPTION
260 | "Port number 2."
261 | ::= { ipFwAccEntry 18 }
262 |
263 | ipFwAccPort3 OBJECT-TYPE
264 | SYNTAX Integer32
265 | MAX-ACCESS read-only
266 | STATUS current
267 | DESCRIPTION
268 | "Port number 3."
269 | ::= { ipFwAccEntry 19 }
270 |
271 | ipFwAccPort4 OBJECT-TYPE
272 | SYNTAX Integer32
273 | MAX-ACCESS read-only
274 | STATUS current
275 | DESCRIPTION
276 | "Port number 4."
277 | ::= { ipFwAccEntry 20 }
278 |
279 | ipFwAccPort5 OBJECT-TYPE
280 | SYNTAX Integer32
281 | MAX-ACCESS read-only
282 | STATUS current
283 | DESCRIPTION
284 | "Port number 5."
285 | ::= { ipFwAccEntry 21 }
286 |
287 | ipFwAccPort6 OBJECT-TYPE
288 | SYNTAX Integer32
289 | MAX-ACCESS read-only
290 | STATUS current
291 | DESCRIPTION
292 | "Port number 6."
293 | ::= { ipFwAccEntry 22 }
294 |
295 | ipFwAccPort7 OBJECT-TYPE
296 | SYNTAX Integer32
297 | MAX-ACCESS read-only
298 | STATUS current
299 | DESCRIPTION
300 | "Port number 7."
301 | ::= { ipFwAccEntry 23 }
302 |
303 | ipFwAccPort8 OBJECT-TYPE
304 | SYNTAX Integer32
305 | MAX-ACCESS read-only
306 | STATUS current
307 | DESCRIPTION
308 | "Port number 8."
309 | ::= { ipFwAccEntry 24 }
310 |
311 | ipFwAccPort9 OBJECT-TYPE
312 | SYNTAX Integer32
313 | MAX-ACCESS read-only
314 | STATUS current
315 | DESCRIPTION
316 | "Port number 9."
317 | ::= { ipFwAccEntry 25 }
318 |
319 | ipFwAccPort10 OBJECT-TYPE
320 | SYNTAX Integer32
321 | MAX-ACCESS read-only
322 | STATUS current
323 | DESCRIPTION
324 | "Port number 10."
325 | ::= { ipFwAccEntry 26 }
326 |
327 | END
328 |
--------------------------------------------------------------------------------
/img/SNMPv2-CONF.txt:
--------------------------------------------------------------------------------
1 | SNMPv2-CONF DEFINITIONS ::= BEGIN
2 |
3 | IMPORTS ObjectName, NotificationName, ObjectSyntax
4 | FROM SNMPv2-SMI;
5 |
6 | -- definitions for conformance groups
7 |
8 | OBJECT-GROUP MACRO ::=
9 | BEGIN
10 | TYPE NOTATION ::=
11 | ObjectsPart
12 | "STATUS" Status
13 | "DESCRIPTION" Text
14 | ReferPart
15 |
16 | VALUE NOTATION ::=
17 | value(VALUE OBJECT IDENTIFIER)
18 |
19 | ObjectsPart ::=
20 | "OBJECTS" "{" Objects "}"
21 | Objects ::=
22 | Object
23 | | Objects "," Object
24 | Object ::=
25 |
26 | value(ObjectName)
27 |
28 | Status ::=
29 | "current"
30 | | "deprecated"
31 | | "obsolete"
32 |
33 | ReferPart ::=
34 | "REFERENCE" Text
35 | | empty
36 |
37 | -- a character string as defined in [2]
38 | Text ::= value(IA5String)
39 | END
40 |
41 | -- more definitions for conformance groups
42 |
43 | NOTIFICATION-GROUP MACRO ::=
44 | BEGIN
45 | TYPE NOTATION ::=
46 | NotificationsPart
47 | "STATUS" Status
48 | "DESCRIPTION" Text
49 | ReferPart
50 |
51 | VALUE NOTATION ::=
52 | value(VALUE OBJECT IDENTIFIER)
53 |
54 | NotificationsPart ::=
55 | "NOTIFICATIONS" "{" Notifications "}"
56 | Notifications ::=
57 | Notification
58 | | Notifications "," Notification
59 | Notification ::=
60 | value(NotificationName)
61 |
62 | Status ::=
63 | "current"
64 | | "deprecated"
65 | | "obsolete"
66 |
67 | ReferPart ::=
68 | "REFERENCE" Text
69 | | empty
70 |
71 | -- a character string as defined in [2]
72 | Text ::= value(IA5String)
73 | END
74 |
75 | -- definitions for compliance statements
76 |
77 | MODULE-COMPLIANCE MACRO ::=
78 | BEGIN
79 | TYPE NOTATION ::=
80 | "STATUS" Status
81 | "DESCRIPTION" Text
82 | ReferPart
83 | ModulePart
84 |
85 | VALUE NOTATION ::=
86 | value(VALUE OBJECT IDENTIFIER)
87 |
88 | Status ::=
89 | "current"
90 | | "deprecated"
91 | | "obsolete"
92 |
93 | ReferPart ::=
94 | "REFERENCE" Text
95 | | empty
96 |
97 | ModulePart ::=
98 | Modules
99 | Modules ::=
100 | Module
101 | | Modules Module
102 | Module ::=
103 | -- name of module --
104 | "MODULE" ModuleName
105 | MandatoryPart
106 | CompliancePart
107 |
108 | ModuleName ::=
109 | -- identifier must start with uppercase letter
110 | identifier ModuleIdentifier
111 | -- must not be empty unless contained
112 | -- in MIB Module
113 | | empty
114 | ModuleIdentifier ::=
115 | value(OBJECT IDENTIFIER)
116 | | empty
117 |
118 | MandatoryPart ::=
119 | "MANDATORY-GROUPS" "{" Groups "}"
120 | | empty
121 |
122 | Groups ::=
123 |
124 | Group
125 | | Groups "," Group
126 | Group ::=
127 | value(OBJECT IDENTIFIER)
128 |
129 | CompliancePart ::=
130 | Compliances
131 | | empty
132 |
133 | Compliances ::=
134 | Compliance
135 | | Compliances Compliance
136 | Compliance ::=
137 | ComplianceGroup
138 | | Object
139 |
140 | ComplianceGroup ::=
141 | "GROUP" value(OBJECT IDENTIFIER)
142 | "DESCRIPTION" Text
143 |
144 | Object ::=
145 | "OBJECT" value(ObjectName)
146 | SyntaxPart
147 | WriteSyntaxPart
148 | AccessPart
149 | "DESCRIPTION" Text
150 |
151 | -- must be a refinement for object's SYNTAX clause
152 | SyntaxPart ::= "SYNTAX" Syntax
153 | | empty
154 |
155 | -- must be a refinement for object's SYNTAX clause
156 | WriteSyntaxPart ::= "WRITE-SYNTAX" Syntax
157 | | empty
158 |
159 | Syntax ::= -- Must be one of the following:
160 | -- a base type (or its refinement),
161 | -- a textual convention (or its refinement), or
162 | -- a BITS pseudo-type
163 | type
164 | | "BITS" "{" NamedBits "}"
165 |
166 | NamedBits ::= NamedBit
167 | | NamedBits "," NamedBit
168 |
169 | NamedBit ::= identifier "(" number ")" -- number is nonnegative
170 |
171 | AccessPart ::=
172 | "MIN-ACCESS" Access
173 | | empty
174 | Access ::=
175 | "not-accessible"
176 | | "accessible-for-notify"
177 | | "read-only"
178 | | "read-write"
179 | | "read-create"
180 |
181 | -- a character string as defined in [2]
182 | Text ::= value(IA5String)
183 | END
184 |
185 | -- definitions for capabilities statements
186 |
187 | AGENT-CAPABILITIES MACRO ::=
188 | BEGIN
189 | TYPE NOTATION ::=
190 | "PRODUCT-RELEASE" Text
191 | "STATUS" Status
192 | "DESCRIPTION" Text
193 | ReferPart
194 | ModulePart
195 |
196 | VALUE NOTATION ::=
197 | value(VALUE OBJECT IDENTIFIER)
198 |
199 | Status ::=
200 | "current"
201 | | "obsolete"
202 |
203 | ReferPart ::=
204 | "REFERENCE" Text
205 | | empty
206 |
207 | ModulePart ::=
208 | Modules
209 | | empty
210 | Modules ::=
211 | Module
212 | | Modules Module
213 | Module ::=
214 | -- name of module --
215 | "SUPPORTS" ModuleName
216 | "INCLUDES" "{" Groups "}"
217 | VariationPart
218 |
219 | ModuleName ::=
220 |
221 | -- identifier must start with uppercase letter
222 | identifier ModuleIdentifier
223 | ModuleIdentifier ::=
224 | value(OBJECT IDENTIFIER)
225 | | empty
226 |
227 | Groups ::=
228 | Group
229 | | Groups "," Group
230 | Group ::=
231 | value(OBJECT IDENTIFIER)
232 |
233 | VariationPart ::=
234 | Variations
235 | | empty
236 | Variations ::=
237 | Variation
238 | | Variations Variation
239 |
240 | Variation ::=
241 | ObjectVariation
242 | | NotificationVariation
243 |
244 | NotificationVariation ::=
245 | "VARIATION" value(NotificationName)
246 | AccessPart
247 | "DESCRIPTION" Text
248 |
249 | ObjectVariation ::=
250 | "VARIATION" value(ObjectName)
251 | SyntaxPart
252 | WriteSyntaxPart
253 | AccessPart
254 | CreationPart
255 | DefValPart
256 | "DESCRIPTION" Text
257 |
258 | -- must be a refinement for object's SYNTAX clause
259 | SyntaxPart ::= "SYNTAX" Syntax
260 | | empty
261 |
262 | WriteSyntaxPart ::= "WRITE-SYNTAX" Syntax
263 | | empty
264 |
265 | Syntax ::= -- Must be one of the following:
266 | -- a base type (or its refinement),
267 | -- a textual convention (or its refinement), or
268 | -- a BITS pseudo-type
269 |
270 | type
271 | | "BITS" "{" NamedBits "}"
272 |
273 | NamedBits ::= NamedBit
274 | | NamedBits "," NamedBit
275 |
276 | NamedBit ::= identifier "(" number ")" -- number is nonnegative
277 |
278 | AccessPart ::=
279 | "ACCESS" Access
280 | | empty
281 |
282 | Access ::=
283 | "not-implemented"
284 | -- only "not-implemented" for notifications
285 | | "accessible-for-notify"
286 | | "read-only"
287 | | "read-write"
288 | | "read-create"
289 | -- following is for backward-compatibility only
290 | | "write-only"
291 |
292 | CreationPart ::=
293 | "CREATION-REQUIRES" "{" Cells "}"
294 | | empty
295 | Cells ::=
296 | Cell
297 | | Cells "," Cell
298 | Cell ::=
299 | value(ObjectName)
300 |
301 | DefValPart ::= "DEFVAL" "{" Defvalue "}"
302 | | empty
303 |
304 | Defvalue ::= -- must be valid for the object's syntax
305 | -- in this macro's SYNTAX clause, if present,
306 | -- or if not, in object's OBJECT-TYPE macro
307 | value(ObjectSyntax)
308 | | "{" BitsValue "}"
309 |
310 | BitsValue ::= BitNames
311 | | empty
312 |
313 | BitNames ::= BitName
314 | | BitNames "," BitName
315 |
316 | BitName ::= identifier
317 |
318 | -- a character string as defined in [2]
319 | Text ::= value(IA5String)
320 | END
321 |
322 | END
323 |
--------------------------------------------------------------------------------
/img/SNMP-TSM-MIB.txt:
--------------------------------------------------------------------------------
1 | SNMP-TSM-MIB DEFINITIONS ::= BEGIN
2 |
3 | IMPORTS
4 | MODULE-IDENTITY, OBJECT-TYPE,
5 | mib-2, Counter32
6 | FROM SNMPv2-SMI -- RFC2578
7 | MODULE-COMPLIANCE, OBJECT-GROUP
8 | FROM SNMPv2-CONF -- RFC2580
9 | TruthValue
10 | FROM SNMPv2-TC -- RFC2579
11 | ;
12 |
13 | snmpTsmMIB MODULE-IDENTITY
14 | LAST-UPDATED "200906090000Z"
15 | ORGANIZATION "ISMS Working Group"
16 | CONTACT-INFO "WG-EMail: isms@lists.ietf.org
17 | Subscribe: isms-request@lists.ietf.org
18 |
19 | Chairs:
20 | Juergen Quittek
21 | NEC Europe Ltd.
22 | Network Laboratories
23 | Kurfuersten-Anlage 36
24 | 69115 Heidelberg
25 | Germany
26 | +49 6221 90511-15
27 | quittek@netlab.nec.de
28 |
29 | Juergen Schoenwaelder
30 | Jacobs University Bremen
31 | Campus Ring 1
32 | 28725 Bremen
33 | Germany
34 | +49 421 200-3587
35 | j.schoenwaelder@jacobs-university.de
36 |
37 | Editor:
38 | David Harrington
39 | Huawei Technologies USA
40 | 1700 Alma Dr.
41 | Plano TX 75075
42 | USA
43 | +1 603-436-8634
44 | ietfdbh@comcast.net
45 |
46 | Wes Hardaker
47 | Cobham Analytic Solutions
48 | P.O. Box 382
49 | Davis, CA 95617
50 | USA
51 | +1 530 792 1913
52 | ietf@hardakers.net
53 | "
54 | DESCRIPTION
55 | "The Transport Security Model MIB.
56 |
57 | In keeping with the RFC 3411 design decisions to use
58 | self-contained documents, the RFC that contains the definition
59 | of this MIB module also includes the elements of procedure
60 | that are needed for processing the Transport Security Model
61 | for SNMP. These MIB objects SHOULD NOT be modified via other
62 | subsystems or models defined in other documents. This allows
63 | the Transport Security Model for SNMP to be designed and
64 | documented as independent and self-contained, having no direct
65 | impact on other modules, and this allows this module to be
66 | upgraded and supplemented as the need arises, and to move
67 | along the standards track on different time-lines from other
68 | modules.
69 |
70 | Copyright (c) 2009 IETF Trust and the persons
71 | identified as authors of the code. All rights reserved.
72 |
73 | Redistribution and use in source and binary forms, with or
74 | without modification, are permitted provided that the
75 | following conditions are met:
76 |
77 | - Redistributions of source code must retain the above copyright
78 | notice, this list of conditions and the following disclaimer.
79 |
80 | - Redistributions in binary form must reproduce the above
81 | copyright notice, this list of conditions and the following
82 | disclaimer in the documentation and/or other materials
83 | provided with the distribution.
84 |
85 | - Neither the name of Internet Society, IETF or IETF Trust,
86 | nor the names of specific contributors, may be used to endorse
87 | or promote products derived from this software without
88 | specific prior written permission.
89 |
90 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
91 | CONTRIBUTORS 'AS IS' AND ANY EXPRESS OR IMPLIED WARRANTIES,
92 | INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
93 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
94 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
95 | CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
96 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
97 | NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
98 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
99 | HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
100 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
101 | OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
102 | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
103 |
104 | This version of this MIB module is part of RFC 5591;
105 | see the RFC itself for full legal notices."
106 |
107 | REVISION "200906090000Z"
108 | DESCRIPTION "The initial version, published in RFC 5591."
109 | ::= { mib-2 190 }
110 |
111 | -- ---------------------------------------------------------- --
112 | -- subtrees in the SNMP-TSM-MIB
113 | -- ---------------------------------------------------------- --
114 |
115 | snmpTsmNotifications OBJECT IDENTIFIER ::= { snmpTsmMIB 0 }
116 | snmpTsmMIBObjects OBJECT IDENTIFIER ::= { snmpTsmMIB 1 }
117 | snmpTsmConformance OBJECT IDENTIFIER ::= { snmpTsmMIB 2 }
118 |
119 | -- -------------------------------------------------------------
120 | -- Objects
121 | -- -------------------------------------------------------------
122 |
123 | -- Statistics for the Transport Security Model
124 |
125 | snmpTsmStats OBJECT IDENTIFIER ::= { snmpTsmMIBObjects 1 }
126 |
127 | snmpTsmInvalidCaches OBJECT-TYPE
128 | SYNTAX Counter32
129 | MAX-ACCESS read-only
130 | STATUS current
131 | DESCRIPTION "The number of incoming messages dropped because the
132 |
133 | tmStateReference referred to an invalid cache.
134 | "
135 | ::= { snmpTsmStats 1 }
136 |
137 | snmpTsmInadequateSecurityLevels OBJECT-TYPE
138 | SYNTAX Counter32
139 | MAX-ACCESS read-only
140 | STATUS current
141 | DESCRIPTION "The number of incoming messages dropped because
142 | the securityLevel asserted by the Transport Model was
143 | less than the securityLevel requested by the
144 | application.
145 | "
146 | ::= { snmpTsmStats 2 }
147 |
148 | snmpTsmUnknownPrefixes OBJECT-TYPE
149 | SYNTAX Counter32
150 | MAX-ACCESS read-only
151 | STATUS current
152 | DESCRIPTION "The number of messages dropped because
153 | snmpTsmConfigurationUsePrefix was set to true and
154 | there is no known prefix for the specified transport
155 | domain.
156 | "
157 | ::= { snmpTsmStats 3 }
158 |
159 | snmpTsmInvalidPrefixes OBJECT-TYPE
160 | SYNTAX Counter32
161 | MAX-ACCESS read-only
162 | STATUS current
163 | DESCRIPTION "The number of messages dropped because
164 | the securityName associated with an outgoing message
165 | did not contain a valid transport domain prefix.
166 | "
167 | ::= { snmpTsmStats 4 }
168 |
169 | -- -------------------------------------------------------------
170 | -- Configuration
171 | -- -------------------------------------------------------------
172 |
173 | -- Configuration for the Transport Security Model
174 |
175 | snmpTsmConfiguration OBJECT IDENTIFIER ::= { snmpTsmMIBObjects 2 }
176 |
177 | snmpTsmConfigurationUsePrefix OBJECT-TYPE
178 | SYNTAX TruthValue
179 | MAX-ACCESS read-write
180 | STATUS current
181 | DESCRIPTION "If this object is set to true, then securityNames
182 | passing to and from the application are expected to
183 | contain a transport-domain-specific prefix. If this
184 | object is set to true, then a domain-specific prefix
185 | will be added by the TSM to the securityName for
186 | incoming messages and removed from the securityName
187 | when processing outgoing messages. Transport domains
188 | and prefixes are maintained in a registry by IANA.
189 | This object SHOULD persist across system reboots.
190 | "
191 | DEFVAL { false }
192 | ::= { snmpTsmConfiguration 1 }
193 |
194 | -- -------------------------------------------------------------
195 | -- snmpTsmMIB - Conformance Information
196 | -- -------------------------------------------------------------
197 |
198 | snmpTsmCompliances OBJECT IDENTIFIER ::= { snmpTsmConformance 1 }
199 |
200 | snmpTsmGroups OBJECT IDENTIFIER ::= { snmpTsmConformance 2 }
201 |
202 | -- -------------------------------------------------------------
203 | -- Compliance statements
204 | -- -------------------------------------------------------------
205 |
206 | snmpTsmCompliance MODULE-COMPLIANCE
207 | STATUS current
208 | DESCRIPTION "The compliance statement for SNMP engines that support
209 | the SNMP-TSM-MIB.
210 | "
211 | MODULE
212 | MANDATORY-GROUPS { snmpTsmGroup }
213 | ::= { snmpTsmCompliances 1 }
214 |
215 | -- -------------------------------------------------------------
216 | -- Units of conformance
217 | -- -------------------------------------------------------------
218 | snmpTsmGroup OBJECT-GROUP
219 | OBJECTS {
220 | snmpTsmInvalidCaches,
221 | snmpTsmInadequateSecurityLevels,
222 | snmpTsmUnknownPrefixes,
223 | snmpTsmInvalidPrefixes,
224 | snmpTsmConfigurationUsePrefix
225 | }
226 | STATUS current
227 | DESCRIPTION "A collection of objects for maintaining
228 | information of an SNMP engine that implements
229 |
230 | the SNMP Transport Security Model.
231 | "
232 | ::= { snmpTsmGroups 2 }
233 |
234 | END
235 |
--------------------------------------------------------------------------------
/img/IPV6-TCP-MIB.txt:
--------------------------------------------------------------------------------
1 | IPV6-TCP-MIB DEFINITIONS ::= BEGIN
2 |
3 | IMPORTS
4 | MODULE-COMPLIANCE, OBJECT-GROUP FROM SNMPv2-CONF
5 | MODULE-IDENTITY, OBJECT-TYPE,
6 | mib-2, experimental FROM SNMPv2-SMI
7 | Ipv6Address, Ipv6IfIndexOrZero FROM IPV6-TC;
8 |
9 | ipv6TcpMIB MODULE-IDENTITY
10 | LAST-UPDATED "201702220000Z"
11 | ORGANIZATION "IETF IPv6 MIB Working Group"
12 | CONTACT-INFO
13 | " Mike Daniele
14 |
15 | Postal: Compaq Computer Corporation
16 | 110 Spitbrook Rd
17 | Nashua, NH 03062.
18 | US
19 |
20 | Phone: +1 603 884 1423
21 | Email: daniele@zk3.dec.com"
22 | DESCRIPTION
23 | "The obsolete MIB module for entities implementing TCP
24 | over IPv6. Use the TCP-MIB instead.
25 |
26 | Copyright (c) 2017 IETF Trust and the persons identified
27 | as authors of the code. All rights reserved.
28 |
29 | Redistribution and use in source and binary forms, with
30 | or without modification, is permitted pursuant to, and
31 | subject to the license terms contained in, the Simplified
32 | BSD License set forth in Section 4.c of the IETF Trust's
33 | Legal Provisions Relating to IETF Documents
34 | (http://trustee.ietf.org/license-info)."
35 | REVISION "201702220000Z"
36 | DESCRIPTION
37 | "Obsoleting this MIB module; it has been replaced by
38 | the revised TCP-MIB (RFC 4022)."
39 | REVISION "9801290000Z"
40 | DESCRIPTION
41 | "First revision, published as RFC 2452"
42 | ::= { experimental 86 }
43 |
44 | -- objects specific to TCP for IPv6
45 |
46 | tcp OBJECT IDENTIFIER ::= { mib-2 6 }
47 |
48 | -- the TCP over IPv6 Connection table
49 |
50 | -- This connection table contains information about this
51 | -- entity's existing TCP connections between IPv6 endpoints.
52 | -- Only connections between IPv6 addresses are contained in
53 | -- this table. This entity's connections between IPv4
54 | -- endpoints are contained in tcpConnTable.
55 |
56 | ipv6TcpConnTable OBJECT-TYPE
57 | SYNTAX SEQUENCE OF Ipv6TcpConnEntry
58 | MAX-ACCESS not-accessible
59 | STATUS obsolete
60 | DESCRIPTION
61 | "A table containing TCP connection-specific information,
62 | for only those connections whose endpoints are IPv6 addresses.
63 |
64 | This table is obsoleted by TCP-MIB::tcpConnectionTable."
65 | ::= { tcp 16 }
66 |
67 | ipv6TcpConnEntry OBJECT-TYPE
68 | SYNTAX Ipv6TcpConnEntry
69 | MAX-ACCESS not-accessible
70 | STATUS obsolete
71 | DESCRIPTION
72 | "A conceptual row of the ipv6TcpConnTable containing
73 | information about a particular current TCP connection.
74 | Each row of this table is transient, in that it ceases to
75 | exist when (or soon after) the connection makes the transition
76 | to the CLOSED state.
77 |
78 | Note that conceptual rows in this table require an additional
79 | index object compared to tcpConnTable, since IPv6 addresses
80 | are not guaranteed to be unique on the managed node.
81 |
82 | This entry is obsoleted by TCP-MIB::tcpConnectionEntry."
83 | INDEX { ipv6TcpConnLocalAddress,
84 | ipv6TcpConnLocalPort,
85 | ipv6TcpConnRemAddress,
86 | ipv6TcpConnRemPort,
87 | ipv6TcpConnIfIndex }
88 | ::= { ipv6TcpConnTable 1 }
89 |
90 | Ipv6TcpConnEntry ::=
91 | SEQUENCE { ipv6TcpConnLocalAddress Ipv6Address,
92 | ipv6TcpConnLocalPort INTEGER,
93 | ipv6TcpConnRemAddress Ipv6Address,
94 | ipv6TcpConnRemPort INTEGER,
95 | ipv6TcpConnIfIndex Ipv6IfIndexOrZero,
96 | ipv6TcpConnState INTEGER }
97 |
98 | ipv6TcpConnLocalAddress OBJECT-TYPE
99 | SYNTAX Ipv6Address
100 | MAX-ACCESS not-accessible
101 | STATUS obsolete
102 | DESCRIPTION
103 | "The local IPv6 address for this TCP connection. In
104 | the case of a connection in the listen state which
105 | is willing to accept connections for any IPv6
106 | address associated with the managed node, the value
107 | ::0 is used.
108 |
109 | This object is obsoleted by
110 | TCP-MIB::tcpConnectionLocalAddressType."
111 | ::= { ipv6TcpConnEntry 1 }
112 |
113 | ipv6TcpConnLocalPort OBJECT-TYPE
114 | SYNTAX INTEGER (0..65535)
115 | MAX-ACCESS not-accessible
116 | STATUS obsolete
117 | DESCRIPTION
118 | "The local port number for this TCP connection.
119 |
120 | This object is obsoleted by TCP-MIB::tcpConnectionLocalPort."
121 | ::= { ipv6TcpConnEntry 2 }
122 |
123 | ipv6TcpConnRemAddress OBJECT-TYPE
124 | SYNTAX Ipv6Address
125 | MAX-ACCESS not-accessible
126 | STATUS obsolete
127 | DESCRIPTION
128 | "The remote IPv6 address for this TCP connection.
129 |
130 | This object is obsoleted by TCP-MIB::tcpConnectionRemAddress."
131 | ::= { ipv6TcpConnEntry 3 }
132 |
133 | ipv6TcpConnRemPort OBJECT-TYPE
134 | SYNTAX INTEGER (0..65535)
135 | MAX-ACCESS not-accessible
136 | STATUS obsolete
137 | DESCRIPTION
138 | "The remote port number for this TCP connection.
139 |
140 | This object is obsoleted by TCP-MIB::tcpConnectionRemPort."
141 | ::= { ipv6TcpConnEntry 4 }
142 |
143 | ipv6TcpConnIfIndex OBJECT-TYPE
144 | SYNTAX Ipv6IfIndexOrZero
145 | MAX-ACCESS not-accessible
146 | STATUS obsolete
147 | DESCRIPTION
148 | "An index object used to disambiguate conceptual rows in
149 | the table, since the connection 4-tuple may not be unique.
150 |
151 | If the connection's remote address (ipv6TcpConnRemAddress)
152 | is a link-local address and the connection's local address
153 | (ipv6TcpConnLocalAddress) is not a link-local address, this
154 | object identifies a local interface on the same link as
155 | the connection's remote link-local address.
156 |
157 | Otherwise, this object identifies the local interface that
158 | is associated with the ipv6TcpConnLocalAddress for this
159 | TCP connection. If such a local interface cannot be
160 | determined, this object should take on the value 0.
161 | (A possible example of this would be if the value of
162 | ipv6TcpConnLocalAddress is ::0.)
163 |
164 | The interface identified by a particular non-0 value of this
165 | index is the same interface as identified by the same value
166 | of ipv6IfIndex.
167 |
168 | The value of this object must remain constant during the life
169 | of the TCP connection.
170 |
171 | This object is obsoleted by the zone identifier in
172 | an InetAddressIPv6z address in either
173 | TCP-MIB::tcpConnectionLocalAddress or
174 | TCP-MIB::tcpConnectionRemAddress."
175 | ::= { ipv6TcpConnEntry 5 }
176 |
177 | ipv6TcpConnState OBJECT-TYPE
178 | SYNTAX INTEGER {
179 | closed(1),
180 | listen(2),
181 | synSent(3),
182 | synReceived(4),
183 | established(5),
184 | finWait1(6),
185 | finWait2(7),
186 | closeWait(8),
187 | lastAck(9),
188 | closing(10),
189 | timeWait(11),
190 | deleteTCB(12) }
191 | MAX-ACCESS read-write
192 | STATUS obsolete
193 | DESCRIPTION
194 | "The state of this TCP connection.
195 |
196 | The only value which may be set by a management station is
197 | deleteTCB(12). Accordingly, it is appropriate for an agent
198 | to return an error response ('badValue' for SNMPv1,
199 | 'wrongValue' for SNMPv2) if a management station attempts
200 | to set this object to any other value.
201 |
202 | If a management station sets this object to the value
203 | deleteTCB(12), then this has the effect of deleting the TCB
204 | (as defined in RFC 793) of the corresponding connection on
205 | the managed node, resulting in immediate termination of the
206 | connection.
207 |
208 | As an implementation-specific option, a RST segment may be
209 | sent from the managed node to the other TCP endpoint (note
210 | however that RST segments are not sent reliably).
211 |
212 | This object is obsoleted by TCP-MIB::tcpConnectionState."
213 | ::= { ipv6TcpConnEntry 6 }
214 |
215 | --
216 | -- conformance information
217 | --
218 |
219 | ipv6TcpConformance OBJECT IDENTIFIER ::= { ipv6TcpMIB 2 }
220 |
221 | ipv6TcpCompliances OBJECT IDENTIFIER ::= { ipv6TcpConformance 1 }
222 | ipv6TcpGroups OBJECT IDENTIFIER ::= { ipv6TcpConformance 2 }
223 |
224 | -- compliance statements
225 |
226 | ipv6TcpCompliance MODULE-COMPLIANCE
227 | STATUS obsolete
228 | DESCRIPTION
229 | "The compliance statement for SNMPv2 entities which
230 | implement TCP over IPv6.
231 |
232 | This compliance statement is obsoleted by
233 | TCP-MIB::tcpMIBCompliance2."
234 | MODULE -- this module
235 | MANDATORY-GROUPS { ipv6TcpGroup }
236 | ::= { ipv6TcpCompliances 1 }
237 |
238 | ipv6TcpGroup OBJECT-GROUP
239 | OBJECTS { -- these are defined in this module
240 |
241 | -- ipv6TcpConnLocalAddress (not-accessible)
242 | -- ipv6TcpConnLocalPort (not-accessible)
243 | -- ipv6TcpConnRemAddress (not-accessible)
244 | -- ipv6TcpConnRemPort (not-accessible)
245 | -- ipv6TcpConnIfIndex (not-accessible)
246 | ipv6TcpConnState }
247 | STATUS obsolete
248 | DESCRIPTION
249 | "The group of objects providing management of
250 | TCP over IPv6.
251 |
252 | This group is obsoleted by several groups in TCP-MIB."
253 | ::= { ipv6TcpGroups 1 }
254 |
255 | END
256 |
--------------------------------------------------------------------------------
/img/SNMP-PROXY-MIB.txt:
--------------------------------------------------------------------------------
1 | SNMP-PROXY-MIB DEFINITIONS ::= BEGIN
2 |
3 | IMPORTS
4 | MODULE-IDENTITY,
5 | OBJECT-TYPE,
6 | snmpModules
7 | FROM SNMPv2-SMI
8 |
9 | RowStatus,
10 | StorageType
11 | FROM SNMPv2-TC
12 |
13 | SnmpEngineID,
14 | SnmpAdminString
15 | FROM SNMP-FRAMEWORK-MIB
16 |
17 | SnmpTagValue
18 | FROM SNMP-TARGET-MIB
19 |
20 | MODULE-COMPLIANCE,
21 | OBJECT-GROUP
22 | FROM SNMPv2-CONF;
23 |
24 | snmpProxyMIB MODULE-IDENTITY
25 | LAST-UPDATED "200210140000Z"
26 | ORGANIZATION "IETF SNMPv3 Working Group"
27 | CONTACT-INFO
28 | "WG-email: snmpv3@lists.tislabs.com
29 | Subscribe: majordomo@lists.tislabs.com
30 | In message body: subscribe snmpv3
31 |
32 | Co-Chair: Russ Mundy
33 | Network Associates Laboratories
34 | Postal: 15204 Omega Drive, Suite 300
35 | Rockville, MD 20850-4601
36 | USA
37 | EMail: mundy@tislabs.com
38 | Phone: +1 301-947-7107
39 |
40 | Co-Chair: David Harrington
41 | Enterasys Networks
42 | Postal: 35 Industrial Way
43 | P. O. Box 5004
44 | Rochester, New Hampshire 03866-5005
45 | USA
46 | EMail: dbh@enterasys.com
47 | Phone: +1 603-337-2614
48 |
49 | Co-editor: David B. Levi
50 | Nortel Networks
51 | Postal: 3505 Kesterwood Drive
52 | Knoxville, Tennessee 37918
53 | EMail: dlevi@nortelnetworks.com
54 | Phone: +1 865 686 0432
55 |
56 | Co-editor: Paul Meyer
57 | Secure Computing Corporation
58 | Postal: 2675 Long Lake Road
59 | Roseville, Minnesota 55113
60 | EMail: paul_meyer@securecomputing.com
61 | Phone: +1 651 628 1592
62 |
63 | Co-editor: Bob Stewart
64 | Retired"
65 | DESCRIPTION
66 | "This MIB module defines MIB objects which provide
67 | mechanisms to remotely configure the parameters
68 | used by a proxy forwarding application.
69 |
70 | Copyright (C) The Internet Society (2002). This
71 | version of this MIB module is part of RFC 3413;
72 | see the RFC itself for full legal notices.
73 | "
74 | REVISION "200210140000Z" -- 14 October 2002
75 | DESCRIPTION "Clarifications, published as
76 | RFC 3413."
77 | REVISION "199808040000Z" -- 4 August 1998
78 | DESCRIPTION "Clarifications, published as
79 | RFC 2573."
80 | REVISION "199707140000Z" -- 14 July 1997
81 | DESCRIPTION "The initial revision, published as RFC2273."
82 | ::= { snmpModules 14 }
83 |
84 | snmpProxyObjects OBJECT IDENTIFIER ::= { snmpProxyMIB 1 }
85 | snmpProxyConformance OBJECT IDENTIFIER ::= { snmpProxyMIB 3 }
86 |
87 | --
88 |
89 | --
90 | -- The snmpProxyObjects group
91 | --
92 | --
93 |
94 | snmpProxyTable OBJECT-TYPE
95 | SYNTAX SEQUENCE OF SnmpProxyEntry
96 | MAX-ACCESS not-accessible
97 | STATUS current
98 | DESCRIPTION
99 | "The table of translation parameters used by proxy forwarder
100 | applications for forwarding SNMP messages."
101 | ::= { snmpProxyObjects 2 }
102 |
103 | snmpProxyEntry OBJECT-TYPE
104 | SYNTAX SnmpProxyEntry
105 | MAX-ACCESS not-accessible
106 | STATUS current
107 | DESCRIPTION
108 | "A set of translation parameters used by a proxy forwarder
109 | application for forwarding SNMP messages.
110 |
111 | Entries in the snmpProxyTable are created and deleted
112 | using the snmpProxyRowStatus object."
113 | INDEX { IMPLIED snmpProxyName }
114 | ::= { snmpProxyTable 1 }
115 |
116 | SnmpProxyEntry ::= SEQUENCE {
117 | snmpProxyName SnmpAdminString,
118 | snmpProxyType INTEGER,
119 | snmpProxyContextEngineID SnmpEngineID,
120 | snmpProxyContextName SnmpAdminString,
121 | snmpProxyTargetParamsIn SnmpAdminString,
122 | snmpProxySingleTargetOut SnmpAdminString,
123 | snmpProxyMultipleTargetOut SnmpTagValue,
124 | snmpProxyStorageType StorageType,
125 | snmpProxyRowStatus RowStatus
126 | }
127 |
128 | snmpProxyName OBJECT-TYPE
129 | SYNTAX SnmpAdminString (SIZE(1..32))
130 | MAX-ACCESS not-accessible
131 | STATUS current
132 | DESCRIPTION
133 | "The locally arbitrary, but unique identifier associated
134 | with this snmpProxyEntry."
135 | ::= { snmpProxyEntry 1 }
136 |
137 | snmpProxyType OBJECT-TYPE
138 | SYNTAX INTEGER {
139 | read(1),
140 | write(2),
141 | trap(3),
142 | inform(4)
143 | }
144 | MAX-ACCESS read-create
145 | STATUS current
146 | DESCRIPTION
147 | "The type of message that may be forwarded using
148 | the translation parameters defined by this entry."
149 | ::= { snmpProxyEntry 2 }
150 |
151 | snmpProxyContextEngineID OBJECT-TYPE
152 | SYNTAX SnmpEngineID
153 | MAX-ACCESS read-create
154 | STATUS current
155 | DESCRIPTION
156 | "The contextEngineID contained in messages that
157 | may be forwarded using the translation parameters
158 | defined by this entry."
159 | ::= { snmpProxyEntry 3 }
160 |
161 | snmpProxyContextName OBJECT-TYPE
162 | SYNTAX SnmpAdminString
163 | MAX-ACCESS read-create
164 | STATUS current
165 | DESCRIPTION
166 | "The contextName contained in messages that may be
167 | forwarded using the translation parameters defined
168 | by this entry.
169 |
170 | This object is optional, and if not supported, the
171 | contextName contained in a message is ignored when
172 | selecting an entry in the snmpProxyTable."
173 | ::= { snmpProxyEntry 4 }
174 |
175 | snmpProxyTargetParamsIn OBJECT-TYPE
176 | SYNTAX SnmpAdminString
177 | MAX-ACCESS read-create
178 | STATUS current
179 | DESCRIPTION
180 | "This object selects an entry in the snmpTargetParamsTable.
181 | The selected entry is used to determine which row of the
182 | snmpProxyTable to use for forwarding received messages."
183 | ::= { snmpProxyEntry 5 }
184 |
185 | snmpProxySingleTargetOut OBJECT-TYPE
186 | SYNTAX SnmpAdminString
187 | MAX-ACCESS read-create
188 | STATUS current
189 | DESCRIPTION
190 | "This object selects a management target defined in the
191 | snmpTargetAddrTable (in the SNMP-TARGET-MIB). The
192 | selected target is defined by an entry in the
193 | snmpTargetAddrTable whose index value (snmpTargetAddrName)
194 | is equal to this object.
195 |
196 | This object is only used when selection of a single
197 | target is required (i.e. when forwarding an incoming
198 | read or write request)."
199 | ::= { snmpProxyEntry 6 }
200 |
201 | snmpProxyMultipleTargetOut OBJECT-TYPE
202 | SYNTAX SnmpTagValue
203 | MAX-ACCESS read-create
204 | STATUS current
205 | DESCRIPTION
206 | "This object selects a set of management targets defined
207 | in the snmpTargetAddrTable (in the SNMP-TARGET-MIB).
208 |
209 | This object is only used when selection of multiple
210 | targets is required (i.e. when forwarding an incoming
211 | notification)."
212 | ::= { snmpProxyEntry 7 }
213 |
214 | snmpProxyStorageType OBJECT-TYPE
215 | SYNTAX StorageType
216 | MAX-ACCESS read-create
217 | STATUS current
218 | DESCRIPTION
219 | "The storage type of this conceptual row.
220 | Conceptual rows having the value 'permanent' need not
221 | allow write-access to any columnar objects in the row."
222 | DEFVAL { nonVolatile }
223 | ::= { snmpProxyEntry 8 }
224 |
225 | snmpProxyRowStatus OBJECT-TYPE
226 | SYNTAX RowStatus
227 | MAX-ACCESS read-create
228 | STATUS current
229 | DESCRIPTION
230 | "The status of this conceptual row.
231 |
232 | To create a row in this table, a manager must
233 |
234 | set this object to either createAndGo(4) or
235 | createAndWait(5).
236 |
237 | The following objects may not be modified while the
238 | value of this object is active(1):
239 | - snmpProxyType
240 | - snmpProxyContextEngineID
241 | - snmpProxyContextName
242 | - snmpProxyTargetParamsIn
243 | - snmpProxySingleTargetOut
244 | - snmpProxyMultipleTargetOut"
245 | ::= { snmpProxyEntry 9 }
246 |
247 | --
248 | --
249 | -- Conformance information
250 | --
251 | --
252 |
253 | snmpProxyCompliances OBJECT IDENTIFIER ::=
254 | { snmpProxyConformance 1 }
255 | snmpProxyGroups OBJECT IDENTIFIER ::=
256 | { snmpProxyConformance 2 }
257 |
258 | --
259 | --
260 | -- Compliance statements
261 | --
262 | --
263 |
264 | snmpProxyCompliance MODULE-COMPLIANCE
265 | STATUS current
266 | DESCRIPTION
267 | "The compliance statement for SNMP entities which include
268 | a proxy forwarding application."
269 | MODULE SNMP-TARGET-MIB
270 | MANDATORY-GROUPS { snmpTargetBasicGroup,
271 | snmpTargetResponseGroup }
272 | MODULE -- This Module
273 | MANDATORY-GROUPS { snmpProxyGroup }
274 | ::= { snmpProxyCompliances 1 }
275 |
276 | snmpProxyGroup OBJECT-GROUP
277 | OBJECTS {
278 | snmpProxyType,
279 | snmpProxyContextEngineID,
280 | snmpProxyContextName,
281 | snmpProxyTargetParamsIn,
282 | snmpProxySingleTargetOut,
283 | snmpProxyMultipleTargetOut,
284 | snmpProxyStorageType,
285 | snmpProxyRowStatus
286 | }
287 | STATUS current
288 | DESCRIPTION
289 | "A collection of objects providing remote configuration of
290 | management target translation parameters for use by
291 | proxy forwarder applications."
292 | ::= { snmpProxyGroups 3 }
293 |
294 | END
295 |
--------------------------------------------------------------------------------
/img/NET-SNMP-EXAMPLES-MIB.txt:
--------------------------------------------------------------------------------
1 | NET-SNMP-EXAMPLES-MIB DEFINITIONS ::= BEGIN
2 |
3 | --
4 | -- Example MIB objects for agent module example implementations
5 | --
6 |
7 | IMPORTS
8 | MODULE-IDENTITY, OBJECT-TYPE, Integer32,
9 | NOTIFICATION-TYPE FROM SNMPv2-SMI
10 | SnmpAdminString FROM SNMP-FRAMEWORK-MIB
11 | netSnmp FROM NET-SNMP-MIB
12 | RowStatus, StorageType FROM SNMPv2-TC
13 | InetAddressType, InetAddress FROM INET-ADDRESS-MIB
14 | ;
15 |
16 | netSnmpExamples MODULE-IDENTITY
17 | LAST-UPDATED "200406150000Z"
18 | ORGANIZATION "www.net-snmp.org"
19 | CONTACT-INFO
20 | "postal: Wes Hardaker
21 | P.O. Box 382
22 | Davis CA 95617
23 |
24 | email: net-snmp-coders@lists.sourceforge.net"
25 | DESCRIPTION
26 | "Example MIB objects for agent module example implementations"
27 | REVISION "200406150000Z"
28 | DESCRIPTION
29 | "Corrected notification example definitions"
30 | REVISION "200202060000Z"
31 | DESCRIPTION
32 | "First draft"
33 | ::= { netSnmp 2 }
34 |
35 | --
36 | -- top level structure
37 | --
38 | netSnmpExampleScalars OBJECT IDENTIFIER ::= { netSnmpExamples 1 }
39 | netSnmpExampleTables OBJECT IDENTIFIER ::= { netSnmpExamples 2 }
40 | netSnmpExampleNotifications OBJECT IDENTIFIER ::= { netSnmpExamples 3 }
41 | netSnmpExampleNotificationPrefix OBJECT IDENTIFIER
42 | ::= { netSnmpExampleNotifications 0 }
43 | netSnmpExampleNotificationObjects OBJECT IDENTIFIER
44 | ::= { netSnmpExampleNotifications 2 }
45 | -- netSnmpTutorial OBJECT IDENTIFIER ::= { netSnmpExamples 4 }
46 |
47 | --
48 | -- Example scalars
49 | --
50 |
51 | netSnmpExampleInteger OBJECT-TYPE
52 | SYNTAX Integer32
53 | MAX-ACCESS read-write
54 | STATUS current
55 | DESCRIPTION
56 | "This is a simple object which merely houses a writable
57 | integer. It's only purposes is to hold the value of a single
58 | integer. Writing to it will simply change the value for
59 | subsequent GET/GETNEXT/GETBULK retrievals.
60 |
61 | This example object is implemented in the
62 | agent/mibgroup/examples/scalar_int.c file."
63 | DEFVAL { 42 }
64 | ::= { netSnmpExampleScalars 1 }
65 |
66 | netSnmpExampleSleeper OBJECT-TYPE
67 | SYNTAX Integer32
68 | MAX-ACCESS read-write
69 | STATUS current
70 | DESCRIPTION
71 | "This is a simple object which is a basic integer. It's value
72 | indicates the number of seconds that the agent will take in
73 | responding to requests of this object. This is implemented
74 | in a way which will allow the agent to keep responding to
75 | other requests while access to this object is blocked. It is
76 | writable, and changing it's value will change the amount of
77 | time the agent will effectively wait for before returning a
78 | response when this object is manipulated. Note that SET
79 | requests through this object will take longer, since the
80 | delay is applied to each internal transaction phase, which
81 | could result in delays of up to 4 times the value of this
82 | object.
83 |
84 | This example object is implemented in the
85 | agent/mibgroup/examples/delayed_instance.c file."
86 | DEFVAL { 1 }
87 | ::= { netSnmpExampleScalars 2 }
88 |
89 | netSnmpExampleString OBJECT-TYPE
90 | SYNTAX SnmpAdminString
91 | MAX-ACCESS read-write
92 | STATUS current
93 | DESCRIPTION
94 | "This is a simple object which merely houses a writable
95 | string. It's only purposes is to hold the value of a single
96 | string. Writing to it will simply change the value for
97 | subsequent GET/GETNEXT/GETBULK retrievals.
98 |
99 | This example object is implemented in the
100 | agent/mibgroup/examples/watched.c file."
101 | DEFVAL { "So long, and thanks for all the fish!" }
102 | ::= { netSnmpExampleScalars 3 }
103 |
104 |
105 | --
106 | -- Example Tables
107 | --
108 |
109 | netSnmpIETFWGTable OBJECT-TYPE
110 | SYNTAX SEQUENCE OF NetSnmpIETFWGEntry
111 | MAX-ACCESS not-accessible
112 | STATUS current
113 | DESCRIPTION
114 | "This table merely contains a set of data which is otherwise
115 | useless for true network management. It is a table which
116 | describes properies about a IETF Working Group, such as the
117 | names of the two working group chairs.
118 |
119 | This example table is implemented in the
120 | agent/mibgroup/examples/data_set.c file."
121 | ::= { netSnmpExampleTables 1 }
122 |
123 | netSnmpIETFWGEntry OBJECT-TYPE
124 | SYNTAX NetSnmpIETFWGEntry
125 | MAX-ACCESS not-accessible
126 | STATUS current
127 | DESCRIPTION
128 | "A row describing a given working group"
129 | INDEX { nsIETFWGName }
130 | ::= {netSnmpIETFWGTable 1 }
131 |
132 | NetSnmpIETFWGEntry ::= SEQUENCE {
133 | nsIETFWGName OCTET STRING,
134 | nsIETFWGChair1 OCTET STRING,
135 | nsIETFWGChair2 OCTET STRING
136 | }
137 |
138 | nsIETFWGName OBJECT-TYPE
139 | SYNTAX OCTET STRING (SIZE(1..32))
140 | MAX-ACCESS not-accessible
141 | STATUS current
142 | DESCRIPTION
143 | "The name of the IETF Working Group this table describes."
144 | ::= { netSnmpIETFWGEntry 1 }
145 |
146 | nsIETFWGChair1 OBJECT-TYPE
147 | SYNTAX OCTET STRING
148 | MAX-ACCESS read-create
149 | STATUS current
150 | DESCRIPTION
151 | "One of the names of the chairs for the IETF working group."
152 | ::= { netSnmpIETFWGEntry 2 }
153 |
154 | nsIETFWGChair2 OBJECT-TYPE
155 | SYNTAX OCTET STRING
156 | MAX-ACCESS read-create
157 | STATUS current
158 | DESCRIPTION
159 | "The other name, if one exists, of the chairs for the IETF
160 | working group."
161 | ::= { netSnmpIETFWGEntry 3 }
162 |
163 | --
164 | -- A table used in a table_iterator example
165 | -- (agent/mibgroup/examples/netSnmpHostsTable*.[ch])
166 | --
167 |
168 | netSnmpHostsTable OBJECT-TYPE
169 | SYNTAX SEQUENCE OF NetSnmpHostsEntry
170 | MAX-ACCESS not-accessible
171 | STATUS current
172 | DESCRIPTION
173 | "An example table that implements a wrapper around the
174 | /etc/hosts file on a machine using the iterator helper API."
175 | ::= { netSnmpExampleTables 2 }
176 |
177 | netSnmpHostsEntry OBJECT-TYPE
178 | SYNTAX NetSnmpHostsEntry
179 | MAX-ACCESS not-accessible
180 | STATUS current
181 | DESCRIPTION
182 | "A host name mapped to an ip address"
183 | INDEX { netSnmpHostName }
184 | ::= { netSnmpHostsTable 1 }
185 |
186 | NetSnmpHostsEntry ::= SEQUENCE {
187 | netSnmpHostName OCTET STRING,
188 | netSnmpHostAddressType InetAddressType,
189 | netSnmpHostAddress InetAddress,
190 | netSnmpHostStorage StorageType,
191 | netSnmpHostRowStatus RowStatus
192 | }
193 |
194 | netSnmpHostName OBJECT-TYPE
195 | SYNTAX OCTET STRING (SIZE(0..64))
196 | MAX-ACCESS not-accessible
197 | STATUS current
198 | DESCRIPTION
199 | "A host name that exists in the /etc/hosts (unix) file."
200 | ::= { netSnmpHostsEntry 1 }
201 |
202 | netSnmpHostAddressType OBJECT-TYPE
203 | SYNTAX InetAddressType
204 | MAX-ACCESS read-create
205 | STATUS current
206 | DESCRIPTION
207 | "The address type of then given host."
208 | ::= { netSnmpHostsEntry 2 }
209 |
210 | netSnmpHostAddress OBJECT-TYPE
211 | SYNTAX InetAddress
212 | MAX-ACCESS read-create
213 | STATUS current
214 | DESCRIPTION
215 | "The address of then given host."
216 | ::= { netSnmpHostsEntry 3 }
217 |
218 | netSnmpHostStorage OBJECT-TYPE
219 | SYNTAX StorageType
220 | MAX-ACCESS read-create
221 | STATUS current
222 | DESCRIPTION "The storage type for this conceptual row."
223 | DEFVAL { nonVolatile }
224 | ::= { netSnmpHostsEntry 4 }
225 |
226 | netSnmpHostRowStatus OBJECT-TYPE
227 | SYNTAX RowStatus
228 | MAX-ACCESS read-create
229 | STATUS current
230 | DESCRIPTION "The status of this conceptual row."
231 | ::= { netSnmpHostsEntry 5 }
232 |
233 |
234 | --
235 | -- Example Notifications
236 | --
237 |
238 | netSnmpExampleHeartbeatRate OBJECT-TYPE
239 | SYNTAX Integer32
240 | MAX-ACCESS accessible-for-notify
241 | STATUS current
242 | DESCRIPTION
243 | "A simple integer object, to act as a payload for the
244 | netSnmpExampleHeartbeatNotification. The value has
245 | no real meaning, but is nominally the interval (in
246 | seconds) between successive heartbeat notifications."
247 | ::= { netSnmpExampleNotificationObjects 1 }
248 |
249 | netSnmpExampleHeartbeatName OBJECT-TYPE
250 | SYNTAX SnmpAdminString
251 | MAX-ACCESS accessible-for-notify
252 | STATUS current
253 | DESCRIPTION
254 | "A simple string object, to act as an optional payload
255 | for the netSnmpExampleHeartbeatNotification. This varbind
256 | is not part of the notification definition, so is optional
257 | and need not be included in the notification payload.
258 | The value has no real meaning, but the romantically inclined
259 | may take it to be the object of the sender's affection,
260 | and hence the cause of the heart beating faster."
261 | ::= { netSnmpExampleNotificationObjects 2 }
262 |
263 | netSnmpExampleHeartbeatNotification NOTIFICATION-TYPE
264 | OBJECTS { netSnmpExampleHeartbeatRate }
265 | STATUS current
266 | DESCRIPTION
267 | "An example notification, used to illustrate the
268 | definition and generation of trap and inform PDUs
269 | (including the use of both standard and additional
270 | varbinds in the notification payload).
271 | This notification will typically be sent every
272 | 30 seconds, using the code found in the example module
273 | agent/mibgroup/examples/notification.c"
274 | ::= { netSnmpExampleNotificationPrefix 1 }
275 |
276 | netSnmpExampleNotification OBJECT-TYPE
277 | SYNTAX SnmpAdminString
278 | MAX-ACCESS accessible-for-notify
279 | STATUS obsolete
280 | DESCRIPTION
281 | "This object was improperly defined for its original purpose,
282 | and should no longer be used."
283 | ::= { netSnmpExampleNotifications 1 }
284 |
285 | END
286 |
--------------------------------------------------------------------------------
/img/SNMPv2-SMI.txt:
--------------------------------------------------------------------------------
1 | SNMPv2-SMI DEFINITIONS ::= BEGIN
2 |
3 | -- the path to the root
4 |
5 | org OBJECT IDENTIFIER ::= { iso 3 } -- "iso" = 1
6 | dod OBJECT IDENTIFIER ::= { org 6 }
7 | internet OBJECT IDENTIFIER ::= { dod 1 }
8 |
9 | directory OBJECT IDENTIFIER ::= { internet 1 }
10 |
11 | mgmt OBJECT IDENTIFIER ::= { internet 2 }
12 | mib-2 OBJECT IDENTIFIER ::= { mgmt 1 }
13 | transmission OBJECT IDENTIFIER ::= { mib-2 10 }
14 |
15 | experimental OBJECT IDENTIFIER ::= { internet 3 }
16 |
17 | private OBJECT IDENTIFIER ::= { internet 4 }
18 | enterprises OBJECT IDENTIFIER ::= { private 1 }
19 |
20 | security OBJECT IDENTIFIER ::= { internet 5 }
21 |
22 | snmpV2 OBJECT IDENTIFIER ::= { internet 6 }
23 |
24 | -- transport domains
25 | snmpDomains OBJECT IDENTIFIER ::= { snmpV2 1 }
26 |
27 | -- transport proxies
28 | snmpProxys OBJECT IDENTIFIER ::= { snmpV2 2 }
29 |
30 | -- module identities
31 | snmpModules OBJECT IDENTIFIER ::= { snmpV2 3 }
32 |
33 | -- Extended UTCTime, to allow dates with four-digit years
34 | -- (Note that this definition of ExtUTCTime is not to be IMPORTed
35 | -- by MIB modules.)
36 | ExtUTCTime ::= OCTET STRING(SIZE(11 | 13))
37 | -- format is YYMMDDHHMMZ or YYYYMMDDHHMMZ
38 |
39 | -- where: YY - last two digits of year (only years
40 | -- between 1900-1999)
41 | -- YYYY - last four digits of the year (any year)
42 | -- MM - month (01 through 12)
43 | -- DD - day of month (01 through 31)
44 | -- HH - hours (00 through 23)
45 | -- MM - minutes (00 through 59)
46 | -- Z - denotes GMT (the ASCII character Z)
47 | --
48 | -- For example, "9502192015Z" and "199502192015Z" represent
49 | -- 8:15pm GMT on 19 February 1995. Years after 1999 must use
50 | -- the four digit year format. Years 1900-1999 may use the
51 | -- two or four digit format.
52 |
53 | -- definitions for information modules
54 |
55 | MODULE-IDENTITY MACRO ::=
56 | BEGIN
57 | TYPE NOTATION ::=
58 | "LAST-UPDATED" value(Update ExtUTCTime)
59 | "ORGANIZATION" Text
60 | "CONTACT-INFO" Text
61 | "DESCRIPTION" Text
62 | RevisionPart
63 |
64 | VALUE NOTATION ::=
65 | value(VALUE OBJECT IDENTIFIER)
66 |
67 | RevisionPart ::=
68 | Revisions
69 | | empty
70 | Revisions ::=
71 | Revision
72 | | Revisions Revision
73 | Revision ::=
74 | "REVISION" value(Update ExtUTCTime)
75 | "DESCRIPTION" Text
76 |
77 | -- a character string as defined in section 3.1.1
78 | Text ::= value(IA5String)
79 | END
80 |
81 | OBJECT-IDENTITY MACRO ::=
82 | BEGIN
83 | TYPE NOTATION ::=
84 | "STATUS" Status
85 | "DESCRIPTION" Text
86 |
87 | ReferPart
88 |
89 | VALUE NOTATION ::=
90 | value(VALUE OBJECT IDENTIFIER)
91 |
92 | Status ::=
93 | "current"
94 | | "deprecated"
95 | | "obsolete"
96 |
97 | ReferPart ::=
98 | "REFERENCE" Text
99 | | empty
100 |
101 | -- a character string as defined in section 3.1.1
102 | Text ::= value(IA5String)
103 | END
104 |
105 | -- names of objects
106 | -- (Note that these definitions of ObjectName and NotificationName
107 | -- are not to be IMPORTed by MIB modules.)
108 |
109 | ObjectName ::=
110 | OBJECT IDENTIFIER
111 |
112 | NotificationName ::=
113 | OBJECT IDENTIFIER
114 |
115 | -- syntax of objects
116 |
117 | -- the "base types" defined here are:
118 | -- 3 built-in ASN.1 types: INTEGER, OCTET STRING, OBJECT IDENTIFIER
119 | -- 8 application-defined types: Integer32, IpAddress, Counter32,
120 | -- Gauge32, Unsigned32, TimeTicks, Opaque, and Counter64
121 |
122 | ObjectSyntax ::=
123 | CHOICE {
124 | simple
125 | SimpleSyntax,
126 | -- note that SEQUENCEs for conceptual tables and
127 | -- rows are not mentioned here...
128 |
129 | application-wide
130 | ApplicationSyntax
131 | }
132 |
133 | -- built-in ASN.1 types
134 |
135 | SimpleSyntax ::=
136 | CHOICE {
137 | -- INTEGERs with a more restrictive range
138 | -- may also be used
139 | integer-value -- includes Integer32
140 | INTEGER (-2147483648..2147483647),
141 | -- OCTET STRINGs with a more restrictive size
142 | -- may also be used
143 | string-value
144 | OCTET STRING (SIZE (0..65535)),
145 | objectID-value
146 | OBJECT IDENTIFIER
147 | }
148 |
149 | -- indistinguishable from INTEGER, but never needs more than
150 | -- 32-bits for a two's complement representation
151 | Integer32 ::=
152 | INTEGER (-2147483648..2147483647)
153 |
154 | -- application-wide types
155 |
156 | ApplicationSyntax ::=
157 | CHOICE {
158 | ipAddress-value
159 | IpAddress,
160 | counter-value
161 | Counter32,
162 | timeticks-value
163 | TimeTicks,
164 | arbitrary-value
165 | Opaque,
166 | big-counter-value
167 | Counter64,
168 | unsigned-integer-value -- includes Gauge32
169 | Unsigned32
170 | }
171 |
172 | -- in network-byte order
173 |
174 | -- (this is a tagged type for historical reasons)
175 | IpAddress ::=
176 | [APPLICATION 0]
177 | IMPLICIT OCTET STRING (SIZE (4))
178 |
179 | -- this wraps
180 | Counter32 ::=
181 | [APPLICATION 1]
182 | IMPLICIT INTEGER (0..4294967295)
183 |
184 | -- this doesn't wrap
185 | Gauge32 ::=
186 | [APPLICATION 2]
187 | IMPLICIT INTEGER (0..4294967295)
188 |
189 | -- an unsigned 32-bit quantity
190 | -- indistinguishable from Gauge32
191 | Unsigned32 ::=
192 | [APPLICATION 2]
193 | IMPLICIT INTEGER (0..4294967295)
194 |
195 | -- hundredths of seconds since an epoch
196 | TimeTicks ::=
197 | [APPLICATION 3]
198 | IMPLICIT INTEGER (0..4294967295)
199 |
200 | -- for backward-compatibility only
201 | Opaque ::=
202 | [APPLICATION 4]
203 | IMPLICIT OCTET STRING
204 |
205 | -- for counters that wrap in less than one hour with only 32 bits
206 | Counter64 ::=
207 | [APPLICATION 6]
208 | IMPLICIT INTEGER (0..18446744073709551615)
209 |
210 | -- definition for objects
211 |
212 | OBJECT-TYPE MACRO ::=
213 | BEGIN
214 | TYPE NOTATION ::=
215 | "SYNTAX" Syntax
216 | UnitsPart
217 | "MAX-ACCESS" Access
218 | "STATUS" Status
219 | "DESCRIPTION" Text
220 | ReferPart
221 |
222 | IndexPart
223 | DefValPart
224 |
225 | VALUE NOTATION ::=
226 | value(VALUE ObjectName)
227 |
228 | Syntax ::= -- Must be one of the following:
229 | -- a base type (or its refinement),
230 | -- a textual convention (or its refinement), or
231 | -- a BITS pseudo-type
232 | type
233 | | "BITS" "{" NamedBits "}"
234 |
235 | NamedBits ::= NamedBit
236 | | NamedBits "," NamedBit
237 |
238 | NamedBit ::= identifier "(" number ")" -- number is nonnegative
239 |
240 | UnitsPart ::=
241 | "UNITS" Text
242 | | empty
243 |
244 | Access ::=
245 | "not-accessible"
246 | | "accessible-for-notify"
247 | | "read-only"
248 | | "read-write"
249 | | "read-create"
250 |
251 | Status ::=
252 | "current"
253 | | "deprecated"
254 | | "obsolete"
255 |
256 | ReferPart ::=
257 | "REFERENCE" Text
258 | | empty
259 |
260 | IndexPart ::=
261 | "INDEX" "{" IndexTypes "}"
262 | | "AUGMENTS" "{" Entry "}"
263 | | empty
264 | IndexTypes ::=
265 | IndexType
266 | | IndexTypes "," IndexType
267 | IndexType ::=
268 | "IMPLIED" Index
269 | | Index
270 |
271 | Index ::=
272 | -- use the SYNTAX value of the
273 | -- correspondent OBJECT-TYPE invocation
274 | value(ObjectName)
275 | Entry ::=
276 | -- use the INDEX value of the
277 | -- correspondent OBJECT-TYPE invocation
278 | value(ObjectName)
279 |
280 | DefValPart ::= "DEFVAL" "{" Defvalue "}"
281 | | empty
282 |
283 | Defvalue ::= -- must be valid for the type specified in
284 | -- SYNTAX clause of same OBJECT-TYPE macro
285 | value(ObjectSyntax)
286 | | "{" BitsValue "}"
287 |
288 | BitsValue ::= BitNames
289 | | empty
290 |
291 | BitNames ::= BitName
292 | | BitNames "," BitName
293 |
294 | BitName ::= identifier
295 |
296 | -- a character string as defined in section 3.1.1
297 | Text ::= value(IA5String)
298 | END
299 |
300 | -- definitions for notifications
301 |
302 | NOTIFICATION-TYPE MACRO ::=
303 | BEGIN
304 | TYPE NOTATION ::=
305 | ObjectsPart
306 | "STATUS" Status
307 | "DESCRIPTION" Text
308 | ReferPart
309 |
310 | VALUE NOTATION ::=
311 | value(VALUE NotificationName)
312 |
313 | ObjectsPart ::=
314 | "OBJECTS" "{" Objects "}"
315 | | empty
316 | Objects ::=
317 | Object
318 |
319 | | Objects "," Object
320 | Object ::=
321 | value(ObjectName)
322 |
323 | Status ::=
324 | "current"
325 | | "deprecated"
326 | | "obsolete"
327 |
328 | ReferPart ::=
329 | "REFERENCE" Text
330 | | empty
331 |
332 | -- a character string as defined in section 3.1.1
333 | Text ::= value(IA5String)
334 | END
335 |
336 | -- definitions of administrative identifiers
337 |
338 | zeroDotZero OBJECT-IDENTITY
339 | STATUS current
340 | DESCRIPTION
341 | "A value used for null identifiers."
342 | ::= { 0 0 }
343 |
344 | END
345 |
--------------------------------------------------------------------------------
/img/NET-SNMP-EXTEND-MIB.txt:
--------------------------------------------------------------------------------
1 | NET-SNMP-EXTEND-MIB DEFINITIONS ::= BEGIN
2 |
3 | --
4 | -- Defines a framework for scripted extensions
5 | --
6 |
7 | IMPORTS
8 | nsExtensions FROM NET-SNMP-AGENT-MIB
9 |
10 | OBJECT-TYPE, NOTIFICATION-TYPE, MODULE-IDENTITY, Integer32
11 | FROM SNMPv2-SMI
12 |
13 | OBJECT-GROUP, NOTIFICATION-GROUP
14 | FROM SNMPv2-CONF
15 |
16 | DisplayString, RowStatus, StorageType FROM SNMPv2-TC;
17 |
18 |
19 | netSnmpExtendMIB MODULE-IDENTITY
20 | LAST-UPDATED "201003170000Z"
21 | ORGANIZATION "www.net-snmp.org"
22 | CONTACT-INFO
23 | "postal: Wes Hardaker
24 | P.O. Box 382
25 | Davis CA 95617
26 |
27 | email: net-snmp-coders@lists.sourceforge.net"
28 | DESCRIPTION
29 | "Defines a framework for scripted extensions for the Net-SNMP agent."
30 | REVISION "201003170000Z"
31 | DESCRIPTION
32 | "Fixed inconsistencies in the definition of nsExtendConfigTable."
33 | REVISION "200405080000Z"
34 | DESCRIPTION
35 | "First revision."
36 | ::= { nsExtensions 1 }
37 |
38 | nsExtendObjects OBJECT IDENTIFIER ::= { nsExtensions 2}
39 | nsExtendGroups OBJECT IDENTIFIER ::= { nsExtensions 3}
40 |
41 | nsExtendNumEntries OBJECT-TYPE
42 | SYNTAX INTEGER
43 | MAX-ACCESS read-only
44 | STATUS current
45 | DESCRIPTION
46 | "The number of rows in the nsExtendConfigTable"
47 | ::= { nsExtendObjects 1 }
48 |
49 | nsExtendConfigTable OBJECT-TYPE
50 | SYNTAX SEQUENCE OF NsExtendConfigEntry
51 | MAX-ACCESS not-accessible
52 | STATUS current
53 | DESCRIPTION
54 | "A table of scripted extensions - configuration and (basic) output."
55 | ::= { nsExtendObjects 2 }
56 |
57 | nsExtendConfigEntry OBJECT-TYPE
58 | SYNTAX NsExtendConfigEntry
59 | MAX-ACCESS not-accessible
60 | STATUS current
61 | DESCRIPTION
62 | "A conceptual row within the extension table."
63 | INDEX { nsExtendToken }
64 | ::= { nsExtendConfigTable 1 }
65 |
66 | NsExtendConfigEntry ::= SEQUENCE {
67 | nsExtendToken DisplayString,
68 | nsExtendCommand DisplayString,
69 | nsExtendArgs DisplayString,
70 | nsExtendInput DisplayString,
71 | nsExtendCacheTime INTEGER,
72 | nsExtendExecType INTEGER,
73 | nsExtendRunType INTEGER,
74 |
75 | nsExtendStorage StorageType,
76 | nsExtendStatus RowStatus
77 | }
78 |
79 | --
80 | -- The configuration of an extension command
81 | --
82 |
83 | nsExtendToken OBJECT-TYPE
84 | SYNTAX DisplayString
85 | MAX-ACCESS not-accessible
86 | STATUS current
87 | DESCRIPTION
88 | "An arbitrary token to identify this extension entry"
89 | ::= { nsExtendConfigEntry 1 }
90 |
91 | nsExtendCommand OBJECT-TYPE
92 | SYNTAX DisplayString
93 | MAX-ACCESS read-create
94 | STATUS current
95 | DESCRIPTION
96 | "The full path of the command binary (or script) to run"
97 | ::= { nsExtendConfigEntry 2 }
98 |
99 | nsExtendArgs OBJECT-TYPE
100 | SYNTAX DisplayString
101 | MAX-ACCESS read-create
102 | STATUS current
103 | DESCRIPTION
104 | "Any command-line arguments for the command"
105 | DEFVAL { ''H } -- the empty string
106 | ::= { nsExtendConfigEntry 3 }
107 |
108 | nsExtendInput OBJECT-TYPE
109 | SYNTAX DisplayString
110 | MAX-ACCESS read-create
111 | STATUS current
112 | DESCRIPTION
113 | "The standard input for the command"
114 | DEFVAL { ''H } -- the empty string
115 | ::= { nsExtendConfigEntry 4 }
116 |
117 | nsExtendCacheTime OBJECT-TYPE
118 | SYNTAX INTEGER
119 | MAX-ACCESS read-create
120 | STATUS current
121 | DESCRIPTION
122 | "The length of time for which the output of
123 | this command will be cached. During this time,
124 | retrieving the output-related values will not
125 | reinvoke the command.
126 | A value of -1 indicates that the output results
127 | should not be cached at all, and retrieving each
128 | individual output-related value will invoke the
129 | command afresh."
130 | DEFVAL { 5 }
131 | ::= { nsExtendConfigEntry 5 }
132 |
133 | nsExtendExecType OBJECT-TYPE
134 | SYNTAX INTEGER
135 | { exec (1), -- 'fork-and-exec'
136 | shell (2) -- run via a sub-shell
137 | }
138 | MAX-ACCESS read-create
139 | STATUS current
140 | DESCRIPTION
141 | "The mechanism used to invoke the command."
142 | DEFVAL { exec }
143 | ::= { nsExtendConfigEntry 6 }
144 |
145 | nsExtendRunType OBJECT-TYPE
146 | SYNTAX INTEGER
147 | { run-on-read (1),
148 | run-on-set (2),
149 | run-command (3)
150 | }
151 | MAX-ACCESS read-create
152 | STATUS current
153 | DESCRIPTION
154 | "Used to implement 'push-button' command invocation.
155 | The command for a 'run-on-read' entry will be invoked
156 | whenever one of the corresponding output-related
157 | instances is requested (and assuming the cached value
158 | is not still current).
159 | The command for a 'run-on-set' entry will only be invoked
160 | on receipt of a SET assignment for this object with the
161 | value 'run-command'.
162 | Reading an instance of this object will always return either
163 | 'run-on-read' or 'run-on-set'.
164 | "
165 | DEFVAL { run-on-read }
166 | ::= { nsExtendConfigEntry 7 }
167 |
168 | --
169 | -- Standard table-manipulation objects
170 | --
171 |
172 | nsExtendStorage OBJECT-TYPE
173 | SYNTAX StorageType
174 | MAX-ACCESS read-create
175 | STATUS current
176 | DESCRIPTION
177 | "The storage type for this conceptual row."
178 | DEFVAL { volatile }
179 | ::= { nsExtendConfigEntry 20 }
180 |
181 | nsExtendStatus OBJECT-TYPE
182 | SYNTAX RowStatus
183 | MAX-ACCESS read-create
184 | STATUS current
185 | DESCRIPTION
186 | "Used to create new rows in the table, in the standard manner.
187 | Note that is valid for an instance to be left with the value
188 | notInService(2) indefinitely - i.e. the meaning of 'abnormally
189 | long' (see RFC 2579, RowStatus) for this table is infinite."
190 | ::= { nsExtendConfigEntry 21 }
191 |
192 |
193 | --
194 | -- The results of running the extension command
195 | --
196 |
197 | nsExtendOutput1Table OBJECT-TYPE
198 | SYNTAX SEQUENCE OF NsExtendOutput1Entry
199 | MAX-ACCESS not-accessible
200 | STATUS current
201 | DESCRIPTION
202 | "A table of scripted extensions - configuration and (basic) output."
203 | ::= { nsExtendObjects 3 }
204 |
205 | nsExtendOutput1Entry OBJECT-TYPE
206 | SYNTAX NsExtendOutput1Entry
207 | MAX-ACCESS not-accessible
208 | STATUS current
209 | DESCRIPTION
210 | "A conceptual row within the extension table."
211 | AUGMENTS { nsExtendConfigEntry }
212 | ::= { nsExtendOutput1Table 1 }
213 |
214 | NsExtendOutput1Entry ::= SEQUENCE {
215 | nsExtendOutput1Line DisplayString,
216 | nsExtendOutputFull DisplayString,
217 | nsExtendOutNumLines Integer32,
218 | nsExtendResult Integer32
219 | }
220 |
221 | nsExtendOutput1Line OBJECT-TYPE
222 | SYNTAX DisplayString
223 | MAX-ACCESS read-only
224 | STATUS current
225 | DESCRIPTION
226 | "The first line of output from the command"
227 | ::= { nsExtendOutput1Entry 1 }
228 |
229 | nsExtendOutputFull OBJECT-TYPE
230 | SYNTAX DisplayString
231 | MAX-ACCESS read-only
232 | STATUS current
233 | DESCRIPTION
234 | "The full output from the command, as a single string"
235 | ::= { nsExtendOutput1Entry 2 }
236 |
237 | nsExtendOutNumLines OBJECT-TYPE
238 | SYNTAX Integer32
239 | MAX-ACCESS read-only
240 | STATUS current
241 | DESCRIPTION
242 | "The number of lines of output (and hence
243 | the number of rows in nsExtendOutputTable
244 | relating to this particular entry)."
245 | ::= { nsExtendOutput1Entry 3 }
246 |
247 | nsExtendResult OBJECT-TYPE
248 | SYNTAX Integer32
249 | MAX-ACCESS read-only
250 | STATUS current
251 | DESCRIPTION
252 | "The return value of the command."
253 | ::= { nsExtendOutput1Entry 4 }
254 |
255 |
256 | --
257 | -- The line-based output table
258 | --
259 |
260 | nsExtendOutput2Table OBJECT-TYPE
261 | SYNTAX SEQUENCE OF NsExtendOutput2Entry
262 | MAX-ACCESS not-accessible
263 | STATUS current
264 | DESCRIPTION
265 | "A table of (line-based) output from scripted extensions."
266 | ::= { nsExtendObjects 4 }
267 |
268 | nsExtendOutput2Entry OBJECT-TYPE
269 | SYNTAX NsExtendOutput2Entry
270 | MAX-ACCESS not-accessible
271 | STATUS current
272 | DESCRIPTION
273 | "A conceptual row within the line-based output table."
274 | INDEX { nsExtendToken, nsExtendLineIndex }
275 | ::= { nsExtendOutput2Table 1 }
276 |
277 | NsExtendOutput2Entry ::= SEQUENCE {
278 | nsExtendLineIndex INTEGER,
279 | nsExtendOutLine DisplayString
280 | }
281 |
282 | nsExtendLineIndex OBJECT-TYPE
283 | SYNTAX INTEGER(1..1024)
284 | MAX-ACCESS not-accessible
285 | STATUS current
286 | DESCRIPTION
287 | "The index of this line of output.
288 | For a given nsExtendToken, this will run from
289 | 1 to the corresponding value of nsExtendNumLines."
290 | ::= { nsExtendOutput2Entry 1 }
291 |
292 | nsExtendOutLine OBJECT-TYPE
293 | SYNTAX DisplayString
294 | MAX-ACCESS read-only
295 | STATUS current
296 | DESCRIPTION
297 | "A single line of output from the extension command."
298 | ::= { nsExtendOutput2Entry 2 }
299 |
300 | --
301 | -- Conformance-related definitions
302 | --
303 |
304 | nsExtendConfigGroup OBJECT-GROUP
305 | OBJECTS {
306 | nsExtendCommand, nsExtendArgs, nsExtendInput,
307 | nsExtendCacheTime, nsExtendExecType, nsExtendRunType,
308 | nsExtendStorage, nsExtendStatus, nsExtendNumEntries
309 | }
310 | STATUS current
311 | DESCRIPTION
312 | "Objects relating to the configuration of extension commands."
313 | ::= { nsExtendGroups 1 }
314 |
315 | nsExtendOutputGroup OBJECT-GROUP
316 | OBJECTS {
317 | nsExtendOutNumLines, nsExtendResult,
318 | nsExtendOutLine, nsExtendOutput1Line, nsExtendOutputFull
319 | }
320 | STATUS current
321 | DESCRIPTION
322 | "Objects relating to the output of extension commands."
323 | ::= { nsExtendGroups 2 }
324 |
325 | END
326 |
--------------------------------------------------------------------------------