|
39 | 39 | * [Console config commands](#console-config-commands)
|
40 | 40 | * [Console connect commands](#console-connect-commands)
|
41 | 41 | * [Console clear commands](#console-clear-commands)
|
| 42 | +* [CMIS firmware upgrade](#cmis-firmware-upgrade) |
| 43 | + * [CMIS firmware version show commands](#cmis-firmware-version-show-commands) |
| 44 | + * [CMIS firmware upgrade commands](#cmis-firmware-upgrade-commands) |
| 45 | + * [CMIS firmware target mode commands](#cmis-firmware-target-mode-commands) |
42 | 46 | * [DHCP Relay](#dhcp-relay)
|
43 | 47 | * [DHCP Relay show commands](#dhcp-relay-show-commands)
|
44 | 48 | * [DHCP Relay clear commands](#dhcp-relay-clear-commands)
|
|
206 | 210 |
|
207 | 211 | | Version | Modification Date | Details |
|
208 | 212 | | --- | --- | --- |
|
| 213 | +| v8 | Oct-09-2023 | Add CMIS firmware upgrade commands | |
209 | 214 | | v7 | Jun-22-2023 | Add static DNS show and config commands |
|
210 | 215 | | v6 | May-06-2021 | Add SNMP show and config commands |
|
211 | 216 | | v5 | Nov-05-2020 | Add document for console commands |
|
@@ -2785,6 +2790,138 @@ Optionally, you can clear with a remote device name by specifying the `-d` or `-
|
2785 | 2790 |
|
2786 | 2791 | Go Back To [Beginning of the document](#) or [Beginning of this section](#console)
|
2787 | 2792 |
|
| 2793 | +## CMIS firmware upgrade |
| 2794 | +
|
| 2795 | +### CMIS firmware version show commands |
| 2796 | +
|
| 2797 | +The sfputil command shows the current major and minor versions of active/inactive firmware, running Image details. The output may vary based on the single vs dual bank supported modules. |
| 2798 | +
|
| 2799 | +**sfputil show fwversion** |
| 2800 | +
|
| 2801 | +- Usage: |
| 2802 | + ``` |
| 2803 | + sfputil show fwversion PORT_NAME |
| 2804 | + ``` |
| 2805 | +
|
| 2806 | +- Example: |
| 2807 | + ``` |
| 2808 | + admin@sonic:~$ sfputil show fwversion Ethernet180 |
| 2809 | + Image A Version: 0.3.5 |
| 2810 | + Image B Version: 0.3.5 |
| 2811 | + Factory Image Version: 0.0.0 |
| 2812 | + Running Image: A |
| 2813 | + Committed Image: A |
| 2814 | + Active Firmware: 0.3.5 |
| 2815 | + Inactive Firmware: 0.3.5 |
| 2816 | + ``` |
| 2817 | +
|
| 2818 | +### CMIS firmware upgrade commands |
| 2819 | +
|
| 2820 | +The sfputil commands are used to download/upgrade firmware on transciver modules. The download/upgrade actually happens using set of CMIS CDB commands. The module may replace the exisiting image or copy into the inactive bank of the module. The host issues a download complete CDB command when the entire firmware image has been written to LPL or EPL pages. Each steps can be verified using the 'sfputil show fwversion PORT_NAME' |
| 2821 | +
|
| 2822 | +**sfputil firmware download** |
| 2823 | +
|
| 2824 | +This command is used for downloading firmware tp upgrade the transciever module. |
| 2825 | +
|
| 2826 | +- Usage: |
| 2827 | + ``` |
| 2828 | + sfputil firmware download PORT_NAME FILE_PATH |
| 2829 | + ``` |
| 2830 | +
|
| 2831 | +- Example: |
| 2832 | + ``` |
| 2833 | + admin@sonic:~$ sfputil firmware download Ethernet180 AEC_Camano_YCable__0.3.6_20230905.bin |
| 2834 | + CDB: Starting firmware download |
| 2835 | + Downloading ... [####################################] 100% |
| 2836 | + CDB: firmware download complete |
| 2837 | + Firmware download complete success |
| 2838 | + Total download Time: 0:01:55.731397 |
| 2839 | + |
| 2840 | + admin@sonic:~$ sfputil show fwversion Ethernet180 |
| 2841 | + Image A Version: 0.3.5 |
| 2842 | + Image B Version: 0.3.6 |
| 2843 | + Factory Image Version: 0.0.0 |
| 2844 | + Running Image: A |
| 2845 | + Committed Image: A |
| 2846 | + Active Firmware: 0.3.5 |
| 2847 | + Inactive Firmware: 0.3.6 |
| 2848 | + ``` |
| 2849 | +**sfputil firmware run** |
| 2850 | +
|
| 2851 | +This command is used to start and run a downloaded image. This command transfers control from the currently running firmware to a new firmware. |
| 2852 | +
|
| 2853 | +- Usage: |
| 2854 | + ``` |
| 2855 | + sfputil firmware run PORT_NAME |
| 2856 | + ``` |
| 2857 | +
|
| 2858 | +- Example: |
| 2859 | + ``` |
| 2860 | + admin@sonic:~$ sfputil firmware run Ethernet180 |
| 2861 | + Running firmware: Non-hitless Reset to Inactive Image |
| 2862 | + Firmware run in mode=0 success |
| 2863 | + |
| 2864 | + admin@sonic:~$ sfputil show fwversion Ethernet180 |
| 2865 | + Image A Version: 0.3.5 |
| 2866 | + Image B Version: 0.3.6 |
| 2867 | + Factory Image Version: 0.0.0 |
| 2868 | + Running Image: B |
| 2869 | + Committed Image: A |
| 2870 | + Active Firmware: 0.3.6 |
| 2871 | + Inactive Firmware: 0.3.5 |
| 2872 | + ``` |
| 2873 | +
|
| 2874 | +**sfputil firmware commit** |
| 2875 | +
|
| 2876 | +This command to commit the running image so that the module will boot from it on future boots. |
| 2877 | +
|
| 2878 | +- Usage: |
| 2879 | + ``` |
| 2880 | + sfputil firmware commit PORT_NAME |
| 2881 | + ``` |
| 2882 | +
|
| 2883 | +- Example: |
| 2884 | + ``` |
| 2885 | + admin@sonic:~$ sfputil firmware commit Ethernet180 |
| 2886 | + Firmware commit successful |
| 2887 | + |
| 2888 | + admin@sonic:~$ sfputil show fwversion Ethernet180 |
| 2889 | + Image A Version: 0.3.5 |
| 2890 | + Image B Version: 0.3.6 |
| 2891 | + Factory Image Version: 0.0.0 |
| 2892 | + Running Image: B |
| 2893 | + Committed Image: B |
| 2894 | + Active Firmware: 0.3.6 |
| 2895 | + Inactive Firmware: 0.3.5 |
| 2896 | + ``` |
| 2897 | +
|
| 2898 | +### CMIS firmware target mode commands |
| 2899 | +
|
| 2900 | +This command is vendor-specific and supported on the modules to set the target mode to perform remote firmware upgrades. The target modes can be set as 0 (local- E0), 1 (remote end E1), or 2 (remote end E2). Depending on the mode set, the remote or local end will respond to CDB/I2C commands from host's E0 end. After setting the target mode, we can use **sfputil** firmware upgrade commands, will be executed on the module for which target mode is set. |
| 2901 | +
|
| 2902 | +Example of the module supporting target mode |
| 2903 | +
|
| 2904 | + |
| 2905 | +
|
| 2906 | +**sfputil firmware target** |
| 2907 | +
|
| 2908 | +- Usage: |
| 2909 | + ``` |
| 2910 | + sfputil firmware target [OPTIONS] PORT_NAME TARGET |
| 2911 | + |
| 2912 | + Select target end for firmware download |
| 2913 | + 0-(local) |
| 2914 | + |
| 2915 | + 1-(remote-A) |
| 2916 | + |
| 2917 | + 2-(remote-B) |
| 2918 | + ``` |
| 2919 | +
|
| 2920 | +- Example: |
| 2921 | + ``` |
| 2922 | + admin@sonic:~$ sfputil firmware target Ethernet180 1 |
| 2923 | + Target Mode set to 1 |
| 2924 | + ``` |
2788 | 2925 |
|
2789 | 2926 | ## DHCP Relay
|
2790 | 2927 |
|
|
0 commit comments