Skip to content

Commit 50908d6

Browse files
updating syntax
1 parent 6255a68 commit 50908d6

File tree

1 file changed

+21
-20
lines changed

1 file changed

+21
-20
lines changed

articles/migrate/migrate-appliance.md

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -334,20 +334,21 @@ Here's the full list of Linux server metadata that the appliance collects and se
334334

335335
**DATA** | **LINUX**
336336
--- | ---
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```
337+
FQDN | cat /proc/sys/kernel/hostname , hostname -f
338+
Processor core count | /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
343343
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}'```
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}'
351+
351352
### Windows performance data
352353

353354
Here's the Windows server performance data that the appliance collects and sends to Azure.
@@ -368,13 +369,13 @@ Here's the Linux server performance data that the appliance collects and sends t
368369

369370
**Data** | **Linux**
370371
--- | ---
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```
372+
CPU usage | cat /proc/stat|grep 'cpu ' /proc/stat
373+
Memory usage | free \| grep Mem \| awk '{print $3/$2 * 100.0}'
374+
NIC count | lshw -class network \| grep eth[0-60] \| wc -l
375+
Data received per NIC | cat /sys/class/net/eth$nic/statistics/rx_bytes
376+
Data transmitted per NIC | cat /sys/class/net/eth$nic/statistics/tx_bytes
377+
Disk count | fdisk -l \| egrep 'Disk.*bytes' \| awk '{print $2}' \| cut -f1 -d ':'
378+
Disk details | cat /proc/diskstats
378379

379380

380381
## Appliance upgrades

0 commit comments

Comments
 (0)