GERENCIAMENTO DE REDES OIDs Prof Marcos Argachoy OSI

  • Slides: 30
Download presentation
GERENCIAMENTO DE REDES OIDs Prof. Marcos Argachoy

GERENCIAMENTO DE REDES OIDs Prof. Marcos Argachoy

OSI Object Identifier Tree Examine www. alvestrand. no/harald/objectid/top. html

OSI Object Identifier Tree Examine www. alvestrand. no/harald/objectid/top. html

Nomeação de Objetos questão: como nomear cada possível objeto padrão (protocolos, dados, outros. .

Nomeação de Objetos questão: como nomear cada possível objeto padrão (protocolos, dados, outros. . ) em cada possível padrão de rede? ? resposta: ISO Object Identifier tree: – nomeação hierarquica de todos os objetos – cada ramificação tem um nome e um número 1. 3. 6. 1. 2. 1. 7. 1 ISO-ident. Org. US Do. D Internet udp. In. Datagrams UDP MIB 2 management

internet OBJECT IDENTIFIER : : = { iso org(3) dod(6) 1 } directory OBJECT

internet OBJECT IDENTIFIER : : = { iso org(3) dod(6) 1 } directory OBJECT IDENTIFIER : : = { internet 1 } mgmt OBJECT IDENTIFIER : : = { internet 2 } experimental OBJECT IDENTIFIER : : = { internet 3 } private OBJECT IDENTIFIER : : = { internet 4 }

MIB-II

MIB-II

MIB – RFC 1213 -- groups in MIB-II system OBJECT IDENTIFIER : : =

MIB – RFC 1213 -- groups in MIB-II system OBJECT IDENTIFIER : : = { mib-2 1 } interfaces OBJECT IDENTIFIER : : = { mib-2 2 } at OBJECT IDENTIFIER : : = { mib-2 3 } ip OBJECT IDENTIFIER : : = { mib-2 4 } icmp OBJECT IDENTIFIER : : = { mib-2 5 } tcp OBJECT IDENTIFIER : : = { mib-2 6 } udp OBJECT IDENTIFIER : : = { mib-2 7 } egp OBJECT IDENTIFIER : : = { mib-2 8 } -- historical cmot OBJECT IDENTIFIER : : = { mib-2 9 } transmission OBJECT IDENTIFIER : : = { mib-2 10 } snmp OBJECT IDENTIFIER : : = { mib-2 11 }

MIBs - Exemplo sys. Name OBJECT-TYPE SYNTAX Display. String (SIZE (0. . 255)) ACCESS

MIBs - Exemplo sys. Name OBJECT-TYPE SYNTAX Display. String (SIZE (0. . 255)) ACCESS read-write STATUS mandatory DESCRIPTION "An administratively-assigned name for this managed node. By convention, this is the node’s fully-qualified domain name. " : : = { system 5 }

MIBs - Nomenclatura • Cláusula SYNTAX INTEGER Um contador numérico de 32 bits. Pode

MIBs - Nomenclatura • Cláusula SYNTAX INTEGER Um contador numérico de 32 bits. Pode representar, por exemplo, o estado de uma interface de um orteador up (1), down (2) ou testing (3). O valor zero (0) não deve ser usado de acordo com ao RFC 1155. OCTET STRING Uma string de zero ou mais octetos geralmente usada para representar strings de textos ou endereços físicos. COUNTER Um contador com valor mínimo de 0 e máximo de 232 -1 (4. 294. 967. 295). Quando um roteador é ligado ou reiniciado este valor começa com 0, quando o valor máximo é alcançado a contagem é reiniciada com valor 0. Pode ser usado para representar, por exemplo, octetos enviados e recebido em uma interface. OBJECT IDENTIFIER Uma string decimal separada por pontos que representa um objeto gerenciado na árvore de objetos. Por exemplo, a Cisco é 1. 3. 6. 1. 4. 1. 9. NULL Atualmente não utilizado pelo SNMP. SEQUENCE Define listas que contém 0 ou mais tipos de dados ASN. 1.

MIBs - Nomenclatura • Cláusula SYNTAX SEQUENCE OF Define um objeto gerenciado produzido de

MIBs - Nomenclatura • Cláusula SYNTAX SEQUENCE OF Define um objeto gerenciado produzido de um tipo SEQUENCE do ASN. 1. IPADDRESS Representa um endereço Ipv 4 de 32 bits. NETWORKADDRESS O mesmo do Ip. Address, mas pode representar diferentes endereços de redes. GAUGE Um contador com valor mínimo de 0 e máximo de 232 -1 (4. 294. 967. 295). Diferente do COUNTER ele pode incrementar ou decrementar, mas nunca pode exceder o valor máximo. A velocidade de uma interface de um roteador é medida pelo GAUGE. TIMETICKS Um contador com valor mínimo de 0 e máximo de 232 -1 (4. 294. 967. 295). Usado para medidas de tempo em centenas de segundos. O tempo de Up. Time de um roteador é medido com este valor. OPAQUE Permite qualquer notação ASN. 1 codificado como OCTET STRING.

MIBs - Nomenclatura • Cláusula SYNTAX SMIv 2 INTEGER 32 O mesmo do INTEGER.

MIBs - Nomenclatura • Cláusula SYNTAX SMIv 2 INTEGER 32 O mesmo do INTEGER. COUNTER 32 O mesmo de COUNTER; GAUGE 32 O mesmo de GAUGE. UNSIGNED 32 Representa valores decimais entre de 0 até 232 -1 (4. 294. 967. 295). COUNTER 64 Similar ao COUNTER 32, valor mínimo de 0 e máximo de 264 -1 (18. 446. 744. 073. 709. 551. 615). É ideal em situações onde COUNTER 32 atinge seu valor máximo em um curto intervalo de tempo. BITS Uma enumeração negativa chamada bits.

MIBs - Nomenclatura • Cláusula ACCESS – not-accessible: não permite nenhuma operação pelo gerenciador

MIBs - Nomenclatura • Cláusula ACCESS – not-accessible: não permite nenhuma operação pelo gerenciador – accessible-for-notify: o objeto é acessível apenas através de uma notificação – read-only: acesso somente para leitura – read-write: acesso de leitura e escrita – read-create: acesso para leitura, escrita e criação de nova instância • Cláusula STATUS – Mandatory /current: objeto válido no padrão atual – obsolete: objeto não deve ser implementado – deprecated: objeto antigo, mas pode ser implementado para interoperabilidade

MIBs - Exemplo sys. Location OBJECT-TYPE SYNTAX Display. String (SIZE (0. . 255)) ACCESS

MIBs - Exemplo sys. Location OBJECT-TYPE SYNTAX Display. String (SIZE (0. . 255)) ACCESS read-write STATUS mandatory DESCRIPTION "The physical location of this node (e. g. , ‘telephone closet, 3 rd floor’). " : : = { system 6 }

MIBs - Exemplo sys. Up. Time OBJECT-TYPE SYNTAX Time. Ticks ACCESS read-only STATUS mandatory

MIBs - Exemplo sys. Up. Time OBJECT-TYPE SYNTAX Time. Ticks ACCESS read-only STATUS mandatory DESCRIPTION "The time (in hundredths of a second) since the network management portion of the system was last initialized. " : : = { system 3 } re-

MIBs - Exemplo sys. Contact OBJECT-TYPE SYNTAX Display. String (SIZE (0. . 255)) ACCESS

MIBs - Exemplo sys. Contact OBJECT-TYPE SYNTAX Display. String (SIZE (0. . 255)) ACCESS read-write STATUS mandatory DESCRIPTION "The textual identification of the contact person for this managed node, together with information on how to contact this person. " : : = { system 4 }

MIBs - Exemplo ip. Addr. Table OBJECT-TYPE SYNTAX SEQUENCE OF Ip. Addr. Entry ACCESS

MIBs - Exemplo ip. Addr. Table OBJECT-TYPE SYNTAX SEQUENCE OF Ip. Addr. Entry ACCESS not-accessible STATUS mandatory DESCRIPTION "The table of addressing information relevant to this entity's IP addresses. " : : = { ip 20 }

MIBs - Exemplo if. Descr OBJECT-TYPE SYNTAX Display. String (SIZE (0. . 255)) ACCESS

MIBs - Exemplo if. Descr OBJECT-TYPE SYNTAX Display. String (SIZE (0. . 255)) ACCESS read-only STATUS mandatory DESCRIPTION "A textual string containing information about the interface. This string should include the name of the manufacturer, the product name and the version of the hardware interface. " : : = { if. Entry 2 }

MIBs - Exemplo if. Speed OBJECT-TYPE SYNTAX Gauge ACCESS read-only STATUS mandatory DESCRIPTION "An

MIBs - Exemplo if. Speed OBJECT-TYPE SYNTAX Gauge ACCESS read-only STATUS mandatory DESCRIPTION "An estimate of the interface's current bandwidth in bits per second. For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. " : : = { if. Entry 5 }

MIBs - Exemplo if. Phys. Address OBJECT-TYPE SYNTAX Phys. Address ACCESS read-only STATUS mandatory

MIBs - Exemplo if. Phys. Address OBJECT-TYPE SYNTAX Phys. Address ACCESS read-only STATUS mandatory DESCRIPTION "The interface's address at the protocol layer immediately `below' the network layer in the protocol stack. For interfaces which do not have such an address (e. g. , a serial line), this object should contain an octet string of zero length. " : : = { if. Entry 6 }

MIBs - Exemplo if. In. Errors OBJECT-TYPE SYNTAX Counter ACCESS read-only STATUS mandatory DESCRIPTION

MIBs - Exemplo if. In. Errors OBJECT-TYPE SYNTAX Counter ACCESS read-only STATUS mandatory DESCRIPTION "The number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. " : : = { if. Entry 14 }

Exemplo de Acesso a Tabelas Tabela de Endereços IP de uma Máquina: ip. Addr.

Exemplo de Acesso a Tabelas Tabela de Endereços IP de uma Máquina: ip. Addr. Table: : = SEQUENCE of Ip. Addr. Entry : : = SEQUENCE { ip. Ad. Ent. Addr Ip. Address, ip. Ad. Ent. If. Index INTEGER, ip. Ad. Ent. Netmask Ip. Address, ip. Ad. Ent. Bcast. Addr Ip. Address, ip. Ad. Ent. Reasm. Max. Size INTEGER (0. . 65535) } ip. Addr. Table = 1. 3. 6. 1. 2. 1. 4. 20 ip. Addr. Entry = {ip. Addr. Table 1} ip. Ad. Ent. Bcast. Addr = {ip. Addr. Entry 4} Para acessar o endereço de broadcast da interface com endereço IP 128. 10. 2. 3, usa-se o seguinte identificador de objeto na mensagem SNMP: 1. 3. 6. 1. 2. 1. 4. 20. 1. 4. 128. 10. 2. 3

SNMP - Base de Informação – Tcp. Conn. Entry : : = SEQUENCE {

SNMP - Base de Informação – Tcp. Conn. Entry : : = SEQUENCE { tcp. Conn. State INTEGER, tcp. Conn. Local. Address Ip. Address, tcp. Conn. Local. Port INTEGER (0. . 65535), tcp. Conn. Rem. Address Ip. Address, tcp. Conn. Rem. Port INTEGER (0. . 65535)}

MIBs - Exemplo tcp. Conn. Table OBJECT-TYPE SYNTAX SEQUENCE OF Tcp. Conn. Entry ACCESS

MIBs - Exemplo tcp. Conn. Table OBJECT-TYPE SYNTAX SEQUENCE OF Tcp. Conn. Entry ACCESS not-accessible STATUS mandatory DESCRIPTION “Contém informações sobre conexões TCP” : : = { tcp 13 }

MIBs - Exemplo tcp. Conn. Entry OBJECT-TYPE SYNTAX Tcp. Conn. Entry ACCESS not-accessible STATUS

MIBs - Exemplo tcp. Conn. Entry OBJECT-TYPE SYNTAX Tcp. Conn. Entry ACCESS not-accessible STATUS mandatory DESCRIPTION “Contém informações sobre uma conexão TCP” INDEX {tcp. Conn. Local. Address, tcp. Conn. Local. Port, tcp. Conn. Rem. Address, tcp. Conn. Rem. Port} : : = {tcp. Conn. Table 1}

Enterprise MIBs • Fabricantes de equipamentos e sistemas podem acrescentar informações de seu interesse

Enterprise MIBs • Fabricantes de equipamentos e sistemas podem acrescentar informações de seu interesse específico embaxio do ramo “private” da árvore de nomeação iso (1) org (3) dod (6) internet (1) private (4) enterprises (1) ibm (2) acc (5) cisco (9) hp(11) 3 com(43) at&t(74). . .

MIBs - Exemplo cisco. Dot 11 Association. MIB MODULE-IDENTITY LAST-UPDATED "200701050000 Z" ORGANIZATION "Cisco

MIBs - Exemplo cisco. Dot 11 Association. MIB MODULE-IDENTITY LAST-UPDATED "200701050000 Z" ORGANIZATION "Cisco Systems Inc. " CONTACT-INFO " Cisco Systems Customer Service Postal: 170 West Tasman Drive, San Jose CA 95134 -1706. USA Tel: +1 800 553 -NETS E-mail: cs-dot 11@cisco. com"

MIBs - Exemplo c. Dot 11 Active. Devices. Entry OBJECT-TYPE SYNTAX CDot 11 Active.

MIBs - Exemplo c. Dot 11 Active. Devices. Entry OBJECT-TYPE SYNTAX CDot 11 Active. Devices. Entry MAX-ACCESS not-accessible STATUS current DESCRIPTION "An entry represents a currently active device associated with this device. These active devices include: wireless clients, repeaters, and bridges. " INDEX { if. Index } : : = { c. Dot 11 Active. Devices. Table 1 } CDot 11 Active. Devices. Entry : : = SEQUENCE { c. Dot 11 Active. Wireless. Clients Gauge 32, c. Dot 11 Active. Bridges Gauge 32, c. Dot 11 Active. Repeaters Gauge 32 }

MIBs - Exemplo c. Dot 11 Active. Wireless. Clients OBJECT-TYPE SYNTAX Gauge 32 (0.

MIBs - Exemplo c. Dot 11 Active. Wireless. Clients OBJECT-TYPE SYNTAX Gauge 32 (0. . 2007) UNITS "Device" MAX-ACCESS read-only STATUS current DESCRIPTION "This is the number of wireless clients currently associating with this device on this interface. " : : = { c. Dot 11 Active. Devices. Entry 1 }

MIBs - Exemplo assoc. Address OBJECT-TYPE SYNTAX Mac. Address MAX-ACCESS read-only STATUS current DESCRIPTION

MIBs - Exemplo assoc. Address OBJECT-TYPE SYNTAX Mac. Address MAX-ACCESS read-only STATUS current DESCRIPTION "MAC address of a Client associated with the Access Point. If the association is pending (that is, the Client is scanning, authenticating or associating), assoc. Address contains the MAC address of that Client with the group bit set to indicate that the Access Point is aware of the presence of that Client. The other objects of the entry will be updated based on the information extracted from the received Probe Requests. " : : = { assoc. Entry 2 }

MIBs - Exemplo Node definitions -- 1. 3. 6. 1. 4. 1. 674 dell

MIBs - Exemplo Node definitions -- 1. 3. 6. 1. 4. 1. 674 dell OBJECT IDENTIFIER : : = { enterprises 674 } -- 1. 3. 6. 1. 4. 1. 674. 10893 storage OBJECT IDENTIFIER : : = { dell 10893 } -- 1. 3. 6. 1. 4. 1. 674. 10893. 1 software OBJECT IDENTIFIER : : = { storage 1 }

MIBs - Exemplo Object identifiers-- a 3 Com OBJECT IDENTIFIER : : = {

MIBs - Exemplo Object identifiers-- a 3 Com OBJECT IDENTIFIER : : = { enterprises 43 }switching. Systems-mib OBJECT IDENTIFIER : : = { a 3 Com 29 } switching. Systems. Mib. Groups OBJECT IDENTIFIER : : = { switching. Systems-mib 4 }switching. Systems. Fddi. Mib. Groups OBJECT IDENTIFIER : : = { switching. Systems-mib 10 }