- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- tracing login, logout to remote syslogd daemon
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
тАО11-14-2009 08:05 AM
тАО11-14-2009 08:05 AM
tracing login, logout to remote syslogd daemon
remote syslogd daemon of another server (Fedora core 3).
This Fedora server is central log server which will receive logs from remote systems.
What do you suggest me to configure HP-UX for tracking this login and logout to remote syslogd ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2009 09:31 AM
тАО11-14-2009 09:31 AM
Re: tracing login, logout to remote syslogd daemon
This is done automatically for you by the wtmp file, last and lastb commands.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2009 09:49 AM
тАО11-14-2009 09:49 AM
Re: tracing login, logout to remote syslogd daemon
Couple of choices,
you can write a scrip to copy /sftp to your centralized log server
or Enabling Audting -> and sftp the auditlog to centralized log server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2009 10:14 AM
тАО11-14-2009 10:14 AM
Re: tracing login, logout to remote syslogd daemon
sftp is found within the ssh download and is not basic to HP-UX. Nor do I see the relevance here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2009 10:48 AM
тАО11-14-2009 10:48 AM
Re: tracing login, logout to remote syslogd daemon
/var/adm/wtmp contains all your login and logout details. You can use 'last' command to get those details. whereas 'lastb' command will give you only bad login information.
you can ftp those details acorss your central server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2009 05:38 PM
тАО11-14-2009 05:38 PM
Re: tracing login, logout to remote syslogd daemon
Rethought this a bit tonight. This is Fedora that your using, so like HP-UX there is a 'logger' command which writes to syslog.log.
last > file
ftp file fedora:/file
cat fedora:/file | logger
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2009 04:46 AM
тАО11-15-2009 04:46 AM
Re: tracing login, logout to remote syslogd daemon
My scope is to register every login and logout events in my Fedora log server, where syslogd daemon receives them on 514 port from remote machines.
1 - The unique mode to send events is by sftp command ? Could I use HPUX syslog to send events to central log server ?
I was interesting to send HPUX log directly to remote syslog but I can understand it's not possibile.
2- Once I move log file to central server I can route to syslog by "cat log file " | logger ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2009 07:05 AM
тАО11-15-2009 07:05 AM
Re: tracing login, logout to remote syslogd daemon
If you have syslogd already remotely set up to log into the Fedora server, then
last | logger
... will update both the local and the remote fedora syslog.log.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2009 07:09 AM
тАО11-15-2009 07:09 AM
Re: tracing login, logout to remote syslogd daemon
Just write a daily cron that captures today's logins from the last command and pipe it into logger.
If you looking for away to get real time updates then refer to the internals of wtmp.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2009 07:57 AM
тАО11-15-2009 07:57 AM
Re: tracing login, logout to remote syslogd daemon
I was interesting to send HPUX log directly to remote syslog but I can understand it's not possibile.<<<<<
Yes Its possible.
Events refering to system events (syslog) ?
if I am not you can redirect syslog to your centralized server, by editing the syslog.conf
Check below Thread,
http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1370494