Use ifName instead of IfDescr
Hi All
Im trying to find out if its possible to use IfName instead of ifDescr?
TP-Link TL-SG3109 switch
For some DUMB reason, all the ifDescr are being discovered as ‘Ethernet Interface’
ifDescr.1 = Ethernet Interface ifDescr.2 = Ethernet Interface ifDescr.3 = Ethernet Interface ifDescr.4 = Ethernet Interface ifDescr.5 = Ethernet Interface ifDescr.6 = Ethernet Interface ifDescr.7 = Ethernet Interface ifDescr.8 = Ethernet Interface ifDescr.9 = Ethernet Interface
So when you look down the list on Observium, I have 9 Ethernet Interface (not helpful)
I can put descriptions on each port and they get discovered by observium and show underneath the Ethernet Interface (but still not very helpful)
I have noticed however tho in the debug output of the poller, ifName are being found as the port numbers as listed on the web interface of the switch!
ifName.1 = g1 ifName.2 = g2 ifName.3 = g3 ifName.4 = g4 ifName.5 = g5 ifName.6 = g6 ifName.7 = g7 ifName.8 = g8 ifName.9 = g9
So is it possible to switch them round?
Attached is the debug output from the switch if its helpful to anyone :)
Regards
Simon
We do this on a per-os or sometimes per-model basis.
Mike probably already knows if we do per-model for tplink stuff, and where this needs to be changed.
:D
Adam.
Sent from BlueMail
On 10 Oct 2018, 13:34, at 13:34, Simon Mousey Smith via observium observium@observium.org wrote:
Hi All
Im trying to find out if its possible to use IfName instead of ifDescr?
TP-Link TL-SG3109 switch
For some DUMB reason, all the ifDescr are being discovered as ‘Ethernet Interface’
ifDescr.1 = Ethernet Interface
ifDescr.2 = Ethernet Interface ifDescr.3 = Ethernet Interface ifDescr.4 = Ethernet Interface ifDescr.5 = Ethernet Interface ifDescr.6 = Ethernet Interface ifDescr.7 = Ethernet Interface ifDescr.8 = Ethernet Interface ifDescr.9 = Ethernet Interface
So when you look down the list on Observium, I have 9 Ethernet Interface (not helpful)
I can put descriptions on each port and they get discovered by observium and show underneath the Ethernet Interface (but still not very helpful)
I have noticed however tho in the debug output of the poller, ifName are being found as the port numbers as listed on the web interface of the switch!
ifName.1 = g1 ifName.2 = g2 ifName.3 = g3 ifName.4 = g4 ifName.5 = g5 ifName.6 = g6 ifName.7 = g7 ifName.8 = g8 ifName.9 = g9
So is it possible to switch them round?
Attached is the debug output from the switch if its helpful to anyone :)
Regards
Simon
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
In current Pro ifName already used for TP-Link switches (instead ifDescr).
Simon Mousey Smith via observium wrote on 10.10.18 15:34:
Hi All
Im trying to find out if its possible to use IfName instead of ifDescr?
TP-Link TL-SG3109 switch
For some DUMB reason, all the ifDescr are being discovered as ‘Ethernet Interface’
ifDescr.1 = Ethernet Interface ifDescr.2 = Ethernet Interface ifDescr.3 = Ethernet Interface ifDescr.4 = Ethernet Interface ifDescr.5 = Ethernet Interface ifDescr.6 = Ethernet Interface ifDescr.7 = Ethernet Interface ifDescr.8 = Ethernet Interface ifDescr.9 = Ethernet Interface
So when you look down the list on Observium, I have 9 Ethernet Interface (not helpful)
I can put descriptions on each port and they get discovered by observium and show underneath the Ethernet Interface (but still not very helpful)
I have noticed however tho in the debug output of the poller, ifName are being found as the port numbers as listed on the web interface of the switch!
ifName.1 = g1 ifName.2 = g2 ifName.3 = g3 ifName.4 = g4 ifName.5 = g5 ifName.6 = g6 ifName.7 = g7 ifName.8 = g8 ifName.9 = g9
So is it possible to switch them round?
Attached is the debug output from the switch if its helpful to anyone :)
Regards
Simon
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
Told you :D
Sent from BlueMail
On 10 Oct 2018, 13:49, at 13:49, Mike Stupalov via observium observium@observium.org wrote:
In current Pro ifName already used for TP-Link switches (instead ifDescr).
Simon Mousey Smith via observium wrote on 10.10.18 15:34:
Hi All
Im trying to find out if its possible to use IfName instead of
ifDescr?
TP-Link TL-SG3109 switch
For some DUMB reason, all the ifDescr are being discovered as
‘Ethernet Interface’
ifDescr.1 = Ethernet Interface ifDescr.2 = Ethernet Interface ifDescr.3 = Ethernet Interface ifDescr.4 = Ethernet Interface ifDescr.5 = Ethernet Interface ifDescr.6 = Ethernet Interface ifDescr.7 = Ethernet Interface ifDescr.8 = Ethernet Interface ifDescr.9 = Ethernet Interface
So when you look down the list on Observium, I have 9 Ethernet
Interface (not helpful)
I can put descriptions on each port and they get discovered by
observium and show underneath the Ethernet Interface (but still not very helpful)
I have noticed however tho in the debug output of the poller, ifName
are being found as the port numbers as listed on the web interface of the switch!
ifName.1 = g1 ifName.2 = g2 ifName.3 = g3 ifName.4 = g4 ifName.5 = g5 ifName.6 = g6 ifName.7 = g7 ifName.8 = g8 ifName.9 = g9
So is it possible to switch them round?
Attached is the debug output from the switch if its helpful to anyone
:)
Regards
Simon
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
-- Mike Stupalov Observium Limited, http://observium.org
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
Ok then im confused? Because its still showing ‘ifDescr’ instead of the ‘ifName’ ?
The only thing I have noticed is the IfName is in the IfXEntry output and the ifDescr is in the ifEntry output
Does that make any difference?
Im currently on Observium 18.10.9452 (rolling)
Regards
Simon
On 10 Oct 2018, at 13:49, Mike Stupalov via observium observium@observium.org wrote:
In current Pro ifName already used for TP-Link switches (instead ifDescr).
Simon Mousey Smith via observium wrote on 10.10.18 15:34:
Hi All
Im trying to find out if its possible to use IfName instead of ifDescr?
TP-Link TL-SG3109 switch
For some DUMB reason, all the ifDescr are being discovered as ‘Ethernet Interface’
ifDescr.1 = Ethernet Interface ifDescr.2 = Ethernet Interface ifDescr.3 = Ethernet Interface ifDescr.4 = Ethernet Interface ifDescr.5 = Ethernet Interface ifDescr.6 = Ethernet Interface ifDescr.7 = Ethernet Interface ifDescr.8 = Ethernet Interface ifDescr.9 = Ethernet Interface
So when you look down the list on Observium, I have 9 Ethernet Interface (not helpful)
I can put descriptions on each port and they get discovered by observium and show underneath the Ethernet Interface (but still not very helpful)
I have noticed however tho in the debug output of the poller, ifName are being found as the port numbers as listed on the web interface of the switch!
ifName.1 = g1 ifName.2 = g2 ifName.3 = g3 ifName.4 = g4 ifName.5 = g5 ifName.6 = g6 ifName.7 = g7 ifName.8 = g8 ifName.9 = g9
So is it possible to switch them round?
Attached is the debug output from the switch if its helpful to anyone :)
Regards
Simon
observium mailing list observium@observium.org mailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
-- Mike Stupalov Observium Limited, http://observium.org http://observium.org/ _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
ok.. now should be in r9453 ;)
Simon Mousey Smith via observium wrote on 10.10.18 15:52:
Ok then im confused? Because its still showing ‘ifDescr’ instead of the ‘ifName’ ?
The only thing I have noticed is the IfName is in the IfXEntry output and the ifDescr is in the ifEntry output
Does that make any difference?
Im currently on Observium 18.10.9452 (rolling)
Regards
Simon
On 10 Oct 2018, at 13:49, Mike Stupalov via observium <observium@observium.org mailto:observium@observium.org> wrote:
In current Pro ifName already used for TP-Link switches (instead ifDescr).
Simon Mousey Smith via observium wrote on 10.10.18 15:34:
Hi All
Im trying to find out if its possible to use IfName instead of ifDescr?
TP-Link TL-SG3109 switch
For some DUMB reason, all the ifDescr are being discovered as ‘Ethernet Interface’
ifDescr.1 = Ethernet Interface ifDescr.2 = Ethernet Interface ifDescr.3 = Ethernet Interface ifDescr.4 = Ethernet Interface ifDescr.5 = Ethernet Interface ifDescr.6 = Ethernet Interface ifDescr.7 = Ethernet Interface ifDescr.8 = Ethernet Interface ifDescr.9 = Ethernet Interface
So when you look down the list on Observium, I have 9 Ethernet Interface (not helpful)
I can put descriptions on each port and they get discovered by observium and show underneath the Ethernet Interface (but still not very helpful)
I have noticed however tho in the debug output of the poller, ifName are being found as the port numbers as listed on the web interface of the switch!
ifName.1 = g1 ifName.2 = g2 ifName.3 = g3 ifName.4 = g4 ifName.5 = g5 ifName.6 = g6 ifName.7 = g7 ifName.8 = g8 ifName.9 = g9
So is it possible to switch them round?
Attached is the debug output from the switch if its helpful to anyone :)
Regards
Simon
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
-- Mike Stupalov Observium Limited, http://observium.org _______________________________________________ observium mailing list observium@observium.org mailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
Legend mike!
Thank you!
Just what I needed :)
Now to work out WHY in the interfaces panel is it showing my vlans as interfaces???
Regards
Simon
On 10 Oct 2018, at 14:02, Mike Stupalov via observium observium@observium.org wrote:
ok.. now should be in r9453 ;)
Simon Mousey Smith via observium wrote on 10.10.18 15:52:
Ok then im confused? Because its still showing ‘ifDescr’ instead of the ‘ifName’ ?
The only thing I have noticed is the IfName is in the IfXEntry output and the ifDescr is in the ifEntry output
Does that make any difference?
Im currently on Observium 18.10.9452 (rolling)
Regards
Simon
On 10 Oct 2018, at 13:49, Mike Stupalov via observium <observium@observium.org mailto:observium@observium.org> wrote:
In current Pro ifName already used for TP-Link switches (instead ifDescr).
Simon Mousey Smith via observium wrote on 10.10.18 15:34:
Hi All
Im trying to find out if its possible to use IfName instead of ifDescr?
TP-Link TL-SG3109 switch
For some DUMB reason, all the ifDescr are being discovered as ‘Ethernet Interface’
ifDescr.1 = Ethernet Interface ifDescr.2 = Ethernet Interface ifDescr.3 = Ethernet Interface ifDescr.4 = Ethernet Interface ifDescr.5 = Ethernet Interface ifDescr.6 = Ethernet Interface ifDescr.7 = Ethernet Interface ifDescr.8 = Ethernet Interface ifDescr.9 = Ethernet Interface
So when you look down the list on Observium, I have 9 Ethernet Interface (not helpful)
I can put descriptions on each port and they get discovered by observium and show underneath the Ethernet Interface (but still not very helpful)
I have noticed however tho in the debug output of the poller, ifName are being found as the port numbers as listed on the web interface of the switch!
ifName.1 = g1 ifName.2 = g2 ifName.3 = g3 ifName.4 = g4 ifName.5 = g5 ifName.6 = g6 ifName.7 = g7 ifName.8 = g8 ifName.9 = g9
So is it possible to switch them round?
Attached is the debug output from the switch if its helpful to anyone :)
Regards
Simon
observium mailing list observium@observium.org mailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
-- Mike Stupalov Observium Limited, http://observium.org http://observium.org/ _______________________________________________ observium mailing list observium@observium.org mailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org mailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
-- Mike Stupalov Observium Limited, http://observium.org http://observium.org/ _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
Because your device is populating ifTable with entries for the vlans.
Many devices do this, because technically there are layer 2 virtual interfaces in the vlan.
Adam.
Sent from BlueMail
On 10 Oct 2018, 14:08, at 14:08, Simon Mousey Smith via observium observium@observium.org wrote:
Legend mike!
Thank you!
Just what I needed :)
Now to work out WHY in the interfaces panel is it showing my vlans as interfaces???
Regards
Simon
On 10 Oct 2018, at 14:02, Mike Stupalov via observium
observium@observium.org wrote:
ok.. now should be in r9453 ;)
Simon Mousey Smith via observium wrote on 10.10.18 15:52:
Ok then im confused? Because its still showing ‘ifDescr’ instead of
the ‘ifName’ ?
The only thing I have noticed is the IfName is in the IfXEntry
output and the ifDescr is in the ifEntry output
Does that make any difference?
Im currently on Observium 18.10.9452 (rolling)
Regards
Simon
On 10 Oct 2018, at 13:49, Mike Stupalov via observium
<observium@observium.org mailto:observium@observium.org> wrote:
In current Pro ifName already used for TP-Link switches (instead
ifDescr).
Simon Mousey Smith via observium wrote on 10.10.18 15:34:
Hi All
Im trying to find out if its possible to use IfName instead of
ifDescr?
TP-Link TL-SG3109 switch
For some DUMB reason, all the ifDescr are being discovered as
‘Ethernet Interface’
ifDescr.1 = Ethernet Interface
ifDescr.2 = Ethernet Interface ifDescr.3 = Ethernet Interface ifDescr.4 = Ethernet Interface ifDescr.5 = Ethernet Interface ifDescr.6 = Ethernet Interface ifDescr.7 = Ethernet Interface ifDescr.8 = Ethernet Interface ifDescr.9 = Ethernet Interface
So when you look down the list on Observium, I have 9 Ethernet
Interface (not helpful)
I can put descriptions on each port and they get discovered by
observium and show underneath the Ethernet Interface (but still not very helpful)
I have noticed however tho in the debug output of the poller,
ifName are being found as the port numbers as listed on the web interface of the switch!
ifName.1 = g1 ifName.2 = g2 ifName.3 = g3 ifName.4 = g4 ifName.5 = g5 ifName.6 = g6 ifName.7 = g7 ifName.8 = g8 ifName.9 = g9
So is it possible to switch them round?
Attached is the debug output from the switch if its helpful to
anyone :)
Regards
Simon
observium mailing list observium@observium.org mailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
-- Mike Stupalov Observium Limited, http://observium.org http://observium.org/ _______________________________________________ observium mailing list observium@observium.org mailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org mailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
-- Mike Stupalov Observium Limited, http://observium.org http://observium.org/ _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
Ok I have just noticed the isn’t any traffic being graphed for the ports?
Even tho the array is showing data!?
array( [1] => array( [ifIndex] => string(1) "1" [ifDescr] => string(18) "Ethernet Interface" [ifType] => string(14) "ethernetCsmacd" [ifMtu] => string(4) "1500" [ifSpeed] => string(10) "1000000000" [ifPhysAddress] => string(17) "d8:5d:4c:86:fd:37" [ifAdminStatus] => string(2) "up" [ifOperStatus] => string(2) "up" [ifLastChange] => string(12) "0:0:00:15.46" [ifInOctets] => string(1) "0" [ifInUcastPkts] => string(8) "25071988" [ifInNUcastPkts] => string(1) "0" [ifInErrors] => string(1) "0" [ifInUnknownProtos] => string(1) "0" [ifOutOctets] => string(9) "190296687" [ifOutUcastPkts] => string(1) "0" [ifOutNUcastPkts] => string(7) "1660279" [ifOutDiscards] => string(1) "0" [ifSpecific] => string(11) "zeroDotZero" [ifName] => string(2) "g1" [ifInMulticastPkts] => string(1) "0" [ifInBroadcastPkts] => string(7) "5079424" [ifOutMulticastPkts] => string(1) "0" [ifOutBroadcastPkts] => string(6) "423077" [ifHCInOctets] => string(1) "0" [ifHCInMulticastPkts] => string(1) "0" [ifHCInBroadcastPkts] => string(1) "0" [ifHCOutOctets] => string(1) "0" [ifHCOutMulticastPkts] => string(1) "0" [ifHCOutBroadcastPkts] => string(1) "0" [ifLinkUpDownTrapEnable] => string(7) "enabled" [ifHighSpeed] => string(1) "0" [ifPromiscuousMode] => string(4) "true" [ifConnectorPresent] => string(4) "true" [ifAlias] => string(6) "MainIn" [ifCounterDiscontinuityTime] => string(12) "0:0:00:00.00" [dot3StatsDuplexStatus] => string(10) "fullDuplex" [ifVlan] => string(1) "1" [ifTrunk] => string(0) "" )
Attached is a new debug output
Please help Adam/Mike
Regards
Simon
On 10 Oct 2018, at 14:02, Mike Stupalov via observium observium@observium.org wrote:
ok.. now should be in r9453 ;)
Simon Mousey Smith via observium wrote on 10.10.18 15:52:
Ok then im confused? Because its still showing ‘ifDescr’ instead of the ‘ifName’ ?
The only thing I have noticed is the IfName is in the IfXEntry output and the ifDescr is in the ifEntry output
Does that make any difference?
Im currently on Observium 18.10.9452 (rolling)
Regards
Simon
On 10 Oct 2018, at 13:49, Mike Stupalov via observium <observium@observium.org mailto:observium@observium.org> wrote:
In current Pro ifName already used for TP-Link switches (instead ifDescr).
Simon Mousey Smith via observium wrote on 10.10.18 15:34:
Hi All
Im trying to find out if its possible to use IfName instead of ifDescr?
TP-Link TL-SG3109 switch
For some DUMB reason, all the ifDescr are being discovered as ‘Ethernet Interface’
ifDescr.1 = Ethernet Interface ifDescr.2 = Ethernet Interface ifDescr.3 = Ethernet Interface ifDescr.4 = Ethernet Interface ifDescr.5 = Ethernet Interface ifDescr.6 = Ethernet Interface ifDescr.7 = Ethernet Interface ifDescr.8 = Ethernet Interface ifDescr.9 = Ethernet Interface
So when you look down the list on Observium, I have 9 Ethernet Interface (not helpful)
I can put descriptions on each port and they get discovered by observium and show underneath the Ethernet Interface (but still not very helpful)
I have noticed however tho in the debug output of the poller, ifName are being found as the port numbers as listed on the web interface of the switch!
ifName.1 = g1 ifName.2 = g2 ifName.3 = g3 ifName.4 = g4 ifName.5 = g5 ifName.6 = g6 ifName.7 = g7 ifName.8 = g8 ifName.9 = g9
So is it possible to switch them round?
Attached is the debug output from the switch if its helpful to anyone :)
Regards
Simon
observium mailing list observium@observium.org mailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
-- Mike Stupalov Observium Limited, http://observium.org http://observium.org/ _______________________________________________ observium mailing list observium@observium.org mailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org mailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
-- Mike Stupalov Observium Limited, http://observium.org http://observium.org/ _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
participants (3)
-
Adam Armstrong
-
Mike Stupalov
-
Simon Mousey Smith