I try to find a solution for the following:
Get the upload port for Switches.
what I already achieved:
1. Get information about upload port from ARP table:
discovery rule:
2. Get MAC Address as Element prototype:
Unfortunately the OID .1.3.6.1.2.1.4.22.1.1 gives the VLAN and not the port number.
The port nuber can be found at the translation table .1.3.6.1.2.1.17.4.3.1.2.<Uplink MAC as Dec>
3. I alredy transformed the MAC into decimals by a depending item and a javascript
Uplink MAC as Dec:
Can I create an SNMP item, which uses the value of the Item .1.3.6.1.2.1.17.4.3.1.2.<Uplink MAC as Dec> ?
Example for MAC 01 02 03 04 05 06: .1.3.6.1.2.1.17.4.3.1.2.1.2.3.4.5.6 = INTEGER: 26
Or any other idea, how to get the number of the uplink port?
Get the upload port for Switches.
what I already achieved:
1. Get information about upload port from ARP table:
discovery rule:
Code:
discovery[{#UPLINKMAC},.1.3.6.1.2.1.4.22.1.2]
Code:
.1.3.6.1.2.1.4.22.1.2.{#SNMPINDEX}
The port nuber can be found at the translation table .1.3.6.1.2.1.17.4.3.1.2.<Uplink MAC as Dec>
3. I alredy transformed the MAC into decimals by a depending item and a javascript
Uplink MAC as Dec:
Code:
some js code
Can I create an SNMP item, which uses the value of the Item .1.3.6.1.2.1.17.4.3.1.2.<Uplink MAC as Dec> ?
Example for MAC 01 02 03 04 05 06: .1.3.6.1.2.1.17.4.3.1.2.1.2.3.4.5.6 = INTEGER: 26
Or any other idea, how to get the number of the uplink port?
Comment