root@sonic:~# show version SONiC Software Version: SONiC.HEAD.2067-dirty-20200120.123218 Distribution: Debian 9.11 Kernel: 4.9.0-9-2-amd64 Build commit: 571f745a4 Build date: Mon Jan 20 12:39:07 UTC 2020 Built by: johnar@jenkins-worker-2 Platform: x86_64-dell_s6100_c2538-r0 HwSKU: Force10-S6100 ASIC: broadcom Serial Number: 78VRG02 Uptime: 16:51:42 up 1 min, 1 user, load average: 2.49, 0.80, 0.28 Docker images: REPOSITORY TAG IMAGE ID SIZE docker-syncd-brcm HEAD.2067-dirty-20200120.123218 7c7706c8c456 429MB docker-syncd-brcm latest 7c7706c8c456 429MB docker-sonic-mgmt-framework HEAD.2067-dirty-20200120.123218 a4c2ff17c6da 419MB docker-sonic-mgmt-framework latest a4c2ff17c6da 419MB docker-platform-monitor HEAD.2067-dirty-20200120.123218 66561802e087 333MB docker-platform-monitor latest 66561802e087 333MB docker-router-advertiser HEAD.2067-dirty-20200120.123218 75bc04594d90 282MB docker-router-advertiser latest 75bc04594d90 282MB docker-lldp-sv2 HEAD.2067-dirty-20200120.123218 d8272dbe1b82 303MB docker-lldp-sv2 latest d8272dbe1b82 303MB docker-fpm-frr HEAD.2067-dirty-20200120.123218 cdd12eae076a 325MB docker-fpm-frr latest cdd12eae076a 325MB docker-teamd HEAD.2067-dirty-20200120.123218 da1ca48a1383 305MB docker-teamd latest da1ca48a1383 305MB docker-dhcp-relay HEAD.2067-dirty-20200120.123218 c459f6a1efc4 292MB docker-dhcp-relay latest c459f6a1efc4 292MB docker-database HEAD.2067-dirty-20200120.123218 8c9b84482492 282MB docker-database latest 8c9b84482492 282MB docker-snmp-sv2 HEAD.2067-dirty-20200120.123218 c1abeb303e1f 339MB docker-snmp-sv2 latest c1abeb303e1f 339MB docker-orchagent HEAD.2067-dirty-20200120.123218 347f0f3db4da 323MB docker-orchagent latest 347f0f3db4da 323MB docker-sflow HEAD.2067-dirty-20200120.123218 4f2090e7102e 305MB docker-sflow latest 4f2090e7102e 305MB docker-sonic-telemetry HEAD.2067-dirty-20200120.123218 72040c72de3e 343MB docker-sonic-telemetry latest 72040c72de3e 343MB root@sonic:~# root@sonic:~# warm-reboot [ 139.719173] kexec_core: Starting new kernel [ 4.507934] systemd[1]: [/etc/systemd/system/procdockerstatsd.service:9] Failed to parse service restart specifier, ignoring: Always [ 5.547079] rc.local[480]: + sonic-cfggen -y /etc/sonic/sonic_version.yml -v build_version [ 5.788810] kdump-tools[440]: Starting kdump-tools: no crashkernel= parameter in the kernel cmdline ... failed! [ 6.970313] rc.local[480]: + SONIC_VERSION=HEAD.2067-dirty-20200120.123218 [ 6.988811] rc.local[480]: + FIRST_BOOT_FILE=/host/image-HEAD.2067-dirty-20200120.123218/platform/firsttime [ 7.012898] rc.local[480]: + logger SONiC version HEAD.2067-dirty-20200120.123218 starting up... [ 7.039790] rc.local[480]: + [ ! -e /host/machine.conf ] [ 7.060883] rc.local[480]: + . /host/machine.conf [ 7.067187] rc.local[480]: + onie_version=3.25.1.3 [ 7.081570] rc.local[480]: + onie_vendor_id=674 [ 7.088578] rc.local[480]: + onie_platform=x86_64-dell_s6100_c2538-r0 [ 7.104718] rc.local[480]: + onie_machine=dell_s6100_c2538 [ 7.121311] rc.local[480]: + onie_machine_rev=0 [ 7.129311] rc.local[480]: + onie_arch=x86_64 [ 7.148655] rc.local[480]: + onie_config_version=1 [ 7.164410] rc.local[480]: + onie_build_date=2016-09-07T19:17-0700 [ 7.181387] rc.local[480]: + onie_partition_type=gpt [ 7.196441] rc.local[480]: + onie_kernel_version=4.1.28 [ 7.212431] rc.local[480]: + onie_firmware=bios [ 7.228430] rc.local[480]: + onie_switch_asic=bcm [ 7.245608] rc.local[480]: + onie_skip_ethmgmt_macs=no [ 7.260419] rc.local[480]: + program_console_speed [ 7.291086] rc.local[480]: + cat /proc/cmdline [ 7.311097] rc.local[480]: + cut -d , -f2 [ 7.331362] rc.local[480]: + grep -Eo console=ttyS[0-9]+,[0-9]+ [ 7.356286] rc.local[480]: + speed=115200 [ 7.368360] rc.local[480]: + [ -z 115200 ] [ 7.380353] rc.local[480]: + CONSOLE_SPEED=115200 [ 7.396438] rc.local[480]: + sed -i s|\-\-keep\-baud .* %I| 115200 %I|g /lib/systemd/system/serial-getty@.service [ 7.416469] rc.local[480]: + systemctl daemon-reload [ 7.432479] rc.local[480]: + [ -f /host/image-HEAD.2067-dirty-20200120.123218/platform/firsttime ] [ 7.452407] rc.local[480]: + mkdir -p /var/platform [ 7.468387] rc.local[480]: + exit 0 Debian GNU/Linux 9 sonic ttyS1 sonic login: admin Password: Last login: Mon Jan 27 16:51:03 UTC 2020 on ttyS1 Linux sonic 4.9.0-9-2-amd64 #1 SMP Debian 4.9.168-1+deb9u5 (2015-12-19) x86_64 You are on ____ ___ _ _ _ ____ / ___| / _ \| \ | (_)/ ___| \___ \| | | | \| | | | ___) | |_| | |\ | | |___ |____/ \___/|_| \_|_|\____| -- Software for Open Networking in the Cloud -- Unauthorized access and/or use are prohibited. All access and/or use are subject to monitoring. Help: http://azure.github.io/SONiC/ admin@sonic:~$ sudo -i root@sonic:~# journalctl -a | grep reboot Jan 27 16:52:54 sonic systemd[1]: Started Delays process-reboot-cause until network is stably connected. Jan 27 16:52:54 sonic systemd[1]: Starting LSB: Execute the kexec -e command to reboot system... Jan 27 16:52:54 sonic cron[446]: (CRON) INFO (Running @reboot jobs) Jan 27 16:52:54 sonic systemd[1]: Started LSB: Execute the kexec -e command to reboot system. Jan 27 16:52:55 sonic systemd[1]: Starting Read Dell S6100 reboot cause... Jan 27 16:52:55 sonic systemd[1]: Started Read Dell S6100 reboot cause. root@sonic:~# root@sonic:~# journalctl -a | grep reboot Jan 27 16:52:54 sonic systemd[1]: Started Delays process-reboot-cause until network is stably connected. Jan 27 16:52:54 sonic systemd[1]: Starting LSB: Execute the kexec -e command to reboot system... Jan 27 16:52:54 sonic cron[446]: (CRON) INFO (Running @reboot jobs) Jan 27 16:52:54 sonic systemd[1]: Started LSB: Execute the kexec -e command to reboot system. Jan 27 16:52:55 sonic systemd[1]: Starting Read Dell S6100 reboot cause... Jan 27 16:52:55 sonic systemd[1]: Started Read Dell S6100 reboot cause. Jan 27 16:54:19 sonic process-reboot-cause[7520]: Starting up... Jan 27 16:54:19 sonic process-reboot-cause[7520]: /proc/cmdline indicates reboot type: warm-reboot Jan 27 16:54:19 sonic process-reboot-cause[7520]: Previous reboot cause: Unknown software reboot root@sonic:~# ### After copying sonic-utilities fast-reboot and warm-reboot script: root@sonic:~# cp fast-reboot /usr/bin/fast-reboot root@sonic:~# cp fast-reboot /usr/bin/warm-reboot root@sonic:~# less /usr/bin/warm-reboot #!/bin/bash -e REBOOT_USER=$(logname) REBOOT_TIME=$(date) REBOOT_CAUSE_FILE="/host/reboot-cause/reboot-cause.txt" WARM_DIR=/host/warmboot REDIS_FILE=dump.rdb REBOOT_SCRIPT_NAME=$(basename $0) REBOOT_TYPE="${REBOOT_SCRIPT_NAME}" VERBOSE=no FORCE=no STRICT=no REBOOT_METHOD="/sbin/kexec -e" ASSISTANT_IP_LIST="" ASSISTANT_SCRIPT="/usr/bin/neighbor_advertiser" DEVPATH="/usr/share/sonic/device" PLATFORM=$(sonic-cfggen -H -v DEVICE_METADATA.localhost.platform) PLATFORM_PLUGIN="${REBOOT_TYPE}_plugin" ##### Platform plugin changes. # Require 100M available on the hard drive for warm reboot temp files, # Size is in 1K blocks: MIN_HD_SPACE_NEEDED=100000 root@sonic:~# root@sonic:~# warm-reboot Warning: Stopping telemetry.service, but it can still be activated by: telemetry.timer [ 273.222104] kexec_core: Starting new kernel [ 4.140302] systemd[1]: [/etc/systemd/system/procdockerstatsd.service:9] Failed to parse service restart specifier, ignoring: Always [ 5.061364] rc.local[475]: + sonic-cfggen -y /etc/sonic/sonic_version.yml -v build_version [ 5.310136] kdump-tools[461]: Starting kdump-tools: no crashkernel= parameter in the kernel cmdline ... failed! [ 6.478537] rc.local[475]: + SONIC_VERSION=HEAD.2067-dirty-20200120.123218 [ 6.496759] rc.local[475]: + FIRST_BOOT_FILE=/host/image-HEAD.2067-dirty-20200120.123218/platform/firsttime [ 6.519138] rc.local[475]: + logger SONiC version HEAD.2067-dirty-20200120.123218 starting up... [ 6.540704] rc.local[475]: + [ ! -e /host/machine.conf ] [ 6.556740] rc.local[475]: + . /host/machine.conf [ 6.565540] rc.local[475]: + onie_version=3.25.1.3 [ 6.580806] rc.local[475]: + onie_vendor_id=674 [ 6.596781] rc.local[475]: + onie_platform=x86_64-dell_s6100_c2538-r0 [ 6.612782] rc.local[475]: + onie_machine=dell_s6100_c2538 [ 6.629096] rc.local[475]: + onie_machine_rev=0 [ 6.644734] rc.local[475]: + onie_arch=x86_64 [ 6.660734] rc.local[475]: + onie_config_version=1 [ 6.680915] rc.local[475]: + onie_build_date=2016-09-07T19:17-0700 [ 6.688798] rc.local[475]: + onie_partition_type=gpt [ 6.704471] rc.local[475]: + onie_kernel_version=4.1.28 [ 6.720429] rc.local[475]: + onie_firmware=bios [ 6.736572] rc.local[475]: + onie_switch_asic=bcm [ 6.752522] rc.local[475]: + onie_skip_ethmgmt_macs=no [ 6.772495] rc.local[475]: + program_console_speed [ 6.812329] rc.local[475]: + cat /proc/cmdline [ 6.835534] rc.local[475]: + cut -d , -f2 [ 6.855682] rc.local[475]: + grep -Eo console=ttyS[0-9]+,[0-9]+ [ 6.880633] rc.local[475]: + speed=115200 [ 6.896428] rc.local[475]: + [ -z 115200 ] [ 6.908410] rc.local[475]: + CONSOLE_SPEED=115200 [ 6.924424] rc.local[475]: + sed -i s|\-\-keep\-baud .* %I| 115200 %I|g /lib/systemd/system/serial-getty@.service [ 6.944418] rc.local[475]: + systemctl daemon-reload [ 6.960421] rc.local[475]: + [ -f /host/image-HEAD.2067-dirty-20200120.123218/platform/firsttime ] [ 6.980421] rc.local[475]: + mkdir -p /var/platform [ 6.996427] rc.local[475]: + exit 0 Debian GNU/Linux 9 sonic ttyS1 sonic login: admin Password: Last login: Mon Jan 27 16:53:09 UTC 2020 on ttyS1 Linux sonic 4.9.0-9-2-amd64 #1 SMP Debian 4.9.168-1+deb9u5 (2015-12-19) x86_64 You are on ____ ___ _ _ _ ____ / ___| / _ \| \ | (_)/ ___| \___ \| | | | \| | | | ___) | |_| | |\ | | |___ |____/ \___/|_| \_|_|\____| -- Software for Open Networking in the Cloud -- Unauthorized access and/or use are prohibited. All access and/or use are subject to monitoring. Help: http://azure.github.io/SONiC/ admin@sonic:~$ sudo -i root@sonic:~# journalctl -a | grep reboot Jan 27 16:57:29 sonic systemd[1]: Started Delays process-reboot-cause until network is stably connected. Jan 27 16:57:29 sonic cron[436]: (CRON) INFO (Running @reboot jobs) Jan 27 16:57:29 sonic systemd[1]: Starting LSB: Execute the kexec -e command to reboot system... Jan 27 16:57:29 sonic systemd[1]: Started LSB: Execute the kexec -e command to reboot system. Jan 27 16:57:29 sonic systemd[1]: Starting Read Dell S6100 reboot cause... Jan 27 16:57:30 sonic systemd[1]: Started Read Dell S6100 reboot cause. Jan 27 16:58:54 sonic process-reboot-cause[8060]: Starting up... Jan 27 16:58:54 sonic process-reboot-cause[8060]: /proc/cmdline indicates reboot type: warm-reboot Jan 27 16:58:54 sonic process-reboot-cause[8060]: Previous reboot cause: User issued 'warm-reboot' command [User: admin, Time: Mon Jan 27 16:56:48 UTC 2020] Jan 27 17:00:11 sonic root[10495]: WARMBOOT_FINALIZER : Save in-memory database after warm reboot ... root@sonic:~# root@sonic:~# show reboot-cause User issued 'warm-reboot' command [User: admin, Time: Mon Jan 27 16:56:48 UTC 2020] root@sonic:~#