Hello,
As title, I am using Stingray Traffic Manager ver 9.0. Is it any way to setup some alert to remind me the license will be expire?
Thanks!
Solved! Go to Solution.
Hi Machi,
All you need to do in this case is configure an action handler for license-related events:
You should now receive an email when your license key is nearing its expiration date.
Cheers,
--
Alex
Hi Machi,
All you need to do in this case is configure an action handler for license-related events:
You should now receive an email when your license key is nearing its expiration date.
Cheers,
--
Alex
Hi Alex
Thanks for your solution. Unfortunately that is limited as my license cannot use advanced alerting features. Did any other way?
Thanks!
Hi Machi,
Please check with your account manager or our support team to confirm the features of the license type that you have. You will need to have the 'alerting' capability to use the solution that Alex described above, and you will need to use version 5.1 or later of the traffic manager software
regards
Owen
Hi Machi,
You can also get a shell script to read the expiry date out of the raw key file, and send you an email if it is about to expire:
#!/bin/bash -e
KEYFILE='/opt/riverbed/zxtm/conf/licensekeys/112975'
RCPT='[email protected]'
DAYS=14
SECONDS=$(($DAYS*86400))
KEYDATE=$(egrep '^#= Expires\s+:\ .*$' "$KEYFILE" | sed -e 's!#= Expires\s\+:\s!!g' | date +'%s' -d -)
NOWDATE=$(date +'%s')
MARGIN=$(($NOWDATE+$SECONDS))
if [[ $MARGIN -ge $KEYDATE ]];then
mailx -s "WARNING: Stingray license key expires in $DAYS days!" "$RCPT" <<EOF
This is some email text.
EOF
fi
If you want this to run on a regular basis automatically, you'll need to add this to root's crontab (see man crontab for details on how to do that). NOTE: This example also requires the mailx utility to be installed. On my Ubuntu box, the required package is called bsd-mailx.
Hope this helps!
--
Alex
Thx!