ONTAP Discussions

File access time in NAS Volumes

saranraj456
9,154 Views

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

1 ACCEPTED SOLUTION

ekashpureff
9,009 Views

 

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.)

 

View solution in original post

7 REPLIES 7

ekashpureff
9,131 Views

 

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.)

saranraj456
9,110 Views

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

 

ekashpureff
9,070 Views

 

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.)

saranraj456
9,029 Views

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

ekashpureff
9,010 Views

 

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.)

 

saranraj456
8,978 Views

Thanks Eugene!!

 

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

ekashpureff
8,968 Views

 

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.)

 

Public