07-17-2019 10:45 AM
Hello guys, i'm trying to enable restconf on a CSR1000v (03.16.03), but the service has not yet enabled.
I'm using the following docs but maybe i forgot something:
https://www.cisco.com/c/en/us/td/docs/routers/csr1000/software/restapi/restapi/RESTAPIglobal.html
https://www.youtube.com/watch?v=uHvFZlpT6dw&feature=youtu.be&t=471
https://developer.cisco.com/docs/ios-xe/#!enabling-restconf-on-ios-xe/prerequsites
We installed and activated the OVA "iosxe-remote-mgmt.03.16.04a.S.155-3.S4a-ext.ova"
#show virtual-service list
Name Status Package Name
------------------------------------------------------------------------------
csr_mgmt Activated iosxe-remote-mgmt.03.16.04a.S.155-3
and apply the following configuration commands:
!
netconf-yang
restconf
remote-management
restful-api autosave 60 local-port 443
!
interface GigabitEthernet4
ip address 10.122.68.111 255.255.254.0
!
interface VirtualPortGroup0
ip unnumbered GigabitEthernet4
!
virtual-service csr_mgmt
vnic gateway VirtualPortGroup0
guest ip address 10.122.68.112
activate
!
ip route 10.122.68.112 255.255.255.255 VirtualPortGroup0
!
onep
service set vty
!
But RESTAPI Feature and Guest interfaces are not enabled:
#sh virtual-service detail
Virtual service csr_mgmt detail
State : Activated
Owner : IOSd
Package information
Name : iosxe-remote-mgmt.03.16.04a.S.155-3.S4a-ext.ova
Path : bootflash:/iosxe-remote-mgmt.03.16.04a.S.155-3.S4a-ext.ova
Application
Name : csr_mgmt
Installed version : 03.16.03
Description : CSR-MGMT
Signing
Key type : Cisco development key
Method : SHA-1
Licensing
Name : Not Available
Version : Not Available
Detailed guest status
Information not available
Activated profile name: None
Resource reservation
Disk : 756 MB
Memory : 512 MB
CPU : 5% system CPU
Attached devices
Type Name Alias
---------------------------------------------
NIC ieobc_1 ieobc
NIC dp_1_0 net2
Disk _rootfs
Disk /opt/var
Disk /opt/var/c
Serial/shell serial0
Serial/aux serial1
Serial/Syslog serial2
Serial/Trace serial3
Watchdog watchdog-2
Network interfaces
MAC address Attached to interface
------------------------------------------------------
54:0E:00:0B:0C:02 ieobc_1
00:1E:7A:A1:19:BA VirtualPortGroup0
Guest interface
---
Information not available
---
Guest routes
---
Information not available
---
Resource admission (without profile) : passed
Disk space : 756MB
Memory : 512MB
CPU : 5% system CPU
VCPUs : Not specified
Like this:
#sh virtual-service detail
.
.
----------------------------------------------------------------------
Process Status Uptime # of restarts
----------------------------------------------------------------------
nginx UP 0Y 0W 0D 0: 1: 1 0
climgr UP 0Y 0W 0D 0: 1: 1 0
restful_api UP 0Y 0W 0D 0: 1: 1 0
fcgicpa UP 0Y 0W 0D 0: 0:13 0
pnscag UP 0Y 0W 0D 0: 0:13 0
pnscdme UP 0Y 0W 0D 0: 0:12 0
----------------------------------------------------------------------
Feature Status Configuration
----------------------------------------------------------------------
Restful API Enabled, UP port: 443
(GET only) auto-save-timer: 8 seconds
socket: unix:/usr/local/nginx/csrapi-fcgi.sock;
PNSC Enabled, UP host: 172.25.223.233
port: 8443
socket: unix:/usr/local/cpa-fcgi.sock;
.
.
Guest interface
---
Interface: eth1
ip address: 172.25.223.147/25
---
Guest routes
---
Address/Mask Next Hop Intf.
-------------------------------------------------------------------------------
0.0.0.0/0 172.25.223.137 eth1
Could you help me please?
Regards.
WE
10-30-2021 12:29 PM - edited 10-30-2021 12:30 PM
Hi Willian,
The RESTCONF module is not present in all the releases of CSR1000v. Use Release Fuji to get RESTCONF feature. Here is the link for download. I have successfully tested this with csr1000v-universalk9.16.09.08.
Below configurations and Basic Authentication are required to get the RESTCONF working. Please note the user that is authenticating must have previlage 15.
! restconf ! ip http server ip http authentication local ip http secure-server !
Example:
Regards,
Abdul Jaseem
02-08-2022 04:49 AM
Hmm, however CCO account don't permit to get ISO image CSR1000 with support RESTCONF.
02-13-2022 07:49 AM
The interesting case: csr1000v-universalk9.16.09.08-vga hasn't interfaces after import OVA. No one!(
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide