Home

 

Set a maximum size on libraries

Use FilesLibraryService commands to assign a policies to libraries. A library is a set of files owned by a person or community. A policy sets a maximum size for a library.

  1. Open a command window and start the wsadmin command line tool as described in the topic, Starting the wsadmin client.

  2. Start the Files script with the following command:

  3. Network deployment:

      execfile("profile_root/config/bin_lc_admin/ filesAdmin.py")
      

  4. Create a policy to specify the library size, using steps in the topic Working with policies.

  5. Run the following commands to set maximum sizes on libraries:

    Command Description

    FilesLibraryService.assignPolicy(String libraryId, String policyId)

    Assigns a policy to a library. A library is a set of files owned by a person or community. A policy sets a maximum size for a library. Parameters:

      libraryId

      The library id in the following standard Universally Unique Identifier (UUID) format: 00000000-0000-0000-0000-000000000000.

      policyId

      The policy id in the following standard Universally Unique Identifier (UUID) format: 00000000-0000-0000-0000-000000000000.

    FilesLibraryService.assignPolicyBatch(String filePath)

    Assigns policies to libraries as specified in a text file. The file must contain a list of library-policy id pairs, one pair per line, values separated by a comma. For example: libraryId, policyId. Extra whitespace is ignored. You must create this text file and save it in a local to the server where you are running the wsadmin processor.

    A library is a set of files owned by a person or community. A policy sets a maximum size for a library. Parameters:

      filePath

      The full path to the text file, as a String.

    You will get a success or failure message for each assignment. Assignments continue even if there are failures.


Administer Files

 

Related tasks

Set a maximum size on files

Start the wsadmin client

Working with policies


+

Search Tips   |   Advanced Search