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-GETSPACEMD(1)					    DPM Administrator Commands						 DPM-GETSPACEMD(1)

NAME
dpm-getspacemd - get space metadata SYNOPSIS
dpm-getspacemd --space_token s_token dpm-getspacemd [ --token_desc u_token ] dpm-getspacemd --help DESCRIPTION
dpm-getspacemd gets the space metadata for a given space token or a space token description. If none of the options is specified, the metadata for all the space tokens accessible by the user will be listed. For each token, it displays three lines. The first one gives the space token, the user description and the poolname associated with it. The second one gives the space usage restriction, either a DN or a list of VOMS FQANs. The third one gives the size of the space, the amount of free space, the remaining space lifetime, the retention policy and the access latency. s_token specifies the space token returned by a previous reservespace request. u_token specifies the user provided description associated with a previous reservespace request. EXAMPLE
setenv DPM_HOST dpmhost setenv DPNS_HOST dpnshost dpm-getspacemd fe869590-b771-4002-b11a-8e7430d72911 myspace pool1 dteam 10.00G 9.00G 24.0h REPLICA ONLINE 80e35f8b-7e4e-49a9-90b0-5d5a7ce7e8bc gilbert_1 pool1 dteam 146.48k 127.01k 1.1m REPLICA ONLINE 023a5ec1-03ea-464c-9af7-5246183ff5c5 gilbert_2 pool1 dteam 146.48k 127.01k 1.1m REPLICA ONLINE dpm-getspacemd --token_desc myspace fe869590-b771-4002-b11a-8e7430d72911 myspace pool1 dteam 10.00G 9.00G 24.0h REPLICA ONLINE dpm-getspacemd --space_token fe869590-b771-4002-b11a-8e7430d72911 fe869590-b771-4002-b11a-8e7430d72911 myspace pool1 dteam 10.00G 9.00G 24.0h REPLICA ONLINE EXIT STATUS
This program returns 0 if the operation was successful or >0 if the operation failed. SEE ALSO
dpm(1), dpm-reservespace(1) LCG
$Date: 2008/09/24 11:25:00 $ DPM-GETSPACEMD(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