ONTAP Discussions

File access time in NAS Volumes

saranraj456

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

 

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

 

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

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

 

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

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

 

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

saranraj456

Thanks Eugene!!

 

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

ekashpureff

 

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

 

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public