Highlighted
Absent Member.
Absent Member.
1630 views

SCSMTP not running automatically

Jump to solution
Hello,

I have my email notifications firing but only when I have the scsmtp.exe filing running in the foreground, I have added this parameter in my sm.cfg file but somehow it doesn't start up automatically, can you please help me with the missing parameter.

My sm.cfg file looks as below:

sm -httpPort:13080 -httpsPort:13443
#
# Start a listener for Get-It, Connect-It, ODBC driver
#
#scenter -listener
#
# start a listener for SCAuto
#
# start background schedulers
#
sm system.start
sm -scautolistener:12690
scsmtp.exe
0 Likes
22 Replies
Highlighted
Absent Member.. Absent Member..
Absent Member..
Well, no sleep so we try a "workaround" - instead of sleep use:
ping -n 20 127.0.0.1 > NUL 2>&1
0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.
Does it appear to be attempting to start? Are there any messages being written to the scsmtp.log at the time the ServiceManager service is started?
0 Likes
Highlighted
Absent Member.
Absent Member.
@Peter - You mean, I still create a batch file with the commands as directly in the RUN folder??

ping -n 20 127.0.0.1 > NUL 2>&1
scsmtp.exe

@Audrey - No such indication in the log file whatsoever, looks like it is dead unless we invoke this exe manually.

How about starting this as a scheduler in system startup?? I cant think of any solution.......
0 Likes
Highlighted
Absent Member.
Absent Member.
Yes, starting this as a scheduler in system startup will work. Apart from it u can make a new process named "anubis" which can restart the process everytime it stops.


View solution in original post

Highlighted
Absent Member.
Absent Member.
Thanks Zafar, I have created a scheduler for scsmtp & for anubis, please see attached file.

However I can't invoke the process still, sorry..........attached is the screenshot of my scsmtp & anubis.

*I do not have outlook installed on my server, doesn't matter I guess

*I have added the entry as scsmtp.exe in my sm.cfg file

Please suggest..........
0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.
Hi,

I've never heard of starting scsmtp as a background service like that. In our environment, the scsmtp.exe actually starts the SCEMAIL background scheduler, not a service called scsmtp, so I'd be curious if it actually does anything.

I'm not sure if it is significant for this purpose, but for other reasons, in my environment I start scautolistener first, even before the sm -httpPort:13080 -httpsPort:13443 line. You might try this, or at least put it before the sm line to see if it has any effect. So as mentioned before, make sure your scsmtp.exe and scsmtp.ini are in the root of RUN (same directory as your sm.cfg and sm.ini) and try changing the order of the lines in your sm.cfg.

sm -scautolistener:12690
sm -httpPort:13080 -httpsPort:13443
sm
sm system.start
scsmtp.exe (or whatever your batch file name is, if you are using a batch file with the sleep command in it)

If it still fails to start, can you provide a print screen of your System Status screen? I will compare with mine to see what is different that might impact this.

Audrey
0 Likes
Highlighted
Absent Member.
Absent Member.
Hi Audrey,

Can I start the SCEMAIL background scheduler??

I have changed the order in my sm.cfg file as advised by you:

sm -scautolistener:12690
sm -httpPort:13080 -httpsPort:13443
sm
sm system.start
scsmtp.exe

I have also ensured the scsmtp.exe and scsmtp.ini are in the root directory of RUN folder, please find attached screenshot:

Note: I have scauto also installed & Iam not using scauto, I have not installed outlook on the server

Please help as this is very critical
0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.
Hi,

In your System Status print screen, I do not see the same "SCAutoListener-12690" as I see in mine. I don't know what scautod is and I don't have it in my System Status screen or scauto.startup as one of the items in my system startup like you show in your other print screen.

The print screen I've attached shows what my system status screen looks like with a successful start of the SCAutolistener and scsmtp.exe (SCEMAIL).

Regardless of whether I start scsmtp.exe or not, with the sm -scautolistener started I see the "SCAutoListener-12690" line in system status. If it fails to start, there is an entry written to the sm.log. Something like "RTE E Parameter initialization failed.". Are you seeing any entry in the sm.log about it failing to start?

Audrey
Highlighted
Absent Member.
Absent Member.
Hi Audrey,

Yes I do notice that, how can I get my SCAutolistener & SCMAIL getting started in my system status, they are running in the background though, should I create them in the info.startup & then start them up as schedulers?? Please advise.

For the RTE E error I have only these entries in my sm.log file:

1092( 5188) 10/01/2010 12:51:55 RTE E Error: SQL code=1 message=ORA-00001: unique constraint (SM9ADMIN.ONCALLM14FB351C3) violated
1092( 5188) 10/01/2010 12:51:55 RTE E statement=INSERT INTO ONCALLM1 ("NAME","SCHEDULE","OLD_FLAG","SYSMODTIME","SYSMODUSER","SYSMODCOUNT") VALUES(:X,:X,:X,:X,:X,:X)
0 Likes
Highlighted
Absent Member.
Absent Member.
if you want to run scsmtp.exe as a Windows Service, have a look at the attached file. It's a configuration fro ServiceCenter but should be similar for Service Manager 7 or 9.

regards,

Bruno

HP PSO
0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.
Hi,

I do not have any of these (scautod, SCEMAIL, scsmtp) in my info.startup. I don't know if a conflict can happen at that stage, but you might test removing all three of these items from yours (in dev of course).

Then enter only the following in your sm.cfg

sm -scautolistener:12690
sm -httpPort:13080 -httpsPort:13443
sm
sm system.start
scsmtp.exe

Audrey
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.