- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to email a message automatically in HP-UX
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
Forums
Discussions
Discussions
Discussions
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
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
04-07-2002 10:33 PM
04-07-2002 10:33 PM
How to email a message automatically in HP-UX
I like to have my system posted the status at periodic intervals to my email-id.
Some one can help me how it can be configured in HP-9000 R380 with HP-UX 11.00 ?
Thanks in advance
A.Nagarathinam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2002 10:35 PM
04-07-2002 10:35 PM
Re: How to email a message automatically in HP-UX
for example:
uptime | mailx -s "uptime" you@youremail.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2002 10:39 PM
04-07-2002 10:39 PM
Re: How to email a message automatically in HP-UX
top -d1 | mailx -s "top output" YOUR-MAIL-ADDRESS
Or if you already have the data in a file:
mailx -s "System stats" YOUR-MAIL-ADDRESS < /tmp/file
Regards,
Trond
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2002 10:39 PM
04-07-2002 10:39 PM
Re: How to email a message automatically in HP-UX
0,30 * * * * /usr/bin/uptime | elm -s "System State" myname@domain.com
HTH
~Michael~
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2002 11:07 PM
04-07-2002 11:07 PM
Re: How to email a message automatically in HP-UX
But When I try this on my machine I receive the following.
Apr 8 02:58:07 Primary sendmail[15962] unable to qualify my own domain name (Primary)
NIS map mail.address specified, But NIS not running.
What should I do to elimate this message?
Suggestions are welcome.
A.Nagarathinam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2002 11:12 PM
04-07-2002 11:12 PM
Re: How to email a message automatically in HP-UX
See this thread for details:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x84cf28e43106d6118ff40090279cd0f9,00.html

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2002 01:21 AM
04-08-2002 01:21 AM
Re: How to email a message automatically in HP-UX
you have to configure your local sendmail to permit it to work. You perhaps will need to modify your hosts file and DNS-client setup, in addition:
/etc/mail/sendmail.cf
/etc/mail/sendmail.cw
/etc/aliases
/etc/hosts
/etc/resolv.conf
/etc/nsswitch.conf
/etc/rc.config.d/mailservs
HTH,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2002 05:48 AM
04-09-2002 05:48 AM
Re: How to email a message automatically in HP-UX
/etc/resolv.conf
/etc/nsswitch.conf
You will also need to register your unix server on the DNS
I use a sendmail command in conjuciton with a cron script to post filesystem space alerts to my Outlook Inbox - it works very well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2002 10:02 AM
04-09-2002 10:02 AM
Re: How to email a message automatically in HP-UX
exchange_server_ip_address company.com
Add this to your /etc/sendmail.cf under
#who I masquerade as (null for no masquer..)
DMcompany.com
hope this help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2002 10:13 AM
04-09-2002 10:13 AM
Re: How to email a message automatically in HP-UX
Make sure in your /etc/nsswitch.conf file that the following lines are as such:
aliases: files
sendmailvars: files
I suspect you have NIS specified in those lines.
As to your "Unable to qualify my own domain name" situation make sure you have the fully qualified doamin name EX: myhost.mydoamin.com
entry as an alias in your /etc/hosts file - just separate tha short hostname & the long with some white space..
This & the earlier posts on setting up sendmail - especially setting the relay host should get you going.
HTH,
Jeff