_asadmin 70.2 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
#compdef asadmin
#autoload

local -a _1st_arguments
_1st_arguments=(
    "add-library:adds one or more library JAR files to GlassFish Server"
    "add-resources:creates the resources specified in an XML file"
    "apply-http-lb-changes:applies load balancer configuration changes to the load balancer"
    "backup-domain:performs a backup on the domain"
    "change-admin-password:changes the administrator password"
    "change-master-broker:changes the master broker in a Message Queue cluster providing JMS services for a GlassFish Server cluster."
    "change-master-password:changes the master password"
    "collect-log-files:creates a ZIP archive of all available log files"
    "configure-jms-cluster:configures the Message Queue cluster providing JMS services to a GlassFish Server cluster"
    "configure-lb-weight:sets load balancing weights for clustered instances"
    "configure-ldap-for-admin:configures the authentication realm named admin-realm for the given LDAP"
    "copy-config:copies an existing named configuration to create another configuration"
    "create-admin-object:adds the administered object with the specified JNDI name for a resource adapter"
    "create-application-ref:creates a reference to an application"
    "create-audit-module:adds an audit module"
    "create-auth-realm:adds the named authentication realm"
    "create-cluster:creates a GlassFish Server cluster"
    "create-connector-connection-pool:adds a connection pool with the specified connection pool name"
    "create-connector-resource:registers the connector resource with the specified JNDI name"
    "create-connector-security-map:creates a security map for the specified connector connection pool"
    "create-connector-work-security-map:creates a work security map for the specified resource adapter"
    "create-custom-resource:creates a custom resource"
    "create-domain:creates a domain"
    "create-file-user:creates a new file user"
    "create-http:sets HTTP parameters for a protocol"
    "create-http-health-checker:creates a health-checker for a specified load balancer configuration"
    "create-http-lb:creates a load balancer"
    "create-http-lb-config:creates a configuration for the load balancer"
    "create-http-lb-ref:adds an existing cluster or server instance to an existing load balancer configuration or load balancer"
    "create-http-listener:adds a new HTTP network listener socket"
    "create-http-redirect:adds a new HTTP redirect"
    "create-iiop-listener:adds an IIOP listener"
    "create-instance:creates a GlassFish Server instance"
    "create-jacc-provider:enables administrators to create a JACC provider that can be used by third-party authorization modules for applications running in GlassFish Server"
    "create-javamail-resource:creates a JavaMail session resource"
    "create-jdbc-connection-pool:registers a JDBC connection pool"
    "create-jdbc-resource:creates a JDBC resource with the specified JNDI name"
    "create-jms-host:creates a JMS host"
    "create-jms-resource:creates a JMS resource"
    "create-jmsdest:creates a JMS physical destination"
    "create-jndi-resource:registers a JNDI resource"
    "create-jvm-options:creates options for the Java application launcher"
    "create-lifecycle-module:creates a lifecycle module"
    "create-local-instance:creates a GlassFish Server instance on the host where the subcommand is run"
    "create-message-security-provider:enables administrators to create a message security provider, which specifies how SOAP messages will be secured."
    "create-network-listener:adds a new network listener socket"
    "create-node-config:creates a node that is not enabled for remote communication"
    "create-node-dcom:creates a node that is enabled for com munication over DCOM"
    "create-node-ssh:creates a node that is enabled for communication over SSH"
    "create-password-alias:creates a password alias"
    "create-profiler:creates the profiler element"
    "create-protocol:adds a new protocol"
    "create-protocol-filter:adds a new protocol filter"
    "create-protocol-finder:adds a new protocol finder"
    "create-resource-adapter-config:creates the configuration information for the connector module"
    "create-resource-ref:creates a reference to a resource"
    "create-service:configures the starting of a DAS or a GlassFish Server instance on an unattended boot"
    "create-ssl:creates and configures the SSL element in the selected HTTP listener, IIOP listener, or IIOP service"
    "create-system-properties:adds one or more system property elements that can be referenced elsewhere in the configuration."
    "create-threadpool:adds a thread pool"
    "create-transport:adds a new transport"
    "create-virtual-server:creates the named virtual server"
    "delete-admin-object:removes the administered object with the specified JNDI name."
    "delete-application-ref:removes a reference to an applica tion"
    "delete-audit-module:removes the named audit-module"
    "delete-auth-realm:removes the named authentication realm"
    "delete-cluster:deletes a GlassFish Server cluster"
    "delete-config:deletes an existing named configuration"
    "delete-connector-connection-pool:removes the specified connector connection pool"
    "delete-connector-resource:removes the connector resource with the specified JNDI name"
    "delete-connector-security-map:deletes a security map for the specified connector connection pool"
    "delete-connector-work-security-map:deletes a work security map for the specified resource adapter"
    "delete-custom-resource:removes a custom resource"
    "delete-domain:deletes a domain"
    "delete-file-user:removes the named file user"
    "delete-http:removes HTTP parameters from a protocol"
    "delete-http-health-checker:deletes the health-checker for a specified load balancer configuration"
    "delete-http-lb:deletes a load balancer"
    "delete-http-lb-config:deletes a load balancer configuration"
    "delete-http-lb-ref:deletes the cluster or server instance from a load balancer"
    "delete-http-listener:removes a network listener"
    "delete-http-redirect:removes an HTTP redirect"
    "delete-iiop-listener:removes an IIOP listener"
    "delete-instance:deletes a GlassFish Server instance"
    "delete-jacc-provider:enables administrators to delete JACC providers defined for a domain"
    "delete-javamail-resource:removes a JavaMail session resource"
    "delete-jdbc-connection-pool:removes the specified JDBC connection pool"
    "delete-jdbc-resource:removes a JDBC resource with the specified JNDI name"
    "delete-jms-host:removes a JMS host"
    "delete-jms-resource:removes a JMS resource"
    "delete-jmsdest:removes a JMS physical destination"
    "delete-jndi-resource:removes a JNDI resource"
    "delete-jvm-options:removes one or more options for the Java application launcher"
    "delete-lifecycle-module:removes the lifecycle module"
    "delete-local-instance:deletes a GlassFish Server instance on the machine where the subcommand is run"
    "delete-log-levels:"
    "delete-message-security-provider:enables administrators to delete a message security provider"
    "delete-network-listener:removes a network listener"
    "delete-node-config:deletes a node that is not enabled for remote communication"
    "delete-node-dcom:deletes a node that is enabled for communication over DCOM"
    "delete-node-ssh:deletes a node that is enabled for communication over SSH"
    "delete-password-alias:deletes a password alias"
    "delete-profiler:removes the profiler element"
    "delete-protocol:removes a protocol"
    "delete-protocol-filter:removes a protocol filter"
    "delete-protocol-finder:removes a protocol finder"
    "delete-resource-adapter-config:deletes the resource adapter configuration"
    "delete-resource-ref:removes a reference to a resource"
    "delete-ssl:deletes the SSL element in the selected HTTP listener, IIOP listener, or IIOP service"
    "delete-system-property:removes a system property of the domain, configuration, cluster, or server instance, one at a time"
    "delete-threadpool:removes a thread pool"
    "delete-transport:removes a transport"
    "delete-virtual-server:removes a virtual server"
    "deploy:deploys the specified component"
    "deploydir:deploys an exploded format of application archive"
    "environment variable"
    "disable:disables the component"
    "disable-http-lb-application:disables an application managed by a load balancer"
    "disable-http-lb-server:disables a sever or cluster managed by a load balancer"
    "disable-monitoring:disables monitoring for the server or for specific monitorable modules"
    "disable-secure-admin:disables secure admin if it is already enabled."
    "disable-secure-admin-internal-user:Instructs the GlassFish Server DAS and instances to not use the specified admin user to authenticate with each other and to authorize admin operations."
    "disable-secure-admin-principal:disables the certificate for authorizing access in secure administration."
    "enable:enables the component"
    "enable-http-lb-application:enables a previously-disabled application managed by a load balancer"
    "enable-http-lb-server:enables a previously disabled sever or cluster managed by a load balancer"
    "enable-monitoring:enables monitoring for the server or for specific monitorable modules"
    "enable-secure-admin:enables secure admin (if it is not already enabled), optionally changing the alias used for DAS-to-instance admin messages or the alias used for instance-to-DAS admin messages."
    "enable-secure-admin-internal-user:Instructs the GlassFish Server DAS and instances to use the specified admin user and the password associated with the password alias to authenticate with each other and to authorize admin operations."
    "enable-secure-admin-principal:Instructs GlassFish Server, when secure admin is enabled, to accept admin requests from clients identified by the specified SSL certificate."
    "export:marks a variable name for automatic export to the environment of subsequent commands in multimode"
    "export-http-lb-config:exports the load balancer configuration or load balancer to a file"
    "export-sync-bundle:exports the configuration data of a cluster or standalone instance to an archive file"
    "flush-connection-pool:reintializes all connections established in the specified connection pool"
    "flush-jmsdest:purges messages in a JMS destination."
    "freeze-transaction-service:freezes the transaction subsystem"
    "generate-domain-schema:"
    "generate-jvm-report:shows the JVM machine statistics for a given target instance"
    "get:gets the values of configurable or monitorable attributes"
    "get-client-stubs:retrieves the application JAR files needed to launch the application client."
    "get-health:provides information on the cluster health"
fred-o's avatar
fred-o committed
147
    "help"
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
    "asadmin:utility for performing administrative tasks for Oracle GlassFish Server"
    "import-sync-bundle:imports the configuration data of a clustered instance or standalone instance from an archive file"
    "install-node:installs GlassFish Server software on specified SSH-enabled hosts"
    "install-node-dcom:installs GlassFish Server software on specified DCOM-enabled hosts"
    "install-node-ssh:installs GlassFish Server software on specified SSH-enabled hosts"
    "jms-ping:checks if the JMS service is up and running"
    "list:lists configurable or monitorable elements"
    "list-admin-objects:gets all the administered objects"
    "list-application-refs:lists the existing application references"
    "list-applications:lists deployed applications"
    "list-audit-modules:gets all audit modules and displays them"
    "list-auth-realms:lists the authentication realms"
    "list-backups:lists all backups"
    "list-clusters:lists existing clusters in a domain"
    "list-commands:lists available commands"
    "list-components:lists deployed components"
    "list-configs:lists named configurations"
    "list-connector-connection-pools:lists the existing connector connection pools"
    "list-connector-resources:lists all connector resources"
    "list-connector-security-maps:lists the security maps belonging to the specified connector connection pool"
    "list-connector-work-security-maps:lists the work security maps belonging to the specified resource adapter"
    "list-containers:lists application containers"
    "list-custom-resources:gets all custom resources"
    "list-domains:lists the domains in the specified directory"
    "list-file-groups:lists file groups"
    "list-file-users:lists the file users"
    "list-http-lb-configs:lists load balancer configurations"
    "list-http-lbs:lists load balancers"
    "list-http-listeners:lists the existing network listeners"
    "list-iiop-listeners:lists the existing IIOP listeners"
    "list-instances:lists GlassFish Server instances in a domain"
    "list-jacc-providers:enables administrators to list JACC providers defined for a domain"
    "list-javamail-resources:lists the existing JavaMail session resources"
    "list-jdbc-connection-pools:lists all JDBC connection pools"
    "list-jdbc-resources:lists all JDBC resources"
    "list-jms-hosts:lists the existing JMS hosts"
    "list-jms-resources:lists the JMS resources"
    "list-jmsdest:lists the existing JMS physical destinations"
    "list-jndi-entries:browses and queries the JNDI tree"
    "list-jndi-resources:lists all existing JNDI resources"
    "list-jvm-options:lists options for the Java application launcher"
    "list-libraries:lists library JAR files on GlassFish Server"
    "list-lifecycle-modules:lists the lifecycle modules"
    "list-log-attributes:lists all logging attributes defined for a specified target in a domain"
    "list-log-levels:lists the loggers and their log levels"
    "list-message-security-providers:lists all security message providers for the given message layer"
    "list-modules:lists GlassFish Server modules"
    "list-network-listeners:lists the existing network listeners"
    "list-nodes:lists all GlassFish Server nodes in a domain"
    "list-nodes-config:lists all GlassFish Server nodes that do not support remote communication in a domain"
    "list-nodes-dcom:lists all GlassFish Server nodes that support communication over DCOM in a domain"
    "list-nodes-ssh:lists all GlassFish Server nodes that support communication over SSH in a domain"
    "list-password-aliases:lists all password aliases"
    "list-persistence-types:lists registered persistence types for HTTP sessions and SFSB instances"
    "list-protocol-filters:lists the existing protocol filters"
    "list-protocol-finders:lists the existing protocol finders"
    "list-protocols:lists the existing protocols"
    "list-resource-adapter-configs:lists the names of the current resource adapter configurations"
    "list-resource-refs:lists existing resource references"
    "list-secure-admin-internal-users:lists the user names that the GlassFish Server DAS and instances use to authenticate with each other and to authorize admin operations."
    "list-secure-admin-principals:lists the certificates for which GlassFish Server accepts admin requests from clients."
    "list-sub-components:lists EJB or servlet components in a deployed module or module of a deployed application"
    "list-supported-cipher-suites:enables administrators to list the cipher suites that are supported and available to a specified GlassFish Server target"
    "list-system-properties:lists the system properties of the domain, configuration, cluster, or server instance"
    "list-threadpools:lists all the thread pools"
    "list-timers:lists all of the persistent timers owned by server instance(s)"
    "list-transports:lists the existing transports"
    "list-virtual-servers:lists the existing virtual servers"
    "list-web-context-param:lists servlet contextinitialization parameters of a deployed web application or module"
    "list-web-env-entry:lists environment entries for a deployed web application or module"
    "login:logs you into a domain"
    "migrate-timers:moves EJB timers when a clustered instance was stopped or has crashed"
    "monitor:displays monitoring data for commonly used components and services"
    "multimode:allows multiple subcommands to be run while preserving environment settings and remaining in the asadmin utility"
    "ping-connection-pool:tests if a connection pool is usable"
    "ping-node-dcom:tests if a node that is enabled for communication over DCOM is usable"
    "ping-node-ssh:tests if a node that is enabled for communication over SSH is usable"
    "recover-transactions:manually recovers pending transactions"
    "redeploy:redeploys the specified component"
    "remove-library:removes one or more library JAR files from GlassFish Server"
    "restart-domain:restarts the DAS of the specified domain"
    "restart-instance:restarts a running GlassFish Server instance"
    "restart-local-instance:restarts a running GlassFish Server instance on the host where the subcommand is run"
    "restore-domain:restores files from backup"
    "rollback-transaction:rolls back the named transaction"
    "rotate-log:rotates the log file"
    "set:sets the values of configurable attributes"
    "set-log-attributes:sets the logging attributes for one or more loggers"
    "set-log-levels:sets the log level for one or more loggers"
    "set-web-context-param:sets a servlet context initialization parameter of a deployed web application or module"
    "set-web-env-entry:sets an environment entry for a deployed web application or module"
    "setup-ssh:sets up an SSH key on specified hosts"
    "show-component-status:displays the status of the deployed component"
    "start-cluster:starts a cluster"
    "start-database:starts the Java DB"
    "start-domain:starts the DAS of the specified domain"
    "start-instance:starts a GlassFish Server instance"
    "start-local-instance:starts a GlassFish Server instance on the host where the subcommand is run"
    "stop-cluster:stops a GlassFish Server cluster"
    "stop-database:stops the Java DB"
    "stop-domain:stops the Domain Administration Server of the specified domain"
    "stop-instance:stops a running GlassFish Server instance"
    "stop-local-instance:stops a GlassFish Server instance on the machine where the subcommand is run"
    "undeploy:removes a deployed component"
    "unfreeze-transaction-service:resumes all suspended transactions"
    "uninstall-node:uninstalls GlassFish Server software from specified hosts"
    "uninstall-node-dcom:uninstalls GlassFish Server software from specified DCOM-enabled hosts"
    "uninstall-node-ssh:uninstalls GlassFish Server software from specified SSH-enabled hosts"
    "unset:removes one or more variables from the multimode environment"
    "unset-web-context-param:unsets a servlet context initialization parameter of a deployed web application or module"
    "unset-web-env-entry:unsets an environment entry for a deployed web application or module"
    "update-connector-security-map:modifies a security map for the specified connector connection pool"
    "update-connector-work-security-map:modifies a work security map for the specified resource adapter"
    "update-file-user:updates a current file user as specified"
    "update-node-config:updates the configuration data of anode"
    "update-node-dcom:updates the configuration data of a node"
    "update-node-ssh:updates the configuration data of a node"
    "update-password-alias:updates a password alias"
    "uptime:returns the length of time that the DAS has been running"
    "validate-dcom:tests the connection over DCOM to a remote host"
    "validate-multicast:validates that multicast transport is available for clusters"
    "verify-domain-xml:verifies the content of the domain.xml file"
    "version:displays version information forGlassFish Server"
)

_arguments '*:: :->command'

if (( CURRENT == 1 )); then
fred-o's avatar
fred-o committed
276
    _describe -t commands "asadmin command" _1st_arguments
277
278
279
280
281
    return
fi

local -a _command_args
case "$words[1]" in
fred-o's avatar
fred-o committed
282
283
284
285
    add-library)
        _command_args=('*:directory:_files' '--host+:' '--port+:' '--type+:type:(common ext app)')
        ;;
    add-resources)
fred-o's avatar
fred-o committed
286
        _command_args=('*:directory:_files' '--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance')
fred-o's avatar
fred-o committed
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
        ;;
    apply-http-lb-changes)
        _command_args=('--host+:' '--ping+:' '--port+:')
        ;;
    backup-domain)
        _command_args=('--backupconfig+:' '--backupdir+:' '--description+:' '--domaindir+:' '--long+:long:(true false)')
        ;;
    change-admin-password)
        _command_args=('--domain_name+:' '--domaindir+:')
        ;;
    change-master-broker)
        _command_args=('--host+:' '--port+:')
        ;;
    change-master-password)
        _command_args=('--domaindir+:' '--nodedir+:' '--savemasterpassword+:savemasterpassword:(true false)')
        ;;
    collect-log-files)
        _command_args=('--host+:' '--port+:' '--retrieve+:retrieve:(true false)' '--target+:')
        ;;
    configure-jms-cluster)
        _command_args=('--clustertype+:' '--configstoretype+:' '--dburl+:' '--dbuser+:' '--dbvendor+:' '--host+:' '--jmsdbpassword+:' '--messagestoretype+:' '--port+:' '--property+:')
        ;;
    configure-lb-weight)
fred-o's avatar
fred-o committed
310
        _command_args=('--cluster+:cluster:_asadmin_clusters' '--host+:' '--port+:')
fred-o's avatar
fred-o committed
311
312
        ;;
    configure-ldap-for-admin)
fred-o's avatar
fred-o committed
313
        _command_args=('--basedn+:' '--host+:' '--ldap-group+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance' '--url+:')
