- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- 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
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
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
тАО05-03-2002 09:15 PM
тАО05-03-2002 09:15 PM
Accounting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2002 09:40 PM
тАО05-03-2002 09:40 PM
Re: Accounting
system accounting is part of the core O/S and just needs activiating to collect info.
These files need to be created by root cron jobs to collect and format the data properly.
Man sar, sa, sa1, sa2 will give you more information.
example cron file
#
# Caputure system data for sar
#
0 * * * 0,6 /usr/lbin/sa/sa1 1200 3
0 8-17 * * 1-5 /usr/lbin/sa/sa1 900 4
0 18-7 * * 1-5 /usr/lbin/sa/sa1 1200 3
45 23 * * 1-5 /usr/lbin/sa/sa2 -s 0:00 -e 23:30 -i 3600 -A
15 6 * * * find /var/adm/sa -name 'sa*' -mtime +7 -exec rm {} \; > /dev/null 2>&1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2002 09:58 PM
тАО05-03-2002 09:58 PM
Re: Accounting
Check out the man pages:
# man 1m acct
accton either activates (when file argument is specified) or deactivates accounting (when file argument is not specified).
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2002 10:07 PM
тАО05-03-2002 10:07 PM
Re: Accounting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2002 10:22 PM
тАО05-03-2002 10:22 PM
Re: Accounting
All the accounting administration commands reside in /usr/sbin/acct.
# /usr/sbin/acct/accton
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2002 10:26 PM
тАО05-03-2002 10:26 PM
Re: Accounting
Unless you decide to use a non-standard accounting file (i.e. other than /var/adm/pacct), it will be better to use turnacct than accton.
According to the man page, turnacct is the interface to accton to turn process accounting on or off. The switch argument turns accounting off, moves the current /var/adm/pacct to the next free name in /var/adm/pacctincr then turns accounting back on again. (incr is a number starting with 1 and incrementing by one for each additional pacct file.) turnacct is called by ckpacct, and thus can be run under cron and used to keep pacct to a reasonable size.
By default, accounting is turned on by the system. That is why the command last etc. which uses wtmp/utmp works.
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2002 10:29 PM
тАО05-03-2002 10:29 PM
Re: Accounting
to automatically start accounting after reboot edit file /etc/rc.config.d/acct
and change START_ACCT=0 to =1
cheers
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2002 10:37 PM
тАО05-03-2002 10:37 PM
Re: Accounting
There are mainly two types of accounting:
1) connect time accounting (/etc/utmp)
2) process accounting (/var/adm/pacct)
Connect time accounting is started by the system by default (/etc/utmp is present) while process accounting is not (/var/adm/pacct is not present).
Once you activate accounting, you can perform runacct in a cron to perform daily accounting from the accounting files.
According to the man page, runacct is the main daily accounting shell procedure. It is normally initiated via cron. runacct processes connect, fee, disk, and process accounting files. It also prepares summary files for prdaily or billing purposes.
# man 1m runacct
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-03-2002 11:00 PM
тАО05-03-2002 11:00 PM
Re: Accounting
please ignore my first reply I did not read the question properly.
Steven you are quite right.
cheers
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2002 12:46 AM
тАО05-04-2002 12:46 AM
Re: Accounting
# usr/sbin/acct/runacct
May 4 04:44:25 bat-y2k sendmail[6905]: unable to qualify my own domain name (ba
t-y2k) -- using short name
May 4 04:44:26 bat-y2k sendmail[6910]: unable to qualify my own domain name (ba
t-y2k) -- using short name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2002 12:59 AM
тАО05-04-2002 12:59 AM
Re: Accounting
do you need sendmail ?. if not disable it in
/etc/rc.config.d/mailservs.
#ps -ef | grep sendmail
#kill "sendmail's pid"
if you want sendmail running , still want to stop errors put a dot at the end as follows in
/etc/sendmail.cf and restart the sendmail.
Cwlocalhost.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2002 01:03 AM
тАО05-04-2002 01:03 AM
Re: Accounting
Check out James R Ferguson's detailed response to resolve your sendmail issue:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x79617d4cf554d611abdb0090277a778c,00.html
Hope this helps. Regards.
Steven Sim Kok Leong