Command to see file creation time

166 views
Skip to first unread message

SWI

unread,
Dec 16, 2014, 2:12:07 AM12/16/14
to isilon-u...@googlegroups.com
Can we see file creation time in isilon through CLI or script. I am asking this because we have an option of creating file pool policy based on creation time.

John Beranek - PA

unread,
Dec 16, 2014, 12:51:30 PM12/16/14
to isilon-u...@googlegroups.com
isi get -g certainly shows it:


John

John Beranek - PA

unread,
Dec 16, 2014, 1:38:28 PM12/16/14
to isilon-u...@googlegroups.com
On the Isilon, FreeBSD's 'stat' can show the "birth" time too, which shows it's available to the OS file access routines:


John

John Beranek - PA

unread,
Dec 18, 2014, 4:38:21 AM12/18/14
to isilon-u...@googlegroups.com
Oh, also apparently possible with the Platform API from 7.1, something like:

GET /namespace/accesspoint1/directory1/file1?metadata HTTP/1.1

giving:

 "attrs": [
 {
 "name": "content_type",
 "value": "text/xml; charset=UTF-8"
 },
 {
 "name": "is_hidden",
 "value": false
 },
 {
 "name": "size",
 "value": 27
 },
 {
 "name": "block_size",
 "value": 8192
 },
 {
 "name": "blocks",
 "value": 52
 },
 {
 "name": "last_modified",
 "value": "Wed, 20 Mar 2013 18:16:17 GMT"
 },
 {
 "name": "change_time",
 "value": "Wed, 20 Mar 2013 18:16:17 GMT"
 },
 {
 "name": "access_time",
 "value": "Wed, 20 Mar 2013 18:16:17 GMT"
 },
 {
 "name": "create_time",
 "value": "Wed, 20 Mar 2013 18:16:17 GMT"
 },
 {
 "name": "mtime_val",
 "value": 1363803377
 },
 {
 "name": "ctime_val",
 "value": 1363803377
 },
 {
 "name": "atime_val",
 "value": 1363803377
 },
 {
 "name": "btime_val",
 "value": 1363803377
 },
...


John

SWI

unread,
Dec 18, 2014, 2:29:20 PM12/18/14
to isilon-u...@googlegroups.com
Thanks John,

What is that value means - (1408024031.445813604)

Dan Pritts

unread,
Dec 18, 2014, 3:20:02 PM12/18/14
to isilon-u...@googlegroups.com
it's a unix timestamp.  seconds since january 1, 1970. 

~@precious% perl -e '$foo=localtime(1408024031); print "$foo\n";'
Thu Aug 14 09:47:11 2014


December 18, 2014 at 2:29 PM
Thanks John,

What is that value means - (1408024031.445813604)

On Thursday, 18 December 2014 01:38:21 UTC-8, John Beranek - PA wrote:
--
You received this message because you are subscribed to the Google Groups "Isilon Technical User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isilon-user-gr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
December 18, 2014 at 4:38 AM
--
You received this message because you are subscribed to the Google Groups "Isilon Technical User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isilon-user-gr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
December 16, 2014 at 1:38 PM
On the Isilon, FreeBSD's 'stat' can show the "birth" time too, which shows it's available to the OS file access routines:


John

On Tuesday, 16 December 2014 17:51:30 UTC, John Beranek - PA wrote:
--
You received this message because you are subscribed to the Google Groups "Isilon Technical User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isilon-user-gr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
December 16, 2014 at 12:51 PM
isi get -g certainly shows it:


John

On Tuesday, 16 December 2014 07:12:07 UTC, SWI wrote:
--
You received this message because you are subscribed to the Google Groups "Isilon Technical User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isilon-user-gr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
December 16, 2014 at 2:12 AM
Can we see file creation time in isilon through CLI or script. I am asking this because we have an option of creating file pool policy based on creation time.
--
You received this message because you are subscribed to the Google Groups "Isilon Technical User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isilon-user-gr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Dan Pritts
ICPSR Computing & Network Services
University of Michigan
+1 (734)615-7362

Adam Fox

unread,
Dec 18, 2014, 3:22:57 PM12/18/14
to isilon-u...@googlegroups.com
That # is in epoch time or the # of seconds since the epoch (c 1970).
Here’s a site that can do the conversion to local time for you.  Most filesystems use this way of designation of time.


— Adam Fox

On Dec 18, 2014, at 2:29 PM, SWI <yasaswi....@gmail.com> wrote:

1408024031.445813604

SWI

unread,
Dec 18, 2014, 3:25:07 PM12/18/14
to isilon-u...@googlegroups.com
I got it. Thank you all. 
Reply all
Reply to author
Forward
0 new messages