- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- log report updates required daily via email
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-23-2003 09:33 PM
тАО10-23-2003 09:33 PM
log report updates required daily via email
I guess theres got to be a way I can set up a way of getting that new info (for the current day)sent to me by e-mail
I only want the new info not the whole log.
How would you or do you do this?
cheers peeps
BOB ;^)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-23-2003 09:42 PM
тАО10-23-2003 09:42 PM
Re: log report updates required daily via email
d1=$(date "+%b %d")
grep ^"$d1" /var/adm/syslog/syslog.log | mailx -s "syslog " user@mycompany.com
Rgds,
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-23-2003 09:46 PM
тАО10-23-2003 09:46 PM
Re: log report updates required daily via email
its just a file which has extracted data regarding whether a back up was succesful or if errors were detected etc..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-23-2003 10:00 PM
тАО10-23-2003 10:00 PM
Re: log report updates required daily via email
u just need to substitute ur path/filename inthe place of syslog in the solution given by Jean-Luc to get ur log/file in your mail.
HTH
aparna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-23-2003 10:03 PM
тАО10-23-2003 10:03 PM
Re: log report updates required daily via email
From a central server you could go and get all the backup logs.
You could keep yesterdays logs, get the new ones, and for each server, run something like
--
diff today.log yesterday.log | mailx -s "Backup logs for $(date)" you@youraddress
Then copy todays over yesterdays.
etc, etc...
--
But it would be much better to use one of the freeware tools that do all this and much more.
My favourite is big brother http://www.bb4.com/
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-23-2003 11:36 PM
тАО10-23-2003 11:36 PM
Re: log report updates required daily via email
example
* * * * * /usr/contrib/bin/logrep 2>&1 | mailx "log report" someone@yourcompany.net
Have the script itself use the tail command or otherwise process the log so you only get what you need.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com