- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Script to trouble shoot.
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
07-23-2002 08:19 AM
07-23-2002 08:19 AM
Script to trouble shoot.
Trying to put up a small script which would help in trouble shooting. Say a particular application launches itself fine on one box but not on the other.I need to find all the files it touches upon before it comes up on one box and it may not touch up that file on the other. Here is something i thought..
touch file1
echo please wait....
sleep 15 (you can change this depending on the timeframe you require)
touch file2
find / -newer file1 ! -newer file2
echo completed
Can someone think better please..
Thanks
Brian.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 08:58 AM
07-23-2002 08:58 AM
Re: Script to trouble shoot.
Using "find / -newer ..." is good to see what files have been modified, but doesn't show those files that were only read. The use of file2 shouldn't be needed if you execute the find right after the application terminates.
Two products that can follow a process as files are opened are "glance" and "lsof". Unfortunatelly these are only snapshot views as the process runs.
Another possibility is if you have already configured your system as a "trusted system", their are tools to track all file access events. If you are not a "trusted system", don't jump into it lightly. Their are other ramifications that I consider negative to going to a trusted system.
Hope this helps...
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 09:07 AM
07-23-2002 09:07 AM
Re: Script to trouble shoot.
True. It track only the files that have been modified, but is there a way that we could track the files that have been read also?
Thanks
Brian.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 11:23 AM
07-23-2002 11:23 AM
Re: Script to trouble shoot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 11:40 AM
07-23-2002 11:40 AM
Re: Script to trouble shoot.
convert your system to "trusted" and then "audit" the file access for everybody (or only some users).
HTH,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2002 07:15 AM
07-24-2002 07:15 AM
Re: Script to trouble shoot.
Thanks. so this should work and also print out the files that were read...
touch file1
echo please wait....
sleep 15 (you can change this depending on the timeframe you require)
touch file2
find / -anewer file1 ! -anewer file2
echo completed
is this correct?
Please advise.
Thanks
Brian.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2002 07:21 AM
07-24-2002 07:21 AM
Re: Script to trouble shoot.
i would do the following find command:
find / -anewer file1 -a ! -anewer file2
the -a option is the logical operator for a "and" operation.
Allways stay on the bright side of life!
Peter