Archive

Category Archives for "Coding Packets Blog"

Ruby Quick Reference

Best Practices Ruby Style Guide Rails Testing Best Practices Comment Variable String Stings are mutable in Ruby HERE Doc HERE are used for multi-line strings Symbol Symbols are similar to strings except they are immutable Integer Boolean Array Hash # New syntax - Ruby >= 1.9 For Loop #...continue reading

NMAP Quick Reference

NMAP is a tool for network discovery and auditing. This is not a comprehensive tutorial, only a quick reference source. Consult the man pages and/or documentation for indepth explanation of commands. Port Scan Top Ports Scan the top N number of ports cmd nmap --top-ports 10 www.google.com UDP...

Netcat Quick Reference

Netcat is a utility for checking open ports. It has more flexibility than using the telnet command and can be used with scripts more easily. This is not a comprehensive tutorial, only a quick reference source. Consult the man pages and/or documentation for indepth explanation of commands. I...

Napalm Getting Started

Napalm is a network automation library written in python that abstracts the differences between libraries such as Juniper's pyez and Arista's pyeapi bringing a common interface across many API's. Napalm is well supported in the network community, originally started by David Barroso and Elisa...

TextFSM Getting Started

Textfsm is a text parsing library written in python to turn plain text into structured data. Originally created by Google, the project seemed largely abandoned until recently being added to github and receiving a small update. This post will show how to extract interesting data from the...

Jinja2 For Network Engineers

Jinja2 is a templating language built in python and loosely based on the Django templating language. Jinja2 is used in many projects as a templating engine with some notable examples: Ansible, Salt and Flask. Jinja2 aims to implement some of the most common features of python right into...

Ansible Overview

Ansible is a 'radically simple', open source, IT automation platform. Architecture Control Node The Ansible control node is the central point of management for managed nodes. Configuration is pushed to the managed nodes from the control node. Managed Node A managed node...continue reading