component fathom.system
This component provides functions for invoking
specific commands on the host and retrieveing configuration and
status information.
This entire module needs a fair bit of work, both in terms of error checking as well as normalizing the returned output to abstract platform idiosyncrasies. Ideally, for functions that involve incremental results (such as ping or traceroute), it would also invoke the callbacks repeatedly, conveying enough context to allow the caller to piece together the results.
Methods
Methods | Returns | Description |
---|---|---|
doPing(
callback, host, count
)
|
void
static
|
↑
This function runs an ICMP ping to the given
destination and, upon completion, returns the textual results.
Parameters:
|
doTraceroute(
callback, host
)
|
void
static
|
↑
This function runs a traceroute to the given
destination and, upon completion, returns the textual results.
Parameters:
|
getActiveInterfaces(
callback
)
|
void
static
|
↑
This function retrieves the current status of the
clients' network interfaces.
Parameters:
|
getArpCache(
callback
)
|
void
static
|
↑
This function retrieves the current contents of the ARP cache.
Parameters:
|
getIfaceStats(
callback
)
|
void
static
|
↑
This function retrieves interface performance
counters (bytes, packets, errors, etc).
Parameters:
|
getLoad(
callback
)
|
void
static
|
↑
This function retrieves the client's current system load via "top".
Windows is currently not supported.
Parameters:
|
getMemInfo(
callback
)
|
void
static
|
↑
This function retrieves the client's current memory load via "proc".
Windows is currently not supported.
Parameters:
|
getNameservers(
callback
)
|
void
static
|
↑
This function retrieves information about the
client's DNS resolver configuration.
Parameters:
|
getProxyInfo(
url
)
|
dictionary
static
|
↑
This function retrieves the client's current system load via "top".
(1) Windows is currently not supported. (2) If no proxy applies, the result could be null or some such, not a dictionary with null members, for convenience. (3) The results are quite Firefox-specific.
Parameters:
Returns: |
getRoutingTable(
callback
)
|
void
static
|
↑
This function retrieves the client's current routing table.
Parameters:
|
getWifiInfo(
callback
)
|
void
static
|
↑
This function retrieves status information from
the wireless interfaces on the system and, upon completion,
returns the textual results.
Parameters:
|
getWifiStats(
callback
)
|
void
static
|
↑
This function retrieves link quality parameters
for WiFi interfaces.
Parameters:
|