- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- To enable System Accounting
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-12-2002 01:40 AM
04-12-2002 01:40 AM
i want to enable the system accounting on my hpux11i L-Class server and mail it to my email id using sendmail. What is the best method to have all system logs in hand . Also how to make the effective use of the sendmail configuration ...I mean if I want to track all bad logons/logons to root etc.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2002 01:47 AM
04-12-2002 01:47 AM
Re: To enable System Accounting
First option is to put a .forward file in / containing your email address, then all of roots mail will be copied to you.
Use SAM to set up accounting - quick and easy.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2002 02:23 AM
04-12-2002 02:23 AM
Re: To enable System Accounting
Check the man pages for sar - it will show you how to configure a cron job to start system accounting.
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2002 04:14 AM
04-12-2002 04:14 AM
SolutionCreate the sa directory in /var/adm
# mkdir /var/adm/sa
Add the following entries to the file /usr/spool/cron/crontabs/adm
# adm crontab file for
#
# Run Daily Accounting
0 4 * * 1-6 /usr/sbin/acct/runacct 2> /var/adm/acct/nite/fd2log
#
# Check size of /var/adm/pacct
0 * * * * /usr/sbin/acct/ckpacct
#
# Create summary files
15 5 1 * * /usr/sbin/acct/monacct
#
# Collect system accounting information and store in binary format
0 7-17 * * * /usr/lib/sa/sa1 1200 3
#
# Write a daily report to /var/adm/sa/sadd (where dd is day number)
0 18 * * 1-6 /usr/lib/sa/sa2 -s 7:00 -e 18:01 -i 3600 -A
#
# Disk Accounting
0 2 * * 4 /usr/sbin/acct/dodisk
Remove *all* comments from /etc/fstab (or dodisk can throw a wobbler!)
Set flag to 1 in /etc/rc.config.d/acct, as follows:
#!/sbin/sh
# @(#) $Revision: 72.5 $
# Process accounting. See acct(1m)
#
# START_ACCT: Set to 1 to start process accounting
#
START_ACCT=1
Comment out ???date??? commands in /usr/sbin/acct/dodisk this prevents an unnecessary e-mail being generated every time the command is run...
Set up /etc/acct/holidays, which will probably not have 2002 in it...
Start accounting using:
/sbin/init.d/acct start
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2002 06:55 AM
04-12-2002 06:55 AM
Re: To enable System Accounting
Thanks a lot but after enabling it if I have sendmail installed on hpux box and want these accounting files to get on to my mail id. what is the procedure? I mean which files I should mail?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2002 07:01 AM
04-12-2002 07:01 AM
Re: To enable System Accounting
Do a man acct , also under /etc/rc.config.d there is acct file inwhich change the parameter to STAR_ACCT to 1 so that it is permanent . Now waht does this do is to create account logs which can be checked using acct command . This is internal unix accounting is wonderful if you have space to store bulky logs.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2002 07:12 AM
04-12-2002 07:12 AM
Re: To enable System Accounting
Getting following error in file var/adm/acct/nite/fd2log
:-
fee not found
Error: closewtmp: Unable to write wtmp file.
/var/adm/wtmp: Permission denied
/usr/sbin/acct/runacct[149]: /var/adm/acct/nite/wtmp.0412: Cannot create the specified file.
cp: cannot create /var/adm/wtmp: Permission denied
***UPDATE /etc/acct/holidays WITH NEW HOLIDAYS***
acctmerg: Read error file 1
***UPDATE /etc/acct/holidays WITH NEW HOLIDAYS***