[SOLVED] Which setting is done on Server to get this message?


 
Thread Tools Search this Thread
Operating Systems Solaris [SOLVED] Which setting is done on Server to get this message?
# 1  
Old 11-27-2013
RedHat [SOLVED] Which setting is done on Server to get this message?

HI Guys,

System is Solaris 10

I need to know where exactly the setting is done so as to get below email to us:-
Code:
 
Job-Scheduler@server31 [mailto:sysmgr@server31.sys.com] Sent: Monday, November 25, 2013 7:15 AM To: sysmgr@server31.sys.com Subject: Output from "cron" command Your "cron" job on server31 /usr/local/bin/sudo /users/sysmgr/ios produced the following output: /opt/SUNWexplo/output/explorer.844d540d.server31-2013.11.25.01.00/disks /opt/SUNWexplo/output/explorer.844d540d.server31-2013.11.25.01.00/disks /opt/SUNWexplo/output a explorer.844d540d.server31-2013.11.25.01.00/ 0K a explorer.844d540d.server31-2013.11.25.01.00/rda/ 0K a explorer.844d540d.server31-2013.11.25.01.00/rda/RDA.log 7K

where server31 is the server name.

Below entry is scheduled in crontab:-
/usr/local/bin/sudo /users/sysmgr/ios

like this:-

Code:
45 02 * * 1     /usr/local/bin/sudo /users/sysmgr/ios

Whenever this script gets executed we get above mail , but now we are not getting it, what could be the problem.

I am not so sound in mailing stuff, however I found that sendmail is running as follows:-

Code:
svcs -a | grep sendmail
online         Jun_10   svc:/network/sendmail-client:default
online         Jun_10   svc:/network/smtp:sendmail

Please do suggest me what is the probplem and where exactly is the root cause.

Thanks.
# 2  
Old 11-27-2013
The script is scheduled for running every Monday morning. Which it did two days ago. Are you sure you're missing something?
This User Gave Thanks to RudiC For This Post:
# 3  
Old 11-27-2013
Yes, That's I know, but now I want to find out why we did not get mail these week?

and how come anything written in crontab sends mail in outlook? What is pushing this crontab entries output in outlook?

Please advise. I really want to know this.
# 4  
Old 11-27-2013
cron attempts to email the output of any programs it runs. No output, no email. Traditionally, programs you run in cron are supposed to be silent, unless something goes wrong, so it can email you errors.
This User Gave Thanks to Corona688 For This Post:
# 5  
Old 11-28-2013
Thanks a lot for reply.

Please excuse me as I might ask some silly questions.

Our main problem is we are not getting email from "no.reply@oracle.com" about sun exploer status like this:-

Code:
-----Original Message-----
From: no.reply@oracle.com [mailto:no.reply@oracle.com] 
Sent: Tuesday, November 12, 2013 5:29 AM
To: Unixteam
Subject: SunTM Explorer status

Following is a status of your SunTM Explorer Data Collector files that were sent to Sun: 

Hostid           Hostname         Date                Processed  Current Version?

3f329f         Server1      2013/11/11 01:00    Success     No   (Found 7.3)
3f16a7         Server2      2013/11/11 01:00    Success     No   (Found 7.3)
4d540d         Server3      2013/11/11 02:08    Success     Yes  (Found 8.01)
3aed03         Server4      2013/11/11 02:07    Success     Yes  (Found 8.01)


This is what we have set in crontab in all servers (server1 to server4)

Code:
00 02 * * 1     /usr/local/bin/sudo /opt/SUNWexplo/bin/explorer -P -q # SUNWexplo
45 02 * * 1     /usr/local/bin/sudo /users/sysmgr/ios

45 02 * * 1     /usr/local/bin/sudo  find /opt/SUNWexplo/output/ -name  "explorer*`uname -n`*" -exec chmod -R 755 {} \; > /dev/null 2>&1

59 02 * * 1     scp -q /opt/SUNWexplo/output/*.tar.gz mainserver:/opt/lisa/explorers/ 2>&1|nawk '! /^$|^\*/'

First we need to find out whether Sun explorer data is getting send to oracle or not?

