Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dpm-register(1) [debian man page]

DPM-REGISTER(1) 					    DPM Administrator Commands						   DPM-REGISTER(1)

NAME
dpm-register - register external files in DPNS SYNOPSIS
dpm-register --filesize filesize [ --user owner_user ] [ --group owner_group ] [ --mode filemode ] --pfn pfn --server hostname [ --st sta- tus ] [ --help ] filename DESCRIPTION
dpm-register registers a given filename with the specified permissions into DPNS: - create the file metadata entry in DPNS (dpns_creat) - set the ownership (dpns_chown) to owner_user : owner_group (by default the requester's DN and group) - set the filemode (dpns_chmod) to filemode - set the size of the file (dpns_setfsize) to filesize - add the replica entry (dpns_addreplicax) setting * sfn = pfn * status to status ('O' for Online, 'N' for Nearline) * f_type = 'P' (Permanent) * r_type = 'P' (Primary) EXAMPLE
dpm-register --filesize 525424 --server `hostname --fqdn` --group biomed --pfn dicom:///1/2/3 /dpm/cern.ch/home/biomed/mdm/1/2/3 EXIT STATUS
This program returns 0 if the operation was successful or >0 if the operation failed. SEE ALSO
dpns_creat(3), dpns_chown(3), dpns_chmod(3), dpns_setfsize(3), dpns_addreplicax(3) LCG
$Date: 2008/01/07 10:38:38 $ DPM-REGISTER(1)

Check Out this Related Man Page

DPM-REPLICATE(1)					    DPM Administrator Commands						  DPM-REPLICATE(1)

NAME
dpm-replicate - replicate a file given the SURL or the PFN SYNOPSIS
dpm-replicate [ --f_type file_type ] [ --space_token s_token ] [ --lifetime file_lifetime ] [ --help ] file DESCRIPTION
dpm-replicate replicates a file given the SURL or the PFN. file_type indicates the type of file desired for the new replica. It can be V (for Volatile), D (for Durable) or P (for Permanent). file_lifetime specifies the requested file lifetime of the new replica relative to the current time. It can be "Inf" (for infinite) or expressed in years (suffix 'y'), months (suffix 'm'), days (suffix 'd'), hours (suffix 'h') or seconds (no suffix). If specified the file_type and file_lifetime must be compatible. s_token specifies that the new replica should be allocated within a space identified by the given token. EXAMPLE
dpm-replicate --f_type P /dpm/cern.ch/home/dteam/afile dpm-replicate --f_type V lxb1921.cern.ch:/storage/dteam/2005-12-14/afile.38215.0 EXIT STATUS
This program returns 0 if the operation was successful or >0 if the operation failed. SEE ALSO
dpm(1), dpm_get(3), dpm_put(3) LCG
$Date: 2008/08/27 12:43:28 $ DPM-REPLICATE(1)
Man Page

11 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

filesize

I know in php if you use the function filesize it will return the size of the file in bytes, but is there an easy way to get the size in MB. Cheers (2 Replies)
Discussion started by: jmg5
2 Replies

2. UNIX for Dummies Questions & Answers

Sorting ls by filesize

I saw some stuff in the search results on this - but nothing specific..... I have a significant number of files (c. 300) which are output from a large process that I run. These are compared with a 'baselined' set of files - so I can quickly see if there are differences based on the sizes of the... (2 Replies)
Discussion started by: peter.herlihy
2 Replies

3. Shell Programming and Scripting

Error

ls -Flt | awk '{print $5, $9}' | while read filesize do echo $filesize | cut -d ' ' -f1 | read size if then echo $filesize ... (2 Replies)
Discussion started by: nguda
2 Replies

4. UNIX for Dummies Questions & Answers

UNIX and filesize

Hey guys. What I need to do is this: I need to find files that have a certain filesize (for this case a file size of 0 (zero) ) When I find this file with a filesize of zero I need to echo a statement that tells the user to delete it and not to delete it if the filesize is greater than... (3 Replies)
Discussion started by: ndoggy020
3 Replies

5. Shell Programming and Scripting

getting filesize

Hello, I have a script that should store file size in a variable $filesize. I don't know what is the best way to do it. I tried ls -lt myfile.txt | sed something >$filesize but I don't know how to use sed to get filesize. I know that the owner of the file is root and then we have some... (6 Replies)
Discussion started by: pppswing
6 Replies

6. Shell Programming and Scripting

Filesize not working

I am having problems with finding the filesize with this in my script: filesize=`ls -l | awk '$5=0'` if ; then ls -l | awk '{print $9 " " $5}' if ; then echo "Would you like to delete this file? (y/n)" if yes do this elif no do this fi fi else... (7 Replies)
Discussion started by: akeenabawa
7 Replies

7. AIX

listing the whole system by filesize

Hi, Just wondered what command you would use to list all the files on Aix by filesize? I've tried a few but none of which seem to do the trick! Currently running du -m -a . | sort -rn | more as root Thanks, Matt. (1 Reply)
Discussion started by: elmesy
1 Replies

8. Shell Programming and Scripting

Need help in finding filesize , moving file , gzipping file

Hi , Please help with the following questions 1) how can i find size of a file ? i have written du -k $flname > s1 . Is this right ? Any other better suggeastions ? 2) how do I use mv command for moving the file ? I need the syntax with some examples 3) Command for printing the total... (1 Reply)
Discussion started by: Learning!
1 Replies

9. Shell Programming and Scripting

comparing filesize in unixscript

Well i was trying to code some script where it was required to compare the file size.. i am using solaris 5.10 to get the filesize i used: Filesize=`du -k temp/Final | awk '{print $1}' | sed 's/ //g'` now i need to do if filesize not equal to 0 then do something fi i... (2 Replies)
Discussion started by: egunda
2 Replies

10. Shell Programming and Scripting

display filesize greater than 20kb

Hi Experts, I need a script to findout file size greater than 20kb .. Many Thanks:o (2 Replies)
Discussion started by: sree vasu
2 Replies

11. Linux

How to register certificate on OHS webserver?

Hi, Can you let me know how to generate and register the cerificate in OHS web server. thanks, nuthakki (1 Reply)
Discussion started by: nuthakki
1 Replies