Cisco Nexus 5600 Series Configuration Manual page 316

Nx-os system management
Hide thumbs Also See for Nexus 5600 Series:
Table of Contents

Advertisement

Adding Show Commands to Snapshots
Step 2
The following example shows how to add the show ip route detail vrf all command to the snapshot:
switch# snapshot section add v4route "show ip route detail vrf all" ROW_prefix ipprefix
switch# show snapshots sections
user-specified snapshot sections
--------------------------------
[v4route]
show command: show ip route detail vrf all
row id: ROW_prefix
key1: ipprefix
key2: -
The following example shows how to add the show ipv6 route detail vrf all command to the snapshot:
switch# snapshot section add routev6 "show ipv6 route detail vrf all" ROW_prefix ipprefix
added section "routev6"
switch# show snapshots sections
user-specified snapshot sections
--------------------------------
[routev6]
show command: show ipv6 route detail vrf all
row id: ROW_prefix
key1: ipprefix
key2: -
The following example shows how to delete a user-specified snapshot section:
switch# snapshot section delete v4route
deleted section "v4route"
switch# show snapshots sections
user-specified snapshot sections
--------------------------------
none
The following example displays the XML output of the show ip route detail vrf all command:
switch(config)# show ip route detail vrf all | xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<nf:rpc-reply xmlns:nf="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns="http://w
ww.cisco.com/nxos:7.3.0.N1.1.:urib">
<nf:data>
<show>
<ip>
Cisco Nexus 5600 Series NX-OS System Management Configuration Guide, Release 7.x
294
Command or Action
switch# show snapshots
sections
<__readonly__>
<TABLE_vrf>
<ROW_vrf>
<vrf-name-out>default</vrf-name-out>
<TABLE_addrf>
<ROW_addrf>
<addrf>ipv4</addrf>
<TABLE_prefix>
<ROW_prefix>
<ipprefix>0.0.0.0/32</ipprefix>
<ucast-nhops>1</ucast-nhops>
<mcast-nhops>0</mcast-nhops>
Configuring GIR (Cisco NX-OS Release 7.3(0)N1(1))
Purpose
To delete a user-specified section from snapshots, use the
Note
snapshot section delete section section command.
(Optional)
Displays the user-specified snapshot sections.
OL-31641-01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents