Skip to content

Commit 202a367

Browse files
committed
add documentation about cmdline OID lookup feature
1 parent 9802119 commit 202a367

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,21 @@ Check the managment page
131131
browser: https://localhost:9999/mgmt
132132

133133

134+
## Debugging
135+
136+
`lfs-test-server` supports a basic cmd to lookup `OID's` via the cmdline to help in debugging, eg. investigating client problems with a particular `OID` and it's properties.
137+
In this mode `lfs-test-server` expects the same configuration as when running in daemon mode, but will just executing the requested cmd and then exit.
138+
139+
This is especially helpful in server environments where it's not always possible to get to the web interface easily or where it's just too slow because of DB size.
140+
141+
`lfs-test-server cmd <OID>`
142+
143+
Outputs the full OID record
144+
145+
# Example
146+
147+
```
148+
% . /etc/default/lfs-instancefoo # to source server config
149+
% ./lfs-test-server cmd 7c9414fe21ad7b45ffb6e72da86f9a9e13dbb2971365ae7bcb8cc7fbbba7419c
150+
&{Oid:7c9414fe21ad7b45ffb6e72da86f9a9e13dbb2971365ae7bcb8cc7fbbba7419c Size:3334144 Existing:false}
151+
```

0 commit comments

Comments
 (0)