Chapter 3 Network device programmability Flashcards

Network device programmability

1
Q

What is the purpose of the send_config_set method in Netmiko?

A

To send a list of configuration commands to a device.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the use of save_config method in Netmiko?

A

To save the configuration on the device.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is required to find the modules supported by a device using ncclient?

A

Building a NETCONF session to receive capabilities in response to the hello (rpc-reply).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the two main methods used to retrieve data from a device with ncclient?

A
  • get * get-config
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How can you request just a part of the configuration using NETCONF?

A

Using filters, which can be either subtree or xpath.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the structure of a subtree filter in NETCONF?

A

<filter>
<container_name></container_name>
<leaf></leaf>
</container_name>
</filter>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the purpose of the RESTCONF API?

A

To manage and configure network devices using HTTP requests.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the three HTTP methods used for configuration changes in RESTCONF?

A
  • PUT -> Creates or overwrites a resource.
  • POST -> Create a new resource, it doesn’t update existing resources
  • PATCH -> Update a resource
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the inventory file used for in Ansible?

A

To contain the target devices and their information.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the playbook in Ansible?

A

The file containing plays and tasks for configuration.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the purpose of the edit_config method in ncclient?

A

To send configuration changes to a device.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the significance of the auth parameter in a RESTCONF request?

A

It contains a tuple with username and password for authentication.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the command to get the running configuration in ncclient?

A

m.get_config(source=’running’).data_xml

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What does the ios_config module allow you to do?

A

Send to the target device IOS commands in config mode.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What does the ios_command module allow you to do?

A

Send to the target device IOS commands in exec mode.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the purpose of the ‘parents’ parameter in an ios_config task?

A

Specifies the config sub menu for commands.

17
Q

What is the format for sending multiple commands with ios_config?

A

Using the ‘lines’ parameter.

18
Q

What does the ‘wait_for’ parameter do in an ios_command task?

A

Waits for a specific condition in the command output.

19
Q

What is telemetry in networking?

A

Automated communication between network devices and a central node for data and configuration gathering.

20
Q

What is Model Driven Telemetry (MDT)?

A

A mechanism to stream data from an MDT-capable device to a destination receiver in a continuous flow using a push model.

21
Q

List the roles in Model Driven Telemetry.

A
  • Publisher: Network element that sends the telemetry data.
  • Receiver: Receives the telemetry data. This is also called the collector.
  • Controller: Network element that creates subscriptions but does not receive the telemetry
    data. The telemetry data associated with the subscriptions, it creates goes to receivers.
  • Subscriber: Network element that creates subscriptions.
22
Q

What is the purpose of the ‘filter’ command in telemetry configuration?

A

Specifies the information to send based on a YANG model.

23
Q

What are the two main MDT publication/subscription models?

A
  • Dynamic (Dial-in)
  • Configured (Dial-out)
24
Q

Describe the Dynamic (Dial-in) model.

A

Uses NETCONF or gNMI, updates are sent to the subscriber, and the subscription needs to be reinitiated after a reload.

25
Q

Describe the Configured (Dial-out) model.

A

Requires configuration on the publisher, automatically establishes a connection to the receiver after a reload.

26
Q

List the techniques for Day 0 provisioning supported by Cisco IOS XE.

A
  • Cisco network plug and play
  • Zero touch provisioning (ZTP)
  • Pre-Boot Execution Environment (iPXE) Client
27
Q

What is the main requirement for Cisco network plug and play?

A

A server running the PnP protocol and containing the devices’ firmware images.

28
Q

How does Zero Touch Provisioning (ZTP) work?

A

Uses standard protocols like TFTP or SCP to configure the device after obtaining an IP address from a DHCP server.

29
Q

What is the function of the DHCP server in iPXE?

A

Allows the device to reach a TFTP/FTP/HTTP server storing boot images.