Summary:
Retrieves network information.
Request specification:
Name |
Min/Max |
Type |
Description |
|
|
|
|
Returns:
Name |
Min/Max |
Type |
Description |
|
|
|
|
|
|
|
|
|
|
|
Name servers. |
|
|
|
Hostname. |
|
|
|
Default gateway. |
|
|
Network interface info. |
|
|
|
|
|
Description:
The call retrieves network settings from the Hardware Node.
Example:
Input
<packet version="4.0.0" id="2">
<target>computerm</target>
<data>
<computerm>
<get_network/>
</computerm>
</data>
</packet>
Output
<ns1:packet priority="0" version="4.0.0">
<ns1:origin>computerm</ns1:origin>
<ns1:data>
<ns2:computerm>
<ns2:network>
<ns2:hostname>dhcp2-33.sw.ru</ns2:hostname>
<ns2:default_gateway>192.168.1.1</ns2:default_gateway>
<ns2:nameserver>192.168.1.1</ns2:nameserver>
<ns2:interface xsi:type="ns3:interfaceType">
<ns3:name>lo</ns3:name>
<ns3:transfer>
<ns3:input>
<ns3:packets>81</ns3:packets>
<ns3:bytes>10629</ns3:bytes>
</ns3:input>
<ns3:output>
<ns3:packets>81</ns3:packets>
<ns3:bytes>10629</ns3:bytes>
</ns3:output>
</ns3:transfer>
<ns3:ipaddress>127.0.0.1</ns3:ipaddress>
</ns2:interface>
<ns2:interface xsi:type="ns3:interfaceType">
<ns3:name>eth0</ns3:name>
<ns3:transfer>
<ns3:input>
<ns3:packets>2131938</ns3:packets>
<ns3:bytes>209130550</ns3:bytes>
</ns3:input>
<ns3:output>
<ns3:packets>955</ns3:packets>
<ns3:bytes>576021</ns3:bytes>
</ns3:output>
</ns3:transfer>
<ns3:ipaddress>192.168.2.33</ns3:ipaddress>
</ns2:interface>
</ns2:network>
</ns2:computerm>
</ns1:data>
</ns1:packet>