local-address remote-address }
Check the network reachability of the specified host name, IP address, or a pair of local and remote IP
addresses. One or more of the following strings will be reported to standard output.
Monitored reachability by specifying -W (watch) .
The current status is reported as well as the status when network configuration changes.
| Not Reachable | or not resolvable
| | Reachable |
| | Transient Connection | e.g. PPP connection.
| | Connection Required | this status
would be returned for a dialup connection that was not currently active but could
handle network traffic for the target system.
| | Connection Automatic | a connection must first be established. Any traffic directed to the
specified name/address will initiate the connection.
| | Local Address |
| | Directly Reachable Addresss | via one of the interfaces on the system, a gateway will not be used.
|
A non-zero exit status: errors are detected and an message to standard error.
| -w dynamic-store-key [-t timeout]
If key exists in the "dynamic store" data maintained by configd(8)
return with a zero exit status.
If not present, wait for timeout for data to be associated with or a notification to be posted using the key.
A non-zero exit status is returned if the key was not created/posted within the specified time.
To wait indefinitely specify timeout = 0 .
Default: 15 seconds.
| --get pref Display preferance on standard output.
ComputerName | user-friendly name for the system.
| LocalHostName | local (Bonjour) host name.
| HostName | name associated with hostname and gethostname(3).
| | | |
| --set pref [newval]
Updates pref with newval.
If newval is not specified it will be read from standard input.
Requires super-user access.
Supported prefs include: ComputerName, LocalHostName and HostName
| --dnsreformatted
DNS configuration
resolver #1 domain: Germans
nameserver[0]: 192.168.1.1 nameserver[1]: 71.250.0.12 order: 200000
resolver #2 domain: local options: mdns timeout: 2 order: 300000
resolver #3 domain: 254.169.in-addr.arpa options: mdns timeout: 2 order: 300200
resolver #4 domain: 8.e.f.ip6.arpa options: mdns timeout: 2 order: 300400
resolver #5 domain: 9.e.f.ip6.arpa options: mdns timeout: 2 order: 300600
resolver #6 domain: a.e.f.ip6.arpa options: mdns timeout: 2 order: 300800
resolver #7 domain: b.e.f.ip6.arpa options: mdns timeout: 2 order: 301000
DNS configuration (for scoped queries)
resolver #1
search domain[0] : germans
nameserver[0] : 192.168.1.1
nameserver[1] : 71.250.0.12
if_index : 5 (en1)
flags : Scoped
--proxy
as of 10/09/11
<dictionary> {
ExceptionsList : {
0 : *.local
1 : 169.254/16
}
FTPPassive : 1
}
| | | | | | |