JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle GlassFish Server 3.1-3.1.1 Reference Manual
search filter icon
search icon

Document Information

Preface

Oracle GlassFish Server 3.1 Section 1: asadmin Utility Subcommands

add-resources(1)

apply-http-lb-changes(1)

backup-domain(1)

change-admin-password(1)

change-master-broker(1)

change-master-password(1)

collect-log-files(1)

configure-jms-cluster(1)

configure-lb-weight(1)

configure-ldap-for-admin(1)

copy-config(1)

create-admin-object(1)

create-application-ref(1)

create-audit-module(1)

create-auth-realm(1)

create-backup-config(1)

create-cluster(1)

create-connector-connection-pool(1)

create-connector-resource(1)

create-connector-security-map(1)

create-connector-work-security-map(1)

create-custom-resource(1)

create-domain(1)

create-file-user(1)

create-http(1)

create-http-health-checker(1)

create-http-lb(1)

create-http-lb-config(1)

create-http-lb-ref(1)

create-http-listener(1)

create-http-redirect(1)

create-iiop-listener(1)

create-instance(1)

create-jacc-provider(1)

create-javamail-resource(1)

create-jdbc-connection-pool(1)

create-jdbc-resource(1)

create-jmsdest(1)

create-jms-host(1)

create-jms-resource(1)

create-jndi-resource(1)

create-jvm-options(1)

create-lifecycle-module(1)

create-local-instance(1)

create-message-security-provider(1)

create-network-listener(1)

create-node-config(1)

create-node-ssh(1)

create-password-alias(1)

create-profiler(1)

create-protocol(1)

create-protocol-filter(1)

create-protocol-finder(1)

create-resource-adapter-config(1)

create-resource-ref(1)

create-schedule(1)

create-service(1)

create-ssl(1)

create-system-properties(1)

create-threadpool(1)

create-transport(1)

create-virtual-server(1)

delete-admin-object(1)

delete-application-ref(1)

delete-audit-module(1)

delete-auth-realm(1)

delete-backup-config(1)

delete-cluster(1)

delete-config(1)

delete-connector-connection-pool(1)

delete-connector-resource(1)

delete-connector-security-map(1)

delete-connector-work-security-map(1)

delete-custom-resource(1)

delete-domain(1)

delete-file-user(1)

delete-http(1)

delete-http-health-checker(1)

delete-http-lb(1)

delete-http-lb-config(1)

delete-http-lb-ref(1)

delete-http-listener(1)

delete-http-redirect(1)

delete-iiop-listener(1)

delete-instance(1)

delete-jacc-provider(1)

delete-javamail-resource(1)

delete-jdbc-connection-pool(1)

delete-jdbc-resource(1)

delete-jmsdest(1)

delete-jms-host(1)

delete-jms-resource(1)

delete-jndi-resource(1)

delete-jvm-options(1)

delete-lifecycle-module(1)

delete-local-instance(1)

delete-message-security-provider(1)

delete-network-listener(1)

delete-node-config(1)

delete-node-ssh(1)

delete-password-alias(1)

delete-profiler(1)

delete-protocol(1)

delete-protocol-filter(1)

delete-protocol-finder(1)

delete-resource-adapter-config(1)

delete-resource-ref(1)

delete-schedule(1)

delete-ssl(1)

delete-system-property(1)

delete-threadpool(1)

delete-transport(1)

delete-virtual-server(1)

deploy(1)

deploydir(1)

disable(1)

disable-backup-config(1)

disable-http-lb-application(1)

disable-http-lb-server(1)

disable-monitoring(1)

disable-secure-admin(1)

disable-secure-admin-internal-user(1)

disable-secure-admin-principal(1)

enable(1)

enable-backup-config(1)

enable-http-lb-application(1)

enable-http-lb-server(1)

enable-monitoring(1)

enable-secure-admin(1)

enable-secure-admin-internal-user(1)

enable-secure-admin-principal(1)

export(1)

export-http-lb-config(1)

export-sync-bundle(1)

flush-connection-pool(1)

flush-jmsdest(1)

freeze-transaction-service(1)

generate-jvm-report(1)

get(1)

get-client-stubs(1)

get-health(1)

