NX-OS Programmability Flashcards

1
Q

what can be used to browse objects in NX-OS

A

Visore

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

what can be used to translate CLI commands to API calls

A

NX-API sandbox that can be enabled per device

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

what boot and provisioning techs are supported

A

POAP and PXE

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

what package mgmt tool is supported

A

RPM and YUM

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

what open interfaces are supported

A

bash, Broadcomm shell, Python and guest shell

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

how NX-OS can be extended

A

by using containers

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

what is POAP

A

power-on auto provisioning allows switch to upgrade without intervention by the admin

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

what triggers POAP

A

when switch boots and does not find its startup config

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

what POAP leverages

A

DHCP

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

what function POAP script plays

A

once the scrip is downloaded it install correct image and copies the running-config

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

pertaining to configuration mgmt, what else POAP can do

A

it can install Puppet and Chef agents on the switches

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

how to get to bash on nx-os

A

run bash

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

what Broadcomm shell is used for

A

hardware diagnostics

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

what Python calls to NX-OS CLI return

A

JSON

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

what is SMACK

A

it restricts third party containers accessing root privileges

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

what container technology can be run on NX-OS

A

LXC

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

how can you generate Python code

A

by using NX-API sandbox

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

what is NX-API CLI

A

REST like API, CLI available off the box, supports show commands, Linux bash and configuration

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

why NX-API is a great tool for beginners

A

it still sends CLI commands but returns structured data like JSON or XML

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

define the building blocks of NX-API

A
  • HTTPS transport
  • send commands are encoded in POST body
  • responses are encoded in JSON-RPC, JSON or XML
  • NGINX used as a server
21
Q

what happens if NGINX resource usage exceeds cgroup limitations

A

process is stopped and restarted

22
Q

how long the session authentication cookie is valid

A

600s i.e. 10 min

23
Q

how do you enable NX-API

A

feature nxapi
nxapi https port 8443
nxapi sandbox

24
Q

how NETCONF has been implemented on NX-OS

A

maps to commands and is based on XSD

25
which port NETCONF uses on NX-OS
22 (SSH)
26
what XML management tool can be used on client side
Python ncclient for instance
27
what XML documents must adhere to
to the scemas set by XSD (and YANG on other platforms)
28
xmlagent
on device XML/NETCONF server
29
xmlin
interative utility to obtain XML strings
30
how to translate show command to XML
show command | xmlin
31
how to see output of show command in XML
show command | xmlout
32
how to access NETCONF subsystem from client
ssh user@nxos -s netconf
33
what do you do when server send NETCONF hello
you reply with client side hello and ]]>]]>
34
NX-API REST is evolved from
NX-API CLI
35
tree structure used to store object info
Management Information Tree
36
NX-API REST is supported
Nexus 3k/9k starting from 7.0(3)
37
what are MOs
managed object is a name for an object instance
38
what is DN used for
to identify each MO
39
what if you miss attributes in REST call
API uses the default values (forgiving mode)
40
what is the role of DME
validates and rejects incorrect attributes
41
what is being atomic mean
if one configuration task is failed, API stops the task
42
REST methods that NX-API supports
POST, GET, DELETE
43
Pertaining to REST what does idempotency mean
the change is only done once, no matter how many times the call is done
44
what headers are used with NX-API REST
accept and content-type
45
what type of queries can be done on NX-API REST
query and class
46
where are Python scripts located on NX-OS
bootlfash:scripts
47
how do you execute on a script on NX-OS
using source command
48
how can you trigger a script daily
using a scheduler feature