5.2 - Multi-Value Info Options

      A multi-value Info option is used to pass multiple values for one Info option into 'dsarch'. At lease one value must follow each multi-value option.

      Info Option -AF (-ArchiveFormat) (Aliass: -FF, -FileFormat, -ExternalFormat) :

      for file archiving formats of data files being archived onto RDA Servers. The file archive format indicates post process of a data file. Option values, 'BI' - binary blocked, 'C1' or 'CH' - ASCII/character blocked, can be passed in for COS block information of data files; 'TAR' means a tarred file, 'Z' means a compressed file and 'GZ' means a gzipped file, and 'BZ2' means a file is compressed via bzip2. 'C1.TAR.GZ', for example, means a file is COS ASCII blocked and then tarred and then gzipped; the order is important. The maximum length of format string is 10. Additional characters are truncated for length longer than 10.

      Info Option -BD (-BeginDate) :

      for begin date of data files of a given group or the whole dataset, or begin date of a version control record.

      Info Option -BF (-BackupFlag) :

      flags set in Datasets and/or groups to control Quasar auto-backup activities; N-No auto-backup (default value for Datasets), B-auto-Backup onto Quasar backup endpoint, D-auto-Backup onto Quasar backup&drdata endpoints, P-the same Backup flags set in parent groups (default values in groups, and parent group index 0 means to follow flags in datasets).

      Info Option -BP (-BatchProcess) (Aliass: -d, -DelayedMode) :

      delayed mode execution. When it presents, the 'dsarch' command is not executed right way, but the command information is recorded into RDADB instead and the command is executed later by the centralized daemon 'dscheck'. One or multiple host names can be specified after option -BP to force the 'dsarch' command be executed on or not on the hosts. For examples, '-d rda-data' to run on host 'rda-data'; '-d rda-data:rda-web-prod' to run on hosts 'rda-data' and 'rda-web-prod'; and '-d \!rda-web-prod:rda-data' to run on all configured hosts other than 'rda-web-prod' and 'rda-data'. Character '!' needs to be escaped for passing in on command line. A upper limit for number of tries can also be passed in with this options, 1 to 99, as '-d 5' for example. It default to 2 for command of 'dsarch' if not specified. And also dsarch actions, -(AS|AW|AH|AQ), will be restarted automatically when this option is present, if the previous processes are failed due to storage system downs.

      Info Option -BS (-BackStatus) :

      Quasar Backup File status, a single letter status flag, A - files are backed up onto Globus Quasar servers; T - the backup tar files are generated, waiting to be archived; and N - backup file records and input files for Web/Saved file lists are created, waiting to be tarred.

      Info Option -BT (-BeginTime) :

      for begin time of data files of a given group or the whole dataset, or begin time of a version control record.

      Info Option -DB (-Debug) :

      to turn on debug mode with specified information. This option provides up to 3 values, they are Debug Level, debug log file path and debug log file name. The debug level is mandatory for this option. It can be a single integer value, for example, 1000 means to log debug messages for debug levels 1 to 1000; or a range of values, for example, 200-1000 means to log debug messages from debug levels 200 to 1000. The default debug file path is '$DECSHOME}/dssdb/log' and the default debug file name is 'mydss.dbg'. Provides the second and third values for this option to override the default ones respectively.

      Info Option -DE (-Description) (Aliass: -Desc, -Note, -FileDesc, -FileDescription) :

      for file descriptions of data files. Multiple lines are allowed for a description if it is passed in from an input file specified by Info option -IF (-InputFile). On commandline, a single line description with spaces between words must be quoted in 'single quotes'. It presents a version control note if it is used with version control Actions.

      Info Option -DF (-DataFormat) (Aliass: -TF, -ContentFormat) :

      data content format of files being archived onto RDA Servers. This is content format of data files. For examples, NetCDF, IMMA and etc.

      A default data format can be set for a given dataset. It is used for archive actions when the data format is not provided explicitly.

      Info Option -DN (-DOINumber) (Aliass: -DOI, -DOIName) :

      for DOI, a Digital Object Identification, of a given dataset for public users to reference against.

      Info Option -DO (-DisplayOrder) :

      for display order indices of files of a given group, or of the whole dataset if no groups are set for the dataset. This Info option is ignored if Mode option -RO (-Reorder) is present.

      Info Option -ED (-EndDate) :

      for end date of data files of a given group or the whole dataset, or end date of a version control record when it is terminated.

      Info Option -ET (-EndTime) :

      for end time of data files of a given group or the whole dataset, or end time of a version control record when it is terminated.

      Info Option -EV (-ExternalVersion) :

      external version number. It is only used if a public version number is used for a dataset; otherwise it is defaulted to empty.

      Info Option -FD (-FileDate) :

      for date of a data file last modified on.

      Info Option -FS (-FileStatus) :

      File status, a single letter status flag, P - show file to public users; and I - to show file to specialist only.

      Info Option -FT (-FileTime) :

      for time of a data file last modified at.

      Info Option -GI (-GroupIndex) :

      for group indices. This is considered only if a dataset is divided further into groups. To make the grouping works, run this utility program with action -SG (-SetGroup) for a given dataset before archiving files to the dataset. Valid group index values are 1, 2, 3, ...., while 0 means no group which is the default index value.

      If this option is omitted for file archiving options -AS or -AW of a dataset with groups, pattern matching logic is automatically processed; a group index is determined by matching the local file name to group patterns previously saved in RDADB.

      Info Option -GL (-GroupLevel) :

      number of group/subgroup levels to be displayed in the group lists. It defaults to 2. Set it to -2 to display one level initially but the group list can be expanded up to 2 levels if the subgroups exist.

      Info Option -GN (-GroupName) (Aliass: -GroupID) :

      a short string, up to 20 characters, for group ID name. Group names can be set into RDADB for a given dataset per action -SG (-SetGroup). If set, they can be provided per this option to identify group indices, and in addition, they are displayed on webpages of Web filelists instead of group indices.

      Info Option -GP (-GroupPattern) :

      group patterns to match local file names with group indices while archiving Saved or Web files. The group patterns from this option are saved into RDADB for specified groups of a given dataset per action -SG (-SetGroup).

      Info Option -GT (-GroupType) (Aliass: -GroupDataType) :

      set P for Public or I for Internal group types. When a group type is set from P to I, all the public subgroups under it are set to I recursively, and all the public Web files under the groups or its subgroups are set to Internal too.

      Info Option -HF (-HelpFile) :

      for Help file names. During Document or software archiving per action -AH (-ArchiveHelpFile), the local file names given by option -LF (-LocalFile) are used as default for the Help file names unless different file names are specified by this option.

      Info Option -HT (-HelpFileType) (Aliass: -HelpType) :

      Help file types, a single letter property flag, D-Document and S-Software. If only one type is passed in, all Help files are assumed to be the same type.

      Info Option -ID (-InitialDate) :

      for date of a Help, Document/Software, file last Published/Released on.

      Info Option -IF (-InputFile) :

      for input file names; one or multiple file names may be given on command line. A input file name must start with dataset number as in format of 'dsnnn.n.*' and the dataset number must match the dataset number given per option -DS (-Dataset). This restriction is for prevention that specialists archive data files accidentally into a wrong dataset. Input files are used to hold all valid options and the associated values of Info options that need to be passed in for execution of 'dsarch'.

      In a input file, lines start with sign '#' are considered as comments; Option Names can be given either short, long or alias names. Action and Mode options are given in format of OptionName. Single value Assignment is given in format of OptionName<=>OptionValue. One option is given on each line. Different setting sign of Action and Mode options can be provided by Info option -AO (-ActOption, default to ); and different equal sign of single value assignment can be provided by Info option -ES, (-EqualSign, default to '<=>'). Multi-value assignments can be given in columns delimited with separator specified per option -SP (-Separator, default to '<:>'). It starts with a column title line for multi-value option names and the rest holds values corresponding to each column titles. The value information stops at the end of the file or when a new column name line or another single value assignment appears. If the last column is a multi-line value field, an additional separator must be appended for each line, including the column title line to end lines properly.

      Info Option -IV (-InternalVersion) :

      internal version index. It is used to indicate a different version of data with minimal changes under the same DOI number. It is defaulted to 1 for a version control record with new created DOI number.

      Info Option -KV (-KeyValue) :

      to set specialist defined key/value pairs via action -SD (-SetDataset). These special key/value pairs can be viewed per option -GD (-GetDataset). Specialists can record key/value pair information for specified datasets for personal or shared information. A key can be up to 40 characters and a value can be up to 128 characters.


      EXAMPLE 11.

      Syntax To Set A Key/Value Pair Of 'Test/Test It' For Ds540.0 On command line

      dsarch540.0 SD -KV 'test=>test it'

      and to view this pair

      dsarch540.0 GD -KV test

      and to view all available key/value pairs

      dsarch540.0 GD -KV all

      Info Option -LC (-Location) (Aliass: -LocationFlag) :

      Storage localtion flags for CGD data, Web and Saved data files, and Help files, are C-CGD data, G-Glade Disk, O-Object Store, and B-Both Storage Systems. For Help files, an additional flag R is for Remote URL. This flag is also used in dataset table as web online file access location. The valid values are G or O, which mean to access online file on Glade or Object Store, respectively.

      Info Option -LF (-LocalFile) (Aliass: -LocFile, -SourceFile) :

      for local file names, also called original or source file names. A local file is a data file that is ready to be archived as Saved, Web or Help file. It is later archived onto RDA servers according to actions -AS (-ArchiveSavedFile), -AW (-ArchiveWebFile) or -AH (-ArchiveHelpFile). UNIX wildcard is acceptable if given on command line to match multiple local file names. Absolute or relative paths need to be added to the local file names if the data files are not located in the directory where this application is running.

      Info Option -MC (-MD5Checksum) :

      providing md5 checksum IDs of of the given data files on RDA Servers.

      Info Option -ML (-MetaLink) (Aliass: -MetadataLink) :

      providing a link to dataset, group or file level content metadata page. This link is normally auto-generated from inside of utility program 'gatherxml', which is triggered when Mode option -GX is present for actions of archiving or setting Web data files.

      Although it is not recommended, specialists are allowed, under certain circumstances, to generate their own detail content meta data and put a link via this option, and it overrides the auto-generated link.

      Info Option -ND (-NoteDocument) (Aliass: -DocumentNote, -DescDocument) :

      for Document descriptions of a given dataset.

      Info Option -NI (-NoteInternal) (Aliass: -InternalNote, -DescInternal, -DI) :

      for internal data descriptions of a given group or the dataset itself.

      Info Option -NS (-NoteSoftware) (Aliass: -SoftwareNote, -DescSoftware) :

      for Software descriptions of a given dataset.

      Info Option -NW (-NoteWeb) (Aliass: -WebNote, -DescWeb, -DW) :

      for descriptions of Web data on RDA Server of a given group or the dataset itself.

      Info Option -OB (-OrderBy) (Aliass: -OrderByPattern) :

      temporal patterns used to order filelist according to the string values of field names specified per option -ON (-OrderNames). 'YYYYmon', for example, means the order should be based on on 4 digit year and three letter lowercase month names as 'jan', 'feb', and etc. Check option -ON (-OrderNames) for example of ordering files by temporal patterns.

      Info Option -OD (-OriginDataset) :

      for an original dataset number; used for action -MV (-MoveFile).

      Info Option -OG (-OriginGroup) :

      for original group indices, used for action -CG (-ChangeGroup) to change group indices of specified data files of a given dataset. Check option -GI (-GroupIndex) for more information.

      Info Option -OT (-OriginType) :

      original web file types. This option is used only for action -MV (-MoveFile) to move files by changing file types.

      Info Option -PI (-ParentIndex) (Aliass: -ParentGroupIndex) :

      for parent group indices. This is considered only if a group is divided further into subgroups. Subgrouping can continue going down to as many levels as needed.

      Info Option -QF (-QuasarFile) :

      for Quasar backup file names. During Quasar backing up per action -AQ (-ArchiveQuasarFile), a quasar file name must be specified by this option.

      Info Option -QT (-QuasarFileType) (Aliass: -QuasarType, -BackupType) :

      Quasar file types, a single letter property flag, B-Quasar Backup only and D-Quasar Backup and Drdata.

      Info Option -RF (-OriginFile) :

      for original Web file names used for action -MV (-MoveFile) to move data files from one dataset specified by option -OD (-OriginDataset) to a new dataset specified by option -DS (-Dataset). Set this option only when original file names are different from the new ones.

      Info Option -SF (-SavedFile) :

      for Saved file names. During Saved data archiving per action -AS (-ArchiveSavedFile), the local file names given by option -LF (-LocalFile) are used as default for the saved file names unless different file names are specified by this option.

      Info Option -SP (-SavedPath) :

      for saved file paths relative to the saved data home directory. For action -AS (-ArchiveSavedFile), if this option is not specified, the path values previously saved in RDADB for given dataset, and groups if specified, are used. For action -SG (-SetGroup) and -SD -(-SetDataset), path values given by this option are saved into RDADB for the specified groups and dataset.

      The group saved paths matching well with groups are important for NCAR internal users to list group/file information on the the data storage disks directly via utility program 'rdals'. One and only one single directory must be assign to a top level group, one additional directory should be appended for each sub-group down. A web path relative to the web data home directory is saved in each group record. In this way, the web path values match exactly the physical directory tree of a specified dataset.

      Info Option -SR (-Source) :

      for source of a Help file contributed from.

      Info Option -ST (-SavedFileType) (Aliass: -SavedType, -SavedArchiveType) :

      Saved file types, a single letter property flag, P-Primary, R-Original, W-Work, S-Scratch, and V-Version control. If only one type is passed in, all Saved files are assumed to be the same type.

      Info Option -SZ (-Size) :

      for file sizes in bytes. During data archiving the sizes of data files are gathered dynamically from the local files given per option -LF (-LocalFile) unless the sizes are specified by this option otherwise.

      Info Option -TG (-TopGroupIndex) (Aliass: -TopGroup) :

      top group index values for Saved/Web files belong to the top group or its subgroups.

      Info Option -TI (-Title) :

      for dataset or group titles. Dataset title is readonly for 'dsarch'; use Metadata Editor to modify it.

      Info Option -TL (-ThreddLink) :

      providing a link to file level Thredd Catalog page. Set this value to Y if Thredd Catalog information is gathered for a file.

      Info Option -VI (-VersionIndex) :

      version control index to have DOI/Version control on a given dataset.

      Info Option -VT (-VersionStatus) :

      version control status, A-Active, P-Pending and H-History.

      Info Option -WF (-WebFile) :

      for file names on RDA Servers. During Web data archiving per action -AW (-ArchiveWebFile), the local file names given by option -LF (-LocalFile) are used as default for the Web file names unless different file names are specified by this option.

      Info Option -WH (-WebHome) (Aliass: -WebDataHome) :

      (Alias: -WebDataHome), for web Web data home directory other than the default location. Use -SD -(-SetDataset), to set web data home directory into RDADB for the specified dataset.

      Info Option -WP (-WebPath) :

      for web file paths relative to the Web data home directory. For action -AW (-ArchiveWebFile), if this option is not specified, the path values previously saved in RDADB for given dataset, and groups if specified, are used. For action -SG (-SetGroup) and -SD -(-SetDataset), path values given by this option are saved into RDADB for the specified groups and dataset.

      The group web paths matching well with groups are important for NCAR internal users to list group/file information on the the data storage disks directly via utility program 'rdals'. One and only one single directory must be assign to a top level group, one additional directory should be appended for each sub-group down. A web path relative to the web data home directory is saved in each group record. In this way, the web path values match exactly the physical directory tree of a specified dataset.

      Info Option -WT (-WebFileType) (Aliass: -WebType, -WebArchiveType) :

      web file types, D-Data and N-NCAR Data. If only one type is passed in, all Saved files are assumed to be the same type.

      Info Option -WU (-WebURL) (Aliass: -URL, -WebAddress) :

      Web URL for a Help file to link it to a remote web server, such as github.com. This option works with Action -SH (-SetHelpFile) to create a remote Document or Software file record in RDADB without local copy on RDA Servers.



      Back to Top