Cisco Nexus 5000 Series Manual de referencia - Página 4

Navegue en línea o descargue pdf Manual de referencia para Enrutador de red Cisco Nexus 5000 Series. Cisco Nexus 5000 Series 12 páginas. Configuring ip source guard
También para Cisco Nexus 5000 Series: Nota de publicación (26 páginas), Manual de consulta rápida (14 páginas), Nota de publicación (26 páginas), Manual de solución de problemas (8 páginas), Manual (11 páginas), Manual (6 páginas), Manual (7 páginas), Manual de instrucciones (45 páginas), Manual de configuración (6 páginas)

Cisco Nexus 5000 Series Manual de referencia
</outputs>
</ins_api>
The following example shows a request and its response in JSON format:
Request:
{
"ins_api": {
"version": "0.1",
"type": "cli_show",
"chunk": "0",
"sid": "session1",
"input": "show switchname",
"output_format": "json"
}
}
Response:
{
"ins_api": {
"type": "cli_show",
"version": "0.1",
"sid": "eoc",
"outputs": {
"output": {
"body": {
"hostname": "switch"
},
"input": "show switchname",
"msg": "Success",
"code": "200"
}
}
}
}
Sample NX-API Scripts
The sample scripts demonstrate how a script is used with NX-API. The scripts are available at
https://github.com/datacenter/nxos/tree/master/nxapi/samples.
• Cable Checker (check_cable.py)
• Cable Checker Blueprint (connectivity.json)
NX-API Sandbox
The NX-API Sandbox is the web-based user interface that you use to enter the commands, command type, and output type for the
Cisco Nexus 5000 and 6000 Series device using HTTP/HTTPS. After posting the request, the output response is displayed.
By default, NX-API is disabled. Begin enabling NX-API with the feature manager CLI command on the switch. Then enable NX-API
with the nxapi sandbox command.
Use a browser to access the NX-API Sandbox.
Note
When using the NX-API Sandbox, Cisco recommends that you use the Firefox browser, release 24.0 or
later.
The following example shows how to configure and launch the NX-API Sandbox:
4