-
Notifications
You must be signed in to change notification settings - Fork 8
/
sysinfo-fake.sh
executable file
·38 lines (36 loc) · 1.02 KB
/
sysinfo-fake.sh
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
#!/bin/bash
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
#
# Copyright (c) 2014, Joyent, Inc.
#
cat <<EOF
{
"Live Image": "20110208T010101Z",
"Manufacturer": "Dell",
"Product": "PowerEdge C2100",
"Serial Number": "000ABC1",
"UUID": "00000000-abcd-0000-fedc-ba9876543210",
"CPU Type": "Intel(R) Xeon(R) CPU E5620 @ 2.40GHz",
"CPU Physical Cores": 2,
"CPU Total Cores": 16,
"MiB of Memory": 49143,
"Disks": {
"c2t1d0": {"Size in GB": 2394},
"c2t0d0": {"Size in GB": 299}
},
"Boot Parameters": {
"console": "text",
"headnode": "true"
},
"Network Interfaces": {
"igb3": {"MAC Address": "be:ef:be:ef:be:ef", "NIC Names": []},
"igb1": {"MAC Address": "01:23:45:67:89:ab", "NIC Names": ["admin"]},
"igb2": {"MAC Address": "de:ad:de:ad:de:ad", "NIC Names": []},
"igb0": {"MAC Address": "ba:db:ad:ba:db:ad", "NIC Names": []}
}
}
EOF