- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- audomon -X
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
03-18-2009 04:07 PM
03-18-2009 04:07 PM
audomon -p 20 -t 1 -w 90 -X \
'/usr/bin/find /var/.audit" -mtime +60 -exec rm {} 1;'
But I keep getting the "find: missing conjuction" error everytime audomon runs.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2009 04:23 PM
03-18-2009 04:23 PM
Re: audomon -X
THe 'find()' command syntax is wrong. I believe that you want:
# audomon -p 20 -t 1 -w 90 -X "/usr/bin/find /var/.audit -type f -mtime +60 -exec rm {} +"
...note that I added the restriction to find only files ('-type f') which should allow the 'rm' to work on all elements found. THe use of the '+' terminator for the '-exec' optimizes the performance.
See the 'find' manpages for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2009 04:38 PM
03-18-2009 04:38 PM
Re: audomon -X
I entered exactly what you suggested.
There are spaces between rm, {}, and +
audomon -p 20 -t 1 -w 90 -X "/usr/bin/find /var/.audit -type f -mtime +60 -exec rm {} +"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2009 09:38 PM
03-18-2009 09:38 PM
SolutionReading audomon(1M) very closely indicates you need to do:
audomon -p 20 -t 1 -w 90 \
-X "/usr/bin/find /var/.audit -type f -mtime +60 -exec rm {} + #"
Where the "#" comments out the useless string "OldTrail".
Or you may want to use: ... -X "/path/to/myscript"
Then myscript can do that find and ignore "OldTrail" in $1.
(That "1;" may have been "\;"??)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2009 07:51 AM
03-19-2009 07:51 AM
Re: audomon -X
In my original note, '1;' was suppose to be '/;'
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2009 07:59 AM
03-19-2009 07:59 AM
Re: audomon -X
I'm glad Dennis solved this as it was puzzling me. I don't have an audited system nor 11.31 to try.
> In my original note, '1;' was suppose to be '/;'
No, that would have been an escaped semicolon as:
# ... \;
...which when replaced with a '+' improves the performance as I noted, since arguments are bundled and passed as a list/array to the object of the '-exec'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2009 07:03 PM
03-19-2009 07:03 PM
Re: audomon -X
I didn't have an audited system but I did have 11.31 and the man page.
Sometimes if you have never heard of the command, you read more closely. :-)