Mikrotik - PPPoE Interface Counting

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
Freman
Posts: 1
Joined: Tue Jan 24, 2006 12:46 am

Mikrotik - PPPoE Interface Counting

Post by Freman »

G'day there.

I'm not sure of the exact way to go about this, but I'd like to count the number of intrefaces that match a cirtain expression there are...

Example snmpwalk:

Code: Select all

IF-MIB::ifDescr.1 = STRING: ether1
IF-MIB::ifDescr.2 = STRING: ether2
IF-MIB::ifDescr.3 = STRING: ether3
IF-MIB::ifDescr.7261 = STRING: <pppoe-mowerwh@somenet.net.notexists>
IF-MIB::ifDescr.8440 = STRING: <pppoe-maitland@somenet.net.notexists>
IF-MIB::ifDescr.10396 = STRING: <pppoe-morfen@somenet.net.notexists>
IF-MIB::ifDescr.10481 = STRING: <pppoe-mattmcn@somenet.net.notexists>
IF-MIB::ifDescr.15579 = STRING: <pppoe-karens@somenet.net.notexists>
IF-MIB::ifDescr.16330 = STRING: <pppoe-oxlade@somenet.net.notexists>
IF-MIB::ifDescr.16332 = STRING: <pppoe-das@somenet.net.notexists>
IF-MIB::ifDescr.16341 = STRING: <pppoe-cameronp@somenet.net.notexists>
IF-MIB::ifDescr.16424 = STRING: <pppoe-djuds@somenet.net.notexists>
IF-MIB::ifDescr.20292 = STRING: <pppoe-rjhaigh@somenet.net.notexists>
IF-MIB::ifDescr.20500 = STRING: <pppoe-skuebald@somenet.net.notexists>
IF-MIB::ifDescr.21016 = STRING: <pppoe-karlw@somenet.net.notexists>
IF-MIB::ifDescr.22241 = STRING: <pppoe-redsone@somenet.net.notexists>
IF-MIB::ifDescr.22252 = STRING: <pppoe-hfiala@somenet.net.notexists>
IF-MIB::ifDescr.22253 = STRING: <pppoe-boots2000@somenet.net.notexists>
IF-MIB::ifDescr.22254 = STRING: <pppoe-ianpppoe@somenet.net.notexists>
IF-MIB::ifDescr.22256 = STRING: <pppoe-penda5@somenet.net.notexists>
IF-MIB::ifDescr.22259 = STRING: <pppoe-monglen@somenet.net.notexists>
IF-MIB::ifDescr.22261 = STRING: <pppoe-otech@somenet.net.notexists>
IF-MIB::ifDescr.22575 = STRING: <pppoe-effigy@somenet.net.notexists>
IF-MIB::ifDescr.23169 = STRING: <pppoe-law4u@somenet.net.notexists.notexists>
IF-MIB::ifDescr.23885 = STRING: <pppoe-hall6@somenet.net.notexists>
IF-MIB::ifDescr.23984 = STRING: <pppoe-mckellar@somenet.net.notexists>
IF-MIB::ifDescr.24007 = STRING: <pppoe-meadows@somenet.net.notexists>
IF-MIB::ifDescr.24008 = STRING: <pppoe-translogix@somenet.net.notexists>
IF-MIB::ifDescr.24015 = STRING: <pppoe-mmocatta@somenet.net.notexists>
IF-MIB::ifDescr.24020 = STRING: <pppoe-eagle54@somenet.net.notexists>
IF-MIB::ifDescr.24021 = STRING: <pppoe-gloria@somenet.net.notexists>
IF-MIB::ifDescr.24022 = STRING: <pppoe-grasshopper@somenet.net.notexists>
Basically I want the total number of ifDescr that matches /^<pppoe-/ so I can graph it.

Can anyone help me collect that information?
...
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest