Cisco IOS-XR to OcNOS: CLI Command Map

Moving from Cisco IOS-XR to OcNOS? This map lists common IOS-XR commands with the OcNOS equivalent and a note on each difference.

Config & commit

Cisco IOS-XROcNOSNotes
show running-configshow running-configIdentical verb.
configure terminalconfigure terminalEnters configuration mode.
commitcommitOcNOS is transactional like IOS-XR: staged changes apply on commit, or are discarded with abort transaction.
abortabort transactionDiscards the pending configuration transaction. The bare form is incomplete on OcNOS.
endendReturns to EXEC from any config sub-mode. On OcNOS, commit or abort the transaction first: end refuses while changes are uncommitted.
do show routedo show ip routeRun an EXEC command from config mode; IOS-XR uses 'show route', OcNOS 'show ip route'.
copy running-config startup-configwrite memoryClassic IOS / NX-OS save. IOS-XR persists on commit; on OcNOS, commit changes the running configuration and write memory saves it to startup.

Interfaces

Cisco IOS-XROcNOSNotes
show interfaces briefshow ip interface briefThe everyday 'what's up' table.
show interfaces Gi0/0/0/2show interface xe2Full per-port detail. OcNOS data ports are xe / ce / cd / po; eth0 is the management port.
show interfaces descriptionshow interface description
show controllers optics 0/0/0/2show interface xe2 transceiver detailDDM Tx/Rx power, temperature and current. IOS-XR reads the optics controller by rack/slot/instance/port. On OcNOS, omit the interface for every port.
show lldp neighborsshow lldp neighborsIdentical verb.

Routing table

Cisco IOS-XROcNOSNotes
show routeshow ip routeOcNOS prefixes with 'ip'.
show route vrf CUST-Ashow ip route vrf CUST-A
show route ipv6show ipv6 route
show arpshow arp
show protocolsshow ip protocolsOcNOS = operational active-protocol view.

OSPF / IS-IS

Cisco IOS-XROcNOSNotes
show ospf neighborshow ip ospf neighborOcNOS prefixes with 'ip'.
show ospf interfaceshow ip ospf interface
show ospf databaseshow ip ospf database
show isis adjacencyshow clns neighborsOn OcNOS the IS-IS adjacency table is a CLNS command.
show isis databaseshow isis database

BGP & L3VPN

Cisco IOS-XROcNOSNotes
show bgp summaryshow ip bgp summary'show bgp summary' is also accepted.
show bgp neighbors 10.0.0.4show ip bgp neighbors 10.0.0.4OcNOS is plural 'neighbors'.
show bgp vpnv4 unicast summaryshow ip bgp vpnv4 all summaryL3VPN session state; OcNOS scopes VPNv4 under 'show ip bgp'.
show bgp vpnv4 unicastshow ip bgp vpnv4 allAll VPNv4 route distinguishers.
show bgp l2vpn evpnshow bgp l2vpn evpnEVPN Type 1-5 NLRI.

MPLS / SR / TE

Cisco IOS-XROcNOSNotes
show mpls ldp neighborshow mpls ldp neighborOcNOS keeps the 'mpls' prefix.
show mpls ldp bindingsshow mpls ldp fecLabel bindings: FEC-to-label (LIB).
show mpls forwardingshow mpls forwarding-tableFTN / outgoing labels.
show mpls interfacesshow mpls interface-list-ftnOn OcNOS the bare form is ambiguous: interface-list-ftn and interface-list-ilm both continue it, so ask for the one you want.
show mpls traffic-eng tunnelsshow rsvp sessionRSVP-TE LSPs.
show segment-routingshow isis segment-routing stateSR-MPLS state (SRGB, node/prefix-SIDs); OSPF: 'show ip ospf segment-routing state'.
show segment-routing traffic-eng policyshow segment-routing policySR-TE policies (color/endpoint).

L2VPN & EVPN

Cisco IOS-XROcNOSNotes
show l2vpn xconnectshow mpls l2-circuitVPWS / E-Line pseudowires.
show l2vpn bridge-domainshow mpls vplsVPLS / E-LAN instances.
show evpn evishow evpn mplsEVPN instances (E-Line/E-LAN/E-Tree).
show evpn ethernet-segmentshow evpn multi-homingMulti-homing ESI state.

HA & diagnostics

Cisco IOS-XROcNOSNotes
show bfd sessionshow bfd session
ping 10.0.0.5ping 10.0.0.5Identical.
traceroute 10.0.0.5traceroute 10.0.0.5Identical.

System

Cisco IOS-XROcNOSNotes
show platformshow versionSoftware release, edition (feature code) and hardware model.
show versionshow version

Config syntax

Cisco IOS-XROcNOSNotes
interface Gi0/0/0/2 / ipv4 address 10.1.1.1/24interface xe2 / ip address 10.1.1.1/24OcNOS uses prefix-length form in an interface sub-mode. Configure a data port (xe / ce / cd / po), not eth0, which is management.
router bgp 64512 / neighbor 10.0.0.4 / remote-as 64512router bgp 64512 / neighbor 10.0.0.4 remote-as 64512IOS-XR sets 'remote-as' in a neighbor sub-mode; OcNOS sets it on the neighbor line.
vrf CUST-Aip vrf CUST-AOcNOS keyword is 'ip vrf'.
route-policy NAMEroute-map NAME permit 10OcNOS uses route-maps, not RPL.
shutdown / no shutdownshutdown / no shutdownIndustry-standard 'no' negation.

Planning a migration? We can scope it for your network and hardware.

Explore OcNOS   Contact our team

Cisco, IOS, and IOS-XR are trademarks of Cisco Systems, Inc. IP Infusion and OcNOS are not affiliated with or endorsed by Cisco Systems, Inc. Command equivalents are provided as a migration reference and may vary by OcNOS edition, software release and platform; verify against current OcNOS documentation at documentation.ipinfusion.com.

Frequently asked questions

Is there a Cisco to OcNOS CLI command translator?
This page maps common Cisco IOS-XR commands to their OcNOS equivalents, with a note on each difference. OcNOS uses an industry-standard CLI, so many show and configuration commands will already be familiar to an IOS-XR operator.
What kind of CLI does OcNOS use?
OcNOS uses an industry-standard CLI with configuration sub-modes and 'no' negation. Many show and configuration commands are identical or close to Cisco IOS-XR. The main differences: OcNOS prefixes routing show commands with 'ip' (for example 'show ip route'), and uses 'remote-as' and 'route-map'.
Is OcNOS transactional like Cisco IOS-XR?
Yes. OcNOS uses an explicit commit model like IOS-XR: stage configuration, then apply it with 'commit' or discard it with 'abort transaction'. A commit changes the running configuration; use 'write memory' to save it to the startup configuration so it survives a reload.
How do I migrate from Cisco IOS-XR to OcNOS?
Map your day-to-day commands with this cheat sheet, then check feature support and platforms in the OcNOS Feature Matrix and the Hardware Compatibility List, because features vary by OcNOS edition and platform. IP Infusion can scope a migration for your network and hardware.
Does this map cover Cisco IOS and NX-OS as well?
This map focuses on Cisco IOS-XR, the CLI on Cisco carrier and core routers, which is the closest match to OcNOS service-provider routing. Many commands also apply to classic Cisco IOS. For Cisco IOS-XE or NX-OS specifics, contact IP Infusion.