omtidyallu command for trash

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

RickC
Posts: 194
Joined: Tue Nov 16, 2004 12:55 pm
Location: Massachusetts USA
Contact:

omtidyallu command for trash

Postby RickC » Thu Oct 21, 2010 10:34 am

Hi,

Is there an omtidyallu command that will give me the total space # for everyone's trash (deleted items) folder?

Thanks. Scalix 11.4.4 on RHEL4

ltward
Posts: 309
Joined: Tue Jan 15, 2008 1:54 pm
Contact:

Re: omtidyallu command for trash

Postby ltward » Fri Oct 22, 2010 10:04 am

Hey Rick!

Does it have to be omtidyallu?
sxdu would probably be easier and faster. Would that work for you?

RickC
Posts: 194
Joined: Tue Nov 16, 2004 12:55 pm
Location: Massachusetts USA
Contact:

Re: omtidyallu command for trash

Postby RickC » Fri Oct 22, 2010 10:06 am

yes, thanks. sxdu -a does the trick!

I was thinking of the report mode with omtidyallu. :)

RickC
Posts: 194
Joined: Tue Nov 16, 2004 12:55 pm
Location: Massachusetts USA
Contact:

Re: omtidyallu command for trash

Postby RickC » Thu Oct 28, 2010 10:18 am

hi,

Anyone know how I can sort on the "-a" param? "sxdu -a | sort -n" sorts on the total mail, not the sent.

Thanks.

sgreen
Posts: 211
Joined: Tue Mar 03, 2009 1:23 pm
Location: Installs.com

Re: omtidyallu command for trash

Postby sgreen » Thu Oct 28, 2010 9:27 pm

sxdu -a | cut -f2,3| sort -n

To get just the worst offenders:
sxdu -a | cut -f2,3| sort -n -r | head

RickC
Posts: 194
Joined: Tue Nov 16, 2004 12:55 pm
Location: Massachusetts USA
Contact:

Re: omtidyallu command for trash

Postby RickC » Fri Oct 29, 2010 11:49 am

Thanks very much! That did the trick :)

RickC
Posts: 194
Joined: Tue Nov 16, 2004 12:55 pm
Location: Massachusetts USA
Contact:

Re: omtidyallu command for trash

Postby RickC » Wed Nov 03, 2010 10:29 am

Hi again ...

Is omtidyallu the only way to obtain the sent items size?

Thanks.

RIck

polleke
Posts: 80
Joined: Thu Feb 28, 2008 6:09 am
Location: the Netherlands
Contact:

Re: omtidyallu command for trash

Postby polleke » Wed Nov 03, 2010 11:16 am

omscan -u will do the trick

it wil give you the size of
INBOX
OUTBOX
SENT
OTHERS
TRASH
TOTAL
RCVRY
Kind regards,

Paul

RickC
Posts: 194
Joined: Tue Nov 16, 2004 12:55 pm
Location: Massachusetts USA
Contact:

Re: omtidyallu command for trash

Postby RickC » Wed Nov 03, 2010 11:25 am

Thanks!

I'm trying to figure out which is faster to run - I have 6k users and a 1.25 TB datastore.

RickC
Posts: 194
Joined: Tue Nov 16, 2004 12:55 pm
Location: Massachusetts USA
Contact:

Re: omtidyallu command for trash

Postby RickC » Wed Nov 03, 2010 11:38 am

Actually omscan -u was pretty fast, thanks!

polleke
Posts: 80
Joined: Thu Feb 28, 2008 6:09 am
Location: the Netherlands
Contact:

Re: omtidyallu command for trash

Postby polleke » Wed Nov 03, 2010 11:52 am

remember that omscan uses the data it has indexed last time it had a complete run.. so make sure you have configured sxmaint correctly
Kind regards,

Paul


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 3 guests