this is what set in mainserver crontab:-
Code:
00 02 * * 1  /usr/local/bin/sudo /opt/SUNWexplo/bin/explorer -P -q # SUNWexplo
45 02 * * *     /usr/local/bin/sudo  find /opt/SUNWexplo/output/ -name  "explorer*`uname -n`*" -exec chmod -R 755 {} \;
59 03 * * 1  /usr/5bin/scp -q /opt/SUNWexplo/output/*.tar.gz mainserver:/opt/lisa/explorers/
35 10 * * *  /usr/5bin/scp -q /opt/SUNWexplo/output/*.tar.gz mainserver:/opt/lisa/explorers/
52 08 * * 1  /usr/local/bin/sudo -u locexp /opt/lisa/SAlocexp/verwerk_explorers >>  /opt/lisa/cronlog/cron.ouput 2>&1
15 15 * * *  /usr/local/bin/sudo -u locexp /opt/lisa/SAlocexp/verwerk_explorers  >> /opt/lisa/cronlog/cron.ouput 2>&1
15 13 * * *  /usr/local/bin/sudo -u locexp /opt/lisa/SAlocexp/bin/Get-latest-patchdiag-xref > /dev/null 2>&1  || /bin/logger -t locexp -p daemon.err Get-latest-patchdiag-xref failed: $?

So I want to know what is preventing us from getting mail form no.reply@oracle.com ?

Please advise. how to go about this, all cronjobs are run by same user called sysmgr.


this is what is set in /etc/mail/aliases file

Code:
#######################
# Local aliases below #
#######################


sysmgr:         unixteam


Please advise. how to go about this, how reach the root cause of the issue?

Thanks a lot.

---------- Post updated 11-28-13 at 12:34 PM ---------- Previous update was 11-27-13 at 09:44 PM ----------

Please reply.
# 6  
Old 11-28-2013
Bumping up posts or double posting is not permitted in these forums.

Please read the rules, which you agreed to when you registered, if you have not already done so.

You may receive an infraction for this. If so, don't worry, just try to follow the rules more carefully. The infraction will expire in the near future

Thank You.

The UNIX and Linux Forums.
This User Gave Thanks to Corona688 For This Post:
# 7  
Old 11-28-2013
Try
Code:
echo test | /usr/lib/sendmail -v sysmgr

look at the diagnostic messages.
Also read the sendmail daemon messages in /var/log/syslog
This User Gave Thanks to MadeInGermany For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

[Solved] Cant get message body

Hi guys . I am trying to take the output of top command and mail it to myself . The code is : echo ############################################################## /usr/local/bin/top c n 1 b >> /export/home/top-output.txt echo ############################################################## ... (6 Replies)
Discussion started by: Junaid Subhani
6 Replies

2. Linux

Confusion setting up server

20GB space (1GB Swap),and installed Centos 5.7-x86 arch. I want to use this VPS to host 2-4 domains, all of WordPress. What I want to ask is: 1. Do I need a VPS management software before installing Webuzo (from Softaculous)? If yes, what was his name? 2. Do I need to install the software... (0 Replies)
Discussion started by: Byeron
0 Replies

3. Programming

[Solved] how to send an integer via message queue?

how can i send an integer via message queue? i try this, but it doesn't work, child process receive 13345943 instead of 5 #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/msg.h> #include <sys/ipc.h> #include <sys/sem.h> #include <errno.h> #include <unistd.h>... (2 Replies)
Discussion started by: tafazzi87
2 Replies

4. UNIX for Advanced & Expert Users

Need help on setting up Centralized Server

Hello All, I am working on SuSe Linux Platform. Some times ago i got an issue with an application for which i had to update that in all desktops (SLED == SuSe Linux Desktop). Since this time number of desktops were less then it was possible to go and update package manually. But in... (1 Reply)
Discussion started by: shirsha
1 Replies

5. UNIX for Dummies Questions & Answers

need help with setting up linux server

Hello, I recently got my first "real" job, i come from a *microsoft* world, I'm being asked to setup from scratch a database and a webserver that allows users to view/add/edit data (intranet). I installed Ubuntu Server 7.10 which comes with LAMP (apache 2.*, mysql5.* and php 5.*) The only... (2 Replies)
Discussion started by: elzalem
2 Replies

6. UNIX for Advanced & Expert Users

setting up my HOME PC as server

Hi , i am having RedHat AS 4 in my home PC.now i want to access applications remotely i.e from office. how can i do that. in short i would like to make my PC as server for doing test's. while I am @ work. I am using static IP. leenus (1 Reply)
Discussion started by: rrs
1 Replies

7. AIX

IP setting changes after server reboot

I've recently changed my gateway setting using SMIT. Everything went fine except that the gateway setting kept reverting back to the old one everytime I reboot the server. I'm on AIX 5.2 running p-Series. Thanks for any info. (3 Replies)
Discussion started by: dereklow
3 Replies

8. Linux

Setting up Wu-FTPD server

Hey, I'm running RH 7.1 and i want to beable to swap files back and from it. I've got Wu-ftpd installed and when i try to connect on my windows box with my root account it says to login so i type root and my password and it says that it's an incorrect login. I know i have to add it to a login... (4 Replies)
Discussion started by: byblyk
4 Replies

9. UNIX for Dummies Questions & Answers

setting up internet server

Hello, Corrently we are useing winproxy to use internet. my client desktops connects to winproxy using tcpip and get the access, now we have changed windows opreating system to linux 7.1. my problem is i am able to connect internet on linux machine but now i wants all clients connect to linux... (2 Replies)
Discussion started by: twadkar
2 Replies

10. UNIX for Dummies Questions & Answers

setting up web server

Is there any good resources for setting up a unix web server, I mean starting with the basics for a extremely new newbie. Thanks Scott (1 Reply)
Discussion started by: supastar
1 Replies
Login or Register to Ask a Question