Subscribe
Accepted Solution

File access time in NAS Volumes

Hi Guys,

 

Is there any way to find the file access details for a volume from Storage.I know "ls" will provide the list of files inside volumes, however i need the access time for the Files inside it.

 

Thanks

Saran

Re: File access time in NAS Volumes

 

Saran -

 

See 'ls -lt -u' or 'ls -l --time=atime'.

 

Note that there also a 'no atime update' option for NetApp volumes that turns off update of access time.

 

I hope this response has been helpful to you.

 

At your service,

 

Eugene E. Kashpureff, Sr.
Independent NetApp Consultant http://www.linkedin.com/in/eugenekashpureff
Senior NetApp Instructor, FastLane US http://www.fastlaneus.com/
(P.S. I appreciate 'kudos' on any helpful posts.)

Re: File access time in NAS Volumes

Eugene,

 

Will this command work in 7-mode ? .

 

Also, i see options for running the' ls -lt ' options in java shell (java netapp.cmds.jsh) . However, i couldnt find able to run the options as well

 

Re: File access time in NAS Volumes

 

Saran -

 

Run it from a Linux/Unix host that's mounting the NFS export.

 

How old of a 7-Mode version are you running ?

If you have the Java shell you might still have the native 'filestats' command.

See the man page for it...

 


I hope this response has been helpful to you.

 

At your service,

 

Eugene E. Kashpureff, Sr.
Independent NetApp Consultant http://www.linkedin.com/in/eugenekashpureff
Senior NetApp Instructor, FastLane US http://www.fastlaneus.com/
(P.S. I appreciate 'kudos' on any helpful posts.)

Re: File access time in NAS Volumes

We have newer version of ontap,i am unable to find java shell in any filer , predominantly all the filers are running in ontap 8 version. 

 I would like to get the access time information from Storage rather from the server side.

 

Thanks

Saran

Re: File access time in NAS Volumes

 

Saran -

 

The Java shell was deprecated with ONTAP 8.

There was a memory leak that was a bad thing.

 

The 7-mode command map shows no C-mode command for 'filestats'.

 

Only way I know to see access time is from a client ...

 


I hope this response has been helpful to you.

 

At your service,

 

Eugene E. Kashpureff, Sr.
Independent NetApp Consultant http://www.linkedin.com/in/eugenekashpureff
Senior NetApp Instructor, FastLane US http://www.fastlaneus.com/
(P.S. I appreciate 'kudos' on any helpful posts.)

 

Re: File access time in NAS Volumes

Thanks Eugene!!

 

does Filestats command work on ontap version 8 (7 mode )?

Re: File access time in NAS Volumes

 

Saran -

 

I don't think so.

 

Think it was based on the Java shell, so it was taken out.

 

It was there back in 7.3.x ...

 

I hope this response has been helpful to you.

 

At your service,

 

Eugene E. Kashpureff, Sr.
Independent NetApp Consultant http://www.linkedin.com/in/eugenekashpureff
Senior NetApp Instructor, FastLane US http://www.fastlaneus.com/
(P.S. I appreciate 'kudos' on any helpful posts.)