Powershell workflow generating false e-mail alerts
Hi,
I have a powershell script that gathers all of the trusted domains in our environment and then sends each domain name to another script to time the amount of time it takes to receive a response to an unqualified (isolated) name query in AD.
Script 1 code:
#Load the Active Directory Module
Import-module activedirectory
#Search the local schema for all trusted domain objects
$ADDomainTrust = Get-ADObject -Filter {ObjectClass -eq "trustedDomain"} -Properties * | Sort-Object cn
#Define workflow to pass domain names to trustsearch script
workflow Get-domains
param( $trusteddomainlist)
foreach -parallel ($trusteddomain in $trusteddomainlist)
$trust = $trusteddomain.name
InlineScript {C:\trustsearch.ps1 $using:trust}
Get-domains -trusteddomainlist $ADDomainTrust
As you can see, I'm using a "foreach -parallel" workflow to query each trusted domain simultaneously. This is done to alert us to a potential problem as quickly as possible, without having to wait for the entire script to finish.
Here's the code for the second (isolated name query) script. It sends me an e-mail if the query takes over 60 seconds.
Script #2 code:
$trust=$args[0]
foreach($domain in $trust){
$startDTM = (get-date)
$objUser = New-Object System.Security.Principal.NTAccount("junk")
$strSID = $objUser.Translate([System.Security.Principal.SecurityIdentifier])
$strSID.Value
$endDTM = (get-date)
$totaltime = (($endDTM-$startDTM).TotalSeconds)
$ftotaltime = "{0:N2}" -f $totaltime
Function SendMail
#SMTP server name
$smtpServer = "<SMTP server IP address>"
#Creating a Mail object
$msg = new-object Net.Mail.MailMessage
#Creating SMTP server object
$smtp = new-object Net.Mail.SmtpClient($smtpServer)
#Email structure
$msg.From = "<sender e-mail address>"
$msg.ReplyTo = "<reply e-mail address>"
$msg.To.Add("<recipient e-mail address>"
$msg.subject = "Isolated Name monitor warning"
$msg.body = @"
Isolated name queries are running slowly. A script measures how long the NAMCK domain controllers take to resolve an unqualified name query. It usually takes no more than 60 seconds to execute. It is currently taking $ftotaltime seconds.
This may indicate a trust issue or a problem with a downstream trusted domain.
#Sending email
$smtp.Send($msg)
If ($ftotaltime -gt "60.00")
SendMail
Unfortunately, I'm getting a lot of false positives....e-mail alerts when query responses are taking only 7 or 8 seconds, not just over 60. It seems to happen most during the first 2 or 3 minutes the script runs. I think it has something to do with it running
in parallel, because when I remove the "foreach -parallel" functionality, I don't get any false positives.
Does anyone have suggestions on how to cut down or even eliminate the false positives without removing the "foreach -parallel" functionality?
Thanks.
I think the problem is here:
If ($ftotaltime -gt "60.00")
You're doing a string comparison, when you need to be doing a numeric comparison:
If (60.00 -lt $ftotaltime)
Here:
$ftotaltime = "{0:N2}" -f $totaltime
you're uisng the string format operator (-f) which is going to produce a string. String comparisons of numbers won't produce the expected results:
PS C:\> "9.00" -gt "60.00"
True
Using the numeric double value 60.00 (instead of the string value "60.00"), and putting it on the LH side of the comparison will cause $ftotaltime to be coerced to a double, and you should get the expected results.
[string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "
Similar Messages
-
Whenever I go to the sent or junk mail boxes, I get a red dot indicating I have new incoming mail when there is none.
In case it matters, I'm connected to two different mail servers.Hi Al,
Not certain, but this can fix myriad Mail problems...
Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, then move these folder & file to the Desktop.
Move this Folder to the Desktop...
/Users/YourUserName/Library/Caches/Mail/
Move this file to the Desktop...
/Users/YourUserName/Library/Mail/Envelope Index
Reboot. -
Edit e-mail alerts generated by task lists
My client wants to customise the e-mail alerts generated to notify users of tasks due or overdue. I would like to know where the default messages are stored.
Thanks
ChrisIn addition
please check the below guide and make sure you have done your configurations as per it.
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/be79a16b-0a01-0010-51b8-9b6d1968338d?overridelayout=true
we were having similar issues with CCMS and it was due to missing configurations in client 000 , we had instead done them in client 100,which may result cause some issues and not always trigger alerts.
In Rz20->SAP CCMS Technical Expert Monitors->CCMS SelfMonitoring and GRMG SelfMonitoring will give you more information.
CCMSSelfmonitoring will keep logs of all the errors which happened in CCMS itself,it mails are not triggered,it will have logs which shows why mails were not triggered.
Thanks
Aamir -
How to send e-mail alert to the user job is successful or failed.
Hi Experts,
I have scheduled a job using DBMS_JOB Package; in this job I am calling a procedure.
How can we send an e-mail(alert) to the user if the job is successful (or) job fails.
If the job is successfully completed, then we have to send mail as “Job is completed successfully along with job name”.
If the job fails we have to send email as “error message of the job along with job name”(why the job is failed).
This alert should be sending automatically no manual intervention.
Please help me.
CREATE OR REPLACE PROCEDURE APPS_GLOBAL.arc_procedure (P_ID IN NUMBER)
IS
CURSOR C IS SELECT id,table_name,archive_table_name,where_condition
FROM apps_global.control_ram
WHERE id = p_id
ORDER BY id, table_name;
BEGIN
FOR I IN C
LOOP
EXECUTE IMMEDIATE
'INSERT INTO '
|| I.ARCHIVE_TABLE_NAME
|| '
(SELECT * FROM '
|| I.TABLE_NAME
|| ' WHERE '
|| I.WHERE_CONDITION
|| ')';
EXECUTE IMMEDIATE
'DELETE FROM '
|| I.TABLE_NAME
|| ' WHERE '
|| I.WHERE_CONDITION
|| '';
COMMIT;
END LOOP;
EXCEPTION
WHEN OTHERS
THEN
ROLLBACK;
DBMS_OUTPUT.PUT_LINE (
'An error was encountered - ' || SQLCODE || ' -ERROR- ' || SQLERRM);
END arc_procedure;
/This is my job.
DECLARE
X NUMBER;
BEGIN
SYS.DBMS_JOB.SUBMIT
( job => X
,what => 'APPS.arc_procedure(1);'
,next_date => to_date('05/01/2013 00:00:00','dd/mm/yyyy hh24:mi:ss')
,interval => 'TRUNC(SYSDATE+1)'
,no_parse => FALSE
SYS.DBMS_OUTPUT.PUT_LINE('Job Number is: ' || to_char(x));
COMMIT;
END;
/Thanks in advance.Hi,
I think you can do by creating mailing procedures and call it in the loop and outside the loop.
There would be two procedure one in inside loop which will execute after successfull completion of the loop.
Other would be in the exception block like i shown in the below code you have written;
V_variable_1 you can use as a parameter for what is the error occured.
like suppose your mailing procedure name is Status_email and Status_email_1.
CREATE OR REPLACE PROCEDURE APPS_GLOBAL.arc_procedure (P_ID IN NUMBER)
IS
CURSOR C IS SELECT id,table_name,archive_table_name,where_condition
FROM apps_global.control_ram
WHERE id = p_id
ORDER BY id, table_name;
V_VARIABLE_1 NUMBER;
V_VARIABLE_2 VARCHAR2(400);
BEGIN
FOR I IN C
LOOP
EXECUTE IMMEDIATE
'INSERT INTO '
|| I.ARCHIVE_TABLE_NAME
|| '
(SELECT * FROM '
|| I.TABLE_NAME
|| ' WHERE '
|| I.WHERE_CONDITION
|| ')';
EXECUTE IMMEDIATE
'DELETE FROM '
|| I.TABLE_NAME
|| ' WHERE '
|| I.WHERE_CONDITION
|| '';
COMMIT;
STATUS_EMAIL;
END LOOP;
EXCEPTION OTHERS THEN
V_VARIABLE_1 :=SQLCODE;
V_VARIABLE_2 :=SQLERRM;
ROLLBACK;
STATUS_EMAIL_1(V_VARIABLE_1,V_VARIABLE_2);
END arc_procedure;
/ You can refer to sample email procedure i have created for you.
CREATE OR REPLACE PROCEDURE STATUS_EMAIL
AS
v_From VARCHAR2(80) := 'EMAIL_ID';
v_Recipient VARCHAR2(80) := 'EMAIL_ID';
--YOU CAN SEND EMAIL TO MORE THAT ONE USER SO YOU CAN USE LIKE BELOW VARIABLE....
v_Recipienttt VARCHAR2(80) := 'EMAIL_ID';
v_Subject VARCHAR2(80) := 'SUBJECT_FOR_THE_MAIL';
v_Mail_Host VARCHAR2(30) := 'MAIL_SERVERS_HOST_IP(SMTP_SERVER)';
v_Mail_Conn utl_smtp.Connection;
crlf VARCHAR2(2) := chr(13)||chr(10);
BEGIN
v_Mail_Conn := utl_smtp.Open_Connection(v_Mail_Host);
utl_smtp.Helo(v_Mail_Conn, v_Mail_Host);
utl_smtp.Mail(v_Mail_Conn, v_From);
utl_smtp.Rcpt(v_Mail_Conn, v_Recipient);
utl_smtp.Rcpt(v_Mail_Conn, v_Recipienttt);
--OPEN DATA CONNNECTION
UTL_SMTP.OPEN_DATA(v_mail_conn);
--MAIL HEADER
utl_smtp.write_DATA(v_Mail_Conn,'Date: ' || to_char(sysdate, 'DD-MON-YYYY hh:mi:ss AM') || crlf);
utl_smtp.write_DATA(v_Mail_Conn,'From: ' || v_From || crlf );
utl_smtp.write_DATA(v_Mail_Conn,'Subject: '|| v_Subject || ||crlf);
utl_smtp.write_DATA(v_Mail_Conn,'To: ' || v_Recipient || crlf);
utl_smtp.write_DATA(v_Mail_Conn,'Cc: ' || v_Recipienttt ||','|| crlf);
--MAIL BODY
utl_smtp.write_DATA(v_Mail_Conn,'MIME-Version: 1.0'|| crlf );
utl_smtp.write_DATA(v_Mail_Conn,'Content-Type: multipart/mixed;'|| crlf );
utl_smtp.write_DATA(v_Mail_Conn,' boundary="-----SECBOUND"'|| crlf ||crlf );
utl_smtp.write_DATA(v_Mail_Conn,'-------SECBOUND'|| crlf );
utl_smtp.write_DATA(v_Mail_Conn,'Content-Type: text/plain;'|| crlf);
utl_smtp.write_DATA(v_Mail_Conn,'Content-Transfer_Encoding: 7bit'|| crlf);
utl_smtp.write_DATA(v_Mail_Conn,'Procedure is successfully complited without error'|| crlf);
utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
utl_smtp.write_DATA(v_Mail_Conn,'Dear All, '|| crlf);
utl_smtp.write_DATA(v_Mail_Conn,'Procedure is successfully complited without error'||'.' ||crlf);
utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
utl_smtp.write_DATA(v_Mail_Conn,'Regards, '|| crlf);
utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
utl_smtp.write_DATA(v_Mail_Conn,'any_name '|| crlf);
utl_smtp.write_DATA(v_Mail_Conn,null|| crlf);
utl_smtp.write_data(v_Mail_Conn, utl_tcp.CRLF ||'This mail is auto generated.');
--CLOSE CONNECTION
UTL_SMTP.CLOSE_DATA(v_mail_conn);
utl_smtp.Quit(v_mail_conn);
EXCEPTION
WHEN utl_smtp.Transient_Error OR utl_smtp.Permanent_Error then
raise_application_error(-20000, 'Unable to send mail: '||sqlerrm);
END;
/cheers.. -
How create mail alert without triggering the event.
1. SR 3-4924626351: How create mail alert without triggering the event.
We wanted to send alert mail every 10 days or 15 days or 1 month to a reporting manager of Opportunity Owner with details of that Opportunity. I don’t want to use any triggering of event like the Following. When new opportunity is created When modified Opportunity is saved etc.Raju,
If you don't want to use the triggering event, you will have to do this manually.
Manually:
- Create a Web Link on the SR with and embed the mailto: function with the receivers email and subject and body embedded in the url (you can find this link on Google)
- When this link is clicked, an email window will open with all the details you provide, and you can click the send button to send the email.
- You will have to do this manually every 10-15 days or whatever is the duration
Auto:
- Create a time based workflow on a new Opportunity Created event
- create a action to send an email notification to the concerned person (details in the workflow properties)
- This workflow will auto send an email every 10-15 days to the opportunity Manager.
The time based workflow is the best option I see. Do you see any issue/ concerns with auto generated emails?
Hope this helps!
Royston -
E-Mail Alerts, Change SMTP Port
I'm trying to set up e-mail alert notifications in Enterprise Manager. I have port 25 heavily used elsewhere, and I beleive this is preventing connection. I cannot conect to port 25 with the telnet test, but I can cannot to port 23. How do I change ports?
Oracle Database 10.2.0.4The front end application (SmarTeam PDM) is using port 25 for it's workflow. I havn't tested yet with that service off. I'm just wondering why that server can connect to to SMTP, but the Oracle server cannot?HELP!
I am easily confused.
Please clarify how many different systems are involved in this discussion, by providing actual hostname & description of their function.
Firewall rules can be such that System A is allowed to initiate a connection with System B using port #25
This same firewall could be configured to prevent System B from initiating a connection on port #25 with System A.
Please clarify the originating system, the terminating system & the port being used/attempted.
I still suspect internal Firewall rules are getting in your way -
E-mail alerts in planning & essbase log
Hi All,
1).How to get the e-mail alerts in planning .
2).where can we find in detail log file in Essbase.
BunnyHi,
To set up e-mail for workflow notification.
In planning - Administration > Application Settings
Under System Settings in the E-mail Server box - enter the smtp server information.
essbase.log will be in arborpath directory e.g. C:\hyperion\AnalyticServices\essbase.log
Also there is a log file for each application. e.g. C:\hyperion\AnalyticServices\app\Sample\Sample.log
Cheers
John
http://john-goodwin.blogspot.com/ -
Hi,
Im having some issue with a few powershell workflow scripts that will work in powershell ISE but they will appear to not run in a Admin powershell command prompt session.
The script is simple.
Workflow NewUser
Param (
[Parameter(Mandatory=$True)]
[string] $givenname,
[Parameter(Mandatory=$True)]
[string] $surname,
[Parameter(Mandatory=$True)]
[string] $template
"Param1 = $givenname"
"Param2 = $surname"
"Param3 = $template"
The saved file name is NewUser.ps1.
When I run .\NewUser.ps1 -givenname test -surname test -template test
Nothing happens. In Powershell ISE, it outputs
Param1 = test
Param2 = test
Template = test
I can run .\NewUser.ps1 skdjfsdkfjsdkfjsdkfj in powershell command
and nothing happens.
I notice this behavior with a number of scripts that I get working with ISE and they dont work in powershell command prompt.
We are using Powershell 4.0
Thanks LanceWhen I run
Set-psdebug -step
then newuser.ps1 -givename test -surname test -template test
it gets to the line workflow newuser and quits
am I missing some dependency?
Running [System.Threading.Thread]::GetDomain().GetAssemblies() in powershell commmand returns the following.
GAC Version Location
True v4.0.30319 C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.ConsoleHost\v4.0_3.0.0.0__31bf...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.C...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Management.Automation\v4.0_3.0.0.0__31bf3856...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\Syst...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xm...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.DirectoryServices\v4.0_4.0.0.0__b03f5f7f11d5...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Management\v4.0_4.0.0.0__b03f5f7f11d50a3a\Sy...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Management.Infrastructure\v4.0_1.0.0.0__3...
False v4.0.30319
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration.Install\v4.0_4.0.0.0__b03f5f7f...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_64\System.Transactions\v4.0_4.0.0.0__b77a5c561934e089\Sy...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Security\v4.0_3.0.0.0__31bf385...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Activities\v4.0_3.0.0.0__31bf3...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Activities\v4.0_4.0.0.0__31bf3856ad364e35\Sy...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Workflow.ServiceCore\v4.0_3.0....
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Activities.Presentation\v4.0_4.0.0.0__31bf38...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework\v4.0_4.0.0.0__31bf3856ad364e3...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\WindowsBase\v4.0_4.0.0.0__31bf3856ad364e35\WindowsB...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_64\PresentationCore\v4.0_4.0.0.0__31bf3856ad364e35\Prese...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xaml\v4.0_4.0.0.0__b77a5c561934e089\System.X...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Core.Activities\v4.0_3.0.0.0__...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Diagnostics.Activities\v4.0_3....
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Management.Activities\v4.0_3.0...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Security.Activities\v4.0_3.0.0...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Utility.Activities\v4.0_3.0.0....
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.WSMan.Management.Activities\v4.0_3.0.0.0_...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.DurableInstancing\v4.0_4.0.0.0__31bf...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Internals\v4.0_4.0.0.0__31bf385...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_64\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Dat...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Commands.Utility\v4.0_3.0.0.0_...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\Syst...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Mic...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Commands.Management\v4.0_3.0.0...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Dynamic\v4.0_4.0.0.0__b03f5f7f11d50a3a\Syste...
and for the ISE it returns this
GAC Version Location
True v4.0.30319 C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll
False v4.0.30319 C:\Windows\System32\WindowsPowerShell\v1.0\powershell_ise.exe
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.ISECommon\v4.0_3.0.0.0__31bf3856ad364e35\Mic...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Window...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Management.Automation\v4.0_3.0.0.0__31bf3856ad364e35\Syste...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.GPowerShell\v4.0_3.0.0.0__31bf3856ad364e35\M...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.Composition\v4.0_4.0.0.0__b77a5c561934e089\...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Editor\v4.0_3.0.0.0__31bf3856ad364e35\Micros...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework\v4.0_4.0.0.0__31bf3856ad364e35\Presentation...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\WindowsBase\v4.0_4.0.0.0__31bf3856ad364e35\WindowsBase.dll
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_64\PresentationCore\v4.0_4.0.0.0__31bf3856ad364e35\PresentationCore.dll
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xaml\v4.0_4.0.0.0__b77a5c561934e089\System.Xaml.dll
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Config...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\Syste...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\UIAutomationProvider\v4.0_4.0.0.0__31bf3856ad364e35\UIAutomationP...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Accessibility\v4.0_4.0.0.0__b03f5f7f11d50a3a\Accessibility.dll
False v4.0.30319
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.DirectoryServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Di...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Management\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Managemen...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Management.Infrastructure\v4.0_1.0.0.0__31bf3856ad364e3...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\System.Numerics.dll
False v4.0.30319
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework.AeroLite\v4.0_4.0.0.0__31bf3856ad364e35\Pre...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\UIAutomationTypes\v4.0_4.0.0.0__31bf3856ad364e35\UIAutomationType...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework-SystemXml\v4.0_4.0.0.0__b77a5c561934e089\Pr...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration.Install\v4.0_4.0.0.0__b03f5f7f11d50a3a\Syste...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_64\System.Transactions\v4.0_4.0.0.0__b77a5c561934e089\System.Transacti...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Security\v4.0_3.0.0.0__31bf3856ad364e35\Micr...
False v4.0.30319
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.GraphicalHost\v4.0_3.0.0.0__31bf3856ad364e35...
False v4.0.30319
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework-SystemCore\v4.0_4.0.0.0__b77a5c561934e089\P...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_64\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Commands.Utility\v4.0_3.0.0.0__31bf3856ad364...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework-SystemData\v4.0_4.0.0.0__b77a5c561934e089\P...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Commands.Management\v4.0_3.0.0.0__31bf3856ad...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceProcess\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Servi...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Activities\v4.0_3.0.0.0__31bf3856ad364e35\Mi...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.Activitie...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Workflow.ServiceCore\v4.0_3.0.0.0__31bf3856a...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Activities.Presentation\v4.0_4.0.0.0__31bf3856ad364e35\Sys...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Core.Activities\v4.0_3.0.0.0__31bf3856ad364e...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Diagnostics.Activities\v4.0_3.0.0.0__31bf385...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Management.Activities\v4.0_3.0.0.0__31bf3856...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Security.Activities\v4.0_3.0.0.0__31bf3856ad...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.PowerShell.Utility.Activities\v4.0_3.0.0.0__31bf3856ad3...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.WSMan.Management.Activities\v4.0_3.0.0.0__31bf3856ad364...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.DurableInstancing\v4.0_4.0.0.0__31bf3856ad364e35\S...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Internals\v4.0_4.0.0.0__31bf3856ad364e35\Syst...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework-SystemXmlLinq\v4.0_4.0.0.0__b77a5c561934e08...
True v4.0.30319 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Dynamic\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Dynamic.dll
Thanks Lance -
Configuring mail alert for status of Concurrent manager and Apache services
Hi,
We have R12 (12.0.6)setup on our PROD EBIZ we want set mail-alert whenever concurrent manager or Apache services go down.
Can this be done through Oracle alert manager ....
Does anyone has a script thats works in oracle alert manager...
How do we configure the same in oracle alert manager.
Help is appreciated.
Regards,
MilanHi;
You can run cmclean.sql. For details see:
CMCLEAN
Also see:
How To Clear Orphan Generate Run Balance Processes [ID 337898.1]
Regard
Helios -
I have just completed an application using OAF. Now I have to set certain mail alerts in this application.
Can anyone kindly let me know how to set mail alerts.
Thanks & RegardsHi,
If u sending mail through, if any button clicked on OAF page then refer following code:
import java.io.*;
import java.net.*;
* This program sends e-mail using a mailto: URL
public class SendMail {
public static void main(String[] args) {
try {
// If the user specified a mailhost, tell the system about it.
if (args.length >= 1) System.getProperties().put("mail.host", args[0]);
// A Reader stream to read from the console
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
// Ask the user for the from, to, and subject lines
System.out.print("From: ");
String from = in.readLine();
System.out.print("To: ");
String to = in.readLine();
System.out.print("Subject: ");
String subject = in.readLine();
// Establish a network connection for sending mail
URL u = new URL("mailto:" + to); // Create a mailto: URL
URLConnection c = u.openConnection(); // Create a URLConnection for it
c.setDoInput(false); // Specify no input from this URL
c.setDoOutput(true); // Specify we'll do output
System.out.println("Connecting..."); // Tell the user what's happening
System.out.flush(); // Tell them right now
c.connect(); // Connect to mail host
PrintWriter out = // Get output stream to mail host
new PrintWriter(new OutputStreamWriter(c.getOutputStream()));
// Write out mail headers. Don't let users fake the From address
out.println("From: \"" + from + "\" <" +
System.getProperty("user.name") + "@" +
InetAddress.getLocalHost().getHostName() + ">");
out.println("To: " + to);
out.println("Subject: " + subject);
out.println(); // blank line to end the list of headers
// Now ask the user to enter the body of the message
System.out.println("Enter the message. " +
"End with a '.' on a line by itself.");
// Read message line by line and send it out.
String line;
for(;;) {
line = in.readLine();
if ((line == null) || line.equals(".")) break;
out.println(line);
// Close the stream to terminate the message
out.close();
// Tell the user it was successfully sent.
System.out.println("Message sent.");
System.out.flush();
catch (Exception e) { // Handle any exceptions, print error message.
System.err.println(e);
System.err.println("Usage: java SendMail [<mailhost>]");
Sending mail through Oracle Alert, then u can refer the Oracle alert guide.
If you have any issue with Oracle alert , then you can share your queries.
Thanks,
Kumar -
Fetch data from table and generate attachment than mail it.
Hello Experts,
From couple of day I am searching on Google for a better database procedure that will help me to get data from tables and generate attachment and mail it but i fail.
My Scenario is:
I have a query that will fetch almost 5000 records from database tables. Each record has almost 75 characters
select a.location_code,
a.item_code,
b.description item_desc,
to_char(a.manufact_date,'ddMonyy')mfg,
to_char((a.manufact_date + nvl(b.expiry_period,0)),'ddMonyy')expr,
to_char((a.manufact_date + nvl(b.qurantine_period,0)),'ddMonyy')qrtn,
round(nvl (b.qurantine_period, 0) - (sysdate - a.manufact_date)) days_elapsed,
a.closing_balance_posted quantity
from wms_stock_current_balance_v a, wms_item_setup_mast b
where a.closing_balance > 0
and a.item_code = b.item_code
and a.loc_type in ('RACKING','PICKING','QUICKA','BUNDLED')
and nvl(b.qurantine_period,0) > 0
and round(nvl (b.qurantine_period, 0) - (sysdate - a.manufact_date)) <= 0
order by a.item_code, a.location_code;
Sample data of above query is
LOCATION_CODE
ITEM_CODE
ITEM_DESC
MFG
Expiry
Quarantine
Days Elapse
Quantity
13DL2
000000000000000F0487
CLEAR COOL BLACK 05ML
20-Feb-10
31-Mar-14
4-Jun-13
-122
160
14DL0
000000000000000F0487
CLEAR COOL BLACK 05ML
23-Feb-10
3-Apr-14
7-Jun-13
-119
134
14DL2
000000000000000F0487
CLEAR COOL BLACK 05ML
23-Feb-10
3-Apr-14
7-Jun-13
-119
160
14DR2
000000000000000F0487
CLEAR COOL BLACK 05ML
23-Feb-10
3-Apr-14
7-Jun-13
-119
20
14LL2
000000000000000F0487
CLEAR COOL BLACK 05ML
20-Feb-10
31-Mar-14
4-Jun-13
-122
160
17ER2
000000000000000F0487
CLEAR COOL BLACK 05ML
20-Feb-10
31-Mar-14
4-Jun-13
-122
160
17GL2
000000000000000F0487
CLEAR COOL BLACK 05ML
20-Feb-10
31-Mar-14
4-Jun-13
-122
160
17SL0
000000000000000F0487
CLEAR COOL BLACK 05ML
17-Feb-10
28-Mar-14
1-Jun-13
-125
64
18QL0
000000000000000F0487
CLEAR COOL BLACK 05ML
23-Feb-10
3-Apr-14
7-Jun-13
-119
160
19AR5
000000000000000F0487
CLEAR COOL BLACK 05ML
17-Feb-10
28-Mar-14
1-Jun-13
-125
160
19DL1
000000000000000F0487
CLEAR COOL BLACK 05ML
20-Feb-10
31-Mar-14
4-Jun-13
-122
160
19JR0
000000000000000F0487
CLEAR COOL BLACK 05ML
17-Feb-10
28-Mar-14
1-Jun-13
-125
60
19TL1
000000000000000F0487
CLEAR COOL BLACK 05ML
20-Feb-10
31-Mar-14
4-Jun-13
-122
160
20GR2
000000000000000F0487
CLEAR COOL BLACK 05ML
20-Feb-10
31-Mar-14
4-Jun-13
-122
40
36FL3
000000000000000F0487
CLEAR COOL BLACK 05ML
18-Feb-10
29-Mar-14
2-Jun-13
-124
65
19UR0
000000000000000F0591
COMFORT WHITE 24ML*300
28-Oct-09
28-Oct-11
1-May-11
-887
1
12SL1
000000000000000F0593
COMFORT PINK 24ML*300
28-Oct-09
28-Oct-11
1-May-11
-887
42
12SR1
000000000000000F0593
COMFORT PINK 24ML*300
28-Oct-09
28-Oct-11
1-May-11
-887
42
14OR1
000000000000000F0593
COMFORT PINK 24ML*300
28-Oct-09
28-Oct-11
1-May-11
-887
8
36EL4
000000000000000F0594
CLEAR HF DECRASE 5M*360
14-Feb-10
14-Feb-11
12-Oct-10
-1088
14
13VL1
000000000000000F0595
CLEAR COM SFT CRE 5*360
8-Feb-10
8-Feb-11
6-Oct-10
-1094
160
14ER0
000000000000000F0595
CLEAR COM SFT CRE 5*360
8-Feb-10
8-Feb-11
6-Oct-10
-1094
105
Database Info
Oracle 10g
Version 10.2.0.1.0Look at the sample code for generating a CSV file that I've just posted in response to a similar question:
Re: How to execute a proc and spool files in a database job
And the use the search button in this forum to find sample code for sending a CLOB as a plain/text e-mail attachment using UTL_SMTP. -
"Forgot Password" link doesn't generate an e-mail ...
Hi, I've been trying for five days to get access to a Skype account I set up but have not used for a few months. I apparently have the password wrong. I've used the "Forgot Password" link on the login page. That link should automatically generate an e-mail to me, but I've gotten no e-mail, despite multiple attempts. There is no e-mail in my spam folder either. So I've sent in two support requests. The only thing I got in response to the first one was an e-mail asking me to fill out a survey about the service I got. Which would make sense, except that I never got any service. At all. The second support request has produced no results. I know I'm using the correct e-mail address, because I initially couldn't remember my Skype name either, and managed to recover it using the "Forgot Skype Name" link. At this stage, the only option I can think of is calling my credit card company and telling them that I no longer approve of any further charges from Skype and they should be rejected. Does anyone on this list have any other suggestions of how I might get some service, any service, to get access to this account? Thanks for any advice you might offer.
twocoasts wrote:
Hi, I've been trying for five days to get access to a Skype account I set up but have not used for a few months. I apparently have the password wrong. I've used the "Forgot Password" link on the login page. That link should automatically generate an e-mail to me, but I've gotten no e-mail, despite multiple attempts. There is no e-mail in my spam folder either. So I've sent in two support requests. The only thing I got in response to the first one was an e-mail asking me to fill out a survey about the service I got. Which would make sense, except that I never got any service. At all. The second support request has produced no results. I know I'm using the correct e-mail address, because I initially couldn't remember my Skype name either, and managed to recover it using the "Forgot Skype Name" link. At this stage, the only option I can think of is calling my credit card company and telling them that I no longer approve of any further charges from Skype and they should be rejected. Does anyone on this list have any other suggestions of how I might get some service, any service, to get access to this account? Thanks for any advice you might offer.
if you have a billing or transaction history in the last 6 months, you can request for a new password without the need to your registered email address. Just copy and paste the link below to your browser to open the password automation page;
login.skype.com/account/password-automation
IF YOU FOUND OUR POST USEFUL THEN PLEASE GIVE "KUDOS". IF IT HELPED TO FIX YOUR ISSUE PLEASE MARK IT AS A "SOLUTION" TO HELP OTHERS. THANKS!
ALTERNATIVE SKYPE DOWNLOAD LINKS | HOW TO RECORD SKYPE VIDEO CALLS | HOW TO HANDLE SUSPICIOS CALLS AND MESSAGES
SEE MORE TIPS, TRICKS, TUTORIALS AND UPDATES in
| skypefordummies.blogspot.com | -
How can I turn off the New Mail alert on my iPod Touch?
I have an iPod Touch (version 6.1.3). The other day I was waiting for an important e-mail, so I turned on the New Mail alert. It worked fine. Now I want to turn it off, but I can't. I went into Settings and then to Sounds and changed the selection from the sound I'd selected ("Bell") to None. It says "None" but every time I get a new e-mail, it still makes the bell sound.
I also tried going into Notifications and then to New Mail Sound and setting it to "None" but that didn't change anything
Any ideas what I'm missing?
Thanks!Try removing the mail totally from your notifications center.
I have everything turned off and the banner set to none. -
E-Mail alerts for queues in SMQ2
Hi,
In a asynchronous IDOC->ABAP Proxy scenario, some of the messages are getting stucked in the transaction SMQ2 in PI system.This happens only when we send 100 IDOCs to PI at the same time and only 5-10 messages are getting stucked with status as "Running". The remaining messages are processed and send to the target system.
I would like to know a solution to trigger an E-mail alert to a specific Mail id if any messages gets stuck in the queue for more than 5 minutes.
Do we need to configure CCMS to achieve this? If so, please let me know the steps.
Thanks and Regards,
SakthiHi Just check for
configure E-mail alerts
Configuring scenario specific E-mail alerts in XI-CCMS: Part-2 By Aravindh Prasanna
/people/aravindh.prasanna/blog/2005/12/24/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part-2
XI : Configuring CCMS Monitoring for XI- Part I By Naveen Pandrangi
/people/sap.user72/blog/2005/11/24/xi-configuring-ccms-monitoring-for-xi-part-i
XI : GRMG Customizing for XI CCMS Heartbeat Monitoring Part II By Naveen Pandrangi
/people/sap.user72/blog/2005/12/05/xi-grmg-customizing-for-xi-ccms-heartbeat-monitoring-part-ii
Configuring scenario specific E-mail alerts in XI-CCMS: Part 3 by Aravindh Prasanna
/people/aravindh.prasanna/blog/2006/02/20/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part-3
Regards
Abhishek -
Workflow for sending reminder mail to approve pending PO in me28
Hi Experts,
I have a requirement wherein I have to design a workflow to send a mail to the approver if he has not approved the PO in me28.
I don need a workflow for PO approval . Only in the case he forgets to approve a PO for one day he needs to get a mail .
Kindly guide me . Quick help is appreciatedHello,
Design a workflow template which is triggered when the PO is created. Make the template wait for the event 'RELEASED' which is to be triggered once the PO is released. If the event is received, complete the workflow or else, design the deadline monitoring to send a mail to the concerned person if PO is not released.
You need to take care of the event creation after the PO is released and deadline monitoring of the step in the workflow template.
If this is not possible, you can create a program which collects all the POs which are not released within a day of creation and send a mail to the concerned people from the program itself. You have to schedule this program daily at a particular time to send the mail. You do not need a workflow for this.
Hope this will help.
Thanks,
Samson
Maybe you are looking for
-
IMac 27" Late 2013 Wi Fi Log in Issue
Hello everyone, I apologize if my questions have been asked in the past. I'm completely new to the Apple Mac OS. I bought a new iMac 27" in the middle of 2014 and use it about once or twice a week and have had no issues to-date. I'm still in the proc
-
Everything ran well in v 3.6.6. Today it seemingly upgraded to v3.6.7 and then a Mozilla web page strongly suggested upgrading to v.3.6.8. I did. Sometime after this Norton 360 v3 found some bad files and quarantined them and needed a reboot. After t
-
How to take a picture the menu???
I noticed that some of facebook users are uploading the picture of their program or website. I just want to know how to take a picture if I am using iphone 4. My friend said press the power button and menu button at the same time but its not working.
-
I've been trying to run the "Verify Disk" utility on Disk utility on my main 500GB hard drive that contains the OS among other things. When ever I run either verify or repair disk utility it runs for a little bit then ultimately comes back with the e
-
First off I have a X-Fi and z5500's hooked up with an optical cable. I came home today and well the sound quality is pitiful and anytime there is no sound playing my z5500 control deck says "no digital data" and when something is sent sound data wise