I gang

braa network utility changes to C source code required

Changes required to attached C source code.

Braa utility generates concurrent SNMPGET or SNMPWALK to multiple hosts.

This utility can take arguments from the file as below

# braa -f source_file

Source file for the program contain following lines



- public_t3st is SNMP RO Community string

- destination IP Address

- . - OIDs - IfInOctets

: (semicolon) sign is used as a delimiter to separate OID from the rest of the line, so two parts of the line are

1. public_t3st@

2. .

in part 1 @ sign is used as a delimiter to separate SNMP RO Community string and IP Address into

1. public_t3st


which works fine when there are no @ signs present in SNMP RO String

Running braa

# braa -f [url removed, login to view]

Problem: in following SNMP RO community string contains character @ sign is used as one of the characters, as below

SNMP RO String: t@aketh@t

so the whole line constructed for braa to use should look like below


braa processes 1st part of the string, which is


it uses first @ in the string as a delimiter, so two parts become

1. my_r - SNMP RO String

2. aketh@t@ as IP Address

this is wrong.

Here is what we see when we try to run braa with SNMP RO String which contains @ sign

Content of the file

# cat [url removed, login to view]


Running braa

]# braa -f [url removed, login to view]

Unable to process queries: Invalid IP address: 'aketh@t@'. (file [url removed, login to view])

The change is required to the source code so that only the LAST @ sign is used to separate SNMP RO String and IP Address, so proper parts will be as below

1. my_t@aketh@t - SNMP RO String

2. - IP Address

Source code is attached

to compile this utility under Linux just run

tar xvf [url removed, login to view]

cd braa-0.8_update


the resulting file is called braa, which is the actual executable.

Færdigheder: C programmering

Se mere: source code braa, network utility source code, braa, braa network, use braa snmp, programming used, two string problem, string problem, rest programming, programming community, one network, linux source code, first source, string programming, programming string, concurrent programming, community programming, 1st source, braa snmp source, braa snmp, source code network, source, semicolon, programming source code, programming code

Om arbejdsgiveren:
( 19 bedømmelser ) Pacific Pines, Australia

Projekt-ID: #1002836

Tildelt til:


Let us do the second project.

$100 USD in 5 dage
(2 bedømmelser)