cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3464
Views
0
Helpful
4
Replies

How to SNMP CSR1000V License

Shlomy Maron
Cisco Employee
Cisco Employee
I have 2 types of CSR1000V -

1.CSR1000V that uses installed file license which has Start and End Date - I need to monitor what is the End Date, and which License is Active.

2.CSR1000V that uses Smart License - I need to make sure that the last communication attemtp was "Success" and that the License is authorized.

also - if possible - how do I check via SNMP what is "platform hardware throughput level" ?

 

Which exact MIBs should I use in order to Monitor the License Status of my CSR1000V ?

4 Replies 4

Hey - I wan't this too..

For now we're just polling the license and smart license mibs (during transition) and doing the math based on that.

We're basically polling these:

 

self.oids = {'clmgmtLicenseFeatureName': '.1.3.6.1.4.1.9.9.543.1.2.3.1.3',
             'clmgmtLicenseStatus': '.1.3.6.1.4.1.9.9.543.1.2.3.1.14',
             'ciscoSlaEntitlementFeatureName': '.1.3.6.1.4.1.9.9.831.0.5.1.1.7',
             'ciscoSlaEntitlementEnforceMode': '.1.3.6.1.4.1.9.9.831.0.5.1.1.5'
            }

And then ensuring we have HSEC and throughput licenses on our DMVPN routers.

But the feature names are different between normal licenses and smart licenses, even though they are identical..

This isn't what either of us wants, but its something..

 

KZKAndre
Beginner
Beginner

Hello,
Thank you for previous information supplied,
It was working for us until we have upgraded to new CSR, with new IOS release, and consequent Smart Licensing registration method:
Previous snmp oids don't provide anymore Expiration date information:

SNMPWALK -v2c -c community IP .1.3.6.1.4.1.9.9.543.1.2.3.1.16

SNMPv2-SMI::enterprises.9.9.543.1.2.3.1.16 = No Such Instance currently exists at this OID
-> no more OID is 1.3.6.1.4.1.9.9.543.1.2.3.1.16 which was clmgmtLicenseEndDate

 

This other oid 1.3.6.1.4.1.9.9.831 provides license type and some info but no date:
SNMPWALK -v2c -c community IP 1.3.6.1.4.1.9.9.831
SNMPv2-SMI::enterprises.9.9.831.0.1.0 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.831.0.2.0 = STRING: "PID:CSR1000V,SN:S/N-removed"
SNMPv2-SMI::enterprises.9.9.831.0.3.0 = STRING: "4.8.5.1_rel/8"
SNMPv2-SMI::enterprises.9.9.831.0.4.0 = INTEGER: 1
SNMPv2-SMI::enterprises.9.9.831.0.5.1.1.2.1 = Gauge32: 1
SNMPv2-SMI::enterprises.9.9.831.0.5.1.1.3.1 = STRING: "ax_500M"
SNMPv2-SMI::enterprises.9.9.831.0.5.1.1.4.1 = STRING: "1.0"
SNMPv2-SMI::enterprises.9.9.831.0.5.1.1.5.1 = INTEGER: 3
SNMPv2-SMI::enterprises.9.9.831.0.5.1.1.6.1 = STRING: "CSR 1KV AX 500M"
SNMPv2-SMI::enterprises.9.9.831.0.5.1.1.7.1 = STRING: "CSR 1KV AX 500M"
SNMPv2-SMI::enterprises.9.9.831.0.6.1.0 = INTEGER: 5
SNMPv2-SMI::enterprises.9.9.831.0.6.2.0 = ""
SNMPv2-SMI::enterprises.9.9.831.0.6.3.0 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.831.0.6.4.0 = ""
SNMPv2-SMI::enterprises.9.9.831.0.7.1.0 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.831.0.7.2.0 = STRING: "AUTHORIZED - RESERVED"
SNMPv2-SMI::enterprises.9.9.831.0.7.3.0 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.831.0.7.4.1.0 = INTEGER: 2
SNMPv2-SMI::enterprises.9.9.831.0.7.4.2.0 = Gauge32: 0
SNMPv2-SMI::enterprises.9.9.831.0.7.4.3.0 = Gauge32: 7776000
SNMPv2-SMI::enterprises.9.9.831.0.8.1.0 = INTEGER: 2
SNMPv2-SMI::enterprises.9.9.831.0.8.2.0 = INTEGER: 2
SNMPv2-SMI::enterprises.9.9.831.0.9.1.0 = INTEGER: 0
SNMPv2-SMI::enterprises.9.9.831.0.9.2.0 = STRING: "DeRegistration failure message is not persisted."
SNMPv2-SMI::enterprises.9.9.831.0.10.1.0 = STRING: "Utility failure messages are not persisted."

Any idea for getting expiration date (End Date: 2023-SEP-16 UTC) ?
From terminal on router, we have the value i'd like to retrieve through snmp polling:

CSR-router#sh license all
Smart Licensing Status
======================

Smart Licensing is ENABLED
License Reservation is ENABLED

Product Information
===================
UDI: PID:CSR1000V,SN:S/N-removed
Agent Version
=============
Smart Agent for Licensing: 4.8.5.1_rel/8
Reservation Info
================
License reservation: ENABLED
Overall status:
Active: PID:CSR1000V,SN:S/N-removed
Reservation status: SPECIFIC INSTALLED on Oct 05 17:41:15 2020 UTC
Specified license reservations:
CSR 1KV AX 500M (ax_500M):
Description: CSR 1KV AX 500M
Total reserved count: 1
Term information:
Active: PID:CSR1000V,SN:S/N-removed
License type: TERM
Start Date: 2020-SEP-16 UTC
End Date: 2023-SEP-16 UTC
Term Count: 1

CSR-router#sh ver
Cisco IOS XE Software, Version 16.12.01a
Cisco IOS Software [Gibraltar], Virtual XE Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 16.12.1a, RELEASE SOFTWARE (fc2)
CSR-router#sh inv
NAME: "Chassis", DESCR: "Cisco CSR1000V Chassis"
PID: CSR1000V , VID: V00 , SN:S/N-removed

 

Thanks in advance for any help,
Regards
Andre

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Recognize Your Peers