Sanav GC-101 Manual de Instalação Página 22

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 60
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 21
7) Database Administration
7.a) Important note regarding ".sh" and ".bat" command files:
Commands ending with ".sh" or ".bat" MUST be executed from the OpenGTS installation directory. Attempting
to execute these commands from another directory may result in a "ClassNotFoundException" or
"NoClassDefFoundError" error, or similar. (This means that you must cd to $GTS_HOME, then execute the
command as "bin/<command>")
7.b) Important note for Windows users:
When using the ".bat" version of the commands in a DOS window, command arguments such as
-rootUser=root must either be enclosed in quotes, as in "-rootUser=root", or be specified with a colon
instead of an equal sign, as in -rootUser:root .
Most database administration (Account, User, and Device, etc) can be performed through either the command-line
utilities or through the web-interface. The example Account/User/Device editing examples shown below describe only
a few of the possible fields in each of these tables. The file 'SCHEMA.txt', included with the OpenGTS package,
contains a list of the current tables, and the fields in each of the available tables.
A list of the currently defined tables and fields can also be generated with the following command:
/zzz> cd $GTS_HOME
/usr/local/OpenGTS_1.2.3> bin/dbAdmin.pl -schema
Or, on Windows:
C:\zzz> cd %GTS_HOME%
C:\OpenGTS_1.2.3> bin\dbAConfig.bat -schema
7.1) Creating/Editing Accounts
The command "bin/admin.sh Account" supports many administrative function which act on the SQL "Account"
table. Here are a few of the functions that can be performed using the "bin/admin.sh Account" command:
Creating an Account:
/usr/local/OpenGTS_1.2.3> bin/admin.sh Account -account=<acct> -create
This creates the specified Account with default values (replace "<acct>" with the account id you wish to create).
Editing an Account:
/usr/local/OpenGTS_1.2.3> bin/admin.sh Account -account=<acct> -edit
This command displays a command-line Account field editor, similar to the following:
OpenGTS Configuration and Installation Manual Page 22 of 60
Vista de página 21
1 2 ... 17 18 19 20 21 22 23 24 25 26 27 ... 59 60

Comentários a estes Manuais

Sem comentários