Odbedit command list: Difference between revisions

From MidasWiki
Jump to navigation Jump to search
No edit summary
Line 8: Line 8:
== ODB help command ==
== ODB help command ==
Running odbedit and issuing the command "help" displays the list of commands:
Running odbedit and issuing the command "help" displays the list of commands:
<pre>
Database commands ([] are options, <> are placeholders):


$ odbedit
alarm                  - reset all alarms
[local:pol:S]/>help  <br>
cd <dir>                - change current directory
Database commands ([] are options, <> are placeholders): <br>
chat                    - enter chat mode
alarm                  - reset all alarms
chmod <mode> <key>      - change access mode of a key
cd <dir>                - change current directory
chat                    - enter chat mode
chmod <mode> <key>      - change access mode of a key
                           1=read | 2=write | 4=delete
                           1=read | 2=write | 4=delete
cleanup [client] [-f]  - delete hanging clients [force]
cleanup [client] [-f]  - delete hanging clients [force]
copy <src> <dest>      - copy a subtree to a new location
copy <src> <dest>      - copy a subtree to a new location
create <type> <key>    - create a key of a certain type
create <type> <key>    - create a key of a certain type
create <type> <key>[n]  - create an array of size [n]
create <type> <key>[n]  - create an array of size [n]
  del/rm [-l] [-f] <key>  - delete a key and its subkeys
create string <key>[n][m] - create an array of [n] strings of [m] characters
  -l                      follow links
del/rm [-l] [-f] <key>  - delete a key and its subkeys
  -f                      force deletion without asking
  -l                      follow links
exec <key>/<cmd>        - execute shell command (stored in key) on server
  -f                      force deletion without asking
export <key> <filename> - export key into ASCII file
exec <key>/<cmd>        - execute shell command (stored in key) on server
find <pattern>          - find a key with wildcard pattern
exp <key> <filename>   - import key into ASCII file
help/? [command]        - print this help [for a specific command]
find <pattern>          - find a key with wildcard pattern
hi [analyzer] [id]      - tell analyzer to clear histos
help/? [command]        - print this help [for a specific command]
import <filename> [key] - import ASCII file into string key
hi [analyzer] [id]      - tell analyzer to clear histos
n <source> <linkname>  - create a link to <source> key
imp <filename> [key]   - import ASCII file into string key
load <file>            - load database from .ODB file at current position
ln <source> <linkname>  - create a link to <source> key
ls/dir [-lhvrp] [<pat>] - show database entries which match pattern
load <file>            - load database from .ODB file at current position
  -l                      detailed info
ls/dir [-lhvrp] [<pat>] - show database entries which match pattern
  -h                      hex format
  -l                      detailed info
  -v                      only value
  -h                      hex format
  -r                      show database entries recursively
  -v                      only value
  -p                      pause between screens
  -r                      show database entries recursively
make [analyzer name]    - create experim.h
  -p                      pause between screens
mem [-v]                - show memeory usage [verbose]
make [analyzer name]    - create experim.h
mkdir <subdir>          - make new <subdir>
mem [-v]                - show memeory usage [verbose]
move <key> [top/bottom/[n]] - move key to position in keylist
mkdir <subdir>          - make new <subdir>
msg [type] [user] <msg> - compose user message
move <key> [top/bottom/[n]] - move key to position in keylist
old [n]                - display old n messages
msg [type] [user] <msg> - compose user message
passwd                  - change MIDAS password
old [n]                - display old n messages
pause                  - pause current run
passwd                  - change MIDAS password
pwd                    - show current directory
pause                  - pause current run
resume                  - resume current run
pwd                    - show current directory
rename <old> <new>      - rename key
resume                  - resume current run
rewind [channel]        - rewind tapes in logger
rename <old> <new>      - rename key
save [-c -s -x -cs] <file>  - save database at current position
rewind [channel]        - rewind tapes in logger
save [-c -s -x -j -cs] <file>  - save database at current position
                           in ASCII format
                           in ASCII format
  -c                      as a C structure
  -c                      as a C structure
  -s                      as a #define'd string
  -s                      as a #define'd string
  -x                      as a XML file
  -x                      as a XML file
set <key> <value>      - set the value of a key
  -j                      as a JSON file
set <key>[i] <value>    - set the value of index i
set <key> <value>      - set the value of a key
set <key>[*] <value>    - set the value of all indices of a key
set <key>[i] <value>    - set the value of index i
set <key>[i..j] <value> - set the value of all indices i..j
set <key>[*] <value>    - set the value of all indices of a key
scl [-w]                - show all active clients [with watchdog info]
set <key>[i..j] <value> - set the value of all indices i..j
shutdown <client>/all  - shutdown individual or all clients
scl [-w]                - show all active clients [with watchdog info]
sor                    - show open records in current subtree
shutdown <client>/all  - shutdown individual or all clients
start [number][now][-v] - start a run [with a specific number],
sor                    - show open records in current subtree
start [number][now][-v] - start a run [with a specific number],
                           [now] w/o asking parameters, [-v] debug output
                           [now] w/o asking parameters, [-v] debug output
trunc <key> <index>    - truncate key to [index] values
stop [-v]              - stop current run, [-v] debug output
ver                    - show MIDAS library version
trunc <key> <index>    - truncate key to [index] values  
webpasswd              - change WWW password for [[mhttpd]]
ver                    - show MIDAS library version
wait <key>              - wait for key to be modified
webpasswd              - change WWW password for mhttpd
quit/exit              - exit
wait <key>              - wait for key to get modified
 
quit/exit              - exit
</pre>

Revision as of 16:12, 23 June 2014

Links

ODB help command

Running odbedit and issuing the command "help" displays the list of commands:

Database commands ([] are options, <> are placeholders):

alarm                   - reset all alarms
cd <dir>                - change current directory
chat                    - enter chat mode
chmod <mode> <key>      - change access mode of a key
                          1=read | 2=write | 4=delete
cleanup [client] [-f]   - delete hanging clients [force]
copy <src> <dest>       - copy a subtree to a new location
create <type> <key>     - create a key of a certain type
create <type> <key>[n]  - create an array of size [n]
create string <key>[n][m]  - create an array of [n] strings of [m] characters
del/rm [-l] [-f] <key>  - delete a key and its subkeys
  -l                      follow links
  -f                      force deletion without asking
exec <key>/<cmd>        - execute shell command (stored in key) on server
exp <key> <filename>    - import key into ASCII file
find <pattern>          - find a key with wildcard pattern
help/? [command]        - print this help [for a specific command]
hi [analyzer] [id]      - tell analyzer to clear histos
imp <filename> [key]    - import ASCII file into string key
ln <source> <linkname>  - create a link to <source> key
load <file>             - load database from .ODB file at current position
ls/dir [-lhvrp] [<pat>] - show database entries which match pattern
  -l                      detailed info
  -h                      hex format
  -v                      only value
  -r                      show database entries recursively
  -p                      pause between screens
make [analyzer name]    - create experim.h
mem [-v]                - show memeory usage [verbose]
mkdir <subdir>          - make new <subdir>
move <key> [top/bottom/[n]] - move key to position in keylist
msg [type] [user] <msg> - compose user message
old [n]                 - display old n messages
passwd                  - change MIDAS password
pause                   - pause current run
pwd                     - show current directory
resume                  - resume current run
rename <old> <new>      - rename key
rewind [channel]        - rewind tapes in logger
save [-c -s -x -j -cs] <file>  - save database at current position
                          in ASCII format
  -c                      as a C structure
  -s                      as a #define'd string
  -x                      as a XML file
  -j                      as a JSON file
set <key> <value>       - set the value of a key
set <key>[i] <value>    - set the value of index i
set <key>[*] <value>    - set the value of all indices of a key
set <key>[i..j] <value> - set the value of all indices i..j
scl [-w]                - show all active clients [with watchdog info]
shutdown <client>/all   - shutdown individual or all clients
sor                     - show open records in current subtree
start [number][now][-v] - start a run [with a specific number],
                          [now] w/o asking parameters, [-v] debug output
stop [-v]               - stop current run, [-v] debug output
trunc <key> <index>     - truncate key to [index] values    
ver                     - show MIDAS library version
webpasswd               - change WWW password for mhttpd
wait <key>              - wait for key to get modified

quit/exit               - exit