Revision 3ef10550
b/lib/backend.py | ||
---|---|---|
170 | 170 |
if hyp_info is not None: |
171 | 171 |
outputarray.update(hyp_info) |
172 | 172 |
|
173 |
f = open("/proc/sys/kernel/random/boot_id", 'r') |
|
174 |
try: |
|
175 |
outputarray["bootid"] = f.read(128).rstrip("\n") |
|
176 |
finally: |
|
177 |
f.close() |
|
178 |
|
|
173 | 179 |
return outputarray |
174 | 180 |
|
175 | 181 |
|
b/lib/cmdlib.py | ||
---|---|---|
1198 | 1198 |
|
1199 | 1199 |
""" |
1200 | 1200 |
self.dynamic_fields = frozenset(["dtotal", "dfree", |
1201 |
"mtotal", "mnode", "mfree"]) |
|
1201 |
"mtotal", "mnode", "mfree", |
|
1202 |
"bootid"]) |
|
1202 | 1203 |
|
1203 | 1204 |
_CheckOutputFields(static=["name", "pinst_cnt", "sinst_cnt", |
1204 | 1205 |
"pinst_list", "sinst_list", |
... | ... | |
1229 | 1230 |
"mfree": utils.TryConvert(int, nodeinfo['memory_free']), |
1230 | 1231 |
"dtotal": utils.TryConvert(int, nodeinfo['vg_size']), |
1231 | 1232 |
"dfree": utils.TryConvert(int, nodeinfo['vg_free']), |
1233 |
"bootid": nodeinfo['bootid'], |
|
1232 | 1234 |
} |
1233 | 1235 |
else: |
1234 | 1236 |
live_data[name] = {} |
b/scripts/gnt-node | ||
---|---|---|
58 | 58 |
"pinst_list": "PriInstances", "sinst_list": "SecInstances", |
59 | 59 |
"pip": "PrimaryIP", "sip": "SecondaryIP", |
60 | 60 |
"dtotal": "DTotal", "dfree": "DFree", |
61 |
"mtotal": "MTotal", "mnode": "MNode", "mfree": "MFree"} |
|
61 |
"mtotal": "MTotal", "mnode": "MNode", "mfree": "MFree", |
|
62 |
"bootid": "BootID"} |
|
62 | 63 |
else: |
63 | 64 |
headers = None |
64 | 65 |
|
Also available in: Unified diff