import-sync-bundle(1)

install-node(1)

jms-ping(1)

list(1)

list-admin-objects(1)

list-application-refs(1)

list-applications(1)

list-audit-modules(1)

list-auth-realms(1)

list-backup-configs(1)

list-backups(1)

list-clusters(1)

list-commands(1)

list-components(1)

list-configs(1)

list-connector-connection-pools(1)

list-connector-resources(1)

list-connector-security-maps(1)

list-connector-work-security-maps(1)

list-containers(1)

list-custom-resources(1)

list-domains(1)

list-file-groups(1)

list-file-users(1)

list-http-lb-configs(1)

list-http-lbs(1)

list-http-listeners(1)

list-iiop-listeners(1)

list-instances(1)

list-jacc-providers(1)

list-javamail-resources(1)

list-jdbc-connection-pools(1)

list-jdbc-resources(1)

list-jmsdest(1)

list-jms-hosts(1)

list-jms-resources(1)

list-jndi-entries(1)

list-jndi-resources(1)

list-jvm-options(1)

list-lifecycle-modules(1)

list-log-attributes(1)

list-log-levels(1)

list-message-security-providers(1)

list-modules(1)

list-network-listeners(1)

list-nodes(1)

list-nodes-config(1)

list-nodes-ssh(1)

list-password-aliases(1)

list-persistence-types(1)

list-probes(1)

list-protocol-filters(1)

list-protocol-finders(1)

list-protocols(1)

list-resource-adapter-configs(1)

list-resource-refs(1)

list-schedules(1)

list-secure-admin-internal-users(1)

list-secure-admin-principals(1)

list-sub-components(1)

list-supported-cipher-suites(1)

list-system-properties(1)

list-threadpools(1)

list-timers(1)

list-transports(1)

list-virtual-servers(1)

list-web-context-param(1)

list-web-env-entry(1)

login(1)

migrate-timers(1)

monitor(1)

multimode(1)

ping-connection-pool(1)

ping-node-ssh(1)

recover-transactions(1)

redeploy(1)

restart-domain(1)

restart-instance(1)

restart-local-instance(1)

restore-domain(1)

resume-domain(1)

rollback-transaction(1)

rotate-log(1)

run-script(1)

set(1)

set-log-attributes(1)

set-log-levels(1)

setup-ssh(1)

set-web-context-param(1)

set-web-env-entry(1)

show-component-status(1)

start-cluster(1)

start-database(1)

start-domain(1)

start-instance(1)

start-local-instance(1)

stop-cluster(1)

stop-database(1)

stop-domain(1)

stop-instance(1)

stop-local-instance(1)

suspend-domain(1)

undeploy(1)

unfreeze-transaction-service(1)

uninstall-node(1)

unset(1)

unset-web-context-param(1)

unset-web-env-entry(1)

update-admin-server-coordinates(1)

update-admin-server-local-coordinates(1)

update-connector-security-map(1)

update-connector-work-security-map(1)

update-file-user(1)

update-node-config(1)

update-node-ssh(1)

update-password-alias(1)

uptime(1)

validate-multicast(1)

verify-domain-xml(1)

version(1)

Oracle GlassFish Server 3.1 Section 1M: Utility Commands

Oracle GlassFish Server 3.1 Section 5ASC: GlassFish Server Concepts

Oracle GlassFish Server 3.1 Section 5GFP: Events

Index

create-schedule

- creates a new schedule

Synopsis

