how to find out the systen and n/w charecteristics by writing codes in c


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers how to find out the systen and n/w charecteristics by writing codes in c
# 1  
Old 03-01-2008
how to find out the systen and n/w charecteristics by writing codes in c

a project is given to me in which i have to find out the system and n/w charecteristics by writing codes in c but i cant use the commands.
n/w charecteristics means:

Network Adapter Related Information:
a. Number of network adapters
b. Type of the Adapter: LAN (Ethernet, Token Ring, FDDI), WAN (X.25,
ATM, etc)
c. Interface Name
d. Interface Index
e. Speed/Rate (100Mbps, 1000Mbps, 255Mbps, etc)
f. Maximum Transmission Unit (Packet sizes in the network)
g. Transmitted Packets per port and interval
h. Received Packets per port and interval
i. Erroneous Packets per port and interval
j. Average Network Utilization
Network Protocol Related Information: The protocols currently that could be assumed are IP, ICMP,
TCP, and UDP.
IP:
a. Input and Output packets per interval
b. Total input and output packets
c. Error packets discarded
ICMP:
a. Input packets received
b. Failed ICMP input packets
c. Output packets sent
d. Failed ICMP output packets
TCP:
a. Active number of connections
b. Connection Local address, port number
c. Connection destination address, port number
d. Type of application (if any): ssh, telnet, rsh
e. Per connection packets transmitted, received, rejected, or error
f. Per connection pending packets in send-queue or receive-queue
UDP:
a. Connection Local address, port number
b. Connection destination address, port number
c. Packets sent, received, or error

and system charecteristics like

The analysis of software components in the system can be attributed directly to the processes running in
the system. Process characteristics needed are:
a. Number of Processes running in the system
b. Number of Zombie Processes in the system
c. Details of each of the processes:
d. Process Name,
e. Process Class (Time sharing class, real-time class, etc.),
f. Process State (sleeping, running, waiting for IO, etc),
g. Process Priority,
h. % of CPU Used
i. CPU Time used by the process in User, Kernel
j. Number of file descriptors opened by the process
k. Listing of Opened files, sockets, pipes, devices
l. Virtual address map of the libraries, files
m. Signals pending, blocked on the process
n. Stack trace of the process or threads


The above characteristics should be defined as private MIBs (following SNMP protocol). The intelligent
agent should be SNMPv3 compliant.



I badly need some help as im new 2 linux,mib,snmp everythng...

plzzzzzzzzzzz help me...
# 2  
Old 03-02-2008
how to find out the systen and n/w charecteristics by writing codes in c

by mistake i posted dis twice.

Last edited by jeenat; 03-02-2008 at 10:55 AM..
# 3  
Old 03-02-2008
Please do not double post.

Is it a class project ?

Last edited by reborg; 03-02-2008 at 07:21 AM.. Reason: the "not" was missing
# 4  
Old 03-02-2008
Yes n its ma 1st project.
# 5  
Old 03-02-2008
try the command

$man nmap
# 6  
Old 03-02-2008
Quote:
Originally Posted by jeenat
Yes n its ma 1st project.
jeenat,
The rules of this forum forbid homework/classwork questions. I will keep the thread open so that others can guide you in the right direction. If I see any code/straightaway solution given out, this thread will be closed.
# 7  
Old 03-03-2008
Thanq sad_angle.

I have created an MIB n corresponding .c and .h file is also generated by that....
The .c file generated is actualy a template n i hav write the actual code in it specialy wher the /*XXX*/ symbol is there n im nt getting wot to write ther can any1 plz guide...

i hav attachd the .c file as a .doc file .
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need some help writing a find script

hello all! well, here is my problem: i have to write a script which waits for a directory as an argument and scans it recuresively and than it prints those files, which have write permission for everyone (as relative path from the argument directory so the find will be the key). and it shouldnt... (9 Replies)
Discussion started by: Mixe3y
9 Replies

2. Shell Programming and Scripting

how to find a job which is writing a big file and eating up space?

how to find a job which is writing a big file and eating up space? (3 Replies)
Discussion started by: rush2andy
3 Replies

3. Shell Programming and Scripting

Help in writing a find/replace script using awk

Hi All, I need to write a script that will go through 600+ files and perform find and replace. I was going to use sed but there is a level of complexity that is doing my head in. To explain: I have 600+ files that have a line in them that reads (for example) FILE=DCLCLHST... (4 Replies)
Discussion started by: Kocko
4 Replies

4. Shell Programming and Scripting

writing shell script to find line of invalid characters

Hi, I have to write s script to check an input file for invalid characters. In this script I have to find the exact line of the invalid character. If the input file contain 2 invalid character sat line 10 and 17, the script will show the value 10 and 17. Any help is appreciated. (3 Replies)
Discussion started by: beginner82
3 Replies

5. UNIX for Dummies Questions & Answers

Help writing a script to find a file

I just started learning about Unix and I cant figure out what im doing wrong. I'm trying to write a script that will ask for the file name and tell what type it is. This is what i have so far. http://i63.photobucket.com/albums/h123/wacand/untitled.jpg (2 Replies)
Discussion started by: wacand
2 Replies

6. AIX

Warning codes

Dear Experts, i am very to AIX when i am trying to compile my code i am getting two warning several times like 1540-0053 (W) The declaration of a class member within the class definition must not be qualified. "/usr/include/alloca.h", line 34.9: 1540-1401 (I) An unknown "pragma __alloca" is... (1 Reply)
Discussion started by: vin_pll
1 Replies

7. UNIX for Advanced & Expert Users

Return Codes

I have a simple script which renames a file.How do i capture the return code of the script if the script fails (3 Replies)
Discussion started by: kris01752
3 Replies

8. UNIX for Dummies Questions & Answers

Where can I find a list of exit codes? (Exit code 64)

I'm receiving an exit code 64 in our batch scheduler (BMC product control-m) executing a PERL script on UX-HP. Can you tell me where I can find a list of exit codes and their meaning. I'm assuming the exit code is from the Unix operating system not PERL. (3 Replies)
Discussion started by: jkuchar747
3 Replies

9. UNIX for Dummies Questions & Answers

Writing "find" code in C

I've got a project that writing "find" C code in solaris. That is finding a file in current and sub directories. While I am looking for some example on the book for two days, but I have no idea where to start. I think I need to use recursion, but is it true? I am still a Unix... (2 Replies)
Discussion started by: SQ4LIFE
2 Replies

10. Programming

How to get Key codes

Hi Experts, I like to get the Key codes of the keys in the Keyboard while I press it. Its something like scan code. I want to know which key had been pressed. Can anyone fine me a solution for this using C. Regards Anent (12 Replies)
Discussion started by: anent
12 Replies
Login or Register to Ask a Question