Hugonweb | Tips for samweb

To get an unchanging dataset definition from a given definition:

samweb take-snapshot <definition> # will return the snapshot number
samweb create-definition <new defname> "snapshot_id <snapshot number>"

List files in a defname (you can chain other reqs):

samweb list-files --summary "defname: <defname>"

You can limit the query (or create-definition) to just the first 1000 files with:

samweb list-files --summary "defname: <defname> with limit 1000"

or the second 1000 files with:

samweb list-files --summary "defname: <defname> with limit 1000 with offset 1000"

To get the filename for a file:

samweb get-file-access-url --schema root <filename>

you may have to run setup_fnal_security first