create-schedule [--help]
[--hour hour] [--minute minute [--second second]
[--dayofmonth day-of-month]
[--dayofweek day-of-week]
[--month month]
[--year year]
schedule-name

Description

The create-schedule subcommand creates a schedule representing a specific date and time or a recurring interval.

This subcommand is supported in remote mode only.

Options

--help
-?

Displays the help text for the subcommand.

--hour
--minute
--second

Together these options specify a time using a 24-hour clock. These options accept the following types of values:

  • A number. For hours, the numbers 0 through 23 are valid; for minutes and seconds, the numbers 0 through 59 are valid.

  • A dash-separated number range; for example: 0-11.

  • A comma-separated list of numbers, number ranges or mixture of the two; for example: 0-3,8-11,23.

  • A repeating increment in the form start/interval. For example, the increment 0/5 indicates values starting at 0 (zero) and continuing every five thereafter (5, 10, 15 and so on) up to a maximum of 23 for hours or 59 for minutes or seconds.

  • An asterisk (*) to indicate all hours, minutes or seconds.

The default value is 0 (zero) for all of these options, indicating the time 00:00:00 (midnight).

--dayofmonth

Specifies the day or days based on days in a month. This option accepts the following types of values:

  • A positive number 1 through 31, representing the days of the month.

  • A negative number -7 through -1, representing days back from the end of the month. -1 represents the day before the last day of the month, and -7 represents the seventh day before the last day of the month.

  • The value Last, representing the last day of the month.

  • A dash-separated number range (including Last as a number); for example: 8-14 or "-6-Last".

  • An ordinal day in the form ordinal day, where ordinal is one of 1st, 2nd, 3rd, 4th, 5th or Last and day is one of Sun, Mon, Tue, Wed, Thu, Fri or Sat. Note that a space is required between the ordinal and the day. Consequently, the value must be enclosed in quotes ("); for example: "2nd Mon".

  • A comma-separated list of numbers, the value last, number ranges, ordinal days, or mixture of the four; for example: 1,8,15,22,Last or "1st Mon,3rd Mon".

  • An asterisk (*) to indicate all days.

A value that contains spaces or begins with a negative number must be enclosed in quotes (").

The default value is * (asterisk).


Note - The dayofmonth and dayofweek options are combined to specify scheduled days as follows:

Both options set to * (asterisk)

Neither option restricts days, so every day is a scheduled day.

One option set to * (asterisk)

The option set to * does not restrict days. Scheduled days are specified by the other option.

Neither option set to * (asterisk)

Both options restrict days. Scheduled days are those that match either option.


--dayofweek

Specifies the day or days based on days in a week. This option accepts the following types of values:

  • A number 0 through 7, representing the days of the week beginning with Sunday. The number zero and seven both represent Sunday.

  • A day abbreviation; one of: Sun, Mon, Tue, Wed, Thu, Fri or Sat.

  • A dash-separated number range or day-abbreviation range; for example: 1-5 or Mon-Fri.

  • A comma-separated list of numbers, day abbreviations, ranges, or mixture of the three; for example: Sun,Thu-Fri.

  • An asterisk (*) to indicate all days.

The default value is * (asterisk).


Note - The dayofmonth and dayofweek options are combined to specify scheduled days as follows:

Both options set to * (asterisk)

Neither option restricts days, so every day is a scheduled day.

One option set to * (asterisk)

The option set to * does not restrict days. Scheduled days are specified by the other option.

Neither option set to * (asterisk)

Both options restrict days. Scheduled days are those that match either option.


--month

Specifies the month or months. This option accepts the following types of values:

  • A number 1 through 12, representing the months of the year beginning with January.

  • A month abbreviation; one of: Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov or Dec.

  • A dash-separated number range or month-abbreviation range; for example: 1-3 or Jan-Mar.

  • A comma-separated list of numbers, month abbreviations, ranges, or mixture of the three; for example: 1,4,7,10 or Jan,Apr,Jul,Oct.

  • An asterisk (*) to indicate all months.

The default value is * (asterisk).

--year

Specifies the year or years. This option accepts the following types of values:

  • A four-digit number, representing a single year.

  • A dash-separated range of four-digit numbers, representing a range of years; for example: 2011-2014.

  • A comma-separated list of four-digit numbers, ranges, or mixture of the two; for example: 2011,2013,2015.

  • An asterisk (*) to indicate all years.

The default value is * (asterisk).

Operands

schedule-name

Specifies the name of the schedule to create.

Examples

Example 1 Creating a Quarterly Schedule

This example creates the schedule quarterly, which specifies the first day of every quarter-year at midnight:

asadmin> create-schedule --month Jan,Apr,Jul,Oct --dayofmonth 1 quarterly
Command create-schedule executed successfully.

Exit Status

0

subcommand executed successfully

1

error in executing the subcommand

See Also

delete-schedule(1), list-schedules(1)

asadmin(1M)