Bonjour !
Je voudrais faire un check_graph_traffic sur une interface spécifique. Je lance donc la commande pour avoir les numéros d'interface :
Mais j'ai remarqué que si je faisais un check sur l'interface 0 (qui n'existe pas a priori), j'avais un quand même une réponse :
Le 0 correspond à l'interface 2 apparement, car quand je fais avec 2 j'ai la même chose oO.
Et quand je fais :
Je me retourne donc vers le MIB, puisque cela semble être la seule solution ?
Je fais un snmpwalk sur mon routeur :
J'aimerais avoir l'OID de l'interface : ATM0 et ATMO-adsl ainsi que la façon que je dois l'entrer dans la commande ./check_graph_traffic svp.
Merci d'avance pour vos réponses !
Je voudrais faire un check_graph_traffic sur une interface spécifique. Je lance donc la commande pour avoir les numéros d'interface :
./check_graph_traffic.pl -H 192.168.1.254 -C azqswx -s
Interface 1 :: FastEthernet0
Interface 2 :: FastEthernet1
Interface 3 :: FastEthernet2
Interface 4 :: FastEthernet3
Interface 5 :: Dot11Radio0
Interface 6 :: ATM0
Interface 7 :: Null0
Interface 8 :: ATM0-atm layer
Interface 9 :: ATM0.0-atm subif
Interface 10 :: ATM0-aal5 layer
Interface 11 :: ATM0.0-aal5 layer
Interface 12 :: ATM0-adsl
Interface 13 :: Vlan1
Interface 14 :: ATM0.1-atm subif
Interface 15 :: ATM0.1-aal5 layer
Interface 16 :: Dialer0
Interface 17 :: BVI1
Interface 18 :: Virtual-Dot11Radio0
Interface 19 :: Virtual-Access1
Interface 1 :: FastEthernet0
Interface 2 :: FastEthernet1
Interface 3 :: FastEthernet2
Interface 4 :: FastEthernet3
Interface 5 :: Dot11Radio0
Interface 6 :: ATM0
Interface 7 :: Null0
Interface 8 :: ATM0-atm layer
Interface 9 :: ATM0.0-atm subif
Interface 10 :: ATM0-aal5 layer
Interface 11 :: ATM0.0-aal5 layer
Interface 12 :: ATM0-adsl
Interface 13 :: Vlan1
Interface 14 :: ATM0.1-atm subif
Interface 15 :: ATM0.1-aal5 layer
Interface 16 :: Dialer0
Interface 17 :: BVI1
Interface 18 :: Virtual-Dot11Radio0
Interface 19 :: Virtual-Access1
./check_graph_traffic.pl -H 192.168.1.254 -C azqswx -i 0
Traffic In : 22.96 kb/s (0.0 %), Out : 28.44 kb/s (0.0 %) - Total RX Bits In : 1.14 GB, Out : 1.81 Gb|traffic_in=22959,3Bits/s traffic_out=28443,9Bits/s
Traffic In : 22.96 kb/s (0.0 %), Out : 28.44 kb/s (0.0 %) - Total RX Bits In : 1.14 GB, Out : 1.81 Gb|traffic_in=22959,3Bits/s traffic_out=28443,9Bits/s
Et quand je fais :
./check_graph_traffic.pl -H 192.168.1.254 -C azqswx -v 1 -i 12
ERROR: IN Bits : Received noSuchName(2) error-status at error-index 1.
ERROR: IN Bits : Received noSuchName(2) error-status at error-index 1.
Je fais un snmpwalk sur mon routeur :
Code:
... IF-MIB::ifIndex.1 = INTEGER: 1 IF-MIB::ifIndex.2 = INTEGER: 2 IF-MIB::ifIndex.3 = INTEGER: 3 IF-MIB::ifIndex.4 = INTEGER: 4 IF-MIB::ifIndex.5 = INTEGER: 5 IF-MIB::ifIndex.6 = INTEGER: 6 IF-MIB::ifIndex.7 = INTEGER: 7 IF-MIB::ifIndex.8 = INTEGER: 8 IF-MIB::ifIndex.9 = INTEGER: 9 IF-MIB::ifIndex.10 = INTEGER: 10 IF-MIB::ifIndex.11 = INTEGER: 11 IF-MIB::ifIndex.12 = INTEGER: 12 IF-MIB::ifIndex.13 = INTEGER: 13 IF-MIB::ifIndex.14 = INTEGER: 14 IF-MIB::ifIndex.15 = INTEGER: 15 IF-MIB::ifIndex.16 = INTEGER: 16 IF-MIB::ifIndex.17 = INTEGER: 17 IF-MIB::ifIndex.18 = INTEGER: 18 IF-MIB::ifIndex.19 = INTEGER: 19 IF-MIB::ifDescr.1 = STRING: FastEthernet0 IF-MIB::ifDescr.2 = STRING: FastEthernet1 IF-MIB::ifDescr.3 = STRING: FastEthernet2 IF-MIB::ifDescr.4 = STRING: FastEthernet3 IF-MIB::ifDescr.5 = STRING: Dot11Radio0 IF-MIB::ifDescr.6 = STRING: ATM0 IF-MIB::ifDescr.7 = STRING: Null0 IF-MIB::ifDescr.8 = STRING: ATM0-atm layer IF-MIB::ifDescr.9 = STRING: ATM0.0-atm subif IF-MIB::ifDescr.10 = STRING: ATM0-aal5 layer IF-MIB::ifDescr.11 = STRING: ATM0.0-aal5 layer IF-MIB::ifDescr.12 = STRING: ATM0-adsl IF-MIB::ifDescr.13 = STRING: Vlan1 IF-MIB::ifDescr.14 = STRING: ATM0.1-atm subif IF-MIB::ifDescr.15 = STRING: ATM0.1-aal5 layer IF-MIB::ifDescr.16 = STRING: Dialer0 IF-MIB::ifDescr.17 = STRING: BVI1 IF-MIB::ifDescr.18 = STRING: Virtual-Dot11Radio0 IF-MIB::ifDescr.19 = STRING: Virtual-Access1 IF-MIB::ifType.1 = INTEGER: ethernetCsmacd(6) IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6) IF-MIB::ifType.3 = INTEGER: ethernetCsmacd(6) IF-MIB::ifType.4 = INTEGER: ethernetCsmacd(6) IF-MIB::ifType.5 = INTEGER: ieee80211(71) IF-MIB::ifType.6 = INTEGER: adsl(94) IF-MIB::ifType.7 = INTEGER: other(1) IF-MIB::ifType.8 = INTEGER: atm(37) IF-MIB::ifType.9 = INTEGER: atmSubInterface(134) IF-MIB::ifType.10 = INTEGER: aal5(49) IF-MIB::ifType.11 = INTEGER: aal5(49) IF-MIB::ifType.12 = INTEGER: adsl(94) IF-MIB::ifType.13 = INTEGER: ethernetCsmacd(6) IF-MIB::ifType.14 = INTEGER: atmSubInterface(134) IF-MIB::ifType.15 = INTEGER: aal5(49) IF-MIB::ifType.16 = INTEGER: ppp(23) IF-MIB::ifType.17 = INTEGER: ethernetCsmacd(6) IF-MIB::ifType.18 = INTEGER: ieee80211(71) IF-MIB::ifType.19 = INTEGER: ppp(23) ... SNMPv2-SMI::mib-2.47.1.1.1.1.2.2 = STRING: "Fast Ethernet" SNMPv2-SMI::mib-2.47.1.1.1.1.2.3 = STRING: "Fast Ethernet" SNMPv2-SMI::mib-2.47.1.1.1.1.2.4 = STRING: "Fast Ethernet" SNMPv2-SMI::mib-2.47.1.1.1.1.2.5 = STRING: "Fast Ethernet" SNMPv2-SMI::mib-2.47.1.1.1.1.2.6 = STRING: "Radio ATHEROS AR5213:" SNMPv2-SMI::mib-2.47.1.1.1.1.2.7 = STRING: "MPC ATMSAR (with Alcatel ADSL Module)" SNMPv2-SMI::mib-2.47.1.1.1.1.2.8 = STRING: "ATM0-adsl" SNMPv2-SMI::mib-2.47.1.1.1.1.3.1 = OID: SNMPv2-SMI::enterprises.9.12.3.1.3.432 SNMPv2-SMI::mib-2.47.1.1.1.1.3.2 = OID: SNMPv2-SMI::enterprises.9.12.3.1.10.69 SNMPv2-SMI::mib-2.47.1.1.1.1.3.3 = OID: SNMPv2-SMI::enterprises.9.12.3.1.10.69 SNMPv2-SMI::mib-2.47.1.1.1.1.3.4 = OID: SNMPv2-SMI::enterprises.9.12.3.1.10.69 SNMPv2-SMI::mib-2.47.1.1.1.1.3.5 = OID: SNMPv2-SMI::enterprises.9.12.3.1.10.69 SNMPv2-SMI::mib-2.47.1.1.1.1.3.6 = OID: SNMPv2-SMI::enterprises.9.12.3.1.10.1 SNMPv2-SMI::mib-2.47.1.1.1.1.3.7 = OID: SNMPv2-SMI::enterprises.9.12.3.1.10.157 SNMPv2-SMI::mib-2.47.1.1.1.1.3.8 = OID: SNMPv2-SMI::enterprises.9.12.3.1.10.1 SNMPv2-SMI::mib-2.47.1.1.1.1.4.1 = INTEGER: 0 SNMPv2-SMI::mib-2.47.1.1.1.1.4.2 = INTEGER: 1 SNMPv2-SMI::mib-2.47.1.1.1.1.4.3 = INTEGER: 1 SNMPv2-SMI::mib-2.47.1.1.1.1.4.4 = INTEGER: 1 SNMPv2-SMI::mib-2.47.1.1.1.1.4.5 = INTEGER: 1 SNMPv2-SMI::mib-2.47.1.1.1.1.4.6 = INTEGER: 1 SNMPv2-SMI::mib-2.47.1.1.1.1.4.7 = INTEGER: 1 SNMPv2-SMI::mib-2.47.1.1.1.1.4.8 = INTEGER: 1 SNMPv2-SMI::mib-2.47.1.1.1.1.5.1 = INTEGER: 9 SNMPv2-SMI::mib-2.47.1.1.1.1.5.2 = INTEGER: 10 SNMPv2-SMI::mib-2.47.1.1.1.1.5.3 = INTEGER: 10 SNMPv2-SMI::mib-2.47.1.1.1.1.5.4 = INTEGER: 10 SNMPv2-SMI::mib-2.47.1.1.1.1.5.5 = INTEGER: 10 SNMPv2-SMI::mib-2.47.1.1.1.1.5.6 = INTEGER: 10 SNMPv2-SMI::mib-2.47.1.1.1.1.5.7 = INTEGER: 10 SNMPv2-SMI::mib-2.47.1.1.1.1.5.8 = INTEGER: 10 SNMPv2-SMI::mib-2.47.1.1.1.1.6.1 = INTEGER: -1 SNMPv2-SMI::mib-2.47.1.1.1.1.6.2 = INTEGER: 0 SNMPv2-SMI::mib-2.47.1.1.1.1.6.3 = INTEGER: 1 SNMPv2-SMI::mib-2.47.1.1.1.1.6.4 = INTEGER: 2 SNMPv2-SMI::mib-2.47.1.1.1.1.6.5 = INTEGER: 3 SNMPv2-SMI::mib-2.47.1.1.1.1.6.6 = INTEGER: 4 SNMPv2-SMI::mib-2.47.1.1.1.1.6.7 = INTEGER: 5 SNMPv2-SMI::mib-2.47.1.1.1.1.6.8 = INTEGER: 12 SNMPv2-SMI::mib-2.47.1.1.1.1.7.1 = STRING: "877W" SNMPv2-SMI::mib-2.47.1.1.1.1.7.2 = STRING: "FastEthernet0" SNMPv2-SMI::mib-2.47.1.1.1.1.7.3 = STRING: "FastEthernet1" SNMPv2-SMI::mib-2.47.1.1.1.1.7.4 = STRING: "FastEthernet2" SNMPv2-SMI::mib-2.47.1.1.1.1.7.5 = STRING: "FastEthernet3" SNMPv2-SMI::mib-2.47.1.1.1.1.7.6 = STRING: "Dot11Radio0" SNMPv2-SMI::mib-2.47.1.1.1.1.7.7 = STRING: "ATM0" SNMPv2-SMI::mib-2.47.1.1.1.1.7.8 = STRING: "AT0-adsl" SNMPv2-SMI::mib-2.47.1.1.1.1.8.1 = STRING: "V02 "
Merci d'avance pour vos réponses !

Comment