We can generate TOTP using this Python script but need to create/add and then extract the secure key first usinghttps://raivo-otp.com/ Remember the master password during RAIVO App installation, it will be used to encrypt the exported .zip
Save/export the resulted password protected (with RAIVO master password) .zip file with secret code
#!/usr/bin/env python import pyotp secret_key = "ZDXXXXXXXXXXXXXXXXXXXXXXXXXXYYYG" totp = pyotp.TOTP(secret_key) otp_code = totp.now() print(f"{otp_code}")
Save this script as ./get-token.py
chmod og-rwx ./get-token.py cmod o+x ./get-token.py
Testing
./get-token.py 081482
Using TOTP via --totp
echo "Y" | vss --wait -e cloud-api-dev --totp $(./get-token.py) compute inventory mk --all --fmt csv