stcli license Commands

stcli license Commands

Smart Licensing operations.

stcli license [-h] {register | deregister | show | renew}

Syntax Description

Option

Required or Optional

Description

register

One of set required.

Register Smart Licensing with an ID token.

deregister

One of set required.

Deregister Smart Licensing.

show

One of set required.

Show Smart Licensing options. Includes summary, unique device identifier (UDI), usage count, technical support details, registration and authorization status, and instance name.

renew

One of set required.

Renew Smart Licensing operations.

Command Default

None. One option from the set is required.

Usage Guidelines

Accompany the stcli license command with one of the positional arguments enclosed in { } or optionally, the arguments enclosed in [ ].

stcli license deregister Command

Deregister Smart Licensing.

stcli license deregister [-h]

Command Default

None.

Usage Guidelines

Accompany the stcli license deregister command with optionally, the arguments enclosed in [ ].

stcli license register Command

Register a Smart License with an ID token.

stcli license register [-h] --idtoken IDTOKEN [--force]

Syntax Description

Option

Required or Optional

Description

--idtoken IDTOKEN

Required.

Registration ID token.

--force

Optional.

Force the registration when the cluster is already registered.

Command Default

None.

Usage Guidelines

Accompany the stcli license register command with the required arguments with leading two dashes (--), or optionally, the arguments enclosed in [ ].

# stcli license register --token

ZmM2YTVhZjMtZTQxNi00...1LTE0ODg0NzkppYmF...A3OD0%3D%0...8caERE

stcli license renew Command

Renew Smart Licensing operations.

stcli license renew [-h] {id | auth}

Syntax Description

Option

Required or Optional

Description

auth

One of set required.

Renew Smart Licensing authorization.

id

One of set required.

Renew registration and registration ID certificate information.

Command Default

None. One option from the set is required.

Usage Guidelines

Accompany the stcli license review command with one of the positional arguments enclosed in { } or optionally, the arguments enclosed in [ ].

stcli license show Command

Show Smart License information based on option selected.

stcli license show

Syntax Description

Option

Required or Optional

Description

all

Optional.

Show all license information.

auth-status

Optional.

Show Smart Licensing authorization status.

inst-name

Optional.

Show cluster instance name.

reg-status

Optional.

Show Smart Licensing registration status.

status

Optional.

Show Smart Licensing registration, authorization, and license status.

summary

Optional.

Show Smart Licensing summary.

tech-support

Optional.

Show Smart Licensing technical support details.

udi

Optional.

Show Smart Licensing unique device identifier (UDI).

usage

Optional.

Show Smart Licensing usage count.

Command Default

None.

Usage Guidelines

Accompany the stcli license show command with the required option, no leading dashes (--) required. Optionally, include the arguments enclosed in [ ].

An example when license not registered

# stcli license show status
Smart Licensing is ENABLED 
Registration: Status: UNREGISTERED 
Export-Controlled Functionality: Not Allowed 
License Authorization: Status: EVAL MODE 
Evaluation Period Remaining: 89 days, 23 hr, 57 min, 3 sec 
Last Communication Attempt: NONE 

An example when license is registered

# stcli license show summary
Smart Licensing is ENABLED
Registration:
  Status: REGISTERED
  Smart Account: HyperFlex License Test
  Virtual Account: derek
  Last Renewal Attempt: None
  Next Renewal Attempt: Aug 1 17:47:06 2017 PDT
License Authorization:
  Status: AUTHORIZED
  Last Communication Attempt: SUCCEEDED
  Next Communication Attempt: Mar 4 16:47:11 2017 PST
License Usage:
  License                  Entitlement Tag                                                                Count        Status
  ------------------------------------------------------------------------------------------------------------------------------
  Cisco Vendor String XYZ  regid.2016-11.com.cisco.HX-SP-DP-S001,1.0_1c06...d45203  InCompliance