MIlestone 7 Module 4

If we want to create a single file ‘’ for validation of versions, do we need to only output failure and success message if any one of the these test fails?

  • validate_cpu_usage
  • validate_memory_usage
  • validate_file_permissions
  • validate_file_transfer
  • validate_time_taken_for_transfer

And what is the meaning of these line :-

The scripts should take the following inputs:

  • vsftpd version
  • QBox_benchmark

input QBox_benchmark means this will be given as input while executing the test file or we have to extract he bechmark data from file we created in previous milestones.

If you are using a single script,, it should output the string failure followed by additional string to say what failed. E.g. failure: Version <vsftpd version> fails CPU check
If successful, it can output just success indicating a good version.

The script needs inputs to function. It will be run for each vsftpd version, one at at a time. It should pick up the benchmark values from the QBox_benchmark file and assess the vsftpd version against the benchmark.
E.g. ./ <vsftpd_version> QBox_benchmark

1 Like

Do we just need to perform the checks or also include the simulation for ftp upload and download with this task

1 Like

That’s the thing I don;t understand!! Do we have to write the entire script to run ftp server, analysing with top command??

1 Like

I included both ftp upload and ftp download and got success in assessment.

I wrote the script to start the server and transfer the file and analyzed the tasks in that period and got success in assessment


How did you stop the server

Just by analyzing the processes and with help of some linux command.

does it need to print all failures or we should exit as soon as we find out the first error in version and print failure and (fails reason)…?

How did you analyse the tasks in parallel using another script?

To analyze the task for a particular version, did you pass the complete benchmark file and then picked out the required value from that file?

Yes you have to make use of the values you analyzse to test it with with new outcomes

This has been answered on another thread.
When you find the first error print failure: <reason for failure> and exit.

1 Like


while running scripts I noticed that if the terminal has sudo access everything works just fine.


But if the script is run as sudo like below

I encounter errors while doing my setup and clenaup tasks.

I think this is because inside script while doing creating and cleanup I am not using sudo for all the things.
Thus when sudo script is run the created files have owner as root.

My question is during assessments will the terminal have sudo privileges like image

or will script be run as image


Assessment will be run with sudo privileges. sudo prefix will not be needed during execution.

Since the assessment is running with sudo privelage can i assume that only the vspftd version will be provided as argument while running a script and we don’t have to specifically start vsftpd in the script as sudo.

Yes, go ahead with that.

Okay and one more thing, since we are automating all the steps do we have to specify an upper number to the number of times a file will be transferred for the purpose of comparisons of various aspects with benchmark?

You can do the large file transfer 1 time. If you running to assess behaviour for multiple transfer with smaller files, you can hard code that to 5 times.