A simple license asset management tool.
Supports license encryption.
Supports license expiration SMTP notifications.
Supports license expiration logs.
Supports license expiration monitoring service.
Supports Sqlite3 and Postgres.
- Install requirements
pip3 install -r requirements.txt
- Generate Encryption Key
python generate_key.py
- Build the database table
python raisensu.py -t
optional arguments:
-h, --help show this help message and exit
-c Parse through import.csv file
-d Delete Asset
--delete_all Delete all records in table
-t Create a New Table if it has not been created already
-v View all entries
-u Update an entry
-o Select a specific asset(s) to return
-n NAME Name of the License Product
-a HOSTNAME Name of the hostname the license is attached to
-l LICENSE License data
-q QUANTITY Total Number of licenses
-x EXPIRE License expiration date [requires .csv file]
-e EXPORT Export SQL Database to CSV file
-s ENVIRONMENT Environment the license resides in
-r DESCRIPTION Description of the license
- Getting help:
python raisensu.py -h
- Adding a new asset from command-line:
python raisensu.py -n 'Product Name' -l 'xopi08infsdfpoi3409c' -q 10 -x 12/31/2021
(-a
is optional to add a host) - Adding a new asset from command-line:
python raisensu.py -n 'Product Name' -l 'xopi08infsdfpoi3409c' -q 1 -x 12/31/2021 -a Host01 -s 'Dev' -r 'License for Host01 in Dev'
- Import a list of assets from the import.csv file:
python raisensu.py -c
- Update an asset:
python raisensu.py -u
- follow the steps - View all assets in the database:
python raisensu.py -v
- Export assets to a .csv file:
python raisensu.py -e [location]
- (Windows) Set up a Task Schedule for
raisensu_monitor.py
- (Linux) Set up a Linux CronJob for
raisensu_monitor.py
- Edit the
monitor_settings.ini
file with the appropriate configuration information that fits your environment
- (Linux) If you are having trouble with
generate_key.py
, issue the following command:dd if=/dev/urandom bs=32 count=1 2>/dev/null | openssl base64 > secret.key
- (Linux) If you are having trouble installing the pypip library psycopg2, use the following command
pip3 install libpq-dev psycopg2-binary psycopg2
- For some reason,
pandas
isn't installing via therequirements.txt
file. Do apip3 install pandas
to install Pandas.
- Achieving HA for Raisensu Linux services is possible with Corosync and Pacemaker. The two services files for Raisensu are:
- raisensu_monitor.service
- raisensu_timer.timer