I made it work like this if anyone is interested
/usr/bin/lynx -auth=admin:"somepass" -source http://10.3.0.10:3300/resetStats.html
somepass must be set with this ntop switch before
ntop -A or ntop --set-admin-password="somepass"
This make lynx connect with the authentification specified with -auth=ID:PASS then print the page source and exit
So you can see if it worked.
Burton M. Strauss III wrote:
You can script it through cron, using something like wget or lynx for the command.
-----Burton
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Patrick Ouellet Sent: Monday, June 16, 2003 3:35 PM To: [EMAIL PROTECTED] Subject: [Ntop] Automation of admin task
Is there a way to automaticaly tell ntop to reset its data at a certain time, like a noon?
Instead of having to go to the admin page and click the reset button?
-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Patrick Ouellet - [EMAIL PROTECTED] Administrateur des serveurs reseaux Informatique - Poste 130 Microtec Technologies inc. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= "First they ignore you. Then they laugh at you. Then they fight you. Then you win." -Mahatma Gandhi =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
_______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop
_______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop
-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Patrick Ouellet - [EMAIL PROTECTED] Administrateur des serveurs reseaux Informatique - Poste 130 Microtec Technologies inc. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= "First they ignore you. Then they laugh at you. Then they fight you. Then you win." -Mahatma Gandhi =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
_______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop
