03-01-2008
12,
0
Join Date: Feb 2008
Last Activity: 22 April 2008, 1:59 PM EDT
Posts: 12
Thanks Given: 0
Thanked 0 Times in 0 Posts
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...