Cisco Nexus 3000 and 9000 Series NX-API REST SDK User Guide and API Reference, Release 10.5(x)
Latest
- Cisco Nexus 3000 and 9000 Series NX-API REST Documentation
- Cisco Nexus 3000 and 9000 Series NX-API REST SDK User Guide and API Reference, Release 10.5(x)
- Getting Started with the Cisco Nexus 3000 and 9000 Series NX-API REST SDK
- Related Documentation
- New and Changed Information
- Manageability
- ISSU Commands
- Installing Software Packages
- Configuring NX-API Management
- Managing Images
- Manageability Actions
- Configuring GRPC tunnel destination
- Manageability Using YANG (NETCONF)
- Configuring Fundamentals
- High Availability and Redundancy
- Configuring ITD
- Configuring Interfaces
- Configuring Ethernet Interfaces
- Configuring a MAC Address Limitation
- Configuring VLAN Interfaces
- Configuring Loopback Interfaces
- Configuring MGMT Interfaces
- Configuring Breakout Profiles
- Configuring System Default Switchport
- Configuring UDLD
- Configuring BFD
- Configuring LACP
- Configuring Hostname Loopback
- Configuring Breakout on High-Bandwidth Interfaces
- Configuring Port-Channel Interfaces
- Configuring Virtual Port Channels
- Configuring Tunnel Interfaces
- Configuring Layer 2 Protocol Tunneling
- Configuring Network Address Translation (NAT)
- Configuring IP TCP MSS
- Configuring Hardware Profile Settings
- Querying Interface Information
- Clearing Statistics
- Configuring IP SLAs
- Configuring Label Switching
- Configuring Segment Routing
- Configuring MPLS LDP
- Configuring Label Advertisement
- Configuring Label Allocation
- Configuring MPLS
- Disabling MPLS Forwarding for IP
- Configuring LDP Session Backoff
- Configuring LDP Discovery
- Configuring Explicit Null Label Advertisement
- Configuring LDP Graceful Restart
- Configuring LDP Holdtime
- Configuring a Neighbor
- Configuring an LDP Password
- Configuring LDP Logging
- Configuring LDP Labels
- Configuring an LDP Session
- Configuring MPLS LDP on an Interface
- Configuring Netstack
- Configuring Layer 2 Switching
- Configuring Flex Links
- Configuring Hairpin Forwarding
- Configuring Storm Control
- Configuring a Private VLAN (PVLAN)
- Configuring Multicast Routing
- Configuring PIM/PIM6
- Configuring MSDP
- Configuring IGMP
- Configuring MLD Snooping
- Configuring MRIB
- Configuring RPF Routes for Multicast
- Configuring Fabric Extender
- Configuring QoS
- Configuring Policing
- Configuring QoS Class Maps
- Configuring QoS Policy Maps
- Configuring a User-Defined Network QoS Policy
- Configuring the Hardware Buffer Utilization Thresholds
- Configuring Hardware QoS
- Configuring Hardware Profile Settings on the Cisco Nexus 3500 Platform
- Configuring Cisco Nexus 9000 (Cisco-ASIC based) Platform QoS
- Configuring Priority Flow Control
- Changing the Bandwidth Allocated to Unicast and Multicast Traffic
- Clearing Statistics
- Configuring TCAM
- Enabling Queue-Based ECN Marking
- Configuring Trust Boundaries
- Configuring Security
- Configuring FIPS Mode
- Configuring EAP Profile
- Configuring Keychain Management
- Configuring AAA
- Configuring RADIUS
- Configuring TACACS+
- Configuring LDAP
- Configuring SSH
- Configuring a Trustpool Policy
- Configuring a Trustpoint Certificate Authority
- Configuring a Trustpoint Certificate Authority
- Configuring Certificate Authority Related Information
- Crypto ca import for mytrustpoint pkcs12
- Configuring Telnet
- Configuring the Shell Type for Login
- Configuring User Accounts and RBAC
- Configuring the VSH Roles and Rules
- Configuring ACLs
- Configuring Port Security
- Configuring DHCP
- Configuring Password Encryption
- Configuring VPN Ids
- Configuring Unicast RPF (URPF)
- Configuring System Security Compliance
- Configuring Control Plane Policing
- Configuring Rate Limits
- Configuring MACsec
- Known Behaviour for Logging Level Configs
- Configuring System Management
- Configuring Sup Boot Variables
- Configuring System Cores
- Configuring System Trace Level
- Configuring the Fast Reload Network Stabilization Timer
- Configuring Frequency Synchronization
- Configuring NTP
- Configuring PTP
- Verifying PTP Counters
- Configuring Cisco Discovery Protocol
- Configuring Call Home
- Configuring Checkpoints and Rollback
- Configuring System Logging
- Configuring the Scheduler
- Configuring SNMP
- Configuring RMON
- Configuring Online Diagnostics
- Configuring EVMED
- Configuring Embedded Event Manager
- Configuring Memory Thresholds
- Configuring SPAN
- Configuring ERSPAN
- Configuring LLDP
- Enabling and Disabling LLDP
- Configuring LLDP in Global Mode
- Configuring LLDP on the if-eth-base/if-ethernet-all Command Mode
- Configuring LLDP on the if-gig-ether Command Mode
- Configuring LLDP on the if-gig-ether-all Command Mode
- Configuring LLDP on the if-mgmt-ether Command Mode
- Configuring the DCBXP Version
- Configuring System Interface Shutdown
- Configuring NetFlow
- Configuring Drop Report Tool
- Configuring sFlow
- Attaching a TAP Aggregation Policy to an Interface
- Configuring MPLS Stripping
- Configuring the Maintenance-Mode Profile
- Configuring Maintenance Mode
- Configuring CFS
- Configuring User-Defined Fields
- Configuring a Fan-Direction Mismatch
- System-Level High Availability
- Configuring NX-OS Container Tracker
- Configuring VXLAN
- VXLAN New and Changed
- Micro-segmentation for VXLAN Fabrics Using Group Policy Option (GPO)
- Configuring VXLAN BGP EVPN
- Configuring HMM
- Configure VXLAN FHS
- VXLAN Configuration Command Examples
- Configuring NVE Interfaces
- Configuring BGP EVPN Filtering
- Configuring VXLAN OAM (NGOAM)
- Executing Ping NVE, Traceroute NVE, and Path Trace NVE
- Configuring System NVE
- Associating NVE Interfaces with VNIs
- Configuring ngMVPN
- Configuring Selective Q-in-VNI
- Ephemeral (MOTL) MOs for NVE
- Configuring Unicast Routing
- Configuring the System Routing Mode
- Configuring ARP
- Configuring ALPM
- Configuring Logging for Software Forwarding of IP Packets
- Configuring DNS
- Configuring OSPF, OSPFv2, and OSPFv3
- Configuring OSPF
- Configuring OSPFv2
- Configuring OSPFv3
- Configuring an IPv6 Unicast Address Family Under an OSPFv3 Instance
- Configuring OSPFv3 Broadcast Network Type
- Configuring OSPFv3 on an Ethernet Interface
- Configuring OSPFv3 on a Loopback Interface
- Configuring OSPFv3 on a MGMT Interface
- Configuring OSPFv3 on a P2P Ethernet Interface
- Configuring OSPFv3 on a Tunnel Interface
- Configuring a Virtual Link Under an OSPFv3 Instance
- Configuring a VRF Under an OSPFv3 Instance
- Querying OSPFv3
- Configuring IS-IS
- Configuring IS-IS in Global Configuration Command Mode
- Configuring IS-IS in Interface Configuration Mode
- Configuring IS-IS in Router Configuration Mode
- Configuring IS-IS in Router VRF Configuration Mode
- Configuring IS-IS in Router IPv4 Address Family Configuration Mode
- Configuring IS-IS in Router IPv6 Address Family Configuration Mode
- IS-IS Operational Commands
- Configuring EIGRP
- Enabling EIGRP
- Disabling EIGRP
- Configuring isolate Under EIGRP
- Configuring flush-routes under EIGRP
- Configuring vrf
- Configuring EIGRP address-family
- Configuring EIGRP router-id
- Configuring EIGRP distance
- Configuring EIGRP maximum paths
- Configuring EIGRP default information originate
- Configuring EIGRP administrative state
- Configuring IPV4 EIGRP route redistribution
- Configuring IPv6 EIGRP route redistribution
- Configuring EIGRP table map filter
- Configuring EIGRP redistribute maximum prefix
- Configuring EIGRP graceful restart
- Configuring EIGRP log adjacency changes
- Configuring EIGRP log adjacency warnings
- Configuring EIGRP metric version
- Configuring EIGRP metric maximum hops
- Configuring EIGRP nsf await redistribute proto convergence
- Configuring EIGRP autonomous system number
- Configuring EIGRP nsf route-hold timer
- Configuring EIGRP nsf converge timer
- Configuring EIGRP nsf signal timer
- Configuring EIGRP timers active-time
- Configuring EIGRP supress fib pending
- Configuring EIGRP passive interface
- Configuring EIGRP metric weights
- Configuring EIGRP default metric
- Configuring EIGRP stub
- Configuring EIGRP authentication key chain
- Configuring EIGRP authentication mode
- Configuring BFD for EIGRP
- Configuring EIGRP in Interface Configuration Mode
- Configuring BGP
- Configuring a BGP Router
- VXLAN EVPN Traffic Engineering - Multi-Site Egress Load-Balancing
- VXLAN EVPN Traffic Engineering – RPM support
- Configuring BGP on a VRF
- Configuring BFD Multihop under a Neighbor
- Configuring an IPv4 Multicast Address Family
- Configuring an IPv4 MVPN Address Family
- Configuring an IPv4 Unicast Address Family
- Configuring an IPv6 MVPN Address Family
- Configuring an IPv6 Unicast Address Family
- Configuring a Link-State Address Family
- Configuring a VPNv4 Unicast Address Family
- Configuring a VPNv6 Unicast Address Family
- Configuring a Peer Policy Template
- Configuring an IPv4 Labeled Unicast Subaddress Family for a Peer Policy Template
- Configuring an IPv4 Unicast Subaddress Family for a Peer Policy Template
- Configuring an IPv6 Unicast Subaddress Family for a Peer Policy Template
- Configuring a VPNv4 Unicast Subaddress Family for a Peer Policy Template
- Configuring a VPNv6 Unicast Subaddress Family for a Peer Policy Template
- Configuring a Peer Policy Template with Peer Template Inheritance
- Configuring an IPv4 Labeled Unicast Subaddress Family for a Peer Policy Template with Peer Template Inheritance
- Configuring an IPv4 Unicast Subaddress Family for a Peer Policy Template with Peer Template Inheritance
- Configuring an IPv6 Unicast Subaddress Family for a Peer Policy Template with Peer Template Inheritance
- Configuring a VPNv4 Unicast Subaddress Family for a Peer Policy Template with Peer Template Inheritance
- Configuring a VPNv6 Unicast Subaddress Family for a Peer Policy Template with Peer Template Inheritance
- Configuring a Peer Template
- Configuring an IPv4 Labeled Subaddress Family for a Peer Template
- Configuring an IPv4 Unicast Subaddress Family for a Peer Template
- Configuring an IPv6 Unicast Subaddress Family for a Peer Template
- Configuring a VPNv4 Subaddress Family for a Peer Template
- Configuring a VPNV6 Subaddress Family for a Peer Template
- Configuring Peer Template Inheritance
- Configuring an IPv4 Labeled Unicast Subaddress Family for Peer Template Inheritance
- Configuring an IPv4 Unicast Subaddress Family for Peer Template Inheritance
- Configuring an IPv6 Unicast Subaddress Family for Peer Template Inheritance
- Configuring a VPNv4 Unicast Subaddress Family for Peer Template Inheritance
- Configuring a VPNv6 Unicast Subaddress Family for Peer Template Inheritance
- Configuring a Peer Template with Peer Template Inheritance
- Configuring an IPv4 Labeled Unicast Subaddress Family for a Peer Template with Peer Template Inheritance
- Configuring an IPv4 Unicast Subaddress Family for a Peer Template with Peer Template Inheritance
- Configuring an IPv6 Unicast Subaddress Family for a Peer Template with Peer Template Inheritance
- Configuring a VPNv4 Unicast Subaddress Family for a Peer Template with Peer Template Inheritance
- Configuring a VPNv6 Unicast Subaddress Family for a Peer Template with Peer Template Inheritance
- Configuring a BGP Neighbor (IP Address)
- Configuring an IPv4 Unicast Subaddress Family Under a BGP Neighbor (IP Address)
- Configuring an IPv6 Labeled Unicast Subaddress Family Under a BGP Neighbor (IP Address)
- Configuring an IPv6 Multicast Subaddress Family Under a BGP Neighbor (IP Address)
- Configuring an IPv6 Unicast Subaddress Family Under a BGP Neighbor (IP Address)
- Configuring an IPv4 MVPN Subaddress Family Under a BGP Neighbor (IP Address)
- Configuring an IPv6 MVPN Subaddress Family Under a BGP Neighbor (IP Address)
- Configuring an L2VPN EVPN Address Family under a BGP Neighbor (IP Address)
- Configuring a VPNv4 Unicast Subaddress Family Under a BGP Neighbor (IP Address)
- Configuring a VPNv6 Unicast Subaddress Family Under a BGP Neighbor (IP Address)
- Configuring BGP Session Templates Under a BGP Neighbor (IP Address)
- Configuring a BGP Neighbor (Ethernet Interface)
- Configuring an IPv4 Unicast Subaddress Family Under a BGP Neighbor (Ethernet Interface)
- Configuring an IPv6 MVPN Subaddress Family Under a BGP Neighbor (Ethernet Interface)
- Configuring an L2VPN EVPN Subaddress Family Under a BGP Neighbor (Ethernet Interface)
- Configuring a VPNv4 Unicast Subaddress Family Under a BGP Neighbor (Ethernet Interface)
- Configuring a VPNv6 Unicast Subaddress Family Under a BGP Neighbor (Ethernet Interface)
- Configuring a BMP Server
- Configuring Mixed ECMP
- About Querying Ephemeral Data
- Configuring RIP
- Configuring DSCP
- Configuring VRFs
- Configuring Route Policy Manager
- First-Hop Redundancy Protocols
- Configuring Hardware Forwarding
- Configuring Hardware Ejector
- Configuring Hardware Profile Settings
- Configuring the Site of Origin
- Configuring AS-4 Dot Notation
- Configuring Static Routing
- Configuring Load Sharing in the Unicast FIB
- Configuring OpenFlow
- Configuring RTP Flow Monitoring
- Configuring Kernel Stack
- Configuring Apphosting
- Controlling the Guest Shell
- Enabling the Guest Shell and Querying the Result
- Disabling the Guest Shell and Querying the Result
- Destroying the Guest Shell and Querying the Result
- Rebooting the Guest Shell and Querying the Result
- Increasing the Guest Shell Rootfs Size and Querying the Result
- Changing the CPU Memory Size that the Guest Shell Uses and Querying the Result
- Changing the Memory Size the Guest Shell Uses and Querying the Result
- Syncing the Guest Shell Rootfs to the Standby Supervisor and Querying the Result
- Exporting the Guest Shell Rootfs and Querying the Result
- Upgrading the Guest Shell Rootfs and Querying the Result
- Querying Guest Shell Information
- Change Virtual Service Global Configuration
- Managing System Hardware
- Configuring the Baseboard Management Controller
- Configuring Virtual Machine Tracker
- Configuring Virtual Device Contexts
- Configuring iCAM
- Configuring SRv6
- Configuring Smart Software Licensing
- Querying Configurations (Show Commands)
- Querying Advertised Routes
- Querying DHCP Relay Interfaces
- Querying Diagnostic Result Test IDs
- Querying the Environment Settings
- Querying Feature Status
- Querying Inventory Information
- Querying IS-IS Configurations
- Querying IP IGMP Groups
- Querying IP OSPF Neighbor Details
- Querying IP OSPF Neighbor VRF Information
- Querying L2VPN EVPN
- Querying LLDP
- Querying MAC Address Table Info
- Querying Module Information
- Querying NAT ITD
- Querying NTP Peer Status
- Querying an OSPFv2 Instance
- Querying Patterns
- Querying PIM Information
- Querying the Processes Log
- Querying Spanning Tree Information
- Querying a Summary of IP Interface Status and Configuration Information
- Querying TCAM Resource Utilization
- Querying MCAST NAT TCAM Resource Monitoring
- Querying NBM TCAM Resource Monitoring
- Querying the Version
- Querying VLAN ID Counters
- Querying VRF Information
- Querying VRRP Information
- Querying Forwarding Route Information
- Querying IP Route Details
- Querying the Current MOTD Banner Message
- Querying OSPF Neighbors
- Querying Analytic Information
- Querying Interface and VLAN Counters and Statistics
- Querying ITD Runtime Information
- Querying ePBR Runtime Information
- Using the Managed Object Browser
- Monitoring the Environment
Querying Analytic Statistics
DME
YANG
CopyGET http://<IP_Address>/api/mo/sys/analytics/inst-analytics/fwdinst-65793/dbgStatistics.json
Response
{
"totalCount": "1",
"imdata": [
{
"analyticsStatistics": {
"attributes": {
"clearTs": "never",
"dn": "sys/analytics/inst-analytics/fwdinst-65793/dbgStatistics",
"export": "12980",
"flowCreateCe": "0",
"flowCreateIPv4": "12976",
"flowCreateIPv6": "0",
"flowHitCe": "0",
"flowHitIPv4": "0",
"flowHitIPv6": "0",
"lastCollectTs": "0",
"packetsSeen": "14220",
"skipCollect": "1244"
}
}
}
]
}
CopyGET: http://<IP_Address>/restconf/data/Cisco-NX-OS-device:
<analytics-items>
<inst-items>
<Inst-list>
<mode>analytics</mode>
<adminSt>enabled</adminSt>
<collector-items>
<Collector-list>
<name>e2</name>
<dscp>44</dscp>
<dstAddr>10.1.11.2</dstAddr>
<dstPort>2000</dstPort>
<srcIf>lo0</srcIf>
<ver>cisco-v1</ver>
</Collector-list>
<Collector-list>
<name>e5</name>
<dscp>44</dscp>
<dstAddr>10.1.11.5</dstAddr>
<dstPort>5000</dstPort>
<srcIf>lo0</srcIf>
<ver>cisco-v1</ver>
</Collector-list>
<Collector-list>
<name>e3</name>
<dscp>44</dscp>
<dstAddr>10.1.11.3</dstAddr>
<dstPort>3000</dstPort>
<srcIf>lo0</srcIf>
<ver>cisco-v1</ver>
</Collector-list>
<Collector-list>
<name>e1</name>
<dscp>44</dscp>
<dstAddr>10.1.11.1</dstAddr>
<dstPort>1000</dstPort>
<srcIf>lo0</srcIf>
<ver>cisco-v1</ver>
</Collector-list>
<Collector-list>
<name>e4</name>
<dscp>44</dscp>
<dstAddr>10.1.11.4</dstAddr>
<dstPort>4000</dstPort>
<srcIf>lo0</srcIf>
<ver>cisco-v1</ver>
</Collector-list>
</collector-items>
<fwdinst-items>
<FwdInstTarget-list>
<id>65793</id>
<DefPolicy>permit</DefPolicy>
<ceCreate>0</ceCreate>
<ceHit>0</ceHit>
<collectorId>1234</collectorId>
<dbgStatistics-items>
<export>58412</export>
<flowCreateCe>0</flowCreateCe>
<flowCreateIPv4>58408</flowCreateIPv4>
<flowCreateIPv6>0</flowCreateIPv6>
<flowHitCe>0</flowHitCe>
<flowHitIPv4>0</flowHitIPv4>
<flowHitIPv6>0</flowHitIPv6>
<lastCollectTs>0</lastCollectTs>
<packetsSeen>59921</packetsSeen>
<skipCollect>1513</skipCollect>
</dbgStatistics-items>
<dir>in</dir>
<fltType>ipv4</fltType>
<ipv4Create>0</ipv4Create>
<ipv4Hit>0</ipv4Hit>
<ipv6Create>0</ipv6Create>
<ipv6Hit>0</ipv6Hit>
<rspolicyAtt-items>
<tCl>analyticsPolicy</tCl>
<tDn>/System/analytics-items/inst-items/Inst-list[mode='analytics']/policy-items/Policy-list[name='abc']</tDn>
</rspolicyAtt-items>
<rsprofAtt-items>
<tCl>analyticsProfile</tCl>
<tDn>/System/analytics-items/inst-items/Inst-list[mode='analytics']/prof-items/Profile-list[name='h2']</tDn>
</rsprofAtt-items>
</FwdInstTarget-list>
</fwdinst-items>
<monitor-items>
<Monitor-list>
<name>m1</name>
<collectorbucket-items>
<CollectorBucket-list>
<id>1</id>
<hashHi>4095</hashHi>
<hashLo>0</hashLo>
<rscollectorAtt-items>
<RsCollectorAtt-list>
<tDn>/System/analytics-items/inst-items/Inst-list[mode='analytics']/collector-items/Collector-list[name='e1']</tDn>
<tCl>analyticsCollector</tCl>
</RsCollectorAtt-list>
<RsCollectorAtt-list>
<tDn>/System/analytics-items/inst-items/Inst-list[mode='analytics']/collector-items/Collector-list[name='e3']</tDn>
<tCl>analyticsCollector</tCl>
</RsCollectorAtt-list>
</rscollectorAtt-items>
</CollectorBucket-list>
<CollectorBucket-list>
<id>2</id>
<hashHi>4095</hashHi>
<hashLo>2048</hashLo>
<rscollectorAtt-items>
<RsCollectorAtt-list>
<tDn>/System/analytics-items/inst-items/Inst-list[mode='analytics']/collector-items/Collector-list[name='e2']</tDn>
<tCl>analyticsCollector</tCl>
</RsCollectorAtt-list>
<RsCollectorAtt-list>
<tDn>/System/analytics-items/inst-items/Inst-list[mode='analytics']/collector-items/Collector-list[name='e4']</tDn>
<tCl>analyticsCollector</tCl>
</RsCollectorAtt-list>
</rscollectorAtt-items>
</CollectorBucket-list>
</collectorbucket-items>
<rsrecordPAtt-items>
<tCl>analyticsRecordP</tCl>
<tDn>/System/analytics-items/inst-items/Inst-list[mode='analytics']/recordp-items/RecordP-list[name='r1']</tDn>
</rsrecordPAtt-items>
</Monitor-list>
</monitor-items>
<operErr/>
<policy-items>
<Policy-list>
<name>abc</name>
<acl-items>
<MatchAcl-list>
<name>ipv4</name>
<fltType>ipv4</fltType>
</MatchAcl-list>
<MatchAcl-list>
<name>ipv6</name>
<fltType>ipv6</fltType>
</MatchAcl-list>
</acl-items>
</Policy-list>
</policy-items>
<prof-items>
<Profile-list>
<name>h2</name>
<burstIntvlShift>0</burstIntvlShift>
<collectIntvl>100</collectIntvl>
<ipPktIdShift>0</ipPktIdShift>
<mtu>1500</mtu>
<payloadlenbin-items>
<PayloadLenBin-list>
<id>2</id>
<hi>6</hi>
<lo>1</lo>
</PayloadLenBin-list>
<PayloadLenBin-list>
<id>1</id>
<hi>10</hi>
<lo>1</lo>
</PayloadLenBin-list>
</payloadlenbin-items>
<rcvwindowszbin-items>
<RcvWindowSzBin-list>
<id>3</id>
<hi>8</hi>
<lo>1</lo>
</RcvWindowSzBin-list>
<RcvWindowSzBin-list>
<id>2</id>
<hi>7</hi>
<lo>1</lo>
</RcvWindowSzBin-list>
</rcvwindowszbin-items>
<seqNumGuessThreshHi>255</seqNumGuessThreshHi>
<seqNumGuessThreshLo>2</seqNumGuessThreshLo>
<srcPort>555</srcPort>
<tcpopthdrlenbin-items>
<TCPOptHdrLenBin-list>
<id>1</id>
<hi>5</hi>
<lo>1</lo>
</TCPOptHdrLenBin-list>
<TCPOptHdrLenBin-list>
<id>2</id>
<hi>6</hi>
<lo>1</lo>
</TCPOptHdrLenBin-list>
</tcpopthdrlenbin-items>
</Profile-list>
</prof-items>
<recordp-items>
<RecordP-list>
<name>r1</name>
<collect>count-bytes,count-pkts</collect>
<match>dst-ipv4,dst-port,proto,src-ipv4,src-port</match>
</RecordP-list>
</recordp-items>
</Inst-list>
</inst-items>
</analytics-items>