Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 825 Bytes

File metadata and controls

32 lines (21 loc) · 825 Bytes

Select Fields: Using Regular Expressions Case 1

This does the following:

  • Get device assets and include the generic field os.type. Also include all fields that match hostname from adapters matching . (which would match all adapters).
$ axonshell devices get \
  -f os.type \
  -fr '.:hostname'
  --export-file device.json \
  --export-overwrite

Note

If no adapter is supplied (i.e. just hostname instead of adapter_regex:hostname), the assumed default will be . (which would match all adapters).