CONFIG OBJECT GET

Level

base

History

appears in 9 0 0 router type appears in 2 0 0 fqdn appears in 3 0 0

Description

Return a unique object from its name

Usage

type=<host|range|fqdn|network|router|group|protocol|service|time|servicegroup|urlgroup|cngroup|oemgroup> name=<objname>

Returns

Return one line with the object properties:
[Object]
type=host global=<0|1> modify=<0|1> comment=<comment> name=<hostname> ip=<ip> ipv6=<ipv6> resolve=<static|dynamic>
type=range global=<0|1> modify=<0|1> comment=<comment> name=<rangename> begin=<firstip> end=<lastip> beginv6=<firstipv6> endv6=<lastipv6>
type=network global=<0|1> modify=<0|1> comment=<comment> name=<rangename> ip=<ip> mask=<netmask> prefixlen=<ipv4 prefix len> ipv6=<ipv6> prefixlenv6=<ipv6 prefix len>
type=router global=0 modify=<0|1> name=<routername> comment=<comment> gatewaythreshold=<int> activateallbackup=<0|1> frequency=<int> wait=<int> tries=<int> loadbalancing=<none|connhash|srchash> onfailpolicy=<pass|block>
type=protocol global=<0|1> modify=<0|1> comment=<comment> name=<protocolname> protonumber=<ip protocol number>
type=service global=<0|1> modify=<0|1> comment=<comment> name=<servicename> port=<port> toport=<""|lastport> proto=<protocolname>
type=time global=<0|1> modify=<0|1> comment=<comment> name=<timename> time=<time> weekday=<weekdays> yearday=<yearday> date=<date>
type=group global=<0|1> modify=<0|1> comment=<comment> name=<groupname>
type=servicegroup global=<0|1> modify=<0|1> comment=<comment> name=<groupname>
type=urlgroup global=0 modify=1 comment=<comment> name=<groupname>
type=cngroup global=0 modify=1 comment=<comment> name=<groupname>
type=oemgroup global=0 modify=0 comment=<comment> name=<groupname>

Format

section_line

Example

config object get type=host name=mycomputer
[Object]
type=host modify=1 global=0 comment="" name=mycomputer ip=10 0 0 0 ipv6=fe80::1 resolve=static
CACHE_CATEGORY objects