Cmds
Cmds
2$ cat aru date>vmstat_op; vmstat 15 >>vmstat_op; for vmstat command and use below command to run it : nohup sh aru & for sar : nohup sar 15 2400 > sar_op & vmstat - Report virtual memory statistics sar 1 3 gives the system CPU statistics 3 times (with 1 second interval). sar -u 1 3 Displays real time CPU usage every 1 second for 3 times. sar -u Displays CPU usage for the current day that was collected until that poin t. sar -r 1 3 Memory Free and Used (sar -r) System in: The number of interrupts per second, including the clock. cs: The number of context switches per second. CPU These are percentages of total CPU time. us: Time spent running non-kernel code. (user time, including nice time) sy: Time spent running kernel code. (system time) id: Time spent idle. Prior to Linux 2.5.41, this includes IO-wait time. wa: Time spent waiting for IO. Prior to Linux 2.5.41, shown as zero. $(date +"%x %r %Z") $ echo "something- Body" | mailx -s "subject" [email protected] Its faster with MUTT command echo "Body Of the Email" | mutt -a "File_Attachment.csv" -s "Daily Report for $( date)" -c [email protected] [email protected] -y -c email cc list -s subject list -y to send the mail How to attach a file using mail command on Linux? $ echo | mutt -a syslogs.tar.gz emailid