1Unix::Statgrab::sg_hostU_sienrfoC(o3n)tributed Perl DocuUmneinxt:a:tSitoantgrab::sg_host_info(3)
2
3
4

NAME

6       Unix::Statgrab::sg_host_info - container for libstatgrab host
7       information
8

DESCRIPTION

10       "Unix::Statgrab::sg_host_info" is a Perl package name providing
11       accessors to bundled libstatgrab sg_host_info <http://www.i-
12       scream.org/libstatgrab/docs/sg_get_host_info.3.html> host information.
13

METHODS

15   nentries
16       Returns the number of entries in the container.
17
18   systime
19       Returns the seconds since Epoch (0:00:00 on January, 1st 1970) of the
20       time measure the host information.
21
22   as_list
23       Deprecated alias of "fetchall_hash"
24
25   fetchall_hash
26       Returns all records from sg_host_info <http://www.i-
27       scream.org/libstatgrab/docs/sg_get_host_info.3.html> container as list
28       of hash containing each datum name as key and the datum as value.
29
30   fetchall_array
31       Returns all records from sg_host_info <http://www.i-
32       scream.org/libstatgrab/docs/sg_get_host_info.3.html> container as list
33       of arrays containing the values in following order:
34
35         (os_name os_release os_version platform hostname bitwidth host_state ncpus maxcpus uptime systime)
36
37       in that order without leading headline.
38
39   fetchall_table
40       Returns all records from sg_host_info <http://www.i-
41       scream.org/libstatgrab/docs/sg_get_host_info.3.html> container as list
42       of arrays containing the values in following order:
43
44         (os_name os_release os_version platform hostname bitwidth host_state ncpus maxcpus uptime systime)
45
46       in that order including leading headline.
47
48   fetchrow_arrayref($row = 0)
49       Returns one row as array containing values as above.
50
51   fetchall_arrayref
52       Returns all records from sg_host_info <http://www.i-
53       scream.org/libstatgrab/docs/sg_get_host_info.3.html> container as array
54       of arrays without header.
55
56   fetchrow_hashref($row = 0)
57       Returns one row as hash containing "{ os_name => $self.os_name($row),
58       os_release => ... }".
59
60   fetchall_hashref
61       Returns all records from sg_host_info <http://www.i-
62       scream.org/libstatgrab/docs/sg_get_host_info.3.html> container as array
63       of hashes.
64
65   colnames
66       Returns list of column names: "(os_name os_release os_version platform
67       hostname bitwidth host_state ncpus maxcpus uptime systime)"
68
69   os_name
70       Name of operating system
71
72   os_release
73       Release number as string
74
75   os_version
76       Complete version string for operating system
77
78   platform
79       Name of the platform
80
81   hostname
82       Hostname
83
84   bitwidth
85       Host/Machine bitwidth
86
87   host_state
88       One of
89
90         sg_unknown_configuration
91         sg_physical_host
92         sg_virtual_machine
93         sg_paravirtual_machine
94         sg_hardware_virtualized
95
96   ncpus
97       Number of currently configured cpu's
98
99   maxcpus
100       Number of maximum configurable cpu's
101
102   uptime
103       System is up since "uptime" seconds
104

AUTHOR

106       Jens Rehsack, <rehsack AT cpan.org>
107
109       Copyright (C) 2012-2018 by Jens Rehsack
110
111       This library is free software; you can redistribute it and/or modify it
112       under the terms of the GNU Lesser General Public License as published
113       by the Free Software Foundation; either version 2.1 of the License, or
114       (at your option) any later version.
115
116
117
118perl v5.34.0                      2021-07-27   Unix::Statgrab::sg_host_info(3)
Impressum