Sponsored Content
Top Forums UNIX for Advanced & Expert Users Monitor files being copied/accessed Post 302404962 by prostiiinet on Wednesday 17th of March 2010 04:44:09 PM
Old 03-17-2010
Monitor files being copied/accessed

Hello,

Is there a way (without 3rd party software) to know if a file has been accessed and/or copied ?

I'm interested in any solution : doing command line instructions , running background scripts etc...

I apologize if I posted this in the wrong forum.

Thank you!
 

10 More Discussions You Might Find Interesting

1. Programming

monitoring files copied onto hard disk

hi... i need pointers to books/website... 'm trytin to write a daemon that monitors files of particular type(eg. text or pdfs) copied onto the hard disk. the daemon should detect the above n write the file name (along with the absolute path) to a file. please DO NOT give me the code... (2 Replies)
Discussion started by: abhi_abhijith
2 Replies

2. Shell Programming and Scripting

Find files not accessed on a remote server and delete - Help!

Hi Guys, I am currently working on a script to find all the files that have not been accessed for the past 2 years. This, i guess has been discussed n number of times in this forum. Now, my requirement is to find all the files in the remote windows server. I have it mounted in unix. I was... (1 Reply)
Discussion started by: bond_bhai
1 Replies

3. UNIX for Dummies Questions & Answers

Searching files by last accessed time

How can I search for files by last accessed time? I want to see files accessed in the last 24 hours, for example...or even less time, maybe in the last 3 hours? Thank you in advance, Trellot (4 Replies)
Discussion started by: Trellot
4 Replies

4. UNIX for Dummies Questions & Answers

Ignoring already copied files

I'm almost brand new to UNIX, so I have no idea if how easy or difficult this would be, or if it's even possible. I've been using FTP to copy a total of about 150gb of files to a remote drive. Since the directory being copied is so large, I've been trying to break it up into smaller chunks based... (0 Replies)
Discussion started by: nvandyke
0 Replies

5. UNIX for Dummies Questions & Answers

Number of files accessed this week

I have looked around on the internet and still i am no wiser as to how to show the number of files in a directory that have been accessed this week and also that as a percentage. Any help would be much appreciated. (5 Replies)
Discussion started by: RAFC_99
5 Replies

6. Shell Programming and Scripting

no of files copied by scp command

hi, I have a script which copy files by using scp command. when i run that script, i can see the process meter but I want to know how many files have been copied. suppose, by using scp 10 files is being copied and I can see process meter for all 10 files. but i also want to see ... that 10... (0 Replies)
Discussion started by: anshu ranjan
0 Replies

7. Shell Programming and Scripting

Check files copied from remote server

There is a process which copy files form unix a to unix b I would like to check whether all files copied from a to b or not ,and list which are the missing files. Is there a command to check like that (3 Replies)
Discussion started by: lalitpct
3 Replies

8. Red Hat

Files copied to FTP server not shown

I had copied 2 files to an FTP server which I deployed on my RHEL 5.8 server. The ownership I kept for the files are for the user, ftp. But, I do not see the files on the FTP location using either accessing through Windows explorer or the browser. The ftp location is ftp://10.101.17.80/incoming.... (7 Replies)
Discussion started by: RHCE
7 Replies

9. UNIX for Advanced & Expert Users

Track the files accessed by a script.

How can i track all the files accessed by script. The script is supposed to bring up my application and this script is just the main script which inturn calls another scripts and executable. I need to know all the the files this main script calls and the files accessed by all the other scripts... (2 Replies)
Discussion started by: chacko193
2 Replies

10. Shell Programming and Scripting

Record top accessed processes/files

Hello, I have about 100 servers that I'm looking to collect information regarding top files and processes accessed within a 168 hr (1 week) period. Each server has a different purpose and so different installed applications. All servers are running either unix or linux. What would be a... (0 Replies)
Discussion started by: umang2382
0 Replies
naaagt(1M)																naaagt(1M)

