siddr5 1.0.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of siddr5 might be problematic. Click here for more details.

package/README.md ADDED
@@ -0,0 +1,1091 @@
1
+ <p align="center">
2
+ <a href="https://systeminformation.io/">
3
+ <img src="https://systeminformation.io/assets/logo_inv.png" alt="systeminformation logo" width="102" height="72">
4
+ </a>
5
+ </p>
6
+
7
+ <h3 align="center">systeminformation</h3>
8
+
9
+ <p align="center">
10
+ System and OS information library for node.js
11
+ <br>
12
+ <a href="https://systeminformation.io/"><strong>Explore Systeminformation docs »</strong></a>
13
+ <br>
14
+ <br>
15
+ <a href="https://github.com/sebhildebrandt/systeminformation/issues/new?template=bug_report.md">Report bug</a>
16
+ ·
17
+ <a href="https://github.com/sebhildebrandt/systeminformation/issues/new?template=feature_request.md&labels=feature">Request feature</a>
18
+ ·
19
+ <a href="https://github.com/sebhildebrandt/systeminformation/blob/master/CHANGELOG.md">Changelog</a>
20
+ </p>
21
+
22
+ [![NPM Version][npm-image]][npm-url]
23
+ [![NPM Downloads][downloads-image]][downloads-url]
24
+ [![Git Issues][issues-img]][issues-url]
25
+ [![Closed Issues][closed-issues-img]][closed-issues-url]
26
+ <img src="docs/assets/no-dependencies.svg" alt="no dependencies">
27
+ [![Sponsoring][sponsor-badge]][sponsor-url]
28
+ [![Caretaker][caretaker-image]][caretaker-url]
29
+ [![MIT license][license-img]][license-url]
30
+
31
+ ## The Systeminformation Project
32
+ This is amazing. Started as a small project just for myself, it now has > 15,000 lines of code, > 500 versions published, up to 6 mio downloads per month, > 150 mio downloads overall. #1 NPM ranking for backend packages. Thank you to all who contributed to this project!
33
+
34
+ ## New Version 5.0
35
+
36
+ The new Version 5 is here - I spent several weeks finalizing this new version. Any support is highly appreciated - [Buy me a coffee](https://www.buymeacoffee.com/systeminfo)
37
+
38
+ This next major version release 5.0 comes with new functionality and several improvements and changes (some of them are breaking changes!):
39
+
40
+ - added audio: get detailed audio device information
41
+ - added bluetooth: get detailed bluetooth device information
42
+ - added dockerImages, dockerVolumes: get detailed information about docker images and volumes
43
+ - added printer: get information from detected printers
44
+ - added usb: get detailed usb controller and device information
45
+ - added wifi interfaces and connections: extended wifi information
46
+ - better uuid function to get unique hardware and OS UUIDs
47
+ - better/extended cpu info detection
48
+ - better/extended system info detection
49
+ - Apple Silicon M1 support
50
+ - better Raspberry-PI detection
51
+ - systeminformation website updated and extended with full documentation and examples [systeminformation.io][systeminformation-url]
52
+ - lot of minor improvements
53
+
54
+ Breaking Changes in version 5: you will see several breaking changes for the sake of a more consistent API interface and to be future proof. Read the [detailed version 5 changes][changes5-url].
55
+
56
+ I did a lot of testing on different platforms and machines but of course there might be some issues that I am not aware of. I would be happy if you inform me when you discover any issues. Issues can be [opened here][new-issue].
57
+
58
+ ## Quick Start
59
+
60
+ Lightweight collection of 50+ functions to retrieve detailed hardware, system and OS information.
61
+
62
+ - simple to use
63
+ - get detailed information about system, cpu, baseboard, battery, memory, disks/filesystem, network, docker, software, services and processes
64
+ - supports Linux, macOS, partial Windows, FreeBSD, OpenBSD, NetBSD, SunOS and Android support
65
+ - no npm dependencies
66
+
67
+ **Attention**: this is a `node.js` library. It is supposed to be used as a backend/server-side library and will definitely not work within a browser.
68
+
69
+ ### Installation
70
+
71
+ ```bash
72
+ npm install systeminformation --save
73
+ ```
74
+
75
+ or simpler
76
+
77
+ ```bash
78
+ npm install systeminformation
79
+ ```
80
+
81
+ #### Still need Version 4?
82
+
83
+ If you need version 4 (for compatibility reasons), you can install version 4 (latest release) like this
84
+
85
+ ```bash
86
+ npm install systeminformation@4 —save
87
+ ```
88
+
89
+ or simpler
90
+
91
+ ```bash
92
+ npm install systeminformation@4
93
+ ```
94
+
95
+ ### Usage
96
+
97
+ All functions (except `version` and `time`) are implemented as asynchronous functions. Here a small example how to use them:
98
+
99
+ ```js
100
+ const si = require('systeminformation');
101
+
102
+ // promises style - new since version 3
103
+ si.cpu()
104
+ .then(data => console.log(data))
105
+ .catch(error => console.error(error));
106
+ ```
107
+
108
+ ## News and Changes
109
+
110
+ ### Latest Activity
111
+
112
+ (last 7 major and minor version releases)
113
+
114
+ - Version 5.18.0: `fsSize()` added optional drive parameter
115
+ - Version 5.17.0: `graphics()` added positionX, positionY (mac OS)
116
+ - Version 5.16.0: `fsSize()` added rw property
117
+ - Version 5.15.0: `blockDevices()` added device
118
+ - Version 5.14.0: `blockDevices()` added raid group member (linux)
119
+ - Version 5.13.0: `networkConnections()` added process name (mac OS)
120
+ - Version 5.12.0: `cpu()` added performance and efficiency cores
121
+ - Version 5.11.0: `networkInterfaces()` added default property and default parameter
122
+ - Version 5.10.0: basic `android` support
123
+ - Version 5.9.0: `graphics()` added properties (macOS)
124
+ - Version 5.8.0: `disksIO()` added waitTime, waitPercent (linux)
125
+ - Version 5.7.0: `diskLayout()` added S.M.A.R.T for Windows (if installed)
126
+ - Version 5.6.0: `cpuTemperature()` added socket and chipset temp (linux)
127
+ - Version 5.5.0: `dockerVolumes()` added
128
+ - Version 5.4.0: `dockerImages()` added
129
+ - Version 5.3.0: `osInfo()` added remoteSession (win only)
130
+ - Version 5.2.0: `wifiInterfaces()` and `wifiConnections()` added
131
+ - Version 5.1.0: `memLayout()` added ECC flag, `bios()` added language, features (linux)
132
+ - Version 5.0.0: new version 5 - attention there are some breaking changes. See [detailed version 5 changes here][changes5-url].
133
+ - ...
134
+
135
+ You can find all changes here: [detailed changelog][changelog-url]
136
+
137
+ ## Core concept
138
+
139
+ [Node.js][nodejs-url] comes with some basic OS information, but I always wanted a little more. So I came up to write this little library. This library is still a work in progress. It is supposed to be used as a backend/server-side library (it will definitely not work within a browser). It requires node.js version 4.0 and above.
140
+
141
+ I was able to test it on several Debian, Raspbian, Ubuntu distributions as well as macOS (Mavericks, Yosemite, El Captain, Sierra, High Sierra, Mojave, Catalina, Big Sur) and some Windows 7, Windows 8, Windows 10, FreeBSD, OpenBSD, NetBSD and SunOS machines. Not all functions are supported on all operating systems. Have a look at the function reference in the docs to get further details.
142
+
143
+ If you have comments, suggestions & reports, please feel free to contact me!
144
+
145
+
146
+ I also created a nice little command line tool called [mmon][mmon-github-url] (micro-monitor) for Linux and macOS, also available via [github][mmon-github-url] and [npm][mmon-npm-url]
147
+
148
+
149
+ ## Reference
150
+
151
+ ### Function Reference and OS Support
152
+
153
+ Full function reference with examples can be found at [https://systeminformation.io][systeminformation-url].
154
+
155
+ #### 1. General
156
+
157
+ | Function | Result object | Linux | BSD | Mac | Win | Sun | Comments |
158
+ | ------------ | ------------- | ----- | --- | --- | --- | --- | --------------------------------- |
159
+ | si.version() | : string | X | X | X | X | X | lib version (no callback/promise) |
160
+ | si.time() | {...} | X | X | X | X | X | (no callback/promise) |
161
+ | | current | X | X | X | X | X | local (server) time |
162
+ | | uptime | X | X | X | X | X | uptime in number of seconds |
163
+ | | timezone | X | X | X | X | X | e.g. GMT+0200 |
164
+ | | timezoneName | X | X | X | X | X | e.g. CEST |
165
+
166
+ #### 2. System (HW)
167
+
168
+ | Function | Result object | Linux | BSD | Mac | Win | Sun | Comments |
169
+ | ---------------- | ------------- | ----- | --- | --- | --- | --- | -------------------------------- |
170
+ | si.system(cb) | {...} | X | X | X | X | | hardware information |
171
+ | | manufacturer | X | X | X | X | | e.g. 'MSI' |
172
+ | | model | X | X | X | X | | model/product e.g. 'MS-7823' |
173
+ | | version | X | X | X | X | | version e.g. '1.0' |
174
+ | | serial | X | X | X | X | | serial number |
175
+ | | uuid | X | X | X | X | | UUID |
176
+ | | sku | X | X | X | X | | SKU number |
177
+ | | virtual | X | X | | X | | is virtual machine |
178
+ | | virtualHost | X | X | | X | | virtual host (if virtual) |
179
+ | | raspberry | X | | | | | optional raspberry revision data |
180
+ | si.bios(cb) | {...} | X | X | X | X | | bios information |
181
+ | | vendor | X | X | X | X | | e.g. 'AMI' |
182
+ | | version | X | X | X | X | | version |
183
+ | | releaseDate | X | X | | X | | release date |
184
+ | | revision | X | X | | X | | revision |
185
+ | | serial | X | | | X | | serial |
186
+ | si.baseboard(cb) | {...} | X | X | X | X | | baseboard information |
187
+ | | manufacturer | X | X | X | X | | e.g. 'ASUS' |
188
+ | | model | X | X | X | X | | model / product name |
189
+ | | version | X | X | X | X | | version |
190
+ | | serial | X | X | X | X | | serial number |
191
+ | | assetTag | X | X | X | X | | asset tag |
192
+ | | memMax | X | | X | X | | max memory in bytes |
193
+ | | memSlots | X | | X | X | | memory slots on baseboard |
194
+ | si.chassis(cb) | {...} | X | X | X | X | | chassis information |
195
+ | | manufacturer | X | X | X | X | | e.g. 'MSI' |
196
+ | | model | X | X | X | X | | model / product name |
197
+ | | type | X | X | X | X | | model / product name |
198
+ | | version | X | X | X | X | | version |
199
+ | | serial | X | X | X | X | | serial number |
200
+ | | assetTag | X | X | X | X | | asset tag |
201
+ | | sku | | | | X | | SKU number |
202
+
203
+ #### 3. CPU
204
+
205
+ | Function | Result object | Linux | BSD | Mac | Win | Sun | Comments |
206
+ | ---------------------- | ---------------- | ----- | --- | --- | --- | --- | ----------------------------------- |
207
+ | si.cpu(cb) | {...} | X | X | X | X | | CPU information |
208
+ | | manufacturer | X | X | X | X | | e.g. 'Intel(R)' |
209
+ | | brand | X | X | X | X | | e.g. 'Core(TM)2 Duo' |
210
+ | | speed | X | X | X | X | | in GHz e.g. '3.40' |
211
+ | | speedMin | X | | X | X | | in GHz e.g. '0.80' |
212
+ | | speedMax | X | X | X | X | | in GHz e.g. '3.90' |
213
+ | | governor | X | | | | | e.g. 'powersave' |
214
+ | | cores | X | X | X | X | | # cores |
215
+ | | physicalCores | X | X | X | X | | # physical cores |
216
+ | | efficiencyCores | X | | X | | | # efficiency cores |
217
+ | | performanceCores | X | | X | | | # performance cores |
218
+ | | processors | X | X | X | X | | # processors |
219
+ | | socket | X | X | | X | | socket type e.g. "LGA1356" |
220
+ | | vendor | X | X | X | X | | vendor ID |
221
+ | | family | X | X | X | X | | processor family |
222
+ | | model | X | X | X | X | | processor model |
223
+ | | stepping | X | X | X | X | | processor stepping |
224
+ | | revision | X | | X | X | | revision |
225
+ | | voltage | | X | | | | voltage |
226
+ | | flags | X | X | X | X | | CPU flags |
227
+ | | virtualization | X | X | X | X | | virtualization supported |
228
+ | | cache | X | X | X | X | | cache in bytes (object) |
229
+ | | cache.l1d | X | X | X | X | | L1D (data) size |
230
+ | | cache.l1i | X | X | X | X | | L1I (instruction) size |
231
+ | | cache.l2 | X | X | X | X | | L2 size |
232
+ | | cache.l3 | X | X | X | X | | L3 size |
233
+ | si.cpuFlags(cb) | : string | X | X | X | X | | CPU flags |
234
+ | si.cpuCache(cb) | {...} | X | X | X | X | | CPU cache sizes |
235
+ | | l1d | X | X | X | X | | L1D size |
236
+ | | l1i | X | X | X | X | | L1I size |
237
+ | | l2 | X | X | X | X | | L2 size |
238
+ | | l3 | X | X | X | X | | L3 size |
239
+ | si.cpuCurrentSpeed(cb) | {...} | X | X | X | X | X | current CPU speed (in GHz) |
240
+ | | avg | X | X | X | X | X | avg CPU speed (all cores) |
241
+ | | min | X | X | X | X | X | min CPU speed (all cores) |
242
+ | | max | X | X | X | X | X | max CPU speed (all cores) |
243
+ | | cores | X | X | X | X | X | CPU speed per core (array) |
244
+ | si.cpuTemperature(cb) | {...} | X | X | X* | X | | CPU temperature in C (if supported) |
245
+ | | main | X | X | X | X | | main temperature (avg) |
246
+ | | cores | X | X | X | X | | array of temperatures |
247
+ | | max | X | X | X | X | | max temperature |
248
+ | | socket | X | | | | | array socket temperatures |
249
+ | | chipset | X | | | | | chipset temperature |
250
+
251
+ #### 4. Memory
252
+
253
+ | Function | Result object | Linux | BSD | Mac | Win | Sun | Comments |
254
+ | ---------------- | --------------------- | ----- | --- | --- | --- | --- | -------------------------------------- |
255
+ | si.mem(cb) | {...} | X | X | X | X | X | Memory information (in bytes) |
256
+ | | total | X | X | X | X | X | total memory in bytes |
257
+ | | free | X | X | X | X | X | not used in bytes |
258
+ | | used | X | X | X | X | X | used (incl. buffers/cache) |
259
+ | | active | X | X | X | X | X | used actively (excl. buffers/cache) |
260
+ | | buffcache | X | X | X | | X | used by buffers+cache |
261
+ | | buffers | X | | | | | used by buffers |
262
+ | | cached | X | | | | | used by cache |
263
+ | | slab | X | | | | | used by slab |
264
+ | | available | X | X | X | X | X | potentially available (total - active) |
265
+ | | swaptotal | X | X | X | X | X | |
266
+ | | swapused | X | X | X | X | X | |
267
+ | | swapfree | X | X | X | X | X | |
268
+ | si.memLayout(cb) | [{...}] | X | X | X | X | | Memory Layout (array) |
269
+ | | [0].size | X | X | X | X | | size in bytes |
270
+ | | [0].bank | X | X | | X | | memory bank |
271
+ | | [0].type | X | X | X | X | | memory type |
272
+ | | [0].clockSpeed | X | X | X | X | | clock speed |
273
+ | | [0].formFactor | X | X | | X | | form factor |
274
+ | | [0].manufacturer | X | X | X | X | | manufacturer |
275
+ | | [0].partNum | X | X | X | X | | part number |
276
+ | | [0].serialNum | X | X | X | X | | serial number |
277
+ | | [0].voltageConfigured | X | X | | X | | voltage conf. |
278
+ | | [0].voltageMin | X | X | | X | | voltage min |
279
+ | | [0].voltageMax | X | X | | X | | voltage max |
280
+
281
+ #### 5. Battery
282
+
283
+ | Function | Result object | Linux | BSD | Mac | Win | Sun | Comments |
284
+ | -------------- | ---------------- | ----- | --- | --- | --- | --- | --------------------------------- |
285
+ | si.battery(cb) | {...} | X | X | X | X | | battery information |
286
+ | | hasBattery | X | X | X | X | | indicates presence of battery |
287
+ | | cycleCount | X | | X | | | numbers of recharges |
288
+ | | isCharging | X | X | X | X | | indicates if battery is charging |
289
+ | | designedCapacity | X | | X | X | | max capacity of battery (mWh) |
290
+ | | maxCapacity | X | | X | X | | max capacity of battery (mWh) |
291
+ | | currentCapacity | X | | X | X | | current capacity of battery (mWh) |
292
+ | | capacityUnit | X | | X | X | | capacity unit (mWh) |
293
+ | | voltage | X | | X | X | | current voltage of battery (V) |
294
+ | | percent | X | X | X | X | | charging level in percent |
295
+ | | timeRemaining | X | | X | | | minutes left (if discharging) |
296
+ | | acConnected | X | X | X | X | | AC connected |
297
+ | | type | X | | X | | | battery type |
298
+ | | model | X | | X | | | model |
299
+ | | manufacturer | X | | X | | | manufacturer |
300
+ | | serial | X | | X | | | battery serial |
301
+
302
+ * See known issues if you have a problem with macOS temperature or windows temperature
303
+
304
+ #### 6. Graphics
305
+
306
+ | Function | Result object | Linux | BSD | Mac | Win | Sun | Comments |
307
+ | --------------- | ------------------------- | ----- | --- | --- | --- | --- | ------------------------------------------- |
308
+ | si.graphics(cb) | {...} | X | | X | X | | arrays of graphics controllers and displays |
309
+ | | controllers[] | X | | X | X | | graphics controllers array |
310
+ | | ...[0].vendor | X | | X | X | | e.g. ATI |
311
+ | | ...[0].vendorId | | | X | | | vendor ID |
312
+ | | ...[0].model | X | | X | X | | graphics controller model |
313
+ | | ...[0].deviceId | | | X | | | device ID |
314
+ | | ...[0].bus | X | | X | X | | on which bus (e.g. PCIe) |
315
+ | | ...[0].vram | X | | X | X | | VRAM size (in MB) |
316
+ | | ...[0].vramDynamic | X | | X | X | | true if dynamically allocated ram |
317
+ | | ...[0].external | | | X | | | is external GPU |
318
+ | | ...[0].cores | | | X | | | Apple silicon only |
319
+ | | ...[0].metalVersion | | | X | | | Apple Metal Version |
320
+ | | displays[] | X | | X | X | | monitor/display array |
321
+ | | ...[0].vendor | | | | X | | monitor/display vendor |
322
+ | | ...[0].vendorId | | | X | | | vendor ID |
323
+ | | ...[0].deviceName | | | | X | | e.g. \\\\.\\DISPLAY1 |
324
+ | | ...[0].model | X | | X | X | | monitor/display model |
325
+ | | ...[0].productionYear | | | X | | | production year |
326
+ | | ...[0].serial | | | X | | | serial number |
327
+ | | ...[0].displayId | | | X | | | display ID |
328
+ | | ...[0].main | X | | X | X | | true if main monitor |
329
+ | | ...[0].builtin | X | | X | | | true if built-in monitor |
330
+ | | ...[0].connection | X | | X | X | | e.g. DisplayPort or HDMI |
331
+ | | ...[0].sizeX | X | | | X | | size in mm horizontal |
332
+ | | ...[0].sizeY | X | | | X | | size in mm vertical |
333
+ | | ...[0].pixelDepth | X | | X | X | | color depth in bits |
334
+ | | ...[0].resolutionX | X | | X | X | | pixel horizontal |
335
+ | | ...[0].resolutionY | X | | X | X | | pixel vertical |
336
+ | | ...[0].currentResX | X | | X | X | | current pixel horizontal |
337
+ | | ...[0].currentResY | X | | X | X | | current pixel vertical |
338
+ | | ...[0].positionX | | | X | X | | display position X |
339
+ | | ...[0].positionY | | | X | X | | display position Y |
340
+ | | ...[0].currentRefreshRate | X | | X | X | | current screen refresh rate |
341
+
342
+ #### 7. Operating System
343
+
344
+ | Function | Result object | Linux | BSD | Mac | Win | Sun | Comments |
345
+ | --------------------- | ------------- | ----- | --- | --- | --- | --- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
346
+ | si.osInfo(cb) | {...} | X | X | X | X | X | OS information |
347
+ | | platform | X | X | X | X | X | 'linux', 'darwin', 'win32', ... |
348
+ | | distro | X | X | X | X | X | |
349
+ | | release | X | X | X | X | X | |
350
+ | | codename | | | X | | | |
351
+ | | kernel | X | X | X | X | X | kernel release - same as os.release() |
352
+ | | arch | X | X | X | X | X | same as os.arch() |
353
+ | | hostname | X | X | X | X | X | same as os.hostname() |
354
+ | | fqdn | X | X | X | X | X | FQDN fully qualified domain name |
355
+ | | codepage | X | X | X | X | | OS build version |
356
+ | | logofile | X | X | X | X | X | e.g. 'apple', 'debian', 'fedora', ... |
357
+ | | serial | X | X | X | X | | OS/Host serial number |
358
+ | | build | X | | X | X | | OS build version |
359
+ | | servicepack | | | | X | | service pack version |
360
+ | | uefi | X | X | X | X | | OS started via UEFI |
361
+ | | hypervisor | | | | X | | hyper-v enabled? (win only) |
362
+ | | remoteSession | | | | X | | runs in remote session (win only) |
363
+ | si.uuid(cb) | {...} | X | X | X | X | X | object of several UUIDs |
364
+ | | os | X | X | X | X | | os specific UUID |
365
+ | | hardware | X | X | X | X | | hardware specific UUID |
366
+ | | macs | X | X | X | X | | MAC addresses |
367
+ | si.versions(apps, cb) | {...} | X | X | X | X | X | version information (kernel, ssl, node, ...)<br />apps param is optional for detecting<br />only specific apps/libs<br />(string, comma separated) |
368
+ | si.shell(cb) | : string | X | X | X | X | | standard shell |
369
+ | si.users(cb) | [{...}] | X | X | X | X | X | array of users online |
370
+ | | [0].user | X | X | X | X | X | user name |
371
+ | | [0].tty | X | X | X | X | X | terminal |
372
+ | | [0].date | X | X | X | X | X | login date |
373
+ | | [0].time | X | X | X | X | X | login time |
374
+ | | [0].ip | X | X | X | | X | ip address (remote login) |
375
+ | | [0].command | X | X | X | | X | last command or shell |
376
+
377
+ #### 8. Current Load, Processes & Services
378
+
379
+ | Function | Result object | Linux | BSD | Mac | Win | Sun | Comments |
380
+ | ------------------------------------ | ----------------- | ----- | --- | --- | --- | --- | --------------------------------------------------------------------------------------- |
381
+ | si.currentLoad(cb) | {...} | X | | X | X | X | CPU-Load |
382
+ | | avgLoad | X | | X | | X | average load |
383
+ | | currentLoad | X | | X | X | X | CPU load in % |
384
+ | | currentLoadUser | X | | X | X | X | CPU load user in % |
385
+ | | currentLoadSystem | X | | X | X | X | CPU load system in % |
386
+ | | currentLoadNice | X | | X | X | X | CPU load nice in % |
387
+ | | currentLoadIdle | X | | X | X | X | CPU load idle in % |
388
+ | | currentLoadIrq | X | | X | X | X | CPU load system in % |
389
+ | | rawCurrentLoad... | X | | X | X | X | CPU load raw values (ticks) |
390
+ | | cpus[] | X | | X | X | X | current loads per CPU in % + raw ticks |
391
+ | si.fullLoad(cb) | : integer | X | | X | X | | CPU full load since bootup in % |
392
+ | si.processes(cb) | {...} | X | X | X | X | X | # running processes |
393
+ | | all | X | X | X | X | X | # of all processes |
394
+ | | running | X | X | X | | X | # of all processes running |
395
+ | | blocked | X | X | X | | X | # of all processes blocked |
396
+ | | sleeping | X | X | X | | X | # of all processes sleeping |
397
+ | | unknown | | | | X | | # of all processes unknown status |
398
+ | | list[] | X | X | X | X | X | list of all processes incl. details |
399
+ | | ...[0].pid | X | X | X | X | X | process PID |
400
+ | | ...[0].parentPid | X | X | X | X | X | parent process PID |
401
+ | | ...[0].name | X | X | X | X | X | process name |
402
+ | | ...[0].cpu | X | X | X | X | X | process % CPU usage |
403
+ | | ...[0].cpuu | X | X | | X | | process % CPU usage (user) |
404
+ | | ...[0].cpus | X | X | | X | | process % CPU usage (system) |
405
+ | | ...[0].mem | X | X | X | X | X | process memory % |
406
+ | | ...[0].priority | X | X | X | X | X | process priority |
407
+ | | ...[0].memVsz | X | X | X | X | X | process virtual memory size |
408
+ | | ...[0].memRss | X | X | X | X | X | process mem resident set size |
409
+ | | ...[0].nice | X | X | X | | X | process nice value |
410
+ | | ...[0].started | X | X | X | X | X | process start time |
411
+ | | ...[0].state | X | X | X | X | X | process state (e.g. sleeping) |
412
+ | | ...[0].tty | X | X | X | | X | tty from which process was started |
413
+ | | ...[0].user | X | X | X | | X | user who started process |
414
+ | | ...[0].command | X | X | X | X | X | process starting command |
415
+ | | ...[0].params | X | X | X | | X | process params |
416
+ | | ...[0].path | X | X | X | X | X | process path |
417
+ | | proc | X | X | X | X | | process name |
418
+ | | pid | X | X | X | X | | PID |
419
+ | | pids | X | X | X | X | | additional pids |
420
+ | | cpu | X | X | X | X | | process % CPU |
421
+ | | mem | X | X | X | X | | process % MEM |
422
+ | si.services('mysql, apache2', cb) | [{...}] | X | X | X | X | | pass comma separated string of services<br>pass "*" for ALL services (linux/win only) |
423
+ | | [0].name | X | X | X | X | | name of service |
424
+ | | [0].running | X | X | X | X | | true / false |
425
+ | | [0].startmode | | | | X | | manual, automatic, ... |
426
+ | | [0].pids | X | X | X | X | | pids |
427
+ | | [0].cpu | X | X | X | | | process % CPU |
428
+ | | [0].mem | X | X | X | | | process % MEM |
429
+ | si.processLoad('mysql, apache2', cb) | [{...}] | X | X | X | X | | pass comma separated string of processes<br>pass "*" for ALL processes (linux/win only) |
430
+ | | [0].proc | X | X | X | X | | name of process |
431
+ | | [0].pids | X | X | X | X | | pids |
432
+ | | [0].cpu | X | X | X | | | process % CPU |
433
+ | | [0].mem | X | X | X | | | process % MEM |
434
+
435
+ #### 9. File System
436
+
437
+ | Function | Result object | Linux | BSD | Mac | Win | Sun | Comments |
438
+ | -------------------- | --------------------- | ----- | --- | --- | --- | --- | ------------------------------------------------------------------------ |
439
+ | si.diskLayout(cb) | [{...}] | X | | X | X | | physical disk layout (array) |
440
+ | | [0].device | X | | X | | | e.g. /dev/sda |
441
+ | | [0].type | X | | X | X | | HD, SSD, NVMe |
442
+ | | [0].name | X | | X | X | | disk name |
443
+ | | [0].vendor | X | | | X | | vendor/producer |
444
+ | | [0].size | X | | X | X | | size in bytes |
445
+ | | [0].bytesPerSector | | | | X | | bytes per sector |
446
+ | | [0].totalCylinders | | | | X | | total cylinders |
447
+ | | [0].totalHeads | | | | X | | total heads |
448
+ | | [0].totalSectors | | | | X | | total sectors |
449
+ | | [0].totalTracks | | | | X | | total tracks |
450
+ | | [0].tracksPerCylinder | | | | X | | tracks per cylinder |
451
+ | | [0].sectorsPerTrack | | | | X | | sectors per track |
452
+ | | [0].firmwareRevision | X | | X | X | | firmware revision |
453
+ | | [0].serialNum | X | | X | X | | serial number |
454
+ | | [0].interfaceType | X | | | X | | SATA, PCIe, ... |
455
+ | | [0].smartStatus | X | | X | X | | S.M.A.R.T Status (see Known Issues) |
456
+ | | [0].temperature | X | | | | | S.M.A.R.T temperature |
457
+ | | [0].smartData | X | | | X | | full S.M.A.R.T data from smartctl<br>requires at least smartmontools 7.0 |
458
+ | si.blockDevices(cb) | [{...}] | X | | X | X | | returns array of disks, partitions,<br>raids and roms |
459
+ | | [0].name | X | | X | X | | name |
460
+ | | [0].type | X | | X | X | | type |
461
+ | | [0].fstype | X | | X | X | | file system type (e.g. ext4) |
462
+ | | [0].mount | X | | X | X | | mount point |
463
+ | | [0].size | X | | X | X | | size in bytes |
464
+ | | [0].physical | X | | X | X | | physical type (HDD, SSD, CD/DVD) |
465
+ | | [0].uuid | X | | X | X | | UUID |
466
+ | | [0].label | X | | X | X | | label |
467
+ | | [0].model | X | | X | | | model |
468
+ | | [0].serial | X | | | X | | serial |
469
+ | | [0].removable | X | | X | X | | serial |
470
+ | | [0].protocol | X | | X | | | protocol (SATA, PCI-Express, ...) |
471
+ | | [0].group | X | | | | | Raid group member (e.g. md1) |
472
+ | | [0].device | X | | X | X | | physical device mapped to (e.g. /dev/sda) |
473
+ | si.disksIO(cb) | {...} | X | | X | | | current transfer stats |
474
+ | | rIO | X | | X | | | read IOs on all mounted drives |
475
+ | | wIO | X | | X | | | write IOs on all mounted drives |
476
+ | | tIO | X | | X | | | write IOs on all mounted drives |
477
+ | | rIO_sec | X | | X | | | read IO per sec (* see notes) |
478
+ | | wIO_sec | X | | X | | | write IO per sec (* see notes) |
479
+ | | tIO_sec | X | | X | | | total IO per sec (* see notes) |
480
+ | | rWaitTime | X | | | | | read IO request time (* see notes) |
481
+ | | wWaitTime | X | | | | | write IO request time (* see notes) |
482
+ | | tWaitTime | X | | | | | total IO request time (* see notes) |
483
+ | | rWaitPercent | X | | | | | read IO request time percent (* see notes) |
484
+ | | wWaitPercent | X | | | | | write IO request time percent (* see notes) |
485
+ | | tWaitPercent | X | | | | | total IO request time percent (* see notes) |
486
+ | | ms | X | | X | | | interval length (for per second values) |
487
+ | si.fsSize(drive, cb) | [{...}] | X | X | X | X | | returns array of mounted file systems<br>drive param is optional |
488
+ | | [0].fs | X | X | X | X | | name of file system |
489
+ | | [0].type | X | X | X | X | | type of file system |
490
+ | | [0].size | X | X | X | X | | sizes in bytes |
491
+ | | [0].used | X | X | X | X | | used in bytes |
492
+ | | [0].available | X | X | X | X | | used in bytes |
493
+ | | [0].use | X | X | X | X | | used in % |
494
+ | | [0].mount | X | X | X | X | | mount point |
495
+ | | [0].rw | X | X | X | X | | read and write (false if read only) |
496
+ | si.fsOpenFiles(cb) | {...} | X | X | X | | | count max/allocated file descriptors |
497
+ | | max | X | X | X | | | max file descriptors |
498
+ | | allocated | X | X | X | | | current open files count |
499
+ | | available | X | X | X | | | count available |
500
+ | si.fsStats(cb) | {...} | X | | X | | | current transfer stats |
501
+ | | rx | X | | X | | | bytes read since startup |
502
+ | | wx | X | | X | | | bytes written since startup |
503
+ | | tx | X | | X | | | total bytes read + written since startup |
504
+ | | rx_sec | X | | X | | | bytes read / second (* see notes) |
505
+ | | wx_sec | X | | X | | | bytes written / second (* see notes) |
506
+ | | tx_sec | X | | X | | | total bytes reads + written / second |
507
+ | | ms | X | | X | | | interval length (for per second values) |
508
+
509
+ #### 10. USB
510
+
511
+ | Function | Result object | Linux | BSD | Mac | Win | Sun | Comments |
512
+ | ---------- | ---------------- | ----- | --- | --- | --- | --- | ------------------------ |
513
+ | si.usb(cb) | [{...}] | X | X | X | X | | get detected USB devices |
514
+ | | [0].bus | X | | | | | USB bus |
515
+ | | [0].deviceId | X | | | | | bus device id |
516
+ | | [0].id | X | | X | X | | internal id |
517
+ | | [0].name | X | | X | X | | name |
518
+ | | [0].type | X | | X | X | | name |
519
+ | | [0].removable | | | X | | | is removable |
520
+ | | [0].vendor | X | | X | | | vendor |
521
+ | | [0].manufacturer | X | | X | X | | manufacturer |
522
+ | | [0].maxPower | X | | | | | max power |
523
+ | | [0].default | X | | X | X | | is default printer |
524
+ | | [0].serialNumber | | | X | | | serial number |
525
+
526
+ #### 11. Printer
527
+
528
+ | Function | Result object | Linux | BSD | Mac | Win | Sun | Comments |
529
+ | -------------- | ------------- | ----- | --- | --- | --- | --- | -------------------------- |
530
+ | si.printer(cb) | [{...}] | X | X | X | X | | get printer information |
531
+ | | [0].id | X | | X | X | | internal id |
532
+ | | [0].name | X | | X | X | | name |
533
+ | | [0].model | X | | X | X | | model |
534
+ | | [0].uri | X | | X | | | printer URI |
535
+ | | [0].uuid | X | | | | | printer UUID |
536
+ | | [0].status | X | | X | X | | printer status (e.g. idle) |
537
+ | | [0].local | X | | X | X | | is local printer |
538
+ | | [0].default | | | X | X | | is default printer |
539
+ | | [0].shared | X | | X | X | | is shared printer |
540
+
541
+ #### 12. Audio
542
+
543
+ | Function | Result object | Linux | BSD | Mac | Win | Sun | Comments |
544
+ | ------------ | ----------------- | ----- | --- | --- | --- | --- | ------------------------------------- |
545
+ | si.audio(cb) | [{...}] | X | X | X | X | | get printer information |
546
+ | | [0].id | X | | X | X | | internal id |
547
+ | | [0].name | X | | X | X | | name |
548
+ | | [0].manufacturer | X | | X | X | | manufacturer |
549
+ | | [0].revision | X | | | | | revision |
550
+ | | [0].driver | X | | | | | driver |
551
+ | | [0].default | | | X | X | | is default |
552
+ | | [0].channel | X | | X | | | channel e.g. USB, HDMI, ... |
553
+ | | [0].type | X | | X | X | | type e.g. Speaker |
554
+ | | [0].in | | | X | X | | is input channel |
555
+ | | [0].out | | | X | X | | is output channel |
556
+ | | [0].interfaceType | X | | X | X | | interface type (PCIe, USB, HDMI, ...) |
557
+ | | [0].status | X | | X | X | | printer status (e.g. idle) |
558
+
559
+ #### 13. Network related functions
560
+
561
+ | Function | Result object | Linux | BSD | Mac | Win | Sun | Comments |
562
+ | ------------------------------ | ------------------ | ----- | --- | --- | --- | --- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
563
+ | si.networkInterfaces(cb) | [{...}] | X | X | X | X | X | array of network interfaces<br>With the 'default' parameter it returns<br>only the default interface |
564
+ | | [0].iface | X | X | X | X | X | interface |
565
+ | | [0].ifaceName | X | X | X | X | X | interface name (differs on Windows) |
566
+ | | [0].default | X | X | X | X | X | true if this is the default interface |
567
+ | | [0].ip4 | X | X | X | X | X | ip4 address |
568
+ | | [0].ip4subnet | X | X | X | X | X | ip4 subnet mask |
569
+ | | [0].ip6 | X | X | X | X | X | ip6 address |
570
+ | | [0].ip6subnet | X | X | X | X | X | ip6 subnet mask |
571
+ | | [0].mac | X | X | X | X | X | MAC address |
572
+ | | [0].internal | X | X | X | X | X | true if internal interface |
573
+ | | [0].virtual | X | X | X | X | X | true if virtual interface |
574
+ | | [0].operstate | X | | X | X | | up / down |
575
+ | | [0].type | X | | X | X | | wireless / wired |
576
+ | | [0].duplex | X | | X | | | duplex |
577
+ | | [0].mtu | X | | X | | | maximum transmission unit |
578
+ | | [0].speed | X | | X | X | | speed in MBit / s |
579
+ | | [0].dhcp | X | | X | X | | IP address obtained by DHCP |
580
+ | | [0].dnsSuffix | X | | | X | | DNS suffix |
581
+ | | [0].ieee8021xAuth | X | | | X | | IEEE 802.1x auth |
582
+ | | [0].ieee8021xState | X | | | X | | IEEE 802.1x state |
583
+ | | [0].carrierChanges | X | | | | | # changes up/down |
584
+ | si.networkInterfaceDefault(cb) | : string | X | X | X | X | X | get name of default network interface |
585
+ | si.networkGatewayDefault(cb) | : string | X | X | X | X | X | get default network gateway |
586
+ | si.networkStats(ifaces,cb) | [{...}] | X | X | X | X | | current network stats of given interfaces<br>iface list: space or comma separated<br>iface parameter is optional<br>defaults to first external network interface,<br />Pass '*' for all interfaces |
587
+ | | [0].iface | X | X | X | X | | interface |
588
+ | | [0].operstate | X | X | X | X | | up / down |
589
+ | | [0].rx_bytes | X | X | X | X | | received bytes overall |
590
+ | | [0].rx_dropped | X | X | X | X | | received dropped overall |
591
+ | | [0].rx_errors | X | X | X | X | | received errors overall |
592
+ | | [0].tx_bytes | X | X | X | X | | transferred bytes overall |
593
+ | | [0].tx_dropped | X | X | X | X | | transferred dropped overall |
594
+ | | [0].tx_errors | X | X | X | X | | transferred errors overall |
595
+ | | [0].rx_sec | X | X | X | X | | received bytes / second (* see notes) |
596
+ | | [0].tx_sec | X | X | X | X | | transferred bytes per second (* see notes) |
597
+ | | [0].ms | X | X | X | X | | interval length (for per second values) |
598
+ | si.networkConnections(cb) | [{...}] | X | X | X | X | | current network network connections<br>returns an array of all connections |
599
+ | | [0].protocol | X | X | X | X | | tcp or udp |
600
+ | | [0].localAddress | X | X | X | X | | local address |
601
+ | | [0].localPort | X | X | X | X | | local port |
602
+ | | [0].peerAddress | X | X | X | X | | peer address |
603
+ | | [0].peerPort | X | X | X | X | | peer port |
604
+ | | [0].state | X | X | X | X | | like ESTABLISHED, TIME_WAIT, ... |
605
+ | | [0].pid | X | X | X | X | | process ID |
606
+ | | [0].process | X | X | X | | | process name |
607
+ | si.inetChecksite(url, cb) | {...} | X | X | X | X | X | response-time (ms) to fetch given URL |
608
+ | | url | X | X | X | X | X | given url |
609
+ | | ok | X | X | X | X | X | status code OK (2xx, 3xx) |
610
+ | | status | X | X | X | X | X | status code |
611
+ | | ms | X | X | X | X | X | response time in ms |
612
+ | si.inetLatency(host, cb) | : number | X | X | X | X | X | response-time (ms) to external resource<br>host parameter is optional (default 8.8.8.8) |
613
+
614
+ #### 14. Wifi
615
+
616
+ | Function | Result object | Linux | BSD | Mac | Win | Sun | Comments |
617
+ | ---------------------- | --------------- | ----- | --- | --- | --- | --- | --------------------------------- |
618
+ | si.wifiNetworks(cb) | [{...}] | X | | X | X | | array of available wifi networks |
619
+ | | [0].ssid | X | | X | X | | Wifi network SSID |
620
+ | | [0].bssid | X | | X | X | | BSSID (mac) |
621
+ | | [0].mode | X | | | | | mode |
622
+ | | [0].channel | X | | X | X | | channel |
623
+ | | [0].frequency | X | | X | X | | frequency in MHz |
624
+ | | [0].signalLevel | X | | X | X | | signal level in dB |
625
+ | | [0].quality | X | | X | X | | quality in % |
626
+ | | [0].security | X | | X | X | | array e.g. WPA, WPA-2 |
627
+ | | [0].wpaFlags | X | | X | X | | array of WPA flags |
628
+ | | [0].rsnFlags | X | | | | | array of RDN flags |
629
+ | si.wifiInterfaces(cb) | [{...}] | X | | X | X | | array of detected wifi interfaces |
630
+ | | [0].id | X | | X | X | | ID |
631
+ | | [0].iface | X | | X | X | | interface |
632
+ | | [0].model | X | | X | X | | model |
633
+ | | [0].vendor | X | | X | X | | vendor |
634
+ | | [0].mac | X | | X | X | | MAC address |
635
+ | si.wifiConnections(cb) | [{...}] | X | | X | X | | array of active wifi connections |
636
+ | | [0].id | X | | X | X | | ID |
637
+ | | [0].iface | X | | X | X | | interface |
638
+ | | [0].name | X | | X | X | | name |
639
+ | | [0].mode | X | | X | X | | model |
640
+ | | [0].bssid | X | | X | X | | BSSID (mac) |
641
+ | | [0].mode | X | | | | | mode |
642
+ | | [0].channel | X | | X | X | | channel |
643
+ | | [0].frequency | X | | X | X | | frequency in MHz |
644
+ | | [0].signalLevel | X | | X | X | | signal level in dB |
645
+ | | [0].quality | X | | X | X | | quality in % |
646
+ | | [0].security | X | | X | X | | array e.g. WPA, WPA-2 |
647
+ | | [0].txRate | X | | X | X | | transfer rate MBit/s |
648
+
649
+ #### 15. Bluetooth
650
+
651
+ | Function | Result object | Linux | BSD | Mac | Win | Sun | Comments |
652
+ | ----------------------- | ------------------ | ----- | --- | --- | --- | --- | ------------------------ |
653
+ | si.bluetoothDevices(cb) | [{...}] | X | | X | X | | ... |
654
+ | | [0].device | | | X | | | device name |
655
+ | | [0].name | X | | X | X | | name |
656
+ | | [0].macDevice | X | | X | | | MAC address device |
657
+ | | [0].macHost | X | | X | | | MAC address host |
658
+ | | [0].batteryPercent | | | X | | | battery level percent |
659
+ | | [0].manufacturer | | | X | X | | manufacturer |
660
+ | | [0].type | X | | X | X | | type of bluetooth device |
661
+ | | [0].connected | X | | X | | | is connected |
662
+
663
+ #### 16. Docker
664
+
665
+ | Function | Result object | Linux | BSD | Mac | Win | Sun | Comments |
666
+ | ----------------------------------- | ------------------- | ----------------------------------- | --- | --- | --- | --- | ------------------------------------------------------------------------------------------------------------- |
667
+ | si.dockerInfo(cb) | {...} | X | X | X | X | X | returns general docker info |
668
+ | | id | X | X | X | X | X | Docker ID |
669
+ | | containers | X | X | X | X | X | number of containers |
670
+ | | containersRunning | X | X | X | X | X | number of running containers |
671
+ | | containersPaused | X | X | X | X | X | number of paused containers |
672
+ | | containersStopped | X | X | X | X | X | number of stopped containers |
673
+ | | images | X | X | X | X | X | number of images |
674
+ | | driver | X | X | X | X | X | driver (e.g. 'devicemapper', 'overlay2') |
675
+ | | memoryLimit | X | X | X | X | X | has memory limit |
676
+ | | swapLimit | X | X | X | X | X | has swap limit |
677
+ | | kernelMemory | X | X | X | X | X | has kernel memory |
678
+ | | cpuCfsPeriod | X | X | X | X | X | has CpuCfsPeriod |
679
+ | | cpuCfsQuota | X | X | X | X | X | has CpuCfsQuota |
680
+ | | cpuShares | X | X | X | X | X | has CPUShares |
681
+ | | cpuSet | X | X | X | X | X | has CPUShares |
682
+ | | ipv4Forwarding | X | X | X | X | X | has IPv4Forwarding |
683
+ | | bridgeNfIptables | X | X | X | X | X | has BridgeNfIptables |
684
+ | | bridgeNfIp6tables | X | X | X | X | X | has BridgeNfIp6tables |
685
+ | | debug | X | X | X | X | X | Debug on |
686
+ | | nfd | X | X | X | X | X | named data networking forwarding daemon |
687
+ | | oomKillDisable | X | X | X | X | X | out-of-memory kill disabled |
688
+ | | ngoroutines | X | X | X | X | X | number NGoroutines |
689
+ | | systemTime | X | X | X | X | X | docker SystemTime |
690
+ | | loggingDriver | X | X | X | X | X | logging driver e.g. 'json-file' |
691
+ | | cgroupDriver | X | X | X | X | X | cgroup driver e.g. 'cgroupfs' |
692
+ | | nEventsListener | X | X | X | X | X | number NEventsListeners |
693
+ | | kernelVersion | X | X | X | X | X | docker kernel version |
694
+ | | operatingSystem | X | X | X | X | X | docker OS e.g. 'Docker for Mac' |
695
+ | | osType | X | X | X | X | X | OSType e.g. 'linux' |
696
+ | | architecture | X | X | X | X | X | architecture e.g. x86_64 |
697
+ | | ncpu | X | X | X | X | X | number of CPUs |
698
+ | | memTotal | X | X | X | X | X | memory total |
699
+ | | dockerRootDir | X | X | X | X | X | docker root directory |
700
+ | | httpProxy | X | X | X | X | X | http proxy |
701
+ | | httpsProxy | X | X | X | X | X | https proxy |
702
+ | | noProxy | X | X | X | X | X | NoProxy |
703
+ | | name | X | X | X | X | X | Name |
704
+ | | labels | X | X | X | X | X | array of labels |
705
+ | | experimentalBuild | X | X | X | X | X | is experimental build |
706
+ | | serverVersion | X | X | X | X | X | server version |
707
+ | | clusterStore | X | X | X | X | X | cluster store |
708
+ | | clusterAdvertise | X | X | X | X | X | cluster advertise |
709
+ | | defaultRuntime | X | X | X | X | X | default runtime e.g. 'runc' |
710
+ | | liveRestoreEnabled | X | X | X | X | X | live store enabled |
711
+ | | isolation | X | X | X | X | X | isolation |
712
+ | | initBinary | X | X | X | X | X | init binary |
713
+ | | productLicense | X | X | X | X | X | product license |
714
+ | si.dockerImages(all, cb) | [{...}] | X | X | X | X | X | returns array of top level/all docker images |
715
+ | | [0].id | X | X | X | X | X | image ID |
716
+ | | [0].container | X | X | X | X | X | container ID |
717
+ | | [0].comment | X | X | X | X | X | comment |
718
+ | | [0].os | X | X | X | X | X | OS |
719
+ | | [0].architecture | X | X | X | X | X | architecture |
720
+ | | [0].parent | X | X | X | X | X | parent ID |
721
+ | | [0].dockerVersion | X | X | X | X | X | docker version |
722
+ | | [0].size | X | X | X | X | X | image size |
723
+ | | [0].sharedSize | X | X | X | X | X | shared size |
724
+ | | [0].virtualSize | X | X | X | X | X | virtual size |
725
+ | | [0].author | X | X | X | X | X | author |
726
+ | | [0].created | X | X | X | X | X | created date / time |
727
+ | | [0].containerConfig | X | X | X | X | X | container config object |
728
+ | | [0].graphDriver | X | X | X | X | X | graph driver object |
729
+ | | [0].repoDigests | X | X | X | X | X | repo digests array |
730
+ | | [0].repoTags | X | X | X | X | X | repo tags array |
731
+ | | [0].config | X | X | X | X | X | config object |
732
+ | | [0].rootFS | X | X | X | X | X | root fs object |
733
+ | si.dockerContainers(all, cb) | [{...}] | X | X | X | X | X | returns array of active/all docker containers |
734
+ | | [0].id | X | X | X | X | X | ID of container |
735
+ | | [0].name | X | X | X | X | X | name of container |
736
+ | | [0].image | X | X | X | X | X | name of image |
737
+ | | [0].imageID | X | X | X | X | X | ID of image |
738
+ | | [0].command | X | X | X | X | X | command |
739
+ | | [0].created | X | X | X | X | X | creation time (unix) |
740
+ | | [0].started | X | X | X | X | X | creation time (unix) |
741
+ | | [0].finished | X | X | X | X | X | creation time (unix) |
742
+ | | [0].createdAt | X | X | X | X | X | creation date time string |
743
+ | | [0].startedAt | X | X | X | X | X | creation date time string |
744
+ | | [0].finishedAt | X | X | X | X | X | creation date time string |
745
+ | | [0].state | X | X | X | X | X | created, running, exited |
746
+ | | [0].ports | X | X | X | X | X | array of ports |
747
+ | | [0].mounts | X | X | X | X | X | array of mounts |
748
+ | si.dockerContainerStats(ids, cb) | [{...}] | X | X | X | X | X | statistics for specific containers<br>container IDs: space or comma separated,<br>pass '*' for all containers |
749
+ | | [0].id | X | X | X | X | X | Container ID |
750
+ | | [0].memUsage | X | X | X | X | X | memory usage in bytes |
751
+ | | [0].memLimit | X | X | X | X | X | memory limit (max mem) in bytes |
752
+ | | [0].memPercent | X | X | X | X | X | memory usage in percent |
753
+ | | [0].cpuPercent | X | X | X | X | X | cpu usage in percent |
754
+ | | [0].pids | X | X | X | X | X | number of processes |
755
+ | | [0].netIO.rx | X | X | X | X | X | received bytes via network |
756
+ | | [0].netIO.wx | X | X | X | X | X | sent bytes via network |
757
+ | | [0].blockIO.r | X | X | X | X | X | bytes read from BlockIO |
758
+ | | [0].blockIO.w | X | X | X | X | X | bytes written to BlockIO |
759
+ | | [0].cpuStats | X | X | X | X | X | detailed cpu stats |
760
+ | | [0].percpuStats | X | X | X | X | X | detailed per cpu stats |
761
+ | | [0].memoryStats | X | X | X | X | X | detailed memory stats |
762
+ | | [0].networks | X | X | X | X | X | detailed network stats per interface |
763
+ | si.dockerContainerProcesses(id, cb) | [{...}] | X | X | X | X | X | array of processes inside a container |
764
+ | | [0].pidHost | X | X | X | X | X | process ID (host) |
765
+ | | [0].ppid | X | X | X | X | X | parent process ID |
766
+ | | [0].pgid | X | X | X | X | X | process group ID |
767
+ | | [0].user | X | X | X | X | X | effective user name |
768
+ | | [0].ruser | X | X | X | X | X | real user name |
769
+ | | [0].group | X | X | X | X | X | effective group name |
770
+ | | [0].rgroup | X | X | X | X | X | real group name |
771
+ | | [0].stat | X | X | X | X | X | process state |
772
+ | | [0].time | X | X | X | X | X | accumulated CPU time |
773
+ | | [0].elapsed | X | X | X | X | X | elapsed running time |
774
+ | | [0].nice | X | X | X | X | X | nice value |
775
+ | | [0].rss | X | X | X | X | X | resident set size |
776
+ | | [0].vsz | X | X | X | X | X | virtual size in Kbytes |
777
+ | | [0].command | X | X | X | X | X | command and arguments |
778
+ | si.dockerVolumes(cb) | [{...}] | returns array of all docker volumes |
779
+ | | [0].name | X | X | X | X | X | volume name |
780
+ | | [0].driver | X | X | X | X | X | driver |
781
+ | | [0].labels | X | X | X | X | X | labels object |
782
+ | | [0].mountpoint | X | X | X | X | X | mountpoint |
783
+ | | [0].options | X | X | X | X | X | options |
784
+ | | [0].scope | X | X | X | X | X | scope |
785
+ | | [0].created | X | X | X | X | X | created at |
786
+ | si.dockerAll(cb) | {...} | X | X | X | X | X | list of all containers including their stats<br>and processes in one single array |
787
+
788
+ #### 17. Virtual Box
789
+
790
+ | Function | Result object | Linux | BSD | Mac | Win | Sun | Comments |
791
+ | --------------- | -------------------- | ----- | --- | --- | --- | --- | -------------------------------------- |
792
+ | si.vboxInfo(cb) | [{...}] | X | X | X | X | X | returns array general virtual box info |
793
+ | | [0].id | X | X | X | X | X | virtual box ID |
794
+ | | [0].name | X | X | X | X | X | name |
795
+ | | [0].running | X | X | X | X | X | vbox is running |
796
+ | | [0].started | X | X | X | X | X | started date time |
797
+ | | [0].runningSince | X | X | X | X | X | running since (secs) |
798
+ | | [0].stopped | X | X | X | X | X | stopped date time |
799
+ | | [0].stoppedSince | X | X | X | X | X | stopped since (secs) |
800
+ | | [0].guestOS | X | X | X | X | X | Guest OS |
801
+ | | [0].hardwareUUID | X | X | X | X | X | Hardware UUID |
802
+ | | [0].memory | X | X | X | X | X | Memory in MB |
803
+ | | [0].vram | X | X | X | X | X | VRAM in MB |
804
+ | | [0].cpus | X | X | X | X | X | CPUs |
805
+ | | [0].cpuExepCap | X | X | X | X | X | CPU exec cap |
806
+ | | [0].cpuProfile | X | X | X | X | X | CPU profile |
807
+ | | [0].chipset | X | X | X | X | X | chipset |
808
+ | | [0].firmware | X | X | X | X | X | firmware |
809
+ | | [0].pageFusion | X | X | X | X | X | page fusion |
810
+ | | [0].configFile | X | X | X | X | X | config file |
811
+ | | [0].snapshotFolder | X | X | X | X | X | snapshot folder |
812
+ | | [0].logFolder | X | X | X | X | X | log folder path |
813
+ | | [0].hpet | X | X | X | X | X | HPET |
814
+ | | [0].pae | X | X | X | X | X | PAE |
815
+ | | [0].longMode | X | X | X | X | X | long mode |
816
+ | | [0].tripleFaultReset | X | X | X | X | X | triple fault reset |
817
+ | | [0].apic | X | X | X | X | X | APIC |
818
+ | | [0].x2Apic | X | X | X | X | X | X2APIC |
819
+ | | [0].acpi | X | X | X | X | X | ACPI |
820
+ | | [0].ioApic | X | X | X | X | X | IOAPIC |
821
+ | | [0].biosApicMode | X | X | X | X | X | BIOS APIC mode |
822
+ | | [0].bootMenuMode | X | X | X | X | X | boot menu Mode |
823
+ | | [0].bootDevice1 | X | X | X | X | X | bootDevice1 |
824
+ | | [0].bootDevice2 | X | X | X | X | X | bootDevice2 |
825
+ | | [0].bootDevice3 | X | X | X | X | X | bootDevice3 |
826
+ | | [0].bootDevice4 | X | X | X | X | X | bootDevice4 |
827
+ | | [0].timeOffset | X | X | X | X | X | time Offset |
828
+ | | [0].rtc | X | X | X | X | X | RTC |
829
+
830
+ #### 16. "Get All / Observe" - functions
831
+
832
+ | Function | Result object | Linux | BSD | Mac | Win | Sun | Comments |
833
+ | ----------------------------------- | ------------- | ----- | --- | --- | --- | --- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
834
+ | si.getStaticData(cb) | {...} | X | X | X | X | X | all static data at once |
835
+ | si.getDynamicData(srv,iface,cb) | {...} | X | X | X | X | X | all dynamic data at once<br>Specify services and interfaces to monitor<br>Defaults to first external network interface<br>Pass "*" for ALL services (linux/win only)<br>Pass "*" for ALL network interfaces |
836
+ | si.getAllData(srv,iface,cb) | {...} | X | X | X | X | X | all data at once<br>Specify services and interfaces to monitor<br>Defaults to first external network interface<br>Pass "*" for ALL services (linux/win only)<br>Pass "*" for ALL network interfaces |
837
+ | si.get(valueObject,cb) | {...} | X | X | X | X | X | get partial system info data at once<br>In valueObject you can define<br>all values, you want to get back <br>(see documentation for details) |
838
+ | si.observe(valueObject,interval,cb) | - | X | X | X | X | X | Observe a defined value object<br>call callback on changes<br>polling interval in milliseconds |
839
+
840
+ ### cb: Asynchronous Function Calls (callback)
841
+
842
+ Remember: all functions (except `version` and `time`) are implemented as asynchronous functions! There are now three ways to consume them:
843
+
844
+ **Callback Style**
845
+
846
+ ```js
847
+ const si = require('systeminformation');
848
+
849
+ si.cpu(function(data) {
850
+ console.log('CPU Information:');
851
+ console.log('- manufacturer: ' + data.manufacturer);
852
+ console.log('- brand: ' + data.brand);
853
+ console.log('- speed: ' + data.speed);
854
+ console.log('- cores: ' + data.cores);
855
+ console.log('- physical cores: ' + data.physicalCores);
856
+ console.log('...');
857
+ })
858
+ ```
859
+
860
+ ### Promises
861
+
862
+ **Promises Style** is new in version 3.0.
863
+
864
+ When omitting callback parameter (cb), then you can use all function in a promise oriented way. All functions (except of `version` and `time`) are returning a promise, that you can consume:
865
+
866
+ ```js
867
+ const si = require('systeminformation');
868
+
869
+ si.cpu()
870
+ .then(data => {
871
+ console.log('CPU Information:');
872
+ console.log('- manufacturer: ' + data.manufacturer);
873
+ console.log('- brand: ' + data.brand);
874
+ console.log('- speed: ' + data.speed);
875
+ console.log('- cores: ' + data.cores);
876
+ console.log('- physical cores: ' + data.physicalCores);
877
+ console.log('...');
878
+ })
879
+ .catch(error => console.error(error));
880
+ ```
881
+
882
+ ### Async / Await
883
+
884
+ **Using async / await** (available since node v7.6)
885
+
886
+ Since node v7.6 you can also use the `async` / `await` pattern. The above example would then look like this:
887
+
888
+ ```js
889
+ const si = require('systeminformation');
890
+
891
+ async function cpuData() {
892
+ try {
893
+ const data = await si.cpu();
894
+ console.log('CPU Information:');
895
+ console.log('- manufacturer: ' + data.manufacturer);
896
+ console.log('- brand: ' + data.brand);
897
+ console.log('- speed: ' + data.speed);
898
+ console.log('- cores: ' + data.cores);
899
+ console.log('- physical cores: ' + data.physicalCores);
900
+ console.log('...');
901
+ } catch (e) {
902
+ console.log(e)
903
+ }
904
+ }
905
+ ```
906
+
907
+ ## Known Issues
908
+
909
+ #### macOS - Temperature Sensor
910
+
911
+ To be able to measure temperature on macOS I created a little additional package. Due to some difficulties
912
+ in NPM with `optionalDependencies` I unfortunately was getting unexpected warnings on other platforms.
913
+ So I decided to drop this optional dependency for macOS - so by default, you will not get correct values.
914
+
915
+ This additional package is now also supporting Apple Silicon M1 machines.
916
+
917
+ But if you need to detect macOS temperature just run the following additional
918
+ installation command:
919
+
920
+ ```bash
921
+ $ npm install osx-temperature-sensor --save
922
+ ```
923
+
924
+ `systeminformation` will then detect this additional library and return the temperature when calling systeminformations standard function `cpuTemperature()`
925
+
926
+ #### Windows Temperature, Battery, ...
927
+
928
+ `get-WmiObject` - which is used to determine temperature and battery sometimes needs to be run with admin
929
+ privileges. So if you do not get any values, try to run it again with according
930
+ privileges. If you still do not get any values, your system might not support this feature.
931
+ In some cases we also discovered that `get-WmiObject` returned incorrect temperature values.
932
+
933
+ #### Linux Temperature
934
+
935
+ In some cases you need to install the Linux `sensors` package to be able to measure temperature
936
+ e.g. on DEBIAN based systems by running `sudo apt-get install lm-sensors`
937
+
938
+ #### Linux S.M.A.R.T. Status
939
+
940
+ To be able to detect S.M.A.R.T. status on Linux you need to install `smartmontools`. On DEBIAN based Linux distributions you can install it by running `sudo apt-get install smartmontools`
941
+
942
+ #### Windows Encoding Issues
943
+ I now reimplemented all windows functions to avoid encoding problems (special chacarters). And as Windows 11 now dropped `wmic` support, I had to move completely to `powershell`. Be sure that powershell version 5+ is installed on your machine. On older Windows versions (7, 8) you might still see encoding problems due to the old powershell version.
944
+ ## *: Additional Notes
945
+
946
+ In `fsStats()`, `disksIO()` and `networkStats()` the results / sec. values (rx_sec, IOPS, ...) are calculated correctly beginning
947
+ with the second call of the function. It is determined by calculating the difference of transferred bytes / IOs
948
+ divided by the time between two calls of the function.
949
+
950
+ The first time you are calling one of these functions, you will get `null` for transfer rates. The second time, you should then get statistics based on the time between the two calls ...
951
+
952
+ So basically, if you e.g. need a value for network stats every second, your code should look like this:
953
+
954
+ ```js
955
+ const si = require('systeminformation');
956
+
957
+ setInterval(function() {
958
+ si.networkStats().then(data => {
959
+ console.log(data);
960
+ })
961
+ }, 1000)
962
+ ```
963
+
964
+ Beginning with the second call, you get network transfer values per second.
965
+
966
+ ## Finding new issues
967
+
968
+ I am happy to discuss any comments and suggestions. Please feel free to contact me if you see any possibility of improvement!
969
+
970
+
971
+ ## Comments
972
+
973
+ If you have ideas or comments, please do not hesitate to contact me.
974
+
975
+
976
+ Happy monitoring!
977
+
978
+ Sincerely,
979
+
980
+ Sebastian Hildebrandt, [+innovations](http://www.plus-innovations.com)
981
+
982
+ ## Credits
983
+
984
+ Written by Sebastian Hildebrandt [sebhildebrandt](https://github.com/sebhildebrandt)
985
+
986
+ #### Contributors
987
+
988
+ - Guillaume Legrain [glegrain](https://github.com/glegrain)
989
+ - Riccardo Novaglia [richy24](https://github.com/richy24)
990
+ - Quentin Busuttil [Buzut](https://github.com/Buzut)
991
+ - lapsio [lapsio](https://github.com/lapsio)
992
+ - csy [csy](https://github.com/csy1983)
993
+ - Tiago Roldão [tiagoroldao](https://github.com/tiagoroldao)
994
+ - dragonjet [dragonjet](https://github.com/dragonjet)
995
+ - Adam Reis [adamreisnz](https://github.com/adamreisnz)
996
+ - Jimi M [ItsJimi](https://github.com/ItsJimi)
997
+ - Git² [GitSquared](https://github.com/GitSquared)
998
+ - weiyin [weiyin](https://github.com/weiyin)
999
+ - Jorai Rijsdijk [Erackron](https://github.com/Erackron)
1000
+ - Rasmus Porsager [porsager](https://github.com/porsager)
1001
+ - Nathan Patten [nrpatten](https://github.com/nrpatten)
1002
+ - Juan Campuzano [juancampuzano](https://github.com/juancampuzano)
1003
+ - Ricardo Polo [ricardopolo](https://github.com/ricardopolo)
1004
+ - Miłosz Dźwigała [mily20001](https://github.com/mily20001)
1005
+ - cconley717 [cconley717](https://github.com/cconley717)
1006
+ - Maria Camila Cubides [MariaCamilaCubides](https://github.com/MariaCamilaCubides)
1007
+ - Aleksander Krasnicki [plakak](https://github.com/plakak)
1008
+ - Alexis Tyler [OmgImAlexis](https://github.com/OmgImAlexis)
1009
+ - Simon Smith [si458](https://github.com/si458)
1010
+
1011
+ OSX Temperature: credits here are going to:
1012
+
1013
+ - Frank Stock [pcafstockf](https://github.com/pcafstockf) - for his work on [smc-code][smc-code-url]
1014
+
1015
+ ## Copyright Information
1016
+
1017
+ Linux is a registered trademark of Linus Torvalds. Apple, macOS, OS X are registered trademarks of Apple Inc.,
1018
+ Windows is a registered trademark of Microsoft Corporation. Node.js is a trademark of Joyent Inc.,
1019
+ Intel is a trademark of Intel Corporation, AMD is a trademark of Advanced Micro Devices Inc.,
1020
+ Raspberry Pi is a trademark of the Raspberry Pi Foundation, Debian is a trademark owned by Software in the Public Interest, Inc.,
1021
+ Ubuntu is a trademark of Canonical Ltd., FreeBSD is a registered trademark of The FreeBSD Foundation,
1022
+ NetBSD is a registered trademark of The NetBSD Foundation, Docker is a trademark of Docker, Inc., Sun,
1023
+ Solaris, OpenSolaris and registered trademarks of Sun Microsystems, VMware is a trademark of VMware Inc,
1024
+ Virtual Box is a trademark of Oracle Corporation, Xen is a registered trademark of Xen Project,
1025
+ QEMU is a trademark of Fabrice Bellard, bochs is a trademark of The Bochs Project, USB and USB Logo
1026
+ are trademarks of USB Implementation Forum, Bluetooth and Bluetooth Logo are trademarks of Bluetooth SIG,
1027
+ Android is a trademark of Google LLC, Parallels is a trademarks of Parallels International GmbH.
1028
+
1029
+ All other trademarks are the property of their respective owners.
1030
+
1031
+ ## License [![MIT license][license-img]][license-url]
1032
+
1033
+ >The [`MIT`][license-url] License (MIT)
1034
+ >
1035
+ >Copyright &copy; 2014-2023 Sebastian Hildebrandt, [+innovations](http://www.plus-innovations.com).
1036
+ >
1037
+ >Permission is hereby granted, free of charge, to any person obtaining a copy
1038
+ >of this software and associated documentation files (the "Software"), to deal
1039
+ >in the Software without restriction, including without limitation the rights
1040
+ >to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1041
+ >copies of the Software, and to permit persons to whom the Software is
1042
+ >furnished to do so, subject to the following conditions:
1043
+ >
1044
+ >The above copyright notice and this permission notice shall be included in
1045
+ >all copies or substantial portions of the Software.
1046
+ >
1047
+ >THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1048
+ >IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1049
+ >FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1050
+ >AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1051
+ >LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1052
+ >OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1053
+ >THE SOFTWARE.
1054
+ >
1055
+ >Further details see [LICENSE](LICENSE) file.
1056
+
1057
+
1058
+ [npm-image]: https://img.shields.io/npm/v/systeminformation.svg?style=flat-square
1059
+ [npm-url]: https://npmjs.org/package/systeminformation
1060
+ [downloads-image]: https://img.shields.io/npm/dm/systeminformation.svg?style=flat-square
1061
+ [downloads-url]: https://npmjs.org/package/systeminformation
1062
+
1063
+ [sponsor-badge]: https://img.shields.io/badge/Support-Buy%20me%20a%20coffee-brightgreen?style=flat-square
1064
+ [sponsor-url]: https://www.buymeacoffee.com/systeminfo
1065
+
1066
+ [license-url]: https://github.com/sebhildebrandt/systeminformation/blob/master/LICENSE
1067
+ [license-img]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square
1068
+ [npmjs-license]: https://img.shields.io/npm/l/systeminformation.svg?style=flat-square
1069
+ [changelog-url]: https://github.com/sebhildebrandt/systeminformation/blob/master/CHANGELOG.md
1070
+ [changes5-url]: https://systeminformation.io/changes.html
1071
+ [caretaker-url]: https://github.com/sebhildebrandt
1072
+ [caretaker-image]: https://img.shields.io/badge/caretaker-sebhildebrandt-blue.svg?style=flat-square
1073
+
1074
+ [nodejs-url]: https://nodejs.org/en/
1075
+ [docker-url]: https://www.docker.com/
1076
+ [systeminformation-url]: https://systeminformation.io
1077
+
1078
+ [daviddm-img]: https://img.shields.io/david/sebhildebrandt/systeminformation.svg?style=flat-square
1079
+ [daviddm-url]: https://david-dm.org/sebhildebrandt/systeminformation
1080
+
1081
+ [issues-img]: https://img.shields.io/github/issues/sebhildebrandt/systeminformation.svg?style=flat-square
1082
+ [issues-url]: https://github.com/sebhildebrandt/systeminformation/issues
1083
+ [closed-issues-img]: https://img.shields.io/github/issues-closed-raw/sebhildebrandt/systeminformation.svg?style=flat-square&color=brightgreen
1084
+ [closed-issues-url]: https://github.com/sebhildebrandt/systeminformation/issues?q=is%3Aissue+is%3Aclosed
1085
+
1086
+ [new-issue]: https://github.com/sebhildebrandt/systeminformation/issues/new/choose
1087
+
1088
+ [mmon-npm-url]: https://npmjs.org/package/mmon
1089
+ [mmon-github-url]: https://github.com/sebhildebrandt/mmon
1090
+
1091
+ [smc-code-url]: https://github.com/pcafstockf/smc-reader