Professional Documents
Culture Documents
using Python
My Programmability Learning journey
Patrick Cardot, Alvaro Culebras, Jo Kern, Hadil Ghaban
Technical Solution Architect
Agenda Lunch at 12h30 to 13h15
Day-1
Day-2
Threat Hunting
Security APIs AMP Use Case Threat Hunting Python
Postman
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Lunch at 12h30 to 13h15
http://82.121.247.198/reg
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Which
What do I
My Programmability Where do I development
need to learn
Learning Journey start ? Environment
?
?
© 2020
2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
What do I need to Learn ?
Learning What ?
Python
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
What do I need to Learn ?
Learning What ?
Docker
NODE JS
Strongly Recommended
Javascript
Ansible
Netconf / RESTconf
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Python
Python Level 1 Level 2
Netmiko / pexcept
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
What do I need to Learn ? ( On top of )
Web Development
HTML / CSS
Javascript
PHP
Python Flask / Django Really Recommended
NeXt-UI
Cisco-ui
© 2020
2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
DEVNET Sign UP for Free !
https://developer.cisco.com/
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Developer Workstation and Environment Setup
https://developer.cisco.com/learning/devnet-express/dnav4-track
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Which
development
Environment ?
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Your Development Environment
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Your Development Environment
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Set up your own development workstation
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
The Tools you need for this training
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Did you installed
the tools ?
© 2020
2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Developer Workstation and Environment Setup
https://developer.cisco.com/learning/devnet-express/devnet-
express-security-v1-1
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Install Python
• www.python.org/downloads/windows/
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Setup & Activate your Python Virtual Environment
• LINUX Open bash terminal at the “root of the repository”
• Windows open a CMD console and CD to your working directory
• Create and activate a Python virtual environment
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Visual Studio Code
• https://code.visualstudio.com/download
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Install a git client ( Windows – Git Bash )
git-scm.com/downloads
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Install Git client on LINUX
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
https://www.postman.com/downloads/
Install Postman REST Client
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Cisco Webex Teams for Developers
https://developer.webex.com/
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Your Bearer Token
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Check Your Setup
http://82.121.247.198/check
http://82.121.247.198/check
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
• FOR PATRICK !
• Add everyone in the Webex Room and share the folder
• Let’s everyone install Python 3,7 + and venv ( needed for Day 1 )
• POSTMAN will be needed this afternoon
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
My First Codes
What can I try ?
© 2020
2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Start Your Security APIs Journey
VERY EASY EASY DIFFICULT
Meraki StealthWatch
Start here
If you start from scratch
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
ASAv
© 2020
2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Why Starting with an ASA ?
When you learn RESTFul APIs on ASA. you understand how to interact with any
Cisco Security Solution ( with any network devices, with any Restful Server )
If you are familiar with CLI it will be very easy for you to understand what APIs do
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Why Starting with an ASA ?
ASA APIs
SSH with Netmiko Action Collect
HTTPS APIs
Restful APIs
Expose Parse
JSON Format and parsing
Text Parsing
Store
Managing results
Collect
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Parse Store Expose Action
ASA REST API Documentation and Console
https://[ ASA admin ip addr ]/doc
Python, JavaScript or
Perl
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
POSTMAN create/modify/delete : an IP route
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Copy/Edit the Code
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Run the Code
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Try something more difficult like managing
device’s interfaces
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Webex Team
© 2020
2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Cisco Webex Teams for Developers
https://developer.webex.com/
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Master Webex Team – Use a script to
https://developer.cisco.com/learning/tracks/collab-cloud
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Are You Ready ?!
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
How do you “Lab”?
Watch
Just Watch
Now, Do
Watch and Do
Later
How do you learn best ?
© 2013-2014 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 50
Ok Let’s GO !
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
After the break ! : 10 Mins
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Confidential