- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: HP_UX11i
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
11-19-2008 09:34 PM
11-19-2008 09:34 PM
HP_UX11i
Can anybody help for below qry
How to monitor t user login in hp-ux 11i with repect to time and the ip as well how to get that log to a mailbox
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2008 09:45 PM
11-19-2008 09:45 PM
Re: HP_UX11i
Example :-
=========
$ finger ibmadm1 > point this output email addres
Login name: ibmadm1 (messages off)
Directory: /home/ibmadm1 Shell: /usr/bin/sh
On since Nov 20 11:15:12 on pts/ta from 10.8.86.10
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2008 09:57 PM
11-19-2008 09:57 PM
Re: HP_UX11i
Thanx for reply.
Do i need to enter this command whenever i need log?
OR
How i can automate this?
Thanks in advance
Me4Shiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2008 09:59 PM
11-19-2008 09:59 PM
Re: HP_UX11i
>>How to monitor t user login in hp-ux 11i with repect to time and the ip
last -R
last -R |mailx -s "user details " jsmith@abc.com
>>get that log to a mailbox
Demonstrate how to send an email from UNIX using mailx.
############################################################
# Example 1 - Simple:
echo "This is the body."| mailx -s "mailx Test1" jsmith@abc.com
# Example 2 - Using Variables:
SUBJECT="mailx Test2"
EMAIL_ADDRESS="jsmith@abc.com"
BODY="This is the body of the message."
echo "$BODY" | mailx -s "$SUBJECT" "$EMAIL_ADDRESS"
# Example 3 - Attached File:
SUBJECT="mailx Test3"
EMAIL_ADDRESS="jsmith@abc.com"
BODY="This is the body of the message."
ATTACHED_FILE="/etc/hosts"
cat "$ATTACHED_FILE" | mailx -s "$SUBJECT" "$EMAIL_ADDRESS"
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2008 10:07 PM
11-19-2008 10:07 PM
Re: HP_UX11i
Its gr8 wat you told me but one more thing after doing thiall stuffs still mails not in my mailbox yar, how do i ceckout that hp-ux box is connected to internet
Thanx
Shiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2008 10:24 PM
11-19-2008 10:24 PM
Re: HP_UX11i
you check if send sendmail service running
# ps -ef |grep sendmail
# sendmail -v jsmith@abc.com
Thx
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2008 10:43 PM
11-19-2008 10:43 PM
Re: HP_UX11i
Sendmail is running
ps -ef |grep sendmail
root 1772 1 0 Nov 15 ? 1:11 sendmail: accepting connections
root 1714 1695 1 12:09:01 pts/0 0:00 grep sendmail
Still m gettng an error, says,
gmail.com: Name server timeout
me4shiv@gmail.com... Transient parse error -- message queued for future delivery
Could you help me pls.
thx
Shiv