Community discussions

MikroTik App
 
dingsingo
Member Candidate
Member Candidate
Topic Author
Posts: 116
Joined: Sun Jul 24, 2005 9:47 pm
Location: Germany

monitor active ethernetports

Wed Dec 29, 2021 12:26 pm

I'm looking for a script that gives me the total number of all active ethernet ports in a CRS328. Of course, it would be best if I could include that as part of the dude. Does anyone have any ideas about this?

Thx
dingsingo
 
ConnyMercier
Forum Veteran
Forum Veteran
Posts: 725
Joined: Tue Dec 17, 2019 1:08 pm

Re: monitor active ethernetports

Wed Dec 29, 2021 3:02 pm

I don`t have any experience with the Dude-Server , so i can`t help you


But here is a Basic Script to print the number of active Ports.

# Active Interface Count
:local AIC 0
:foreach i in=[interface ethernet find where running=yes] do={:set $AIC ($AIC + 1)}
:put message="Active Interface = $AIC"

Who is online

Users browsing this forum: No registered users and 33 guests