Created
March 19, 2013 22:53
-
-
Save cjhanks/5200905 to your computer and use it in GitHub Desktop.
Windows Server Test for OS module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var os = require ('os'); | |
for (var i in os) { | |
console . log ('-------------------------------------------------------------------'); | |
console . log (i); | |
console . log ((typeof os[i] === 'function') ? os[i]() : os[i]); | |
} |
twslankard
commented
Mar 19, 2013
------------------------------------------------------------------- endianness LE ------------------------------------------------------------------- hostname localhost.int.earthmine.com ------------------------------------------------------------------- loadavg [ 0.134765625, 0.1025390625, 0.15087890625 ] ------------------------------------------------------------------- uptime 27065.728208882 ------------------------------------------------------------------- freemem 29597179904 ------------------------------------------------------------------- totalmem 33683976192 ------------------------------------------------------------------- cpus [ { model: 'Intel(R) Core(TM) i7-3720QM CPU @ 2.60GHz', speed: 2601, times: { user: 4041300, nice: 439300, sys: 1224000, idle: 263923600, irq: 0 } }, { model: 'Intel(R) Core(TM) i7-3720QM CPU @ 2.60GHz', speed: 1200, times: { user: 4117300, nice: 437900, sys: 952100, idle: 264778800, irq: 0 } }, { model: 'Intel(R) Core(TM) i7-3720QM CPU @ 2.60GHz', speed: 1200, times: { user: 3870100, nice: 453700, sys: 963200, idle: 265043800, irq: 0 } }, { model: 'Intel(R) Core(TM) i7-3720QM CPU @ 2.60GHz', speed: 1200, times: { user: 3790100, nice: 405500, sys: 7436800, idle: 258679400, irq: 0 } }, { model: 'Intel(R) Core(TM) i7-3720QM CPU @ 2.60GHz', speed: 1200, times: { user: 634700, nice: 135200, sys: 272400, idle: 269308500, irq: 0 } }, { model: 'Intel(R) Core(TM) i7-3720QM CPU @ 2.60GHz', speed: 1200, times: { user: 705800, nice: 227800, sys: 218100, idle: 269409800, irq: 0 } }, { model: 'Intel(R) Core(TM) i7-3720QM CPU @ 2.60GHz', speed: 1200, times: { user: 654000, nice: 241500, sys: 211100, idle: 269353600, irq: 0 } }, { model: 'Intel(R) Core(TM) i7-3720QM CPU @ 2.60GHz', speed: 1200, times: { user: 610500, nice: 189000, sys: 198000, idle: 269561800, irq: 0 } } ] ------------------------------------------------------------------- type Linux ------------------------------------------------------------------- release 3.7.10-1-ARCH ------------------------------------------------------------------- networkInterfaces { lo: [ { address: '127.0.0.1', family: 'IPv4', internal: true }, { address: '::1', family: 'IPv6', internal: true } ], eno1: [ { address: '192.168.1.170', family: 'IPv4', internal: false }, { address: 'fe80::baca:3aff:fec9:6f85', family: 'IPv6', internal: false } ] } ------------------------------------------------------------------- arch x64 ------------------------------------------------------------------- platform linux ------------------------------------------------------------------- tmpdir /tmp ------------------------------------------------------------------- tmpDir /tmp ------------------------------------------------------------------- getNetworkInterfaces getNetworkInterfaces is now called `os.networkInterfaces`. { lo: [ { address: '127.0.0.1', family: 'IPv4', internal: true }, { address: '::1', family: 'IPv6', internal: true } ], eno1: [ { address: '192.168.1.170', family: 'IPv4', internal: false }, { address: 'fe80::baca:3aff:fec9:6f85', family: 'IPv6', internal: false } ] } ------------------------------------------------------------------- EOL
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment