Assignment code on perl (or) python

Write a script to probe the an SNMP agent and find the rate of change for several counters between successive probes/ samples. The rate calculated for each counter/OID should be displayed on the console, one line for each calculated rate, the output format will be described in detail in 'output format'. Futhermore, as the only requirement on the OIDs is that they are of the type COUNTER, this means that there are both 32 and 64 bit versions of counters. Your solution should handle both counter types, and in the case that a counter wraps (ie goes from a high number to a low number), your solution should address/rectify (if its possible). The solution needs also to handle that an SNMP agent restarts (i.e. the sysUpTime OID becomes less than it was before, ie. it starts counting from zero), and timeouts, i.e. the device does not respond to your request in time. It will be tested that your solution maintains the requested sampling frequency (i.e. the requests from your solution should be sent so that the sampling frequency is maintained, irrespectively if the device has responded or not).

The script will be invoked as follows:

prober <Agent IP:port:community> <sample frequency> <samples> <OID1> <OID2> …….. <OIDn>


IP, port and community are agent details,

OIDn are the OIDs to be probed (they are absolute, cf. IF-MIB::ifInOctets.2 for interface 2, or [1])

Sample frequency (Fs) is the sampling frequency expressed in Hz, you should handle between 10 and 0.1 Hz.

Samples (N) is the number of successful samples the solution should do before terminating, hence the value should be greater or equal to 2. If the value is -1 that means run forever (until CTRL-C is pressed, or the app is terminated in someway).

Following are the files to be submitted: Note: The file has to be submitted with ".txt" extension so that plagiarism control will work.

[url removed, login to view]

Script that probes the agent, may be written in any language (perl, python,etc.), make use of the SHEBANG to handle what language interpreter that execute the script.

If you use a complied language, make sure that the compiler outputs the correct filename on the executable.

What ever language you choose to implement the solution in, make sure that you use a proper API for the SNMP communication, i.e. using system commands is not the way to do it. The aim is to train API interaction.

Output format

The output from the script _MUST_ be as follows:

Sample time | OID1 | OID2 | .... | OIDn

Sample time: Timestamp of the last sample, in UNIX time (seconds).

OID*: Rate of OID* between the last two successful samples

As an example:

1504083911 | 2124 | 819 | 0 | 281761

1504083912 | 2471 | 819 | 110 | 450782

1504083913 | 1904 | 819 | 2000 | 325448

--Technical Testing--:

Your solution will be tested against a simulated/real SNMP agent, where the behavior is known.

A test script will be launch your solution and validate the results against the known results. The script will check:

- that the solution generates the correct number of samples, as requested, at the requested sample frequency.

- that the solution sends the snmp request at the required sampling frequency, will be tested by packet tracing.

- that the SNMP request contain all the requested OIDs, by packet tracing

- that the solution handles non-responsive SNMP agents, ie. timeouts. Ie the inter sample time presented in console would be n/Fs where Fs is sample frequency and n=1,2,3,...

- that the solution handles that the SNMP agent restarts/reboots

- that the output from the solution matches the configuration of the agent

- that the solution handles counters that wrap around, both 32 and 64 bit counters.

Use SysUpTime[2] as to detect device reboots and to obtain the device time when calculating rates.

[1] [url removed, login to view]

[2] [url removed, login to view]

Skills: Linux, Perl, PHP, Python, Software Architecture

See more: python assignment in while condition, python assignment conditional, python assignment with and, python assign variable in if statement, python assignment in if, python assign and check if, Write .Net code to Upload items into Open Cart and Download Web Orders using API authentication, write a ten line newspaper article to say what the nasa will may might well be able to do with robots in the future draw inspira, write a ten line newspaper article to say what the nasa, assignment write, assignment write a blog post titled x tips for successful jaw surgery recovery x is the number of tips you end up with, assignment write business plan, perl python source code, assignment write feasibility report recommendation, gps tracking code perl python, assignment will implement game life, assignment write application calculate cost renting dvd, extracting data html file perl python, python write matrix file, perl script write text file

About the Employer:
( 0 reviews ) Karlskrona, Sweden

Project ID: #16438439

7 freelancers are bidding on average kr998 for this job


Hi I have done similar work before I can provide you samples of my previous work and can forward you with the same the work will be provided with quality and in timely manner thanks

kr1444 SEK in 3 days
(49 Reviews)

Having experience of python, I can do what you want. Python is my primary programming language. Let us discuss details in chat.

kr995 SEK in 3 days
(40 Reviews)

Hello , I have bachelor's degree in computer science and i have been programming in C/C++ for both linux and windows for more than 8 years.I have written various network applications some of which are down to the IP More

kr1000 SEK in 3 days
(6 Reviews)
kr995 SEK in 3 days
(2 Reviews)

Dear Client, We went through project description We are Really interested to do work with you, We are Web & Software development company having more than 8-year experience in Software development we totally committed More

kr995 SEK in 3 days
(4 Reviews)

May be my bid is very low, but trust me, my product will have high quality and I ensure your satisfaction.

kr227 SEK in 3 days
(0 Reviews)

Hello , I’m a professional software developer working in a cyber security company. I have worked on python , shell for years. Kindly take a chance on visiting my profile . The best part is I have already done a si More

kr1333 SEK in 3 days
(0 Reviews)