- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HP UNIX Accounting Files
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
02-25-2007 05:35 PM
02-25-2007 05:35 PM
HP UNIX Accounting Files
We are using a timeshare environment of around 25 HP UNIX servers for processing. We have some shel scripts which does the data formatting and LSF submission using a batch ID. Also this can be run by users using a shell. We are seeing only 2-4 entries in the Process Accounting files when it is run by a batch ID(without a shell/terminal) but when it is run by a user terminal it creates thousands of entries in the accounting files. So its looks to the Sys Admin that the script is spawning thousands of processes. can any one please give an explanation for this.
Thanks in advance.
Frijo Franco
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2007 08:03 PM
02-26-2007 08:03 PM
Re: HP UNIX Accounting Files
thanks
frijo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2007 07:53 AM
02-27-2007 07:53 AM
Re: HP UNIX Accounting Files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2007 04:05 PM
02-27-2007 04:05 PM
Re: HP UNIX Accounting Files
thanks
frijo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2007 02:04 AM
02-28-2007 02:04 AM
Re: HP UNIX Accounting Files
If some one runs it from a terminal, what does "ps -fu
also, "man 4 acct" will describe the file formats in use.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2007 03:33 PM
02-28-2007 03:33 PM
Re: HP UNIX Accounting Files
#!/bin/ksh
echo "test" | cut -c1-2
echo "test" | cut -c3
echo "test" | cut -c1-4
echo "test" | cut -c1
echo "test" | cut -c2-3
echo "test" | cut -c2
here is the entries in the accounting file.
mydbu prfrf pts/24 22:30:45 22:30:45 0.01 0.01 0.00
cut prfrf pts/24 22:30:45 22:30:45 0.01 0.01 148.00
mydbu prfrf pts/24 22:30:45 22:30:45 0.01 0.01 0.00
cut prfrf pts/24 22:30:45 22:30:45 0.01 0.01 0.00
mydbu prfrf pts/24 22:30:45 22:30:45 0.01 0.01 0.00
cut prfrf pts/24 22:30:45 22:30:45 0.01 0.01 0.00
mydbu prfrf pts/24 22:30:45 22:30:45 0.01 0.01 0.00
cut prfrf pts/24 22:30:45 22:30:45 0.01 0.01 0.00
mydbu prfrf pts/24 22:30:45 22:30:45 0.01 0.01 0.00
cut prfrf pts/24 22:30:45 22:30:45 0.01 0.01 0.00
mydbu prfrf pts/24 22:30:45 22:30:45 0.01 0.01 0.00
cut prfrf pts/24 22:30:45 22:30:45 0.01 0.01 40.00
mydbu prfrf pts/24 22:30:45 22:30:45 0.10 0.04 963.00
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2007 08:15 PM
05-23-2007 08:15 PM
Re: HP UNIX Accounting Files
Thanks
Frijo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2007 10:30 PM
05-23-2007 10:30 PM
Re: HP UNIX Accounting Files
"cut" is not an internal command of the shell, so the shell must fork+exec (spawn) a process to run it. If it didn't do that (if you prepended "exec" to the command) the command would replace the shell process executing the script, and the script would not run any further after that command.
"echo" may be an internal command of the shell or it may be using an external binary /bin/echo.
To create a pipeline, the shell must create a process for each pipeline component, so that their inputs & outputs can be connected together.
To your original question:
it looks like either your batch ID has different settings for Process Accounting than the user sessions (basically, the accounting system is logging more things about user sessions than on batch IDs) or the application really behaves differently when run by a batch ID.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2007 10:36 PM
05-23-2007 10:36 PM
Re: HP UNIX Accounting Files
Thanks in advance.
-Frijo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2007 10:47 PM
05-23-2007 10:47 PM
Re: HP UNIX Accounting Files
You may want to run tusc. Perhaps it is forking that many times??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2007 12:00 AM
05-24-2007 12:00 AM
Re: HP UNIX Accounting Files
The content of "mydbu" is as follows.
#!/bin/ksh
echo "test" | cut -c1-2
echo "test" | cut -c3
echo "test" | cut -c1-4
echo "test" | cut -c1
echo "test" | cut -c2-3
echo "test" | cut -c2
Thanks
Frijo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2007 03:01 PM
05-24-2007 03:01 PM
Re: HP UNIX Accounting Files
So it seems the 13 entries in your log file match up to the processes.