HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Assistance with auditor's request
Operating System - HP-UX
1833289
Members
3104
Online
110051
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
01-29-2003 05:35 AM
01-29-2003 05:35 AM
I've been asked by our auditors to provide them a listing of the following on an HP-UX 11.0 server:
A list of all programs/objects with ???Last Modified??? date in 2002.
A list of all data sets/objects with ???Last Modified??? date in 2002.
Is there a way to do this without taking up an entire day of doing ls -lt's ?
Thank you for your assistance.
A list of all programs/objects with ???Last Modified??? date in 2002.
A list of all data sets/objects with ???Last Modified??? date in 2002.
Is there a way to do this without taking up an entire day of doing ls -lt's ?
Thank you for your assistance.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2003 05:37 AM
01-29-2003 05:37 AM
Re: Assistance with auditor's request
You need to study up on the find command and the -mtime option.
Pete
Pete
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2003 05:41 AM
01-29-2003 05:41 AM
Solution
Here is some code, but you'll have to modify it.
It grabs a list of file that has not been modified for 7 days in the temp directory. It builds a file list.
You can direct this output to a file and cover any and all filesystems, if you wish.
Complete script is attached. It is an example of the mtime directive noted in the post above.
OLDEST=7# Save tmp files for 7 days
RemoveList=/tmp/$$.RmList
RemoveListLs=${RemoveList}.Ls
TmpDirs=/sag/etc/TmpDirs
ExceptList=/sag/etc/ExceptList
ExceptSed=${RemoveList}.Sed
sed -e '/^#/d' -e 's/[]#.*$//' -e '/^[]*$/d' -e 's;/;\\/;g' -e 's;^\(.*\)$;/\1/d;' ${ExceptList} > ${ExceptSed} 2>/dev/null
eval find ${TmpDirList} -type f -mtime +${OLDEST} -print | sed -f ${ExceptSed} > ${RemoveList} 2>/dev/null
It grabs a list of file that has not been modified for 7 days in the temp directory. It builds a file list.
You can direct this output to a file and cover any and all filesystems, if you wish.
Complete script is attached. It is an example of the mtime directive noted in the post above.
OLDEST=7# Save tmp files for 7 days
RemoveList=/tmp/$$.RmList
RemoveListLs=${RemoveList}.Ls
TmpDirs=/sag/etc/TmpDirs
ExceptList=/sag/etc/ExceptList
ExceptSed=${RemoveList}.Sed
sed -e '/^#/d' -e 's/[]#.*$//' -e '/^[]*$/d' -e 's;/;\\/;g' -e 's;^\(.*\)$;/\1/d;' ${ExceptList} > ${ExceptSed} 2>/dev/null
eval find ${TmpDirList} -type f -mtime +${OLDEST} -print | sed -f ${ExceptSed} > ${RemoveList} 2>/dev/null
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2003 05:50 AM
01-29-2003 05:50 AM
Re: Assistance with auditor's request
Hi:
For your files:
# touch -amt 200112312359 /tmp/myref1
# touch -amt 200301010000 /tmp/myref2
# find / \( -type f -a -newer /tmp/myref1 -a ! -newer /tmp/myref2 \) -exec ls -l {} \;
For SD objects:
# swlist -l fileset -a date|grep 2002
Regards!
...JRF...
For your files:
# touch -amt 200112312359 /tmp/myref1
# touch -amt 200301010000 /tmp/myref2
# find / \( -type f -a -newer /tmp/myref1 -a ! -newer /tmp/myref2 \) -exec ls -l {} \;
For SD objects:
# swlist -l fileset -a date|grep 2002
Regards!
...JRF...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP