-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsysteminfo_pod
105 lines (60 loc) · 1.92 KB
/
systeminfo_pod
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
=head1 NAME
systeminfo - utility for displaying hardware information
=head1 SYNOPSIS
systeminfo --get asset_type [--p|--l|--j|--d identifier] [--c]
=head1 DESCRIPTION
systeminfo is utility for getting hardware information
it aims to be simple and provide output in well formatted
output
=head1 OPTIONS
=over 8
=item B<asset_type>
can be one of these types: system, cpu, memory, disk, pci, fcms, tape, eth
=item B<--l, --long>
specifies to display long output
=item B<--p, --parsable>
specifies to display parsable output
=item B<--j, --json>
specifies to display output in json
=item B<--d, --detail I<identifier> >
specifies to display detail, requires identifier
identifier
column which you should use as identifier is marked
in column header with asterisk
=item B<--c, --cached>
use cache to get data, should be faster, but doesn't generate fresh data
=back
=head1 EXAMPLES
This gets information about system in short format:
systeminfo --get system
This gets information about disks in long format:
systeminfo --get disk --l
or
systeminfo --get disk --long
This gets information about fcms HBA's in parsable format:
systeminfo --get fcms --p
This gets information about memory in json format:
systeminfo --get memory --j
This get detail about disk device:
systeminfo --get disk --detail 24:0:2:0
This refreshes cache info about disks:
systeminfo --get disk
systeminfo --get disk --l
systeminfo --get disk --p
This doesn't refresh cache:
(gets fresh data but doesn't update cache)
systeminfo --get disk --detail 24:0:2:0
or (these two examples get data from cache)
systeminfo --get disk --detail 24:0:2:0 --c
or
systeminfo --get disk --c
or
systeminfo --get disk --l --c
=head1 NOTES
This utility should be run with root priveleges
=head1 AUTHOR
Pavol Ipoth
=head1 COPYRIGHT AND LICENSE
Copyright 2013, 2014, 2015 Pavol Ipoth
GPLv3
=cut