NAME
naaagt - Native Agent Adapter (NAA) SYNOPSIS
priority] logMask] ... DESCRIPTION
The Native Agent Adapter allows third-party SNMP agents to work with the HP SNMP Master Agent The Native Agent Adapter runs as a subagent to the HP SNMP Master Agent. reads the file (see the environment variable, described below), and it registers each object identifier (OID) with See the section. After registration is complete, receives SNMP requests from and forwards them to a non-standard UDP port on the same system (see the envi- ronment variable, described below). also receives SNMP responses from the third-party SNMP agent, which is listening to the non-standard UDP port, and forwards the responses to The third-party SNMP agent must listen to the same non-standard UDP port that sends to not the standard SNMP port number(161). Refer to third-party documentation for instructions on how to accomplish this. The third-party SNMP agent can be started before or after starting Parameters Sets the registration priority. If two subagents register the same OIDs, requests are sent to the subagent with the highest priority or to the subagent with the same priority that was the last to register. The priority range is zero (high) to 255 (low). Default: zero. Causes the Native Agent Adapter to continue to run, even if the HP SNMP Master Agent terminates. When subsequently restarts, will re-establish communica- tion with and re-register its OIDs. This option is recommended if the procedure is used, described below. By default, ter- minates automatically when terminates. Troubleshooting Parameters Displays usage information. Sets the logging mask. may be one of the following names: or Multiple logging options can be specified by repeating the option. Logging data is written to the SNMP log file, Default: Causes to run in foreground. By default, runs in the background. Native Agent Adapter Start-up The Native Agent Adapter start-up procedure may be provided by the vendor of the third-party SNMP agent. Refer to third-party documenta- tion for instructions. The third-party SNMP agent and its Native Agent Adapter can be started and stopped automatically during system start-up and shutdown. This is accomplished by providing a start-up/shutdown script under the directory, with symbolic links to it under an appropriate directory. See the rc(1M) man page for details. See the section for procedures for starting The third-party SNMP agent and its Native Agent Adapter can be started using the command by providing start-up and shutdown scripts under Normally, those scripts are merely symbolic links to the automatic start-up/shutdown script under following the same naming conventions documented in the rc(1M) manual page. These scripts are executed by the command. See the section for procedures for starting The third-party SNMP agent and its Native Agent Adapter can be started by entering commands directly or by executing an arbitrary script. When this approach is used, the option should probably be used because the third-party agent and adapter will not be restarted by the com- mand. The following procedure should be used to start for each third-party agent. o Export which must be set to a unique port number. o Export which must be set to an absolute path name for a third-party-specific file. Create the file; refer to third-party docu- mentation for a list of the OIDs that are instrumented by the third-party SNMP agent. o Export which must be set to the community name to be used in SNMP requests forwarded from to the third-party SNMP agent. This environment variable is required only if the third-party agent is configured to use a community name other than the default ("public"). o Create a unique symbolic link to This makes it convenient to distinguish each Native Agent Adapter in output from the command. Execute the symbolic link to start o Start the third-party SNMP agent, following procedures in the third-party documentation. This can be done before or after start- ing naaCnf File Format The file consists of a list of numeric object identifiers (OIDs), one OID per line. Each OID is a subtree of MIB variables that are instrumented by the third-party SNMP agent. Refer to third-party documentation for the list of OIDs. Blank lines and lines beginning with "#" are treated as comments. Leading and trailing spaces on a line are ignored. The OID can start with an optional period. EXTERNAL INFLUENCES
Environment Variables The absolute path name for the file from which the Native Agent Adapter reads the OIDs to be registered for its third-party SNMP agent. Default (not recommended): The community name that the Native Agent Adapter uses in SNMP requests forwarded to the third-party SNMP agent. Note that this does not have to match any community names accepted by the SNMP Master Agent, which are defined in This environment variable is required only if the standard community name ("public") is not accepted by the third-party SNMP agent. Refer to third-party documenta- tion for instructions regarding SNMP community names. Default: public. The non-standard UDP port number to which the Native Agent Adapter forwards SNMP requests to the third-party SNMP agent. This must match the port number that the third-party agent listens to instead of the standard SNMP port(161). Each third-party SNMP agent must listen to a different non- standard UDP port number. Default: 8161. International Code Set Support Supports single-byte character code sets except where the SNMP protocol supports only 7-bit characters encoded in ASCII. WARNINGS
The Native Agent Adapter only supports SNMP read requests (for example, SNMP Get). SNMP Set requests must be sent directly to the third- party SNMP agent's non-standard UDP port If the value is not a valid port number, terminates without writing any error message either to the display or to If there are no valid OIDs in the file, terminates. It does not register a default OID. There may be unexpected results if the is outside the valid range. AUTHOR
was developed by SNMP Research and Hewlett-Packard Company. FILES
Default file. Not recommended. Directory for SNMP start-up and shutdown scripts. Native Agent Adapter command. HP SNMP Master Agent command. HP SNMP log file. SEE ALSO
rc(1M), snmpd(1M), snmpd.conf(4). naaagt(1M)
All times are GMT -4. The time now is 05:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy