--- layout: default title: usr/share/doc/sysbox/html/tool/treereg.html --- Sysbox: treereg

Sysbox: treereg

Usage: treereg [OPTION]... [REGPATH]...

Print registry content. The given REGPATHs will be processed one by one. If no REGPATH specified, / is assumed. By default, integer keys will be printed in decimal form, and binary keys as a hexadump.

Options:

Examples:

$ treereg test       
test
|-- my_dir
|   |-- alpha { 1234 }
|   |-- beta { len=4, 42 65 74 61 }
|   `-- delta { len=12, 48 65 6C 6C 6F 20 57 6F 72 6C 64 21 }
`-- my_tmp
    |-- gamma { 999 }
    `-- omega { len=11, 4F 6D 65 67 61 20 64 72 69 76 65 }
$
$ treereg -a test
test
|-- my_dir
|   |-- alpha { 1234 }
|   |-- beta { len=4, 42 65 74 61 | Beta }
|   `-- delta { len=12, 48 65 6C 6C 6F 20 57 6F 72 6C 64 21 | Hello World! }
`-- my_tmp
    |-- gamma { 999 }
    `-- omega { len=11, 4F 6D 65 67 61 20 64 72 69 76 65 | Omega drive }
$
$ treereg -F test
test
|-- [dir] my_dir
|   |-- [int] alpha { 1234 }
|   |-- [bin] beta { len=4, 42 65 74 61 }
|   `-- [bin] delta { len=12, 48 65 6C 6C 6F 20 57 6F 72 6C 64 21 }
`-- [tmp] my_tmp
    |-- [int] gamma { 999 }
    `-- [bin] omega { len=11, 4F 6D 65 67 61 20 64 72 69 76 65 }
$
$ treereg -aX test
test
|-- my_dir
|   |-- alpha { 1234 | 0x4D2 }
|   |-- beta { len=4, 42 65 74 61 | Beta }
|   `-- delta { len=12, 48 65 6C 6C 6F 20 57 6F 72 6C 64 21 | Hello World! }
`-- my_tmp
    |-- gamma { 999 | 0x3E7 }
    `-- omega { len=11, 4F 6D 65 67 61 20 64 72 69 76 65 | Omega drive }
$
$ treereg -b 5 test                   
test
|-- my_dir
|   |-- alpha { 1234 }
|   |-- beta { len=4, 42 65 74 61 }
|   `-- delta { ?? failed to get registry key }
`-- my_tmp
    |-- gamma { 999 }
    `-- omega { ?? failed to get registry key }
$
$ treereg -L 0 test -c
test
|-- my_dir
`-- my_tmp

name length: 31
binary length: 1440
max directory depth: 8
$
$ treereg -a software/service/tcpip
software/service/tcpip
|-- hosts
|   |-- localhost { len=9, 31 32 37 2E 30 2E 30 2E 31 | 127.0.0.1 }
|   |-- devserver { len=13, 31 39 32 2E 31 36 38 2E 30 2E 32 30 33 | 192.168.0.203 }
|   `-- proxy { len=13, 31 39 32 2E 31 36 38 2E 30 2E 31 39 38 | 192.168.0.198 }
|-- hostname { len=10, 6B 74 5F 76 6D 5F 74 65 73 74 | kt_vm_test }
|-- dns4
|   |-- servers
|   |-- dynamic_prior { 25000 }
|   |-- times_to_retry { 3 }
|   `-- try_timeout { 2000 }
`-- if
    |-- lo
    |   |-- static_addr { len=9, 31 32 37 2E 30 2E 30 2E 31 | 127.0.0.1 }
    |   |-- static_mask { len=9, 32 35 35 2E 30 2E 30 2E 30 | 255.0.0.0 }
    |   `-- address { len=9, 31 32 37 2E 30 2E 30 2E 31 | 127.0.0.1 }
    `-- eth0
        |-- dhcp_enabled { 1 }
        |-- address { len=12, 31 39 32 2E 31 36 38 2E 30 2E 37 31 | 192.168.0.71 }
        |-- dhcp_reqiaddr { len=12, 31 39 32 2E 31 36 38 2E 30 2E 37 31 | 192.168.0.71 }
        |-- dhcp_server { len=11, 31 39 32 2E 31 36 38 2E 30 2E 31 | 192.168.0.1 }
        |-- dhcp_lease_time { 86399 }
        |-- dhcp_lease_start { 1502345640 }
        |-- dhcp_lease_renew { 1502388839 }
        `-- dhcp_lease_end { 1502432039 }
$