Finding Inactive users in 30 minutes.
I use this technique to find iplanet 5.x inactive users.
NOTE: In each mailbox root there is a file store.idx which get update everytime a new message recieved.
find /your/path/to/store/partition/primary/=user -mtime +45 -name store.idx -type f > inactive
this will put all inatcive mailboxes paths which are inactive from last 45 days in a new file "inactive"
the result will similer to
/your/path/to/store/partition/primary/=user/57/21/=aliejaz1/store.idx
then i use these commands to remove useless lines which refer to Sent, Draft and Trash folders.
grep -v Sent inactive > SentRemoved
grep -v Draft SentRemoved > DraftRemoved
grep -v Trash DraftRemoved > TrashRemoved
grep -v + TrashRemoved > CustomFoldersRemoved
Then I also manualy remove all those lines which refer to remaining Custom Folders.
Then by using Find and Replace I replace /your/path/to/store/partition/primary/=user/ with space.
Now it becomes like 57/21/=aliejaz1/store.idx
then I also replace store.idx with space and result become like 57/21/=aliejaz1
Now I replace = with comma i-e , and results become 57/21/,aliejaz1
then I use Excel and open final file as csv.
It will paste 57/21/ in first column and aliejaz1 in second column.
Delete the whole first column.
Now the excel file only contains inactive userids.
That way I found my inactive users.
Good Luck.
Note that if a user still recieving email or spam then it cannot be find this way but there is a chance that his mailbox 100% filled along time ago due to inactivity
I found 90% inactive users by using this mechanism.
For remaining else users check your logs.
Hi,
I would highly recommend against other customers using this approach for a few reasons:
1. A 'find' across the entire store can impact the inode-cache and overall disk performance substantially. A better approach would be to parse the "last msg date" out of the output of "./mboxutil -l" or even "./mboxutil -lp user/%/INBOX" if you just cared about the INBOX. This will cater for users who haven't had a new email for 45 days in their INBOX.
2. Doesn't cater for the case where a user is forwarding their email; the mailbox/account is 'active' just that the contents may not have changed.
3. Doesn't cater for accounts that haven't received new email in 45 days but the user is still reading the old emails - reading an email only updates the store.usr file, the store.idx is only changed if the email is deleted/expunged.
4. Doesn't cater for accounts that are used as 'public shared folders' where emails may only be delivered to very occasionally and not deleted.
In MS6.3 there is another mechanism to monitor when a customer last accessed their account; the ./imsconnutil command e.g.
# ./imsconnutil -a -u shjorth
UID IMAP last access HTTP last access POP last access
===================================================================================================
shjorth 07/Nov/2007:11:42:57 ----NOT-RECORDED---- ----NOT-RECORDED----Given that iMS5.2 is now in limited support you should be upgrading to MS6.3 anyway.
Regards,
Shane.
Similar Messages
-
Dear All
We want to create a report so that we can find out who are no more employees of our organization.
The purpose is to remove thier usernames from the shared folders.
Is there any way to find out inactive users so that we can go ahead and create an ibot to monitor it on timely basis?
Your help is much appreciated.
Regds
ManoDS Command is going to be your friend. Here are some exmaples
http://social.technet.microsoft.com/wiki/contents/articles/3537.active-directory-active-directory-domain-services-ad-ds-commands-and-scripts.aspx
User DSQUERY USER instead or COMPUTER
http://portal.sivarajan.com/2010/03/delete-stale-or-inactive-computer.html
Santhosh Sivarajan | Houston, TX
Windows 2012 Book - Migrating from 2008 to Windows Server 2012
http://www.sivarajan.com/
This post is provided ASIS with no warran -
Couldn't find root user. Sleeping and trying again.
Last week I installed an MSO 2004 update on my G5 iMac running 10.4.11.
Then I attempted to repair permissions. The repair permissions process
halted at about half of the progress bar. I let it cook for about two
hours without success, then tried to force quit Disk Utility. I
couldn't force quit it, so I very reluctantly turned off the Mac;
something I've rarely ever done. I waited five minutes and then turned
the Mac back on. The startup sequence progressed to the point where the
system displays the gray apple on the gray background, and the circular
progress indicator or gear begins turning. I let it turn for one hour
and then powered off the iMac, then powered it back up with the same
results.
I powered it off again and then commenced a Safe Boot. Same results as
before.
I powered it off again and then started it in Single User Mode. No
problem. I ran /sbin/fsck -fy. No problem.
I typed "reboot" and it rebooted. This time I start it in Verbose mode.
After the preliminary startup code, the system began repeating the same
message lines:
dsFindDirNodes returned -14071, count = 0 count = 2147483646
Couldn't find root user. Sleeping and trying again.
A Google search produced very few results. I don't have a backup
because I inherited this iMac from my 75 year old semi retired father
who wanted a 20-inch Intel iMac instead. I just goof around with the G5
iMac from time to time, and am considering giving it to my little niece and
nephews. It worked great for about a month. I have customized my
user account and the accounts for the little ones, so I really don't
want to wipe the hard drive and reinstall Tiger again from scratch.
I booted from the suspect internal hard drive into single user mode.
I ran /sbin/fsck -fy on the internal hard drive.
All tests passed.
I ran fsck_hfs on the internal hard drive.
It returned a message that stated that I needed
to add additional information.
I ran fsck_hfs with several switches enabled, but
it continued to return this message.
I performed the procedures in Apple's article 107210
"Mac OS X, Mac OS X Server: How to Replace the NetInfo
Database (Restoring from defaults).
This did not solve the problem.
I booted this computer from my external Firewire hard drive that I use
to create nightly backups on my G4 iMac using SuperDuper!.
I ran Disk Utility Repair Disk Permissions on the
internal hard drive.
There were no permissions errors.
I ran Disk Utility Repair Disk.
All tests passed.
I ran the TechTool Pro Suites --> Advanced Tests on
the internal hard drive.
All tests passed except for "Startup File" which it
listed as " <Not Present>".
The description of this test is:
"This test checks the Startup file. The parameters
within this file contain the information used by
the computer ROM to determine what program will
boot the computer as well as other system-specific
aspects."
I ran the TechTool Pro Performance --> Maintenance
routine on the internal hard drive.
It completed the maintenance successfully.
I ran DiskWarrior on the internal hard drive.
It reported no directory errors, but I replaced it
anyway.
While booted from the external Firewire hard drive, I viewed what
appears to be the proper compliment of folders on the internal hard
drive. Of course, I didn't examine and verify every subfolder in the
hierarchy, however, examining the Applications, Library, System, and
Users folders two deep seemed to indicate that everything was there.
I booted this computer from my Tiger installation disk. I selected
Utilities --> Reset Password... (I think.). It listed only the
Administrator account (root) on the internal hard drive. It did not
list the other three accounts that I created on this hard drive, even
all three respective folders are present in the Users folder. However,
it did list all four accounts on the still attached external Firewire
hard drive.
By every measure, this drive and its directory are sound. I am
concerned that TechTool Pro reported that the Startup File is Not
Present. Beyond the meaning that the words suggest, I'm not sure what
this really means. I checked the Micromat site and found the following:
The Startup File has been defined but not yet
implemented by Apple.
What does the message signify:
dsFindDirNodes returned -14071, count = 0 count = 2147483646
Couldn't find root user. Sleeping and trying again.
Can I effect a simple repair?
Thank you.I think besides a reinstall, only DiskWarrior from Alsoft...
http://www.alsoft.com/DiskWarrior/
stands a chance of fixing it. -
Hi gurus,
its urgent, pls help me.
i have to create a report on bw statistics (i know the procedure and using bw statistic standard reports also) i have to find out
1. Inactive users (Never Access the system).
2. Reports that failed
3. Cube Sizes, Growth trends and Free disk space
Thanks in advance for your help
regards
mahiHi Mahesh,
<b>The BW Statistics OLAP InfoCube (Technical name: 0BWTC_C02) contains data arising from the
execution of queries.
Reporting on this InfoCube enables you to see how often a particular InfoCube or query is used.
Detailed information is also available, about run times, data volumes and users.</b>
Refer this link for information on the Characteristics and Key Figures of this Infocube.
http://help.sap.com/saphelp_nw04/helpdata/en/52/e91c3b85e6e939e10000000a11402f/frameset.htm
You can refer TBW10 - Data Warehousing.
It contains detailed information on BW Statistics and BW Data slice.
Most BW Statistics queries are assigned to the BW Statistics MultiProvider.
Some other queries are assigned to the InfoCube BW Statistics - OLAP,
Detail Navigation and to the InfoCube BW Metadata.
<b>At user level, you can analyse</b>
1) Which users are currently working in the system?
2) Which departments or users have used BW within a particular time period?
<b>You can get information about Inactive users from this.</b>
<b>You can get information about queries, whose runtime has overshot a specified value for
online-processing.</b>
<b>BW Statistics: Workbook</b>
The 'BW Statistics' workbook is also delivered with Technical Content which contains
many queries and charts for analysis.
You can analyze Usage(By users/By Day, By Queries/ By Run time/ By Infocubes etc),
Data Volumes and Load etc.
Hope this helps.
Regards
Hari
Message was edited by: Hari Krishnan K
Message was edited by: Hari Krishnan K -
I want to find a user exit about sap quit.
i want to find a user exit about sap quit,such as i want to write some message in my pc after sap quit ,who can help me ?thank you very much!
Hi deqiang,
I try to understand the logic: "sap quit" - if this is a logoff from SAP system, then you want to disconnect from SAP system first and after this you want SAP to write a message to your PC? After disconnect SAP forgets about your PC so it will not know where to issue a message.
It may be possible to schedule a job and check for active users say every 5 minutes. Then compare the list to the list before and find out who's new (logon) and who's missing (logoff). This can be logged.
Or what is your understanding of "sap quit"? (Sorry, no such entry available).
Regards,
Clemens -
Os x server disconnect inactive user
i have an OS X Server 10.6 and one with 10.7.
i'm thinking of getting an OS X Server Mavericks.
Now my Question:
On the old Server there was an option to disconnect inactive user after an certain ammount of time.
i can't find this option an the 10.7 server and heard about this option is lost on 10.9 too.
Is this right and why should apple reduce the options to configure a server.
Best regards from germany, Frank Kueper.Hi Linc,
thx, this solves my problem, but why aren't these options in the GUI any more?
To make settings in the commandline is so oldschool and not userfriendly.
Why? -
Bonjour + Fast User switching = messages going to the wrong (inactive) user
We use iChat for Bonjour in our office– fast file transfers etc.
If a user is one of 2 or more logged in on a machine– through the use of fast user switching, we've noticed that incoming messages (initiated by another user on the network) will often go to the switched user (i.e. the inactive user) not the user we're currently logged in as.
We've been able to repeat the issue.
1. Log in as user 1, fast user switch to user 2 (leaving user 1 logged in but inactive)
2. Go to new machine, log in as user 3
3. Send message from user 3 to user 2
4. Look at user 2 screen. No messages
5. Send message from user 2 to user 3. User 3 will receive message, and will be able to send message successfully back to user 2.
6. Log out use 2
7. Log in as user 1
8. Notice all the messages that were going to the 'inactive' user profile.
Has anyone else seen this type of behavior?HI MAtthew,
Welcome to the Apple Discussion Pages.
I have not seen this (I only have one Mac).
However there is an item in IChat Preferences > General section that can set the staus of the Users account to Offline or Away when using Fast User Switching.
What is yur set to and does it make any difference when changing it ?
Away in normal circumstance menas someone can still Invite you to chats (or Text you)
Ralph -
How can I delete old & inactive user account datawith a script?
there is a mac 10.4 server that has many old user folders. too many to delete one by one. there is no grouping of users. all of them are in the /user folder
I want a script that will check the folders in the /user direcotry against the OD users. If a user for that folder does not exist then it will rm or move to trash or an /inactive users or /olduser folder.
thanks for any help
it is the same question in this thread but was not answered really well at all
http://discussions.apple.com/thread.jspa?threadID=1081185&tstart=0Well, the problem with rm the folder is that it still leaves data hanging around (profile, home drive, etc.) I was really hoping for something that would sweep up everything from people that are no longer in the OpenDirectory database.
Anyway, I'll close this question by saying thanks for trying.
Later...
Richard -
How to disable a Entire row in a Matrix in Find Mode (User Form)
Hi,
How to disable a Entire row in a Matrix in Find Mode (User Form)
Regards
JambuHi,
Iam using Bubble event = false in click event but the matrix row
is allow to edit but we cant save the document in Find Mode That is fine.
What is my actual requirement is In find mode matrix Row not allow to enter the data .
For examble In ADD mode i enter the data in Three rows (Item Section - Matrix) and
save the document. Whwn i open the document in find mode the three row is not allow
to editable like the same functionality of PO, sales Order, etc ..
Regards
Jambu -
How to generate a report from crm table to find out user status changes
Dear all,
Could you please help me on generating a report from SAP CRM table level
to find out user status changes in crm orders for a specific period of time?
Thanks in advance,
Regards,
ShaikHi Shaik.
You would not need to write report for this. You need to create a Table view mainenance for the CRMD_ORDERADM_H or CRMD_ORDERADM_I for whichever you need.
Follow the below or search on google for more on table view maintenance.
Go to SE11, give the table name and click on change. Then Go to utilities--> Table maintenance generator.
In the table maintenance generator screen, you should give Authorization Group,
Function Group name (Function Group name can be same as table name),
Maintenance type can be one step or two step, usually you will create with one
step. You should give maintenance screen number. After clicking on create button,
a table maintenance generator will be created.
To check it go to SM30 . In SM30, you find display, Maintain options.
You can view the table contents by choosing Display and supplying the selection criteria of dates.
Regards
Apoorva -
How can I find out user id who has deleted payment order
Issue : After payment run, the required information has been sent as Idoc to the bank. So, we know the payment order number. We observed that another payment run also has picked up this vendor invoice and made payment.
Usually Payment Sent will be marked X until the related information comes in the form of bank statement upload and this amount gets cleared.
We noticed that bank has made two payments for this amount to this vendor on different dates :- a) when the payment order supposed to be paid as per the payment terms and b) when second paymnet run paid the amount [ this time it got paid directly as there is long due amount ].
From SAP APP angle, both the payment run worked fine and also the calcaltion of payment terms as well.
So, we come to conculsion that someone has deleted the payment order from the system. Thats the reason this invoice got picked up by 2nd APP and paid the amount.
Where we could not find the related entry in REGUH/REGUP tables for this payment order and no document changes.
Question: How can I find out user id who has deleted payment order. Appreciate any clue / answer for this issue please.
Thank you
SriHello,
Not sure about deletion logs. =/
Idea:
What if an error occured during the first payment? Have you checked sm13 to check if any update termination occured in the payment program?
Regards,
Renan -
How to find out users who have answered security questions
Is there any report where we can find out users who have answered security questions.
Please reply back to this.This might help you:
Define a task template, reference the UserQuestionReport task definition:
<TaskDefinitionRef>
<ObjectRef type='TaskDefinition' id='#ID#TaskDefinition:UserQuestionReport' name='User Question Report' displayName='UI_REPTS_XML_USER_QUESTION_TITLE'/>
</TaskDefinitionRef>Define desired variables
<Attribute name='attrListField'>
<List>
<String>accountId</String>
<String>policy</String>
<String>loginInterface</String>
<String>questions</String>
</List>
</Attribute>
<Attribute name='attrMapField'>
<Map>
<MapEntry key='accountId' value='UI_REPTS_XML_REPORT_ATTR_ACCOUNTID'/>
<MapEntry key='loginInterface' value='UI_ATTR_LOGIN_INTERFACE'/>
<MapEntry key='policy' value='UI_SERVICEMODIFY_JSP_ACCOUNTPOLICY'/>
<MapEntry key='questions' value='UI_ATTR_MIN_QUESTION_UNANSWERED'/>
</Map>
</Attribute>and the rest of the task template for a report definition.
Hth
Edited by: nickoarg on Feb 5, 2009 1:57 PM -
Hi All,
How to find out User Exit in particular program.
I mean if you have one profile, how to find is there any user exits in that program.
Appreciate if any body tel answer.
Thanks & Regards,
SubbuYou could try searching the main program for "userexit_"
This would give you a list of all the available user exits within the application.
For Customer exits, you could search SMOD with a short description ex: order in the F4 help. Another way is to search for CUSTOMER-FUNCTION in the main program. You can then navigate to the enhancement in the customer function and use the Z Program in the enhancement.
http://www.easymarketplace.de/userexit.php - has a complete list.
More specifically, in case you're looking for SD exits - http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm. -
How to find out user exits of t-code va03
hi all
how to find out user exits of any t-code .
regards
deepakHi Deepak,
<b>Try this code.</b>
*& Report Z_USEREXIT *
REPORT Z_USEREXIT
NO STANDARD PAGE HEADING.
*& Enter the transaction code that you want to search through in order
*& to find which Standard SAP User Exits exists.
*& Tables
TABLES : tstc, "SAP Transaction Codes
tadir, "Directory of Repository Objects
modsapt, "SAP Enhancements - Short Texts
modact, "Modifications
trdir, "System table TRDIR
tfdir, "Function Module
enlfdir, "Additional Attributes for Function Modules
tstct. "Transaction Code Texts
*& Variables
DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
DATA : field1(30).
DATA : v_devclass LIKE tadir-devclass.
*& Selection Screen Parameters
SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP.
PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN END OF BLOCK a01.
*& Start of main program
START-OF-SELECTION.
Validate Transaction Code
SELECT SINGLE * FROM tstc
WHERE tcode EQ p_tcode.
Find Repository Objects for transaction code
IF sy-subrc EQ 0.
SELECT SINGLE * FROM tadir
WHERE pgmid = 'R3TR'
AND object = 'PROG'
AND obj_name = tstc-pgmna.
MOVE : tadir-devclass TO v_devclass.
IF sy-subrc NE 0.
SELECT SINGLE * FROM trdir
WHERE name = tstc-pgmna.
IF trdir-subc EQ 'F'.
SELECT SINGLE * FROM tfdir
WHERE pname = tstc-pgmna.
SELECT SINGLE * FROM enlfdir
WHERE funcname = tfdir-funcname.
SELECT SINGLE * FROM tadir
WHERE pgmid = 'R3TR'
AND object = 'FUGR'
AND obj_name = enlfdir-area.
MOVE : tadir-devclass TO v_devclass.
ENDIF.
ENDIF.
Find SAP Modifactions
SELECT * FROM tadir
INTO TABLE jtab
WHERE pgmid = 'R3TR'
AND object = 'SMOD'
AND devclass = v_devclass.
SELECT SINGLE * FROM tstct
WHERE sprsl EQ sy-langu
AND tcode EQ p_tcode.
FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
WRITE:/(19) 'Transaction Code - ',
20(20) p_tcode,
45(50) tstct-ttext.
SKIP.
IF NOT jtab[] IS INITIAL.
WRITE:/(95) sy-uline.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
WRITE:/1 sy-vline,
2 'Exit Name',
21 sy-vline ,
22 'Description',
95 sy-vline.
WRITE:/(95) sy-uline.
LOOP AT jtab.
SELECT SINGLE * FROM modsapt
WHERE sprsl = sy-langu AND
name = jtab-obj_name.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
WRITE:/1 sy-vline,
2 jtab-obj_name HOTSPOT ON,
21 sy-vline ,
22 modsapt-modtext,
95 sy-vline.
ENDLOOP.
WRITE:/(95) sy-uline.
DESCRIBE TABLE jtab.
SKIP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/ 'No of Exits:' , sy-tfill.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(95) 'No User Exit exists'.
ENDIF.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(95) 'Transaction Code Does Not Exist'.
ENDIF.
Take the user to SMOD for the Exit that was selected.
AT LINE-SELECTION.
GET CURSOR FIELD field1.
CHECK field1(4) EQ 'JTAB'.
SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
<b>plz reward points if helpful or if it solves ur query.</b>
Thanks
Chinmay -
How to find which user has killed a particular job in CPS?
Hi All,
I am new in CPS. I want to find the user who has killed a particular job in CPS?
Thanks in Advance.
AvdheshHi Gerben,
Thanks for the reply.
But I noticed when I killed a job and checked in the last modified by option I didn't find my user name there. It was displaying the user who had modified that job definition last time.
Thank you
Avdhesh
Maybe you are looking for
-
Using Convert to handle NULL values for empty Strings ""
After having had the problem with null values not being returned as nulls and reading some suggestion solution I added a converter to my application. <converter> <converter-id>NullStringConverter</converter-id> <converter-for-class>java.lan
-
My Mac Pro running 5.8 with a card running RAID 5 had worked well for 2.5 years. Recently, it would attempt to boot and stall at the apple screen and shut down. I booted from CD, and RAID utility said that a rebuild was necessary. 4 drives in the
-
Help with Premiere Elements 3.0, won't work with Win7 Home Prem 64bit
Does anybody knows if there's a patch or update for Premiere Elements 3.0 for Win7 Home Premium 64bit? This software is a little bit old, but works great with my WinXP pro. When I upgraded to Win7 Home, 64bit, Premiere Elements 3.0 would not work a
-
Firefox crashed and will not restart (get "Crash Reporter only), what do I do?
When attempting to launch Firefox I get this Crash Reporter prompt (http://i494.photobucket.com/albums/rr307/rgf/MozillaCrashReporter.jpg). Clicking "Restart Firefox" does not work. I tried downloading Firefox again but it did not resolve the problem
-
EHp4 NEw ECM Workflows not trigerring from portal
CL_HRECM00_WORKFLOW_EVENT This is the class used to trigger the workflow and the workflow templates are WS04000022 WS04000023 WS04000024 WS04000025 and these are having only notification steps and wait for events. When we do the test Run in R/3 event