Log badge consumption?

SOLVED

We would like to proactively monitor our badge usage so we aren't blindsided with capped out concurrent sessions.

We're a global organization, so our badges aren't really a 1-to-1 ratio for our user counts.  By the time our west cost users are logging on, our European offices are logging off for the day.

I'm looking for something that will help me to log badge counts throughout the day.  Specifically, I want to see the max badge count for each day so we know when we're getting close to needing to purchase additional licenses.

Has anyone else come up with any clever solutions for this?

Parents
  • +1
    verified answer

    Hello Brett,
    Maybe you can use this simple script to retrieve data at login, folder, and badge, ...  used at a given time and save it. You can program it to retrieve information at certain times. Maybe this can help you...

    set path=c:\Sage\FreeComponents\mongodb-database-tools\bin;%PATH%
    FOR /F "tokens=2 delims==" %%I IN ('wmic os get localdatetime /format:list') DO set datetime=%%I
    set datetime=%datetime:~0,8%_%datetime:~8,6%
    mongoexport --host sage-emv12 --port 27017 --ssl --sslPEMKeyFile "C:\Sage\FreeComponents\MONGODBSVR\certs\client.pem" --sslCAFile "C:\Sage\FreeComponents\MONGODBSVR\certs\ca.cacrt" --db=syracuse --collection=SessionState --fields=x3Login,badge,serverFolder --out="out_%datetime%.json"

  • 0 in reply to JoseLuis

    What kind of script is it?  I'm assuming this is something that could be run using the Windows task scheduler? 

  • 0 in reply to Brett Reichman

    Yes, you can do it. This script retrieves info (x3Login, badge, serverFolder as example) about the collection "SessionState" from MongoDB. Simply, it is an approximation to obtain the user and the badges used at a given time and capture it in a file.

Reply Children