Here's a Cisco link and a video tutorial to configure Cisco Smart Licensing Using Policy (CSLU). Below are the commands to be used in a Cisco IOS-XE device.
In the Cisco Smart Software Manager (CSSM, a.ka. Smart License), click the blue hyperlink > CLSU Transport URL.
ip name-server <PRIMARY DNS IP> <SECONDARY DNS IP>
ip domain lookup
ip domain lookup source-interface Loopback0
ip http client source-interface Loopback0
license smart transport cslu
license smart url cslu https://<ON PREM SMART LICENSE SERVER IP>/cslu/v1/pi/<VIRTUAL ACCOUNT>
crypto pki trustpoint SLA-TrustPoint
revocation-check none
#license smart sync all
I've configured CLSU in a Cisco 8000v router
C8000v#conf t
Enter configuration commands, one per line. End with CNTL/Z.
C8000v(config)#ip name-server 10.6.6.7 10.8.8.9
C8000v(config)#ip domain lookup
C8000v(config)#ip domain lookup source-interface Loopback0
C8000v(config)#ip http client
C8000v(config)#license smart transport cslu
C8000v(config)#license smart url cslu https://myccsm01.com/cslu/v1/pi/my-va-4
C8000v(config)#crypto pki trustpoint SLA-TrustPoint
C8000v(ca-trustpoint)# revocation-check none
C8000v(ca-trustpoint)#end
C8000v#write memory
Building configuration...
[OK]
Oct 3 00:47:39.403 UTC: CSR CSL:pid = C8000V, sn = 91Y2A1B1234
Oct 3 00:47:39.948 UTC: %SYS-6-PRIVCFG_ENCRYPT_SUCCESS: Successfully encrypted private config file
Oct 3 00:47:39.979 UTC: CSR CSL:
LIC_OBJSTORE_OPEN: IFS open successful. Objname: satimeflagsync.data, App ID:3
Oct 3 00:47:39.990 UTC: CSR CSL:
LIC_OBJSTORE_WRITE: IFS write successful. Objname: satimeflagsync.data, Bytes written: 2384, Write offset: 2384, App ID: 3
Oct 3 00:47:39.990 UTC: CSR CSL:
LIC_OBJSTORE_CLOSE: IFS close successful. FD:0, App ID: 3
C8000v#ping mycssm01.com source Loopback0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.7.9, timeout is 2 seconds:
Packet sent with a source address of 10.4.6.41
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 116/116/116 ms
C8000v#license smart sync all
Nov 25 09:59:34.556 UTC: CSR CSL:
LIC_OBJSTORE_STAT:Unable to get the size of the object - No such object, App ID: 3
Nov 25 09:59:34.564 UTC: CSR CSL:
LIC_OBJSTORE_STAT:Unable to get the size of the object - No such object, App ID: 3
Nov 25 09:59:34.572 UTC: CSR CSL:
LIC_OBJSTORE_STAT: IFS stat successful. Path: /1759269975.rum. Objsize: 1047, App ID: 3
Nov 25 09:59:34.581 UTC: CSR CSL:
LIC_OBJSTORE_OPEN: IFS open successful. Objname: 1759269975.rum, App ID:3
Nov 25 09:59:34.590 UTC: CSR CSL:
LIC_OBJSTORE_READ: IFS read successful. Objname: 1759269975.rum, Bytes read: 1047, Read offset: 1047, App ID: 3
LIC_OBJSTORE_OPEN: IFS open successful. Objname: saRumReportMetaData.txt, App ID:3
Nov 25 09:59:37.141 UTC: CSR CSL:
LIC_OBJSTORE_WRITE: IFS write successful. Objname: saRumReportMetaData.txt, Bytes written: 6880, Write offset: 6880, App ID: 3
Nov 25 09:59:37.141 UTC: CSR CSL:
LIC_OBJSTORE_CLOSE: IFS close successful. FD:0, App ID: 3
Nov 25 09:59:37.159 UTC: CSR CSL:
LIC_OBJSTORE_OPEN: IFS open successful. Objname: satimeflagsync.data, App ID:3
Nov 25 09:59:37.168 UTC: CSR CSL:
LIC_OBJSTORE_WRITE: IFS write successful. Objname: satimeflagsync.data, Bytes written: 2384, Write offset: 2384, App ID: 3
Nov 25 09:59:37.168 UTC: CSR CSL:
LIC_OBJSTORE_CLOSE: IFS close successful. FD:0, App ID: 3
<OUTPUT TRUNCATED>
Validate the Smart License status using the show license summary command.
C8000v#show license summary
Account Information:
Smart Account: <none>
Virtual Account: <none>
License Usage:
License Entitlement Tag Count Status
-----------------------------------------------------------------------------
network-advantage_T0 (NWSTACK_T0_A) 1 IN USE
dna-advantage_T0 (DSTACK_T0_A) 1 IN USE
You can also validate the Smart License status in the CSSM server (either Cisco public cloud or On Prem), go to Smart Licensing > Inventory > Product Instance tab > Event Log.

No comments:
Post a Comment