I’m having problems with some boards and their CPU.
Is there any way to run the /tool profile and dump the text file in a script?
I’d like to send this off in an email. My only problem is getting the profile to run and dump the text for me.
Any help would be really appreciated.
Thanks!
Run by SSH “/tool profile duration=1”.
On SSH you can save results to file.
rextended:
I appreciate the response.
Do you know if there’s a way to accomplish this locally? I have a script that runs every minute on the routerboard and when the CPU levels reache a certain threshold I have it send out a notification email.
What I’m looking to do is get the output from the command “/tool profile duration=1” and attach it to that email.
Thanks!
The only way (I know) is to run the command by SSH, saving results to file, then read by script the result, etc.