Difference between revisions of "Odbedit command list"

From MidasWiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 12: Line 12:
 
<pre>
 
<pre>
 
Database commands ([] are options, <> are placeholders):
 
Database commands ([] are options, <> are placeholders):
 
 
alarm                  - reset all alarms
 
alarm                  - reset all alarms
 
cd <dir>                - change current directory
 
cd <dir>                - change current directory
Line 32: Line 31:
 
hi [analyzer] [id]      - tell analyzer to clear histos
 
hi [analyzer] [id]      - tell analyzer to clear histos
 
imp <filename> [key]    - import ASCII file into string key
 
imp <filename> [key]    - import ASCII file into string key
 +
json                    - print "ODB save" encoding of current directory
 +
jsls                    - print "ls" encoding of current directory
 +
jsvalues                - print "get_values" encoding of current directory
 
ln <source> <linkname>  - create a link to <source> key
 
ln <source> <linkname>  - create a link to <source> key
 
load <file>            - load database from .ODB file at current position
 
load <file>            - load database from .ODB file at current position
Line 44: Line 46:
 
mkdir <subdir>          - make new <subdir>
 
mkdir <subdir>          - make new <subdir>
 
move <key> [top/bottom/[n]] - move key to position in keylist
 
move <key> [top/bottom/[n]] - move key to position in keylist
msg [user] [family] <msg> - compose user message and send it to family
+
msg [user] <msg>       - send chat message (from interactive odbedit)
                            Default family: chat
+
msg [type] [name] <msg> - send message to midas log (from command line via -c "msg ...")
-c msg [family] <msg>     - command mode: compose user message
+
old [n]                - display old n messages
                            Default user : script
 
                            Default family: Script
 
 
passwd                  - change MIDAS password
 
passwd                  - change MIDAS password
 
pause                  - pause current run
 
pause                  - pause current run
Line 54: Line 54:
 
resume                  - resume current run
 
resume                  - resume current run
 
rename <old> <new>      - rename key
 
rename <old> <new>      - rename key
rewind [channel]        - rewind tapes in logger
 
 
save [-c -s -x -j -cs] <file>  - save database at current position
 
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 an XML file, or use file.xml
   -j                      as a JSON file
+
   -j                      as a JSON file, or use file.json
  -cs                    as a C structure and a #define'd string
 
 
set <key> <value>      - set the value of a key
 
set <key> <value>      - set the value of a key
 
set <key>[i] <value>    - set the value of index i
 
set <key>[i] <value>    - set the value of index i
Line 72: Line 70:
 
                           [now] w/o asking parameters, [-v] debug output
 
                           [now] w/o asking parameters, [-v] debug output
 
stop [-v]              - stop current run, [-v] debug output
 
stop [-v]              - stop current run, [-v] debug output
trunc <key> <index>    - truncate key to [index] values  
+
trunc <key> <index>    - truncate key to [index] values
 
ver                    - show MIDAS library version
 
ver                    - show MIDAS library version
 
webpasswd              - change WWW password for mhttpd
 
webpasswd              - change WWW password for mhttpd
 
wait <key>              - wait for key to get modified
 
wait <key>              - wait for key to get modified
 +
watch <key>            - watch key or ODB tree to be modified
  
 
quit/exit              - exit
 
quit/exit              - exit

Latest revision as of 20:20, 3 February 2016


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
json                    - print "ODB save" encoding of current directory
jsls                    - print "ls" encoding of current directory
jsvalues                - print "get_values" encoding of current directory
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 [user] <msg>        - send chat message (from interactive odbedit)
msg [type] [name] <msg> - send message to midas log (from command line via -c "msg ...")
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
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 an XML file, or use file.xml
  -j                      as a JSON file, or use file.json
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
watch <key>             - watch key or ODB tree to be modified

quit/exit               - exit