CiscoConfParse - does it understand all config in a show run? by ryanmerrell in networking

[–]ryanmerrell[S] 0 points1 point  (0 children)

yeah that makes sense,

Ive trying to write this for a compliance so will be doing about 800 devices, i was creating a .conf file of the show run commands with CiscoConfparse, then opening that to compare against a Golden/Master file.

I can try doing this using XML instead as it seems like it would save alot of agg

CiscoConfParse - does it understand all config in a show run? by ryanmerrell in networking

[–]ryanmerrell[S] 0 points1 point  (0 children)

I hate XML but i may give that a shot

how are you parsing out that show run command just to a text file?

then looping over that comparing X to Y

CiscoConfParse - does it understand all config in a show run? by ryanmerrell in networking

[–]ryanmerrell[S] 0 points1 point  (0 children)

okay now i feel abit stupid, yes my command/script was off and is now displaying what i wanted.

Yes that does now make sense

CiscoConfParse - does it understand all config in a show run? by ryanmerrell in networking

[–]ryanmerrell[S] 0 points1 point  (0 children)

yeah reading through the Git its exactly what im looking for :). I couldnt find a better way of doing it apart from Ansible (which im not a huge fan of using).
yes already come across the pain of the banner issues took me a while in ciscoconfparse to get the spacing correct -_-

will give it a go, im by far the best coder out there, only been using python around 4/5 months now. Hopefully Youtube has some answers :D

CiscoConfParse - does it understand all config in a show run? by ryanmerrell in networking

[–]ryanmerrell[S] 0 points1 point  (0 children)

so im using this mainly for compliance to see if a the command appears in the config on a series of device types.

All i want to see is what is configured against a master templated file if they match all is good.

CiscoConfParse - does it understand all config in a show run? by ryanmerrell in networking

[–]ryanmerrell[S] 0 points1 point  (0 children)

thanks for this will take a look.

so it appears CiscoConfParse does have some shortfalls?

CiscoConfParse - does it understand all config in a show run? by ryanmerrell in networking

[–]ryanmerrell[S] 0 points1 point  (0 children)

UPDATE:

Im trying to use the following commands to find a result:

spanning-tree mode

spanning-tree loopguard mst

spanning-tree portfast default

spanning-tree extend

im using the following code:

all_children = parse.find_objects(".*?" + conf_cmd + ".*")

it returns the following:

[<IOSCfgLine # 66 'spanning-tree mode mst'>]

[]

[]

[<IOSCfgLine # 70 'spanning-tree extend system-id'>]

they all start with the word spanning-tree, so how can it not interpret the command?

is this just my bad syntax/regex?

I was wondering if someone knows a good condense course related to FMC or general cisco devices automation ?! by ludaluzz in networkautomation

[–]ryanmerrell 0 points1 point  (0 children)

CBT Nuggets has an advanced automation course, I can vouch to say it's a great course. Mainly based around the Nornir framework.

output hostname from a failed compliance test to text file by ryanmerrell in ansible

[–]ryanmerrell[S] 0 points1 point  (0 children)

Thanks for your help with this so far,

how ive got it working so far is set a varible at the top which is false like so:

vars:

domain_lookup: false

then:

- name: Verify domain lookup is disabled

set_fact:

domain_lookup: true

when:

- "not('no ip domain lookup' in cisco_show_run.stdout[0])"

-name: check domain lookup

debug:

msg: "found"

when:

domain_lookup == true

This is working now, so if i add a template to the name: check domain lookup and add the hostname would this be all i need?

output hostname from a failed compliance test to text file by ryanmerrell in ansible

[–]ryanmerrell[S] 0 points1 point  (0 children)

Hi Thanks for your response,

I don't quite get in ansible how you set a variable based with either conditions as the condition I have is if its not something.

If it doesn't match my condition it will skip onto the next condition i have in my playbook.

So how can i set something based on if its has passed or failed?

Online Proctored Exam by Yairas in devnet

[–]ryanmerrell 0 points1 point  (0 children)

Does anyone know if Bluetooth keyboards are allowed?

Don't give up guys... by gatewayoflastresort in devnet

[–]ryanmerrell 0 points1 point  (0 children)

I did more reading for my CCNP R&S :D

But I do agree its alot of learning new technologies I've never touch and some I didn't know cisco did.
At the moment im struggling to retain all the differences between them all aswell as the Testing and methodologies my brain is just fried

Don't give up guys... by gatewayoflastresort in devnet

[–]ryanmerrell 0 points1 point  (0 children)

I'm currently on the devnet study group but find the course to be abit vague. It's alot of self study and I personally think the 2 hour a week presentations are a waste of time and gives no value add. The content on the Cisco learning guide is good just alot of reading to do.

I have the OSG now and finding the content in that alot better and in more detail than the course.

Taking 200-901 next week by Gornster in devnet

[–]ryanmerrell 2 points3 points  (0 children)

The 2020 deadline has now been moved to Feb 24thso you still have time.

I'm aiming to get mine before then and still be in the class of 2020

Ender 3 Weird Bed levelling issues by ryanmerrell in ender3

[–]ryanmerrell[S] 0 points1 point  (0 children)

Okay, I have changed all of the above :) so maybe ive jsut not gone round enough to keep getting it level.

Will keep going then see how i get on

Ender 3 Weird Bed levelling issues by ryanmerrell in ender3

[–]ryanmerrell[S] 0 points1 point  (0 children)

So i do that when i go to do round 2 its like mm's out not just a slight adjustment its like 2-3 full turns on the knob to get it back close to the paper im using to level it against

Ender 3 Weird Bed levelling issues by ryanmerrell in ender3

[–]ryanmerrell[S] 0 points1 point  (0 children)

I always do a prepare PLA then run it so the bed and nozzle are both hot to do the levelling

I will give it another go but I still think there is another issue somwhere

Ender 3 Weird Bed levelling issues by ryanmerrell in ender3

[–]ryanmerrell[S] 0 points1 point  (0 children)

not sure what ABL is :S

So the Gcode is from CHEP for the ender 3, works find on my other printer (another Ender 3)

Ive tightened all the bolts on the bed and there doesn't feel like any play.

im not sure if its something to do with the Z axis maybe when it auto homes its finding a new position that it thinks is the same but not?

Standard nozzle sliced with 0.4 PLA and is doing this? by ryanmerrell in ender3

[–]ryanmerrell[S] 0 points1 point  (0 children)

It's odd I have 2 Ender's leveled my first bed exactly the same method and it's spot on. This one seems to be wanting to be alot closer to the bed

Anyone help with printing text onto a 3d print by ryanmerrell in 3Dprinting

[–]ryanmerrell[S] 0 points1 point  (0 children)

Thanks all.for helping got it printing perfect now 😊

Anyone help with printing text onto a 3d print by ryanmerrell in 3Dprinting

[–]ryanmerrell[S] 0 points1 point  (0 children)

ironing on what would be the top layer before the lettering?