@@ -331,23 +331,23 @@ NIC MAC address | Win32_NetworkAdapterConfiguration | MACAddress
331
331
332
332
Here's the full list of Linux server metadata that the appliance collects and sends to Azure.
333
333
334
-
335
334
** DATA** | ** LINUX**
336
335
--- | ---
337
- FQDN | ``` cat /proc/sys/kernel/hostname , hostname -f ```
338
- Processor core count | ``` cat /proc/cpuinfo | awk '/^processor/{print $3}' | wc -l```
339
- Memory allocated | ``` cat /proc/meminfo | grep MemTotal | awk '{printf "%.0f", $2/1024}' ```
340
- BIOS serial number | ``` lshw | grep "serial:" | head -n1 | awk '{print $2}' ``` <br /> ``` /usr/sbin/dmidecode -t 1 | grep 'Serial' | awk '{ $1="" ; $2=""; print}’ ```
341
- BIOS GUID | ``` cat /sys/class/dmi/id/product_uuid ```
342
- Boot type | ``` [ -d /sys/firmware/efi ] && echo EFI | | echo BIOS ```
336
+ FQDN | cat /proc/sys/kernel/hostname, hostname -f
337
+ Processor core count | /proc/cpuinfo \ | awk '/^processor/{print $3}' \ | wc -l
338
+ Memory allocated | cat /proc/meminfo \ | grep MemTotal \ | awk '{printf "%.0f", $2/1024}'
339
+ BIOS serial number | lshw \ | grep "serial:" \ | head -n1 \ | awk '{print $2}' <br /> /usr/sbin/dmidecode -t 1 \ | grep 'Serial' \ | awk '{ $1="" ; $2=""; print}’
340
+ BIOS GUID | cat /sys/class/dmi/id/product_uuid
341
+ Boot type | [ -d /sys/firmware/efi ] && echo EFI \|\ | echo BIOS
343
342
OS name/version | We access these files for the OS version and name:<br /><br /> /etc/os-release<br /> /usr/lib/os-release <br /> /etc/enterprise-release <br /> /etc/redhat-release<br /> /etc/oracle-release<br /> /etc/SuSE-release<br /> /etc/lsb-release <br /> /etc/debian_version
344
- OS architecture | ``` Uname -m ```
345
- Disk count | ``` fdisk -l | egrep 'Disk.*bytes' | awk '{print $2}' | cut -f1 -d ':' ```
346
- Boot disk | ``` df /boot | sed -n 2p | awk '{print $1}' ```
347
- Disk size | ``` fdisk -l | egrep 'Disk.*bytes' | egrep $disk: | awk '{print $5}' ```
348
- NIC list | ``` ip -o -4 addr show | awk '{print $2}' ```
349
- NIC IP address | ``` ip addr show $nic | grep inet | awk '{print $2}' | cut -f1 -d "/" ```
350
- NIC MAC address | ``` ip addr show $nic | grep ether | awk '{print $2}' ```
343
+ OS architecture | Uname -m
344
+ Disk count | fdisk -l \| egrep 'Disk.* bytes' \| awk '{print $2}' \| cut -f1 -d ':'
345
+ Boot disk | df /boot \| sed -n 2p \| awk '{print $1}'
346
+ Disk size | fdisk -l \| egrep 'Disk.* bytes' \| egrep $disk: \| awk '{print $5}'
347
+ NIC list | ip -o -4 addr show \| awk '{print $2}'
348
+ NIC IP address | ip addr show $nic \| grep inet \| awk '{print $2}' \| cut -f1 -d "/"
349
+ NIC MAC address | ip addr show $nic \| grep ether \| awk '{print $2}'
350
+
351
351
### Windows performance data
352
352
353
353
Here's the Windows server performance data that the appliance collects and sends to Azure.
@@ -362,19 +362,19 @@ Data transmitted per NIC | BWin32_PerfFormattedData_Tcpip_NetworkInterface | Byt
362
362
Disk count | BWin32_PerfFormattedData_PerfDisk_PhysicalDisk | Count of disks
363
363
Disk details | Win32_PerfFormattedData_PerfDisk_PhysicalDisk | DiskWritesPerSec, DiskWriteBytesPerSec, DiskReadsPerSec, DiskReadBytesPerSec.
364
364
365
- ### Windows performance data
365
+ ### Linux performance data
366
366
367
367
Here's the Linux server performance data that the appliance collects and sends to Azure.
368
368
369
369
** Data** | ** Linux**
370
370
--- | ---
371
- CPU usage | ``` cat /proc/stat| grep 'cpu ' /proc/stat ```
372
- Memory usage | ``` free | grep Mem | awk '{print $3/$2 * 100.0}' ```
373
- NIC count | ``` lshw -class network | grep eth[0-60] | wc -l ```
374
- Data received per NIC | ``` cat /sys/class/net/eth$nic/statistics/rx_bytes ```
375
- Data transmitted per NIC | ``` cat /sys/class/net/eth$nic/statistics/tx_bytes ```
376
- Disk count | ``` fdisk -l | egrep 'Disk.*bytes' | awk '{print $2}' | cut -f1 -d ':' ```
377
- Disk details | ``` cat /proc/diskstats ```
371
+ CPU usage | cat /proc/stat/| grep 'cpu' /proc/stat
372
+ Memory usage | free \ | grep Mem \ | awk '{print $3/$2 * 100.0}'
373
+ NIC count | lshw -class network \ | grep eth[ 0-60] \ | wc -l
374
+ Data received per NIC | cat /sys/class/net/eth$nic/statistics/rx_bytes
375
+ Data transmitted per NIC | cat /sys/class/net/eth$nic/statistics/tx_bytes
376
+ Disk count | fdisk -l \ | egrep 'Disk.* bytes' \ | awk '{print $2}' \ | cut -f1 -d ':'
377
+ Disk details | cat /proc/diskstats
378
378
379
379
380
380
## Appliance upgrades
0 commit comments