2.30. hammer 事实
搜索事实
Usage: hammer fact [OPTIONS] SUBCOMMAND [ARG] ... Parameters: SUBCOMMAND Subcommand [ARG] ... Subcommand arguments Subcommands: list, index List all fact values Options: -h, --help Print help
2.30.1. hammer 事实列表
列出所有事实值
Usage: hammer fact <list|index> [OPTIONS] Options: --fields FIELDS Show specified fields or predefined field sets only. (See below) Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --location LOCATION_NAME Set the current location context for the request --location-id LOCATION_ID Set the current location context for the request --location-title LOCATION_TITLE Set the current location context for the request --order ORDER Sort field and order, eg. ‘id DESC’ --organization ORGANIZATION_NAME Set the current organization context for the request --organization-id ORGANIZATION_ID Set the current organization context for the request --organization-title ORGANIZATION_TITLE Set the current organization context for the request --page PAGE Page number, starting at 1 --per-page PER_PAGE Number of results per page to return, 'all' to return all results --search SEARCH Filter results -h, --help Print help Predefined field sets: -------|-----|-------- FIELDS | ALL | DEFAULT -------|-----|-------- Host | x | x Fact | x | x Value | x | x -------|-----|-------- Search / Order fields: fact string fact_short_name string facts string host string host.hostgroup string host_id integer location string location_id integer name string organization string organization_id integer origin string reported_at datetime short_name string type string value string