Community discussions

MikroTik App
 
Hellbound
Long time Member
Long time Member
Topic Author
Posts: 508
Joined: Tue Oct 26, 2004 11:21 am

how to save user statistic?

Sat Aug 19, 2006 2:53 pm

hi guys,
is it possible to save all users's statistics with tablimited format into a txt file every day at certain hours like a cron job?

thanks
 
yogid
newbie
Posts: 27
Joined: Mon Dec 05, 2005 8:14 pm
Contact:

Mon Aug 28, 2006 2:02 pm

Why don't you want use SNMP?!
 
Hellbound
Long time Member
Long time Member
Topic Author
Posts: 508
Joined: Tue Oct 26, 2004 11:21 am

Mon Aug 28, 2006 2:04 pm

any sample for doing it?
 
User avatar
Eugene
Forum Veteran
Forum Veteran
Posts: 986
Joined: Mon May 31, 2004 5:06 pm
Location: Cranfield, UK

Mon Aug 28, 2006 5:36 pm

snmpwalk -v 1 -c public 10.5.7.1 > myfile
Eugene
 
Hellbound
Long time Member
Long time Member
Topic Author
Posts: 508
Joined: Tue Oct 26, 2004 11:21 am

Mon Aug 28, 2006 7:01 pm

snmpwalk -v 1 -c public 10.5.7.1 > myfile
Eugene
this is at server side right? but how to make mikrotik send user statistics?
 
User avatar
Eugene
Forum Veteran
Forum Veteran
Posts: 986
Joined: Mon May 31, 2004 5:06 pm
Location: Cranfield, UK

Tue Aug 29, 2006 11:48 am

Writing a script to send all this from the router via e-mail is much more complicated task then polling your routers via SNMP from a server.