Skip to content

Commit 1f952fc

Browse files
authored
Merge pull request #113751 from rayne-wiselman/raynemay5-2
updating syntax
2 parents 933d0b0 + 697034d commit 1f952fc

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

articles/migrate/migrate-appliance.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -331,23 +331,23 @@ NIC MAC address | Win32_NetworkAdapterConfiguration | MACAddress
331331

332332
Here's the full list of Linux server metadata that the appliance collects and sends to Azure.
333333

334-
335334
**DATA** | **LINUX**
336335
--- | ---
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
343342
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+
351351
### Windows performance data
352352

353353
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
362362
Disk count | BWin32_PerfFormattedData_PerfDisk_PhysicalDisk | Count of disks
363363
Disk details | Win32_PerfFormattedData_PerfDisk_PhysicalDisk | DiskWritesPerSec, DiskWriteBytesPerSec, DiskReadsPerSec, DiskReadBytesPerSec.
364364

365-
### Windows performance data
365+
### Linux performance data
366366

367367
Here's the Linux server performance data that the appliance collects and sends to Azure.
368368

369369
**Data** | **Linux**
370370
--- | ---
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
378378

379379

380380
## Appliance upgrades

0 commit comments

Comments
 (0)