Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titleUsage
Usage: delete-notices.sh [Options] [Switches]

  Options:
    --url=<url>                   | required: JOC Cockpit URL, default:
    --controller-id=<identifier>  | required: Controller ID
    --user=<account>              | required: JOC Cockpit user acccountaccount
    --password=<password>         | optional: JOC Cockpit password
    --ca-cert=<path>              | optional: path to CA Certificate used for JOC Cockpit login
    --client-cert=<path>          | optional: path to Client Certificate used for login
    --client-key=<path>           | optional: path to Client Key used for login
    --date=<date>                 | optional: notices created for the given date will be deleted, default: <yesterday>
    --time-zone=<tz>              | optional: specifies the time zone for the given date, default: <time-zone>
                                              see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
    --folders=<path[,path]>       | optional: list of folders holding notice boards for which notices will be deleted
    --notice-boards=<path[,path]> | optional: list of notice boards for which notices will be deleted
    --log-dir=<directory>         | optional: path to the directory holding the script's batch log files, default:

  Switches:
    -h | --help                   | displays usage
    -v | --verbose                | displays verbose output
    -p | --password               | asks for password
    -r | --recursive              | specifies folders to be looked up recursively
    --show-logs                   | shows log output if --log-dir is used
    --make-dirs                   | creates directories if they do not exist

...