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
Q

which port NETCONF uses on NX-OS

A

22 (SSH)

26
Q

what XML management tool can be used on client side

A

Python ncclient for instance

27
Q

what XML documents must adhere to

A

to the scemas set by XSD (and YANG on other platforms)

28
Q

xmlagent

A

on device XML/NETCONF server

29
Q

xmlin

A

interative utility to obtain XML strings

30
Q

how to translate show command to XML

A

show command | xmlin

31
Q

how to see output of show command in XML

A

show command | xmlout

32
Q

how to access NETCONF subsystem from client

A

ssh user@nxos -s netconf

33
Q

what do you do when server send NETCONF hello

A

you reply with client side hello and ]]>]]>

34
Q

NX-API REST is evolved from

A

NX-API CLI

35
Q

tree structure used to store object info

A

Management Information Tree

36
Q

NX-API REST is supported

A

Nexus 3k/9k starting from 7.0(3)

37
Q

what are MOs

A

managed object is a name for an object instance

38
Q

what is DN used for

A

to identify each MO

39
Q

what if you miss attributes in REST call

A

API uses the default values (forgiving mode)

40
Q

what is the role of DME

A

validates and rejects incorrect attributes

41
Q

what is being atomic mean

A

if one configuration task is failed, API stops the task

42
Q

REST methods that NX-API supports

A

POST, GET, DELETE

43
Q

Pertaining to REST what does idempotency mean

A

the change is only done once, no matter how many times the call is done

44
Q

what headers are used with NX-API REST

A

accept and content-type

45
Q

what type of queries can be done on NX-API REST

A

query and class

46
Q

where are Python scripts located on NX-OS

A

bootlfash:scripts

47
Q

how do you execute on a script on NX-OS

A

using source command

48
Q

how can you trigger a script daily

A

using a scheduler feature