Skip to content

Conversation

@ichandrabhatta
Copy link
Collaborator

@ichandrabhatta ichandrabhatta commented May 6, 2025

This PR adds a new command to the OM CLI that allows users to check for expiring licenses across their Ops Manager installation. The command provides flexibility in checking both staged and deployed products, with customizable time windows for license expiration.

Key features:

  • New expiring-licenses command with options for:
    • --staged (-s): Include staged products
    • --deployed (-d): Include deployed products
    • --expires-within (-e): Timeframe to check (default: 3 months)
    • --format (-f): Output format (table/json)
  • Supports checking license expiration across days, weeks, months, and years
  • Returns detailed information including product name, GUID, expiration date, and product state
  • Handles both staged and deployed products with duplicate removal
  • Includes comprehensive test coverage

Example usage

om expiring-licenses --expires-within 6m --staged --deployed

This feature will help operators proactively manage their Ops Manager licenses by identifying products with upcoming license expirations.

This commit adds a new command to the OM CLI that allows users to check for expiring licenses across their Ops Manager installation. The command provides flexibility in checking both staged and deployed products, with customizable time windows for license expiration.

Key features:

New expiring-licenses command with options for:
--staged (-s): Include staged products
--deployed (-d): Include deployed products
--expires-within (-e): Timeframe to check (default: 3 months)
--format (-f): Output format (table/json)
Supports checking license expiration across days, weeks, months, and years
Returns detailed information including product name, GUID, expiration date, and product state
Handles both staged and deployed products with duplicate removal
Includes comprehensive test coverage
Example usage

om expiring-licenses --expires-within 6m --staged --deployed
This feature will help operators proactively manage their Ops Manager licenses by identifying products with upcoming license expirations.
Copy link
Member

@drich10 drich10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

All the initial review and cycling was done as part of #683 and this PR supersedes it.

@ichandrabhatta ichandrabhatta merged commit e9813f1 into main May 7, 2025
1 check passed
@ichandrabhatta ichandrabhatta deleted the TNZ-32335 branch May 7, 2025 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants