Previous page

Next page

Locate page in Contents

Print this page

get_disk

Summary:

Retrieves information about disks and partitions.

Request specification:

Name

Min/Max

Type

Description

get_disk

0..1

None

 

Returns:

Name

Min/Max

Type

Description

disk

0..[]

diskType

Disk information.

Description:

The call retrieves disk and partition information from the current server.

Linux NOTE: For the Linux reiser file system, the command always returns negative values for inodes.

Example:

Input

<packet version="4.0.0" id="2">

<target>computerm</target>

<data>

<computerm>

<get_disk/>

</computerm>

</data>

</packet>

Output

<ns1:packet priority="0" version="4.0.0">

<ns1:origin>computerm</ns1:origin>

<ns1:target>vzclient5</ns1:target>

<ns1:data>

<ns2:computerm>

<ns2:system>

<ns2:architecture>i686</ns2:architecture>

<ns2:os xsi:type="ns3:osType">

<ns3:platform>Linux</ns3:platform>

<ns3:kernel>2.6.9-023stab033.6</ns3:kernel>

<ns3:name>Red Hat Enterprise Linux AS release 4 (Nahant)</ns3:name>

</ns2:os>

<ns3:cpu>

<ns2:units>140232</ns2:units>

<ns2:bogomips>5609</ns2:bogomips>

<ns2:mhz>2790</ns2:mhz>

<ns2:family>15</ns2:family>

<ns2:number>1</ns2:number>

<ns2:name>Intel(R) Xeon(TM) CPU 2.80GHz</ns2:name>

<ns2:model>4</ns2:model>

</ns3:cpu>

<ns2:memory xsi:type="ns3:resourceType">

<ns3:total>790188032</ns3:total>

<ns3:used>695504896</ns3:used>

<ns3:free>94683136</ns3:free>

</ns2:memory>

<ns2:swap xsi:type="ns3:resourceType">

<ns3:total>536862720</ns3:total>

<ns3:used>0</ns3:used>

<ns3:free>536862720</ns3:free>

</ns2:swap>

</ns2:system>

</ns2:computerm>

</ns1:data>

</ns1:packet>

Please send us your feedback on this help page