fred-o's avatar
fred-o committed
314
315
316
317
318
        ;;
    copy-config)
        _command_args=('--host+:' '--port+:' '--systemproperties+:')
        ;;
    create-admin-object)
fred-o's avatar
fred-o committed
319
        _command_args=('--classname+:' '--description+:' '--enabled+:enabled:(true false)' '--host+:' '--port+:' '--property+:' '--raname+:' '--restype+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
320
321
        ;;
    create-application-ref)
fred-o's avatar
fred-o committed
322
        _command_args=('--enabled+:enabled:(true false)' '--host+:' '--lbenabled+:lbenabled:(true false)' '--port+:' '--target+:target:_asadmin_targets_cluster_das_standalone_instance' '--virtualservers+:')
fred-o's avatar
fred-o committed
323
324
        ;;
    create-audit-module)
fred-o's avatar
fred-o committed
325
        _command_args=('--classname+:' '--host+:' '--port+:' '--property+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
326
327
        ;;
    create-auth-realm)
fred-o's avatar
fred-o committed
328
        _command_args=('--classname+:' '--host+:' '--port+:' '--property+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
329
330
331
332
333
        ;;
    create-connector-connection-pool)
        _command_args=('--associatewiththread+:associatewiththread:(true false)' '--connectiondefinition+:' '--creationretryattempts+:' '--creationretryinterval+:' '--description+:' '--failconnection+:failconnection:(true false)' '--host+:' '--idletimeout+:' '--isconnectvalidatereq+:isconnectvalidatereq:(true false)' '--lazyconnectionassociation+:lazyconnectionassociation:(true false)' '--lazyconnectionenlistment+:lazyconnectionenlistment:(true false)' '--leakreclaim+:leakreclaim:(true false)' '--leaktimeout+:' '--matchconnections+:matchconnections:(true false)' '--maxconnectionusagecount+:' '--maxpoolsize+:' '--maxwait+:' '--ping+:ping:(true false)' '--pooling+:pooling:(true false)' '--poolresize+:' '--port+:' '--property+:' '--raname+:' '--steadypoolsize+:' '--target+:' '--transactionsupport+:transactionsupport:(XATransaction LocalTransaction NoTransaction)' '--validateatmostonceperiod+:')
        ;;
    create-connector-resource)
fred-o's avatar
fred-o committed
334
        _command_args=('--description+:' '--enabled+:enabled:(true false)' '--host+:' '--objecttype+:' '--poolname+:' '--port+:' '--property+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance')
fred-o's avatar
fred-o committed
335
336
337
338
339
340
341
342
        ;;
    create-connector-security-map)
        _command_args=('--host+:' '--mappedpassword+:' '--mappedusername+:' '--poolname+:' '--port+:' '--principals+:' '--target+:' '--usergroups+:')
        ;;
    create-connector-work-security-map)
        _command_args=('--description+:' '--groupsmap+:' '--host+:' '--port+:' '--principalsmap+:' '--raname+:')
        ;;
    create-custom-resource)
fred-o's avatar
fred-o committed
343
        _command_args=('--description+:' '--enabled+:enabled:(true false)' '--factoryclass+:' '--host+:' '--port+:' '--property+:' '--restype+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance')
fred-o's avatar
fred-o committed
344
345
346
347
348
        ;;
    create-domain)
        _command_args=('--adminport+:' '--checkports+:checkports:(true false)' '--domaindir+:' '--domainproperties+:' '--instanceport+:' '--keytooloptions+:' '--nopassword+:nopassword:(true false)' '--portbase+:' '--profile+:' '--savelogin+:savelogin:(true false)' '--savemasterpassword+:savemasterpassword:(true false)' '--template+:' '--usemasterpassword+:usemasterpassword:(true false)')
        ;;
    create-file-user)
fred-o's avatar
fred-o committed
349
        _command_args=('--authrealmname+:' '--groups+:' '--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance' '--userpassword+:')
fred-o's avatar
fred-o committed
350
351
        ;;
    create-http)
fred-o's avatar
fred-o committed
352
        _command_args=('--default-virtual-server+:' '--dns-lookup-enabled+:dns-lookup-enabled:(true false)' '--host+:' '--max-connection+:' '--port+:' '--request-timeout-seconds+:' '--servername+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance' '--timeout-seconds+:' '--xpowered+:xpowered:(true false)')
fred-o's avatar
fred-o committed
353
354
355
356
357
        ;;
    create-http-health-checker)
        _command_args=('--config+:' '--host+:' '--interval+:' '--port+:' '--timeout+:' '--url+:')
        ;;
    create-http-lb)
fred-o's avatar
fred-o committed
358
        _command_args=('--autoapplyenabled+:autoapplyenabled:(true false)' '--devicehost+:' '--deviceport+:' '--healthcheckerinterval+:' '--healthcheckertimeout+:' '--healthcheckerurl+:' '--host+:' '--httpsrouting+:httpsrouting:(true false)' '--lbenableallapplications+:' '--lbenableallinstances+:' '--lbpolicy+:' '--lbpolicymodule+:' '--lbweight+:' '--monitor+:monitor:(true false)' '--port+:' '--property+:' '--reloadinterval+:' '--responsetimeout+:' '--routecookie+:routecookie:(true false)' '--sslproxyhost+:' '--sslproxyport+:' '--target+:target:_asadmin_targets_cluster_standalone_instance')
fred-o's avatar
fred-o committed
359
360
361
362
363
        ;;
    create-http-lb-ref)
        _command_args=('--config+:' '--healthcheckerinterval+:' '--healthcheckertimeout+:' '--healthcheckerurl+:' '--host+:' '--lbenableallapplications+:' '--lbenableallinstances+:' '--lbname+:' '--lbpolicy+:' '--lbpolicymodule+:' '--lbweight+:' '--port+:')
        ;;
    create-http-listener)
fred-o's avatar
fred-o committed
364
        _command_args=('--acceptorthreads+:' '--default-virtual-server+:' '--defaultvs+:' '--enabled+:enabled:(true false)' '--host+:' '--listeneraddress+:' '--listenerport+:' '--port+:' '--redirectport+:' '--secure+:secure:(true false)' '--securityenabled+:securityenabled:(true false)' '--servername+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance' '--xpowered+:xpowered:(true false)')
fred-o's avatar
fred-o committed
365
366
        ;;
    create-http-redirect)
fred-o's avatar
fred-o committed
367
        _command_args=('--host+:' '--port+:' '--redirect-port+:' '--secure-redirect+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
368
369
        ;;
    create-iiop-listener)
fred-o's avatar
fred-o committed
370
        _command_args=('--enabled+:enabled:(true false)' '--host+:' '--iiopport+:' '--listeneraddress+:' '--port+:' '--property+:' '--securityenabled+:securityenabled:(true false)' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
371
372
        ;;
    create-instance)
fred-o's avatar
fred-o committed
373
        _command_args=('--checkports+:checkports:(true false)' '--cluster+:cluster:_asadmin_clusters' '--config+:' '--host+:' '--lbenabled+:lbenabled:(true false)' '--node+:node:_asadmin_nodes' '--port+:' '--portbase+:' '--systemproperties+:' '--terse+:terse:(true false)')
fred-o's avatar
fred-o committed
374
375
        ;;
    create-jacc-provider)
fred-o's avatar
fred-o committed
376
        _command_args=('--host+:' '--policyconfigfactoryclass+:' '--policyproviderclass+:' '--port+:' '--property+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
377
378
        ;;
    create-javamail-resource)
fred-o's avatar
fred-o committed
379
        _command_args=('--debug+:debug:(true false)' '--description+:' '--enabled+:enabled:(true false)' '--fromaddress+:' '--host+:' '--mailhost+:' '--mailuser+:' '--port+:' '--property+:' '--storeprotocol+:' '--storeprotocolclass+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance' '--transprotocol+:' '--transprotocolclass+:')
fred-o's avatar
fred-o committed
380
381
382
383
384
        ;;
    create-jdbc-connection-pool)
        _command_args=('--allownoncomponentcallers+:allownoncomponentcallers:(true false)' '--associatewiththread+:associatewiththread:(true false)' '--creationretryattempts+:' '--creationretryinterval+:' '--datasourceclassname+:' '--description+:' '--driverclassname+:' '--failconnection+:failconnection:(true false)' '--host+:' '--idletimeout+:' '--initsql+:' '--isconnectvalidatereq+:isconnectvalidatereq:(true false)' '--isisolationguaranteed+:isisolationguaranteed:(true false)' '--isolationlevel+:' '--lazyconnectionassociation+:lazyconnectionassociation:(true false)' '--lazyconnectionenlistment+:lazyconnectionenlistment:(true false)' '--leakreclaim+:leakreclaim:(true false)' '--leaktimeout+:' '--matchconnections+:matchconnections:(true false)' '--maxconnectionusagecount+:' '--maxpoolsize+:' '--maxwait+:' '--nontransactionalconnections+:nontransactionalconnections:(true false)' '--ping+:ping:(true false)' '--pooling+:pooling:(true false)' '--poolresize+:' '--port+:' '--property+:' '--restype+:restype:(javax.sql.DataSource javax.sql.XADataSource javax.sql.ConnectionPoolDataSource java.sql.Driver)' '--sqltracelisteners+:' '--statementcachesize+:' '--statementleakreclaim+:statementleakreclaim:(true false)' '--statementleaktimeout+:' '--statementtimeout+:' '--steadypoolsize+:' '--target+:' '--validateatmostonceperiod+:' '--validationclassname+:' '--validationmethod+:validationmethod:(auto-commit meta-data table custom-validation)' '--validationtable+:' '--wrapjdbcobjects+:wrapjdbcobjects:(true false)')
        ;;
    create-jdbc-resource)
