Python has become one of the most common programming languages in terms of network programmability. It is one of the easier languages to get started with and interpret.
Ex: """Set the Environment Information Needed to Access Your Lab!
The provided sample code in this repository will
reference this file to get the
information needed to connect to your lab backend.
You provide this info here
once and the scripts in this repository will
access it as needed by the lab."""
In the above example python script starts with three quotation marks. These three quotation marks begin and end a multiple line string. A string is simply one or more alphanumeric characters. A string can comprise many numbers or letters, depending on the Python version in use.
JSON stores all its information in key/value pairs. JSON uses objects for its format. Each JSON object starts with a { and ends with a }. (These are commonly referred to as curly braces.)
For Ex: { "student": "john", "Section": "D", "friend": "Lee", “School:"VBV" }
JSON: JSON short for JavaScript Object Notation, is an open-standard file format or data interchange format that uses human-readable text to transmit data objects consisting of attribute - value pairs and array data types.
Yet Another Next Generation (YANG): YANG (Yet Another Next Generation) is different from YAML, XML, and JSON. YANG is a data modeling language used to define data. YANG models data using a hierarchical, tree-based structure with nodes. YANG defines four nodes types. Each node has a name, and depending on the node type, the node might either define a value or contain a set of child nodes. The nodes types are:
1. leaf node - Contains a single value of a specific type
2. leaf-list node - Contains a sequence of leaf nodes
3. container node- Contains a grouping of related nodes containing only child nodes, which can be any of the four node types
4. list node - Contains a sequence of list entries, each of which is uniquely identified by one or more key leafs
YANG is a significantly refined data modeling language. It allows definition of constraints and separation of configuration and state elements. Unlike SNMP, NETCONF supports atomic transactions for configuration change. YANG Data models are very powerful in that they create a uniform way to describe data, which can be beneficial across vendors platforms. Data models allow network operators to configure, monitor, and interact with network devices holistically across the entire enterprise environment. YANG models make a clear distinction between configuration data and state information.
The DNA center provides Path trace feature that allows the operator to visualize the path of an application or service from the client through all devices and to the server. A common, and critical, troubleshooting task that normally requires 6 to 10 minutes is displayed instantly upon clicking on a client or application. Troubleshoots issues along the network path. Using this feature, you can Run a path trace from source to destination to quickly get key performance statistics for each device along the network path Identify access control lists (ACLs) that may be blocking or affecting the traffic flow.
CRUD Function | Action | Use Case |
---|---|---|
CREATE | Inserts data in a database or application | Updating a customer's home address in a database |
READ | Retrieves data from a database or application | Pulling up a customer's home address from a database |
UPDATE | Modifies or replaces data in a database or application | Changing a street address stored in a database |
DELETE | Removes data from a database or application | Removing a customer from a database |
The EEM(Embedded Event manager is a software component of cisco IOS, XR, and NX-OS makes life easier for administrators by tracking and classifying events that take place on a router and providing notification options for those events. EEM allows you to automate tasks, perform minor enhancements and create workarounds.
EEM consists of three components:
Policies:Policies, or scripts, are either applets or Tcl scripts configured by the administrator.
EEM server:The EEM server is the director of EEM. When a configured event occurs, the associated action is implemented.
Event detectors:An event detector is used as a trigger, based on certain conditions. Some of these conditions include monitoring for syslog events, online insertion and removal (IOR), CLI input, and timers.
Puppet and chef requires to install agent on nodes before configuration server manage it Comparing Ansible,Puppet and chef
Action | Ansible | Puppet | Chef |
---|---|---|---|
Term for that lists actions | Playbook | Manifest | Recipe,Runlist |
Protocol to network device | SSH,NetConf | HTTP(Rest) | HTTP(Rest) |
Uses agent or agentless model | Agentless | Agent | Agent |