Odbedit command list: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
| No edit summary | No edit summary | ||
| (2 intermediate revisions by 2 users 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 [type] [ | 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 | old [n]                 - display old n messages | ||
| passwd                  - change MIDAS password | passwd                  - change MIDAS password | ||
| Line 51: | Line 54: | ||
| resume                  - resume current run | resume                  - resume current run | ||
| rename <old> <new>      - rename key | rename <old> <new>      - rename key | ||
| 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  |    -x                      as an XML file, or use file.xml | ||
|    -j                      as a JSON file |    -j                      as a JSON file, or use file.json | ||
| 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 69: | 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 03:20, 4 February 2016
Links
- Odbedit utility
- Odbedit examples
- Using the ODB
- ODB structure
- web server ODB Page
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