We have some Juniper e320 BRAs devices for which we want to monitor L2TP tunnels coming from the MPLS network.
These tunnels have the same IP address and the same name always but for the fact that these tunnels are dynamically created or terminated they frequently change their INDEX values.
Another issue would be that at times there are two logical tunnels for the same IP with two different sessions values
Here is a sample output for the snmp queries
Code: Select all
These are the INDEX values
snmpwalk -Ov -c community -v2c dsl-1 .1.3.6.1.4.1.4874.2.2.35.1.3.4.2.1.2
INTEGER: 335548244
INTEGER: 335548026
INTEGER: 335548054
INTEGER: 335544354
INTEGER: 335546114
INTEGER: 335544348
INTEGER: 335546315
And these are the IP addresses
snmpwalk -Ov -c community -v2c dsl-1 .1.3.6.1.4.1.4874.2.2.35.1.5.1.3.1.1.7
IpAddress: 192.168.1.50
IpAddress: 192.168.1.14
IpAddress: 192.168.1.50
IpAddress: 192.168.1.40
IpAddress: 192.168.1.40
IpAddress: 192.168.1.13
IpAddress: 192.168.1.13
And the session per tunnel as follows
snmpwalk -Ov -c community -v2c dsl-1 .1.3.6.1.4.1.4874.2.2.35.1.3.2.1.1.23
Gauge32: 12
Gauge32: 11
Gauge32: 448
Gauge32: 220
Gauge32: 7
Gauge32: 327
Gauge32: 7
And how is it possible to sum up the sessions for the same tunnel IP.
If this is not doable then here is what I am thinking and let me know if there would be a more efficient/easier way
I am thinking to get the values and store them in a database then sum them up with select queries, then again i will have to do a select query for each tunnel and i am not quite sure how that is going to be at the moment.
Thank you in advance and looking forward to your replies