Changes required to attached C source code.
Braa utility generates concurrent SNMPGET or SNMPWALK to multiple hosts.
This utilility can take arguments from the file as below
# braa -f "source_file"
Source file for the program contain following lines
- "public" is SNMP RO Community string
- "192.168.1.1" destination IP Address
- ".220.127.116.11.18.104.22.168.1.10.3" and ".22.214.171.124.126.96.36.199.1.16.3" OIDs - IfInOctets and IfOutOctets
- in OID last integer is the Interface IfIndex in above case both In and Out Octets refer to Interface Ethernet 0 (ifIndex 3)
If we run
braa -f "source_file"
The result looks like below
- "192.168.1.1" - destination IP address
- "64ms" - Ping RTT
- ".188.8.131.52.184.108.40.206.1.10.3" relevant OID in this case IfInOctets
- "2491108168" current counter reading
".220.127.116.11.18.104.22.168.1.10.3" ending 3 is the interface IfIndex which refers to Interfac Ethernet 0
so in general form OID format for InOctets is
".22.214.171.124.126.96.36.199.1.10.IfIndex", where IfIndex again in above case is 3
The length on ifindex field is limited to 8 digits, for example
IfIndex of 13423234 is OK but
ifindex of 413423234 is over 8 digit and it defaults to some 8 digit number, similar to 16670000,
I need to make this program to be compatible with IfIndex which is over 8 digits in length, for example
Source code is attached.
to compile this utility undex linux just run
tar xvf [url removed, login to view]
the resulting file is called braa, which is the actual executable.
3 freelancere byder i gennemsnit $162 for dette job
Hi, I am very good in programming in C language and also a student in network services in KTH,sweden and have enough knowledge of SNMP protocol and MIB. I ll deliver it in time.