Suljettu

Need to parse some network configuration

Hi -- I need to be able to parse the following FortiOS configuration:

```

config system interface

edit "VLAN100"

set vdom "customer-a"

set ip [login to view URL] [login to view URL]

set bfd disable

set snmp-index 51

set interface "Po-1"

set vlanid 150

next

edit "VLAN100-B"

set vdom "customer-a"

set ip [login to view URL] [login to view URL]

set bfd disable

set snmp-index 51

set interface "Po-1"

set vlanid 150

next

edit "VLAN200"

set vdom "customer-b"

set ip [login to view URL] [login to view URL]

set snmp-index 52

set interface "Po-2"

set vlanid 250

next

end

```

I want to be able to parse the above block of data so that I can export to a CSV in the following format:

vdom: customer-a

interface: VLAN100

vlan: 150

IP: [login to view URL]

interface: VLAN100-B

vlan: 150

IP: [login to view URL]

vdom: customer-b

interface: VLAN200

vlan: 250

IP: [login to view URL]

and so on..

As per above, 'vdom' being the top and having 'interface' children and so on. Keeping in mind that I won't know the names of the vdom as per this example. Also there is a lot of extra configuration before and after the above that is not needed. I want to be able to dump my configuration file and take out only what I have mentioned above in CSV.

Taidot: Shell Script, Python

Näytä lisää: cisco network configuration scripts network design, need affiliate network program, need script lets connect sql server update data, template text parser, genie parser, sax java dont need parse complete file, need logo network project, ubuntu network configuration vpn, content delivery network configuration, quickbooks 2009 network configuration, need build network system, network configuration applet policy, asterisknow network configuration, ubuntu network configuration, yast breaks network configuration, ubuntu network configuration applet network manager, need cpa network, need parse data

Tietoa työnantajasta:
( 0 arvostelua ) Australia

Projektin tunnus: #26826490

5 freelanceria on tarjonnut keskimäärin 180$ tähän työhön

tushortz

Hello there. i can write regular expressions to parse the data into csv for you. i can also start work immediately

$140 AUD 1 päivässä
(28 arvostelua)
4.6
gopalvora

Hello Greetings!! I have gone through the details of your project and I find it well within my capabilities. Please feel free to contact me directly to discuss the project. Thanks

$190 AUD 7 päivässä
(7 arvostelua)
4.7
sodiqa32

Hello, I am pleasure with your job as detailed. Thank you for the job posting. It’s a pleasure to meet you. I’d really like to work with you on this one if possible! I do have a couple of questions, but first I’d like Lisää

$30 AUD 1 päivässä
(12 arvostelua)
4.6
kreshnikrraci

Hello. How are you? Hope you are doing well. As I am a senior python/shell script expert, I am very interested in your project. I'd like to discuss more detail in chatbox… Thank you.

$400 AUD 7 päivässä
(1 arvostelu)
2.8
Kuvvat

hi how are you, i can parse it for you, can you send sample config file ? thanks good luck

$140 AUD 7 päivässä
(2 arvostelua)
2.4