Documentation on the "as-admin" tool for "as-admin -i ;file-path;".

Documentation on the "as-admin" tool for "as-admin -i ;file-path;".

book

Article ID: KB0092780

calendar_today

Updated On:

Products Versions
TIBCO ActiveSpaces -
Not Applicable -

Description

Description:
Documentation question on the 'as-admin' tool command line parameters. For example, with the following invocation "as-admin -i <file-path>", can the '-i' argument be specified more than once to execute multiple files or will the "-i " argument take a list of files?  What are the other parameters that can be passed to as-admin. Regarding "-i <file-path>", what are the commands that can be included in the file?  What is the syntax of that file and does it allow comments?  Are the commands which can be included in that file only those commands found by running "help" inside as-admin? In particular, is there a better way to reference other files (kind of like an "include").

Resolution

  • The -i parameter is for a single file to include admin commands. It does not support multiple files. You would need to merge multiple files into a single file.

  • Each line in the file is a command to execute. You cannot divide a single command into multiple lines and is valid for both script and the as-admin console.
?Invalid usage?
create space name "testspace" 
(field name "id" type "int",
fie
?l?
d name "id2" type "string)
key(fields("id"))
replication_count 1

Correct usage
create space name "testspace" (field name "id" type "int", fie
?l?
d name "id2" type "string) key(fields("id")) replication_count 1
  • All commands are executed as-admin commands. You can do this while as-admin is running.
  • Comments are supported by putting a "#" (pound character) before the line.
# this is comment for connect?
connect name "ms" discovery "tibpgm"
  • It supports running system commands by putting a "!" (bang character) before the command. This is valid for the as-admin console as well.
?!?ls -la 

?Perform the following inside the as-admin to capture top information. Use top shortcuts 'q' to quit and go back to as-admin. ?

?as-admin> !top?

Issue/Introduction

Documentation on the "as-admin" tool for "as-admin -i ;file-path;".

Additional Information

ActiveSpaces Administration guide