fred-o's avatar
fred-o committed
385
        _command_args=('--connectionpoolid+:' '--description+:' '--enabled+:enabled:(true false)' '--host+:' '--port+:' '--property+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance')
fred-o's avatar
fred-o committed
386
387
        ;;
    create-jms-host)
fred-o's avatar
fred-o committed
388
        _command_args=('--host+:' '--mqhost+:' '--mqpassword+:' '--mqport+:' '--mquser+:' '--port+:' '--property+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
389
390
        ;;
    create-jms-resource)
fred-o's avatar
fred-o committed
391
        _command_args=('--description+:' '--enabled+:enabled:(true false)' '--host+:' '--port+:' '--property+:' '--restype+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance')
fred-o's avatar
fred-o committed
392
393
        ;;
    create-jmsdest)
fred-o's avatar
fred-o committed
394
        _command_args=('--desttype+:' '--host+:' '--port+:' '--property+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
395
396
        ;;
    create-jndi-resource)
fred-o's avatar
fred-o committed
397
        _command_args=('--description+:' '--enabled+:enabled:(true false)' '--factoryclass+:' '--host+:' '--jndilookupname+:' '--port+:' '--property+:' '--restype+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance')
fred-o's avatar
fred-o committed
398
399
        ;;
    create-jvm-options)
fred-o's avatar
fred-o committed
400
        _command_args=('--host+:' '--port+:' '--profiler+:profiler:(true false)' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
401
402
        ;;
    create-lifecycle-module)
fred-o's avatar
fred-o committed
403
        _command_args=('--classname+:' '--classpath+:' '--description+:' '--enabled+:enabled:(true false)' '--failurefatal+:failurefatal:(true false)' '--host+:' '--loadorder+:' '--port+:' '--property+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance')
fred-o's avatar
fred-o committed
404
405
        ;;
    create-local-instance)
fred-o's avatar
fred-o committed
406
        _command_args=('--checkports+:checkports:(true false)' '--cluster+:cluster:_asadmin_clusters' '--config+:' '--lbenabled+:lbenabled:(true false)' '--node+:node:_asadmin_nodes' '--nodedir+:' '--portbase+:' '--savemasterpassword+:savemasterpassword:(true false)' '--systemproperties+:' '--usemasterpassword+:usemasterpassword:(true false)')
fred-o's avatar
fred-o committed
407
408
        ;;
    create-message-security-provider)
fred-o's avatar
fred-o committed
409
        _command_args=('--classname+:' '--host+:' '--isdefaultprovider+:isdefaultprovider:(true false)' '--layer+:layer:(SOAP HttpServlet)' '--port+:' '--property+:' '--providertype+:providertype:(client server client-server)' '--requestauthrecipient+:' '--requestauthsource+:' '--responseauthrecipient+:' '--responseauthsource+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
410
411
        ;;
    create-network-listener)
fred-o's avatar
fred-o committed
412
        _command_args=('--address+:' '--enabled+:enabled:(true false)' '--host+:' '--jkenabled+:jkenabled:(true false)' '--listenerport+:' '--port+:' '--protocol+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance' '--threadpool+:' '--transport+:')
fred-o's avatar
fred-o committed
413
414
415
416
417
418
419
420
421
422
423
424
425
426
        ;;
    create-node-config)
        _command_args=('--host+:' '--installdir+:' '--nodedir+:' '--nodehost+:' '--port+:')
        ;;
    create-node-dcom)
        _command_args=('--archive+:' '--force+:force:(true false)' '--host+:' '--install+:install:(true false)' '--installdir+:' '--nodedir+:' '--nodehost+:' '--port+:' '--windowsdomain+:' '--windowspassword+:' '--windowsuser+:')
        ;;
    create-node-ssh)
        _command_args=('--archive+:' '--force+:force:(true false)' '--host+:' '--install+:install:(true false)' '--installdir+:' '--nodedir+:' '--nodehost+:' '--port+:' '--sshkeyfile+:' '--sshkeypassphrase+:' '--sshpassword+:' '--sshport+:' '--sshuser+:')
        ;;
    create-password-alias)
        _command_args=('--aliaspassword+:' '--host+:' '--port+:')
        ;;
    create-profiler)
fred-o's avatar
fred-o committed
427
        _command_args=('--classpath+:' '--enabled+:enabled:(true false)' '--host+:' '--nativelibrarypath+:' '--port+:' '--property+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
428
429
        ;;
    create-protocol)
fred-o's avatar
fred-o committed
430
        _command_args=('--host+:' '--port+:' '--securityenabled+:securityenabled:(true false)' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
431
432
        ;;
    create-protocol-filter)
fred-o's avatar
fred-o committed
433
        _command_args=('--classname+:' '--host+:' '--port+:' '--protocol+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
434
435
        ;;
    create-protocol-finder)
fred-o's avatar
fred-o committed
436
        _command_args=('--classname+:' '--host+:' '--port+:' '--protocol+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance' '--targetprotocol+:')
fred-o's avatar
fred-o committed
437
438
439
440
441
        ;;
    create-resource-adapter-config)
        _command_args=('--host+:' '--objecttype+:' '--port+:' '--property+:' '--target+:' '--threadpoolid+:')
        ;;
    create-resource-ref)
fred-o's avatar
fred-o committed
442
        _command_args=('--enabled+:enabled:(true false)' '--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_das_standalone_instance')
fred-o's avatar
fred-o committed
443
444
        ;;
    create-service)
fred-o's avatar
fred-o committed
445
        _command_args=('*:instances:_asadmin_instances' '--domaindir+:domaindir:directory:_files' '--dry-run+:dry-run:(true false)' '--force+:force:(true false)' '--name+:' '--node+:node:_asadmin_nodes' '--nodedir+:' '--serviceproperties+:' '--serviceuser+:')
fred-o's avatar
fred-o committed
446
447
        ;;
    create-ssl)
fred-o's avatar
fred-o committed
448
        _command_args=('--certname+:' '--clientauthenabled+:clientauthenabled:(true false)' '--host+:' '--port+:' '--ssl2ciphers+:' '--ssl2enabled+:ssl2enabled:(true false)' '--ssl3enabled+:ssl3enabled:(true false)' '--ssl3tlsciphers+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance' '--tlsenabled+:tlsenabled:(true false)' '--tlsrollbackenabled+:tlsrollbackenabled:(true false)' '--type+:type:(network-listener http-listener iiop-listener iiop-service jmx-connector)')
fred-o's avatar
fred-o committed
449
450
        ;;
    create-system-properties)
fred-o's avatar
fred-o committed
451
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_config_das_domain_standalone_instance')
fred-o's avatar
fred-o committed
452
453
        ;;
    create-threadpool)
fred-o's avatar
fred-o committed
454
        _command_args=('--host+:' '--idletimeout+:' '--maxqueuesize+:' '--maxthreadpoolsize+:' '--minthreadpoolsize+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance' '--workqueues+:')
fred-o's avatar
fred-o committed
455
456
        ;;
    create-transport)
fred-o's avatar
fred-o committed
457
        _command_args=('--acceptorthreads+:' '--buffersizebytes+:' '--bytebuffertype+:' '--classname+:' '--displayconfiguration+:displayconfiguration:(true false)' '--enablesnoop+:enablesnoop:(true false)' '--host+:' '--idlekeytimeoutseconds+:' '--maxconnectionscount+:' '--port+:' '--readtimeoutmillis+:' '--selectionkeyhandler+:' '--selectorpolltimeoutmillis+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance' '--tcpnodelay+:tcpnodelay:(true false)' '--writetimeoutmillis+:')
fred-o's avatar
fred-o committed
458
459
        ;;
    create-virtual-server)
fred-o's avatar
fred-o committed
460
        _command_args=('--defaultwebmodule+:' '--host+:' '--hosts+:' '--httplisteners+:' '--logfile+:' '--networklisteners+:' '--port+:' '--property+:' '--state+:state:(on off disabled)' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
461
462
        ;;
    delete-admin-object)
fred-o's avatar
fred-o committed
463
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
464
465
        ;;
    delete-application-ref)
fred-o's avatar
fred-o committed
466
        _command_args=('--cascade+:cascade:(true false)' '--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_das_standalone_instance')
fred-o's avatar
fred-o committed
467
468
        ;;
    delete-audit-module)
fred-o's avatar
fred-o committed
469
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
470
471
        ;;
    delete-auth-realm)
fred-o's avatar
fred-o committed
472
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
473
474
475
476
477
478
479
480
        ;;
    delete-config)
        _command_args=('--host+:' '--port+:')
        ;;
    delete-connector-connection-pool)
        _command_args=('--cascade+:cascade:(true false)' '--host+:' '--port+:' '--target+:')
        ;;
    delete-connector-resource)
fred-o's avatar
fred-o committed
481
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance')
fred-o's avatar
fred-o committed
482
483
484
485
486
487
488
489
        ;;
    delete-connector-security-map)
        _command_args=('--host+:' '--poolname+:' '--port+:' '--target+:')
        ;;
    delete-connector-work-security-map)
        _command_args=('--host+:' '--port+:' '--raname+:')
        ;;
    delete-custom-resource)
fred-o's avatar
fred-o committed
490
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance')
fred-o's avatar
fred-o committed
491
492
493
494
495
        ;;
    delete-domain)
        _command_args=('--domaindir+:')
        ;;
    delete-file-user)
fred-o's avatar
fred-o committed
496
        _command_args=('--authrealmname+:' '--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
497
498
        ;;
    delete-http)
fred-o's avatar
fred-o committed
499
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
500
501
502
503
504
505
506
507
        ;;
    delete-http-health-checker)
        _command_args=('--config+:' '--host+:' '--port+:')
        ;;
    delete-http-lb-ref)
        _command_args=('--config+:' '--force+:' '--host+:' '--lbname+:' '--port+:')
        ;;
    delete-http-listener)
fred-o's avatar
fred-o committed
508
        _command_args=('--host+:' '--port+:' '--secure+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
509
510
        ;;
    delete-http-redirect)
fred-o's avatar
fred-o committed
511
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
512
513
        ;;
    delete-iiop-listener)
fred-o's avatar
fred-o committed
514
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
515
516
        ;;
    delete-instance)
fred-o's avatar
fred-o committed
517
        _command_args=('*:instances:_asadmin_instances' '--host+:' '--port+:' '--terse+:terse:(true false)')
fred-o's avatar
fred-o committed
518
519
        ;;
    delete-jacc-provider)
fred-o's avatar
fred-o committed
520
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
521
522
        ;;
    delete-javamail-resource)
fred-o's avatar
fred-o committed
523
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance')
fred-o's avatar
fred-o committed
524
525
526
527
528
        ;;
    delete-jdbc-connection-pool)
        _command_args=('--cascade+:cascade:(true false)' '--host+:' '--port+:' '--target+:')
        ;;
    delete-jdbc-resource)
fred-o's avatar
fred-o committed
529
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance')
fred-o's avatar
fred-o committed
530
531
        ;;
    delete-jms-host)
fred-o's avatar
fred-o committed
532
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
533
534
        ;;
    delete-jms-resource)
fred-o's avatar
fred-o committed
535
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance')
fred-o's avatar
fred-o committed
536
537
        ;;
    delete-jmsdest)
fred-o's avatar
fred-o committed
538
        _command_args=('--desttype+:' '--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
539
540
        ;;
    delete-jndi-resource)
fred-o's avatar
fred-o committed
541
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance')
fred-o's avatar
fred-o committed
542
543
        ;;
    delete-jvm-options)
fred-o's avatar
fred-o committed
544
        _command_args=('--host+:' '--port+:' '--profiler+:profiler:(true false)' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
545
546
        ;;
    delete-lifecycle-module)
fred-o's avatar
fred-o committed
547
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance')
fred-o's avatar
fred-o committed
548
549
        ;;
    delete-local-instance)
fred-o's avatar
fred-o committed
550
        _command_args=('*:instances:_asadmin_instances' '--node+:node:_asadmin_nodes' '--nodedir+:')
fred-o's avatar
fred-o committed
551
552
        ;;
    delete-log-levels)
fred-o's avatar
fred-o committed
553
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
554
555
        ;;
    delete-message-security-provider)
fred-o's avatar
fred-o committed
556
        _command_args=('--host+:' '--layer+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
557
558
        ;;
    delete-network-listener)
fred-o's avatar
fred-o committed
559
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
560
561
        ;;
    delete-node-config)
fred-o's avatar
fred-o committed
562
        _command_args=('*:nodes:_asadmin_nodes_config' '--host+:' '--port+:')
fred-o's avatar
fred-o committed
563
564
        ;;
    delete-node-dcom)
fred-o's avatar
fred-o committed
565
        _command_args=('*:nodes:_asadmin_nodes_dcom' '--force+:force:(true false)' '--host+:' '--port+:' '--uninstall+:uninstall:(true false)')
fred-o's avatar
fred-o committed
566
567
        ;;
    delete-node-ssh)
fred-o's avatar
fred-o committed
568
        _command_args=('*:nodes:_asadmin_nodes_ssh' '--force+:force:(true false)' '--host+:' '--port+:' '--uninstall+:uninstall:(true false)')
fred-o's avatar
fred-o committed
569
570
571
572
573
        ;;
    delete-password-alias)
        _command_args=('--host+:' '--port+:')
        ;;
    delete-profiler)
fred-o's avatar
fred-o committed
574
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
575
576
        ;;
    delete-protocol)
fred-o's avatar
fred-o committed
577
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
578
579
        ;;
    delete-protocol-filter)
fred-o's avatar
fred-o committed
580
        _command_args=('--host+:' '--port+:' '--protocol+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
581
582
        ;;
    delete-protocol-finder)
fred-o's avatar
fred-o committed
583
        _command_args=('--host+:' '--port+:' '--protocol+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
584
585
586
587
588
        ;;
    delete-resource-adapter-config)
        _command_args=('--host+:' '--port+:' '--target+:')
        ;;
    delete-resource-ref)
fred-o's avatar
fred-o committed
589
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_das_standalone_instance')
fred-o's avatar
fred-o committed
590
591
        ;;
    delete-ssl)
fred-o's avatar
fred-o committed
592
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance' '--type+:type:(network-listener http-listener iiop-listener iiop-service jmx-connector)')
fred-o's avatar
fred-o committed
593
594
        ;;
    delete-system-property)
fred-o's avatar
fred-o committed
595
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_config_das_domain_standalone_instance')
fred-o's avatar
fred-o committed
596
597
        ;;
    delete-threadpool)
fred-o's avatar
fred-o committed
598
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
599
600
        ;;
    delete-transport)
fred-o's avatar
fred-o committed
601
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
602
603
        ;;
    delete-virtual-server)
fred-o's avatar
fred-o committed
604
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
605
606
        ;;
    deploy)
fred-o's avatar
fred-o committed
607
        _command_args=('*:directory:_files' '--asyncreplication+:asyncreplication:(true false)' '--availabilityenabled+:availabilityenabled:(true false)' '--contextroot+:' '--createtables+:createtables:(true false)' '--dbvendorname+:' '--deploymentplan+:deploymentplan:directory:_files' '--description+:' '--dropandcreatetables+:dropandcreatetables:(true false)' '--enabled+:enabled:(true false)' '--force+:force:(true false)' '--generatermistubs+:generatermistubs:(true false)' '--host+:' '--isredeploy+:isredeploy:(true false)' '--keepfailedstubs+:keepfailedstubs:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--lbenabled+:lbenabled:(true false)' '--libraries+:' '--logreportederrors+:logreportederrors:(true false)' '--name+:' '--port+:' '--precompilejsp+:precompilejsp:(true false)' '--properties+:' '--property+:' '--retrieve+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance' '--type+:' '--uniquetablenames+:uniquetablenames:(true false)' '--verify+:verify:(true false)' '--virtualservers+:')
fred-o's avatar
fred-o committed
608
609
        ;;
    deploydir)
fred-o's avatar
fred-o committed
610
        _command_args=('*:directory:_files' '--asyncreplication+:asyncreplication:(true false)' '--availabilityenabled+:availabilityenabled:(true false)' '--contextroot+:' '--createtables+:createtables:(true false)' '--dbvendorname+:' '--deploymentplan+:deploymentplan:directory:_files' '--description+:' '--dropandcreatetables+:dropandcreatetables:(true false)' '--enabled+:enabled:(true false)' '--force+:force:(true false)' '--generatermistubs+:generatermistubs:(true false)' '--host+:' '--isredeploy+:isredeploy:(true false)' '--keepfailedstubs+:keepfailedstubs:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--lbenabled+:lbenabled:(true false)' '--libraries+:' '--logreportederrors+:logreportederrors:(true false)' '--name+:' '--port+:' '--precompilejsp+:precompilejsp:(true false)' '--properties+:' '--property+:' '--retrieve+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance' '--type+:' '--uniquetablenames+:uniquetablenames:(true false)' '--verify+:verify:(true false)' '--virtualservers+:')
fred-o's avatar
fred-o committed
611
612
        ;;
    disable)
fred-o's avatar
fred-o committed
613
        _command_args=('--cascade+:cascade:(true false)' '--droptables+:droptables:(true false)' '--host+:' '--isredeploy+:isredeploy:(true false)' '--isundeploy+:isundeploy:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--port+:' '--properties+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance')
fred-o's avatar
fred-o committed
614
615
616
617
618
619
620
621
        ;;
    disable-http-lb-application)
        _command_args=('--host+:' '--name+:' '--port+:' '--timeout+:')
        ;;
    disable-http-lb-server)
        _command_args=('--host+:' '--port+:' '--timeout+:')
        ;;
    disable-monitoring)
fred-o's avatar
fred-o committed
622
        _command_args=('--host+:' '--modules+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
623
624
625
626
627
        ;;
    disable-secure-admin)
        _command_args=('--host+:' '--port+:')
        ;;
    enable)
fred-o's avatar
fred-o committed
628
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance')
fred-o's avatar
fred-o committed
629
630
631
632
633
634
635
636
        ;;
    enable-http-lb-application)
        _command_args=('--host+:' '--name+:' '--port+:')
        ;;
    enable-http-lb-server)
        _command_args=('--host+:' '--port+:')
        ;;
    enable-monitoring)
fred-o's avatar
fred-o committed
637
        _command_args=('--dtrace+:dtrace:(true false)' '--host+:' '--mbean+:mbean:(true false)' '--modules+:' '--options+:' '--pid+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
638
639
640
641
642
643
644
645
646
647
648
649
650
651
        ;;
    enable-secure-admin)
        _command_args=('--adminalias+:' '--host+:' '--instancealias+:' '--port+:')
        ;;
    export-http-lb-config)
        _command_args=('--config+:' '--host+:' '--lbname+:' '--lbtargets+:' '--port+:' '--property+:' '--retrievefile+:retrievefile:(true false)')
        ;;
    export-sync-bundle)
        _command_args=('--host+:' '--port+:' '--retrieve+:retrieve:(true false)' '--target+:')
        ;;
    flush-connection-pool)
        _command_args=('--appname+:' '--host+:' '--modulename+:' '--port+:')
        ;;
    flush-jmsdest)
fred-o's avatar
fred-o committed
652
        _command_args=('--desttype+:' '--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
653
654
        ;;
    freeze-transaction-service)
fred-o's avatar
fred-o committed
655
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_config_das_standalone_instance')
fred-o's avatar
fred-o committed
656
657
658
659
660
        ;;
    generate-domain-schema)
        _command_args=('--format+:' '--host+:' '--port+:' '--showdeprecated+:showdeprecated:(true false)' '--showsubclasses+:showsubclasses:(true false)')
        ;;
    generate-jvm-report)
fred-o's avatar
fred-o committed
661
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_clustered_instance_das_standalone_instance' '--type+:type:(summary thread class memory log)')
fred-o's avatar
fred-o committed
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
        ;;
    get)
        _command_args=('--host+:' '--monitor+:monitor:(true false)' '--port+:')
        ;;
    get-client-stubs)
        _command_args=('--appname+:' '--host+:' '--port+:')
        ;;
    get-health)
        _command_args=('--host+:' '--port+:')
        ;;
    help)
        _describe -t help-commands "asadmin help command" _1st_arguments
    ;;
    import-sync-bundle)
        _command_args=('--instance+:' '--node+:node:_asadmin_nodes' '--nodedir+:')
        ;;
    install-node)
        _command_args=('--archive+:' '--create+:create:(true false)' '--force+:force:(true false)' '--installdir+:' '--save+:save:(true false)' '--sshkeyfile+:' '--sshport+:' '--sshuser+:')
        ;;
    install-node-dcom)
        _command_args=('--archive+:' '--create+:create:(true false)' '--force+:force:(true false)' '--installdir+:' '--save+:save:(true false)' '--windowsdomain+:' '--windowsuser+:')
        ;;
    install-node-ssh)
        _command_args=('--archive+:' '--create+:create:(true false)' '--force+:force:(true false)' '--installdir+:' '--save+:save:(true false)' '--sshkeyfile+:' '--sshport+:' '--sshuser+:')
        ;;
    jms-ping)
fred-o's avatar
fred-o committed
688
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_config_das_standalone_instance')
fred-o's avatar
fred-o committed
689
690
691
692
693
        ;;
    list)
        _command_args=('--host+:' '--monitor+:monitor:(true false)' '--port+:')
        ;;
    list-admin-objects)
fred-o's avatar
fred-o committed
694
        _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_config_das_standalone_instance' '--host+:' '--port+:')
fred-o's avatar
fred-o committed
695
696
        ;;
    list-application-refs)
fred-o's avatar
fred-o committed
697
        _command_args=('*:targets:_asadmin_targets_cluster_das_standalone_instance' '--host+:' '--long+:long:(true false)' '--port+:' '--terse+:terse:(true false)')
fred-o's avatar
fred-o committed
698
699
        ;;
    list-applications)
fred-o's avatar
fred-o committed
700
        _command_args=('*:targets:_asadmin_targets_cluster_das_domain_standalone_instance' '--host+:' '--long+:long:(true false)' '--port+:' '--resources+:resources:(true false)' '--subcomponents+:subcomponents:(true false)' '--terse+:terse:(true false)' '--type+:')
fred-o's avatar
fred-o committed
701
702
        ;;
    list-audit-modules)
fred-o's avatar
fred-o committed
703
        _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_config_das_standalone_instance' '--host+:' '--port+:')
fred-o's avatar
fred-o committed
704
705
        ;;
    list-auth-realms)
fred-o's avatar
fred-o committed
706
        _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_config_das_standalone_instance' '--host+:' '--port+:')
fred-o's avatar
fred-o committed
707
708
709
710
711
712
713
714
715
716
717
        ;;
    list-backups)
        _command_args=('--backupconfig+:' '--backupdir+:' '--domaindir+:' '--long+:long:(true false)')
        ;;
    list-clusters)
        _command_args=('--host+:' '--port+:')
        ;;
    list-commands)
        _command_args=('--localonly+:localonly:(true false)' '--remoteonly+:remoteonly:(true false)')
        ;;
    list-components)
fred-o's avatar
fred-o committed
718
        _command_args=('*:targets:_asadmin_targets_cluster_das_domain_standalone_instance' '--host+:' '--long+:long:(true false)' '--port+:' '--resources+:resources:(true false)' '--subcomponents+:subcomponents:(true false)' '--terse+:terse:(true false)' '--type+:')
fred-o's avatar
fred-o committed
719
720
        ;;
    list-configs)
fred-o's avatar
fred-o committed
721
        _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_config_das_domain_standalone_instance' '--host+:' '--port+:')
fred-o's avatar
fred-o committed
722
723
724
725
726
        ;;
    list-connector-connection-pools)
        _command_args=('--host+:' '--port+:')
        ;;
    list-connector-resources)
fred-o's avatar
fred-o committed
727
        _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance' '--host+:' '--port+:')
fred-o's avatar
fred-o committed
728
729
        ;;
    list-connector-security-maps)
fred-o's avatar
fred-o committed
730
        _command_args=('--host+:' '--long+:long:(true false)' '--port+:' '--securitymap+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance')
fred-o's avatar
fred-o committed
731
732
733
734
735
736
737
738
        ;;
    list-connector-work-security-maps)
        _command_args=('--host+:' '--port+:' '--securitymap+:')
        ;;
    list-containers)
        _command_args=('--host+:' '--port+:')
        ;;
    list-custom-resources)
fred-o's avatar
fred-o committed
739
        _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance' '--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance')
fred-o's avatar
fred-o committed
740
741
742
743
744
745
746
747
748
749
750
        ;;
    list-descriptors)
        _command_args=('--host+:' '--port+:')
        ;;
    list-domains)
        _command_args=('--domaindir+:')
        ;;
    list-file-groups)
        _command_args=('--authrealmname+:' '--host+:' '--name+:' '--port+:')
        ;;
    list-file-users)
fred-o's avatar
fred-o committed
751
        _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_config_das_standalone_instance' '--authrealmname+:' '--host+:' '--port+:')
fred-o's avatar
fred-o committed
752
753
754
755
756
        ;;
    list-http-lb-configs)
        _command_args=('--host+:' '--port+:')
        ;;
    list-http-listeners)
fred-o's avatar
fred-o committed
757
        _command_args=('*:targets:_asadmin_targets_cluster_config_das_standalone_instance' '--host+:' '--long+:long:(true false)' '--port+:')
fred-o's avatar
fred-o committed
758
759
        ;;
    list-iiop-listeners)
fred-o's avatar
fred-o committed
760
        _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_config_das_domain_standalone_instance' '--host+:' '--port+:')
fred-o's avatar
fred-o committed
761
762
763
764
765
        ;;
    list-instances)
        _command_args=('--host+:' '--long+:long:(true false)' '--nostatus+:nostatus:(true false)' '--port+:' '--standaloneonly+:standaloneonly:(true false)' '--timeoutmsec+:')
        ;;
    list-jacc-providers)
fred-o's avatar
fred-o committed
766
        _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_config_das_standalone_instance' '--host+:' '--port+:')
fred-o's avatar
fred-o committed
767
768
        ;;
    list-javamail-resources)
fred-o's avatar
fred-o committed
769
        _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance' '--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance')
fred-o's avatar
fred-o committed
770
771
772
773
774
775
776
777
        ;;
    list-jdbc-connection-pools)
        _command_args=('--host+:' '--port+:')
        ;;
    list-jdbc-resources)
        _command_args=('--host+:' '--port+:')
        ;;
    list-jms-hosts)
fred-o's avatar
fred-o committed
778
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
779
780
        ;;
    list-jms-resources)
fred-o's avatar
fred-o committed
781
        _command_args=('*:targets:_asadmin_targets_cluster_das_domain_standalone_instance' '--host+:' '--port+:' '--restype+:')
fred-o's avatar
fred-o committed
782
783
        ;;
    list-jmsdest)
fred-o's avatar
fred-o committed
784
        _command_args=('*:targets:_asadmin_targets_cluster_config_das_standalone_instance' '--desttype+:' '--host+:' '--port+:' '--property+:')
fred-o's avatar
fred-o committed
785
786
        ;;
    list-jndi-entries)
fred-o's avatar
fred-o committed
787
        _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance' '--context+:' '--host+:' '--port+:')
fred-o's avatar
fred-o committed
788
789
        ;;
    list-jndi-resources)
fred-o's avatar
fred-o committed
790
        _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance' '--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance')
fred-o's avatar
fred-o committed
791
792
        ;;
    list-jvm-options)
fred-o's avatar
fred-o committed
793
        _command_args=('--host+:' '--port+:' '--profiler+:profiler:(true false)' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
794
795
796
797
798
        ;;
    list-libraries)
        _command_args=('--host+:' '--port+:' '--type+:type:(common ext app)')
        ;;
    list-lifecycle-modules)
fred-o's avatar
fred-o committed
799
        _command_args=('*:targets:_asadmin_targets_cluster_das_domain_standalone_instance' '--host+:' '--port+:' '--terse+:terse:(true false)')
fred-o's avatar
fred-o committed
800
801
        ;;
    list-log-attributes)
fred-o's avatar
fred-o committed
802
        _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_config_das_standalone_instance' '--host+:' '--port+:')
fred-o's avatar
fred-o committed
803
804
805
806
807
        ;;
    list-log-levels)
        _command_args=('--host+:' '--port+:')
        ;;
    list-message-security-providers)
fred-o's avatar
fred-o committed
808
        _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_config_das_standalone_instance' '--host+:' '--layer+:layer:(SOAP HttpServlet)' '--port+:')
fred-o's avatar
fred-o committed
809
810
811
812
813
        ;;
    list-modules)
        _command_args=('--host+:' '--port+:')
        ;;
    list-network-listeners)
fred-o's avatar
fred-o committed
814
        _command_args=('*:targets:_asadmin_targets_cluster_config_das_standalone_instance' '--host+:' '--port+:')
fred-o's avatar
fred-o committed
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
        ;;
    list-nodes)
        _command_args=('--host+:' '--long+:long:(true false)' '--port+:' '--terse+:terse:(true false)')
        ;;
    list-nodes-config)
        _command_args=('--host+:' '--long+:long:(true false)' '--port+:' '--terse+:terse:(true false)')
        ;;
    list-nodes-dcom)
        _command_args=('--host+:' '--long+:long:(true false)' '--port+:' '--terse+:terse:(true false)')
        ;;
    list-nodes-ssh)
        _command_args=('--host+:' '--long+:long:(true false)' '--port+:' '--terse+:terse:(true false)')
        ;;
    list-password-aliases)
        _command_args=('--host+:' '--port+:')
        ;;
    list-persistence-types)
        _command_args=('--host+:' '--port+:' '--type+:')
        ;;
    list-protocol-filters)
fred-o's avatar
fred-o committed
835
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
836
837
        ;;
    list-protocol-finders)
fred-o's avatar
fred-o committed
838
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
839
840
        ;;
    list-protocols)
fred-o's avatar
fred-o committed
841
        _command_args=('*:targets:_asadmin_targets_cluster_config_das_standalone_instance' '--host+:' '--port+:')
fred-o's avatar
fred-o committed
842
843
844
845
846
        ;;
    list-resource-adapter-configs)
        _command_args=('--host+:' '--long+:long:(true false)' '--port+:' '--raname+:')
        ;;
    list-resource-refs)
fred-o's avatar
fred-o committed
847
        _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_das_standalone_instance' '--host+:' '--port+:')
fred-o's avatar
fred-o committed
848
849
850
851
852
853
854
855
        ;;
    list-sub-components)
        _command_args=('--appname+:' '--host+:' '--port+:' '--resources+:resources:(true false)' '--terse+:terse:(true false)' '--type+:')
        ;;
    list-supported-cipher-suites)
        _command_args=('--host+:' '--port+:')
        ;;
    list-system-properties)
fred-o's avatar
fred-o committed
856
        _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_config_das_domain_standalone_instance' '--host+:' '--port+:')
fred-o's avatar
fred-o committed
857
858
859
860
861
        ;;
    list-threadpools)
        _command_args=('--host+:' '--port+:')
        ;;
    list-timers)
fred-o's avatar
fred-o committed
862
        _command_args=('*:targets:_asadmin_targets_cluster_das_standalone_instance' '--host+:' '--port+:')
fred-o's avatar
fred-o committed
863
864
        ;;
    list-transports)
fred-o's avatar
fred-o committed
865
        _command_args=('*:targets:_asadmin_targets_cluster_config_das_standalone_instance' '--host+:' '--port+:')
fred-o's avatar
fred-o committed
866
867
        ;;
    list-virtual-servers)
fred-o's avatar
fred-o committed
868
        _command_args=('*:targets:_asadmin_targets_cluster_config_das_standalone_instance' '--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
869
870
871
872
873
874
875
876
        ;;
    list-web-context-param)
        _command_args=('--host+:' '--name+:' '--port+:')
        ;;
    list-web-env-entry)
        _command_args=('--host+:' '--name+:' '--port+:')
        ;;
    login)
fred-o's avatar
fred-o committed
877
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_das_standalone_instance')
fred-o's avatar
fred-o committed
878
879
        ;;
    migrate-timers)
fred-o's avatar
fred-o committed
880
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_clustered_instance_das')
fred-o's avatar
fred-o committed
881
882
883
884
885
886
887
888
889
890
891
        ;;
    monitor)
        _command_args=('--filename+:filename:directory:_files' '--filter+:' '--interval+:' '--type+:')
        ;;
    multimode)
        _command_args=('--encoding+:' '--file+:file:directory:_files' '--printprompt+:printprompt:(true false)')
        ;;
    ping-connection-pool)
        _command_args=('--appname+:' '--host+:' '--modulename+:' '--port+:' '--target+:')
        ;;
    ping-node-dcom)
fred-o's avatar
fred-o committed
892
        _command_args=('*:nodes:_asadmin_nodes_dcom' '--host+:' '--port+:' '--validate+:validate:(true false)')
fred-o's avatar
fred-o committed
893
894
        ;;
    ping-node-ssh)
fred-o's avatar
fred-o committed
895
        _command_args=('*:nodes:_asadmin_nodes_ssh' '--host+:' '--port+:' '--validate+:validate:(true false)')
fred-o's avatar
fred-o committed
896
897
        ;;
    recover-transactions)
fred-o's avatar
fred-o committed
898
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_clustered_instance_das_standalone_instance' '--transactionlogdir+:')
fred-o's avatar
fred-o committed
899
900
        ;;
    redeploy)
fred-o's avatar
fred-o committed
901
        _command_args=('*:directory:_files' '--asyncreplication+:asyncreplication:(true false)' '--availabilityenabled+:availabilityenabled:(true false)' '--contextroot+:' '--createtables+:createtables:(true false)' '--dbvendorname+:' '--deploymentplan+:deploymentplan:directory:_files' '--description+:' '--dropandcreatetables+:dropandcreatetables:(true false)' '--enabled+:enabled:(true false)' '--force+:force:(true false)' '--generatermistubs+:generatermistubs:(true false)' '--host+:' '--isredeploy+:isredeploy:(true false)' '--keepfailedstubs+:keepfailedstubs:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--lbenabled+:lbenabled:(true false)' '--libraries+:' '--logreportederrors+:logreportederrors:(true false)' '--name+:' '--port+:' '--precompilejsp+:precompilejsp:(true false)' '--properties+:' '--property+:' '--retrieve+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance' '--type+:' '--uniquetablenames+:uniquetablenames:(true false)' '--verify+:verify:(true false)' '--virtualservers+:')
fred-o's avatar
fred-o committed
902
903
        ;;
    remove-library)
fred-o's avatar
fred-o committed
904
        _command_args=('*:libraries:_asadmin_libraries' '--host+:' '--port+:' '--type+:type:(common ext app)')
fred-o's avatar
fred-o committed
905
906
907
908
909
        ;;
    restart-domain)
        _command_args=('--debug+:debug:(true false)' '--domaindir+:' '--force+:force:(true false)' '--kill+:kill:(true false)')
        ;;
    restart-instance)
fred-o's avatar
fred-o committed
910
        _command_args=('*:instances:_asadmin_instances' '--debug+:' '--host+:' '--port+:')
fred-o's avatar
fred-o committed
911
912
        ;;
    restart-local-instance)
fred-o's avatar
fred-o committed
913
        _command_args=('*:instances:_asadmin_instances' '--debug+:debug:(true false)' '--force+:force:(true false)' '--kill+:kill:(true false)' '--node+:node:_asadmin_nodes' '--nodedir+:')
fred-o's avatar
fred-o committed
914
915
916
917
918
        ;;
    restore-domain)
        _command_args=('--backupconfig+:' '--backupdir+:' '--description+:' '--domaindir+:' '--filename+:' '--force+:force:(true false)' '--long+:long:(true false)')
        ;;
    rollback-transaction)
fred-o's avatar
fred-o committed
919
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_clustered_instance_das_standalone_instance' '--transaction_id+:')
fred-o's avatar
fred-o committed
920
921
        ;;
    rotate-log)
fred-o's avatar
fred-o committed
922
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_das_standalone_instance')
fred-o's avatar
fred-o committed
923
924
925
926
927
        ;;
    set)
        _command_args=('--host+:' '--port+:')
        ;;
    set-log-attributes)
fred-o's avatar
fred-o committed
928
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
929
930
        ;;
    set-log-levels)
fred-o's avatar
fred-o committed
931
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
fred-o's avatar
fred-o committed
932
933
934
935
936
937
938
939
940
941
942
        ;;
    set-web-context-param)
        _command_args=('--description+:' '--host+:' '--ignoredescriptoritem+:ignoredescriptoritem:(true false)' '--name+:' '--port+:' '--value+:')
        ;;
    set-web-env-entry)
        _command_args=('--description+:' '--host+:' '--ignoredescriptoritem+:ignoredescriptoritem:(true false)' '--name+:' '--port+:' '--type+:' '--value+:')
        ;;
    setup-ssh)
        _command_args=('--generatekey+:generatekey:(true false)' '--sshkeyfile+:' '--sshport+:' '--sshpublickeyfile+:' '--sshuser+:')
        ;;
    show-component-status)
fred-o's avatar
fred-o committed
943
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance')
fred-o's avatar
fred-o committed
944
945
        ;;
    start-cluster)
fred-o's avatar
fred-o committed
946
        _command_args=('*:clusters:_asadmin_clusters' '--autohadboverride+:autohadboverride:(true false)' '--host+:' '--port+:' '--verbose+:verbose:(true false)')
fred-o's avatar
fred-o committed
947
948
949
950
951
952
953
954
        ;;
    start-database)
        _command_args=('--dbhome+:' '--dbhost+:' '--dbport+:' '--jvmoptions+:')
        ;;
    start-domain)
        _command_args=('--debug+:debug:(true false)' '--domaindir+:' '--upgrade+:upgrade:(true false)' '--verbose+:verbose:(true false)')
        ;;
    start-instance)
fred-o's avatar
fred-o committed
955
        _command_args=('*:instances:_asadmin_instances' '--debug+:debug:(true false)' '--host+:' '--port+:' '--setenv+:' '--sync+:sync:(none normal full)' '--terse+:terse:(true false)')
fred-o's avatar
fred-o committed
956
957
        ;;
    start-local-instance)
fred-o's avatar
fred-o committed
958
        _command_args=('*:instances:_asadmin_instances' '--debug+:debug:(true false)' '--node+:node:_asadmin_nodes' '--nodedir+:' '--sync+:sync:(none normal full)' '--verbose+:verbose:(true false)')
fred-o's avatar
fred-o committed
959
960
        ;;
    stop-cluster)
fred-o's avatar
fred-o committed
961
        _command_args=('*:clusters:_asadmin_clusters' '--autohadboverride+:autohadboverride:(true false)' '--host+:' '--kill+:kill:(true false)' '--port+:' '--verbose+:verbose:(true false)')
fred-o's avatar
fred-o committed
962
963
964
965
966
967
968
969
        ;;
    stop-database)
        _command_args=('--dbhost+:' '--dbport+:' '--dbuser+:')
        ;;
    stop-domain)
        _command_args=('--domaindir+:' '--force+:force:(true false)' '--kill+:kill:(true false)')
        ;;
    stop-instance)
fred-o's avatar
fred-o committed
970
        _command_args=('*:instances:_asadmin_instances' '--force+:force:(true false)' '--host+:' '--kill+:kill:(true false)' '--port+:')
fred-o's avatar
fred-o committed
971
972
        ;;
    stop-local-instance)
fred-o's avatar
fred-o committed
973
        _command_args=('*:instances:_asadmin_instances' '--force+:force:(true false)' '--kill+:kill:(true false)' '--node+:node:_asadmin_nodes' '--nodedir+:')
fred-o's avatar
fred-o committed
974
975
976
977
978
        ;;
    test-upgrade)
        _command_args=('--host+:' '--port+:')
        ;;
    undeploy)
fred-o's avatar
fred-o committed
979
        _command_args=('--cascade+:cascade:(true false)' '--droptables+:droptables:(true false)' '--host+:' '--isredeploy+:isredeploy:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--port+:' '--properties+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance')
fred-o's avatar
fred-o committed
980
981
        ;;
    unfreeze-transaction-service)
fred-o's avatar
fred-o committed
982
        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_config_das_standalone_instance')
fred-o's avatar
fred-o committed
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
        ;;
    uninstall-node)
        _command_args=('--force+:force:(true false)' '--installdir+:' '--sshkeyfile+:' '--sshport+:' '--sshuser+:')
        ;;
    uninstall-node-dcom)
        _command_args=('--force+:force:(true false)' '--installdir+:' '--windowsdomain+:' '--windowsuser+:')
        ;;
    uninstall-node-ssh)
        _command_args=('--force+:force:(true false)' '--installdir+:' '--sshkeyfile+:' '--sshport+:' '--sshuser+:')
        ;;
    unset-web-context-param)
        _command_args=('--host+:' '--name+:' '--port+:')
        ;;
    unset-web-env-entry)
        _command_args=('--host+:' '--name+:' '--port+:')
        ;;
    update-connector-security-map)
        _command_args=('--addprincipals+:' '--addusergroups+:' '--host+:' '--mappedpassword+:' '--mappedusername+:' '--poolname+:' '--port+:' '--removeprincipals+:' '--removeusergroups+:' '--target+:')
        ;;
    update-connector-work-security-map)
        _command_args=('--addgroups+:' '--addprincipals+:' '--host+:' '--port+:' '--raname+:' '--removegroups+:' '--removeprincipals+:')
        ;;
    update-file-user)
fred-o's avatar
fred-o committed
1006
        _command_args=('--authrealmname+:' '--groups+:' '--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance' '--userpassword+:')
fred-o's avatar
fred-o committed
1007
1008
        ;;
    update-node-config)
fred-o's avatar
fred-o committed
1009
        _command_args=('*:nodes:_asadmin_nodes_config' '--host+:' '--installdir+:' '--nodedir+:' '--nodehost+:' '--port+:')
fred-o's avatar
fred-o committed
1010
1011
        ;;
    update-node-dcom)
fred-o's avatar
fred-o committed
1012
        _command_args=('*:nodes:_asadmin_nodes_dcom' '--force+:force:(true false)' '--host+:' '--installdir+:' '--nodedir+:' '--nodehost+:' '--port+:' '--windowsdomain+:' '--windowspassword+:' '--windowsuser+:')
fred-o's avatar
fred-o committed
1013
1014
        ;;
    update-node-ssh)
fred-o's avatar
fred-o committed
1015
        _command_args=('*:nodes:_asadmin_nodes_ssh' '--force+:force:(true false)' '--host+:' '--installdir+:' '--nodedir+:' '--nodehost+:' '--port+:' '--sshkeyfile+:' '--sshkeypassphrase+:' '--sshpassword+:' '--sshport+:' '--sshuser+:')
fred-o's avatar
fred-o committed
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
        ;;
    update-password-alias)
        _command_args=('--aliaspassword+:' '--host+:' '--port+:')
        ;;
    uptime)
        _command_args=('--host+:' '--milliseconds+:milliseconds:(true false)' '--port+:')
        ;;
    validate-dcom)
        _command_args=('--host+:' '--port+:' '--remotetestdir+:' '--verbose+:verbose:(true false)' '--windowsdomain+:' '--windowspassword+:' '--windowsuser+:')
        ;;
    validate-multicast)
        _command_args=('--bindaddress+:' '--multicastaddress+:' '--multicastport+:' '--sendperiod+:' '--timeout+:' '--timetolive+:' '--verbose+:verbose:(true false)')
        ;;
    verify-domain-xml)
        _command_args=('--domaindir+:')
        ;;
    version)
        _command_args=('--local+:local:(true false)' '--terse+:terse:(true false)' '--verbose+:verbose:(true false)')
        ;;
1035
1036
esac

fred-o's avatar
fred-o committed
1037

fred-o's avatar
fred-o committed
1038
1039
1040
1041
_asadmin_clusters() {
    compadd $(command asadmin list-clusters --terse | sed 's/ .*//')
}

fred-o's avatar
fred-o committed
1042
1043
1044
1045
_asadmin_configs() {
    compadd $(command asadmin list-configs --terse)
}

fred-o's avatar
fred-o committed
1046
1047
1048
1049
_asadmin_instances() {
    compadd $(command asadmin list-instances --terse --nostatus domain)
}

fred-o's avatar
fred-o committed
1050
1051
1052
1053
_asadmin_instances_standalone() {
    compadd $(command asadmin list-instances --terse --standaloneonly --nostatus domain)
}

fred-o's avatar
fred-o committed
1054
1055
1056
1057
1058
1059
1060
1061
_asadmin_libraries() {
    compadd $(command asadmin list-libraries --terse)
}

_asadmin_nodes() {
    compadd $(command asadmin list-nodes --terse)
}

fred-o's avatar
fred-o committed
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
_asadmin_nodes_config() {
    compadd $(command asadmin list-nodes-config --terse)
}

_asadmin_nodes_dcom() {
    compadd $(command asadmin list-nodes-dcom --terse)
}

_asadmin_nodes_ssh() {
    compadd $(command asadmin list-nodes-ssh --terse)
}

fred-o's avatar
fred-o committed
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
_asadmin_targets() {
    _asadmin_instances
    _asadmin_clusters
    _asadmin_configs
    compadd domain server
}

_asadmin_targets_cluster_clustered_instance_config_das_domain_standalone_instance() {
    _asadmin_instances
    _asadmin_clusters
    _asadmin_configs
    compadd domain server
}

_asadmin_targets_cluster_clustered_instance_config_das_standalone_instance() {
    _asadmin_instances
    _asadmin_clusters
    _asadmin_configs
    compadd server
}

_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance() {
    _asadmin_instances
    _asadmin_clusters
    compadd domain server
}

_asadmin_targets_cluster_clustered_instance_das_standalone_instance() {
    _asadmin_instances
    _asadmin_clusters
    _asadmin_configs
    compadd server
}

_asadmin_targets_cluster_config_das_standalone_instance() {
    _asadmin_instances_standalone
    _asadmin_clusters
    _asadmin_configs
    compadd server
}

_asadmin_targets_cluster_das_domain_standalone_instance() {
    _asadmin_instances_standalone
    _asadmin_clusters
    compadd domain server
}

_asadmin_targets_cluster_das_standalone_instance() {
    _asadmin_instances_standalone
    _asadmin_clusters
    compadd server
}

_asadmin_targets_clustered_instance_das() {
    _asadmin_instances
    compadd server
}

_asadmin_targets_clustered_instance_das_standalone_instance() {
    _asadmin_instances
    compadd server
}

_asadmin_targets_cluster_standalone_instance() {
    _asadmin_clusters
    _asadmin_instances_standalone
}


fred-o's avatar
fred-o committed
1143
compadd '--help'
1144
1145
_arguments \
    $_command_args \
fred-o's avatar
fred-o committed
1146
    &&  return 0;