Usage information

jeffrey_ngo
New Contributor

Hello,

We are currently in the process of moving to Outlook and are wondering if there is a way to extract the usage information of the applications. I know you can look at each individually but has anyone found a way to script it so you can gather all the usage information from the environment?

Thanks in advance!

-Jeff

3 REPLIES 3

manyusersaccoun
New Contributor

This might do some of what you need.. As ever test this outside of an EA.. cos the are extra special.. .running globally as root :)

#!/bin/sh

for ulist in `ls /Users`

do 

if [ -e "/Users/$ulist/Documents/Microsoft User Data/Office 2011 Identities/Main Identity/Database" ]; then
dbchk=`du "/Users/$ulist/Documents/Microsoft User Data/Office 2011 Identities/Main Identity/Database" | awk '{print $1}'`

    if [ "$dbchk" -ge 44137 ] ; then
        dbdate=`stat -f "%Sm" "/Users/$ulist/Documents/Microsoft User Data/Office 2011 Identities/Main Identity/Database"`
        echo "$ulist   $dbchk  $dbdate
" >> /var/db/OLdata
        result=`cat /var/db/OLdata`
        echo "<result>$result</result>"
    fi

fi

done

manyusersaccoun
New Contributor

ah.. you want 'usage' not 'usage'

oh well..

:)

adamcodega
Valued Contributor

I know some folks have discussed developing a tool to do this but nothing's available yet. So short answer no long answer possibly if you want to figure out how. : )