<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Transceiver &amp;amp; Line Card Inventory - One-liner in Scripts</title>
    <link>https://community.checkpoint.com/t5/Scripts/Transceiver-amp-Line-Card-Inventory-One-liner/m-p/163344#M1006</link>
    <description>&lt;DIV class=""&gt;
&lt;P style="text-align: center;"&gt;&lt;span class="lia-unicode-emoji" title=":rocket:"&gt;🚀&lt;/span&gt;&amp;nbsp;Runs on all Check Point Gaia systems.&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":graduation_cap:"&gt;🎓&lt;/span&gt;&amp;nbsp;Referenced in&amp;nbsp;&lt;A href="https://support.checkpoint.com/results/sk/sk180812" target="_blank" rel="noopener"&gt;sk180812&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;One-liner (Bash) to show the inventory of plugged transceivers, DAC cables and line cards.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In expert mode run:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;echo;if [[ -f "/etc/cp-release" ]] &amp;amp;&amp;amp; ! [[ `grep Embed /etc/cp-release` ]];then stat=`cpstat os`;tput bold;echo -n "$stat"|grep "Appliance Name:"|sed 's/Appliance Name://'|tr -s ' '|tr -d '\n';if [[ `echo "$stat"|grep "Maestro"` ]] &amp;amp;&amp;amp; [[ `grep original_name /etc/appliance_config.xml|tr '&amp;lt;&amp;gt;' '\n'|grep "Check Point"` ]];then echo; echo -n " ";grep original_name /etc/appliance_config.xml|tr '&amp;lt;&amp;gt;' '\n'|grep "Check Point"|tr -d '\n';fi;tput sgr0;if [[ `echo "$stat"|grep Manufacturer|grep CheckPoint` ]];then echo -n " (Serial: `echo "$stat"|grep "Appliance SN"|awk '{print $NF}'`, MAC: `dmidecode -t1|grep UUID|awk '{print $NF}' FS=-|sed 's/../&amp;amp;:/g; s/:$//'`)";fi;echo;echo;sfps=0;tput bold;echo " Line cards";tput sgr0;if [[ `find /sys/class/net -name eth*-01 2&amp;gt;/dev/null` ]]; then find /sys/class/net -name eth*-01 2&amp;gt;/dev/null|while read line;do sv=`cat "$line/device/subsystem_vendor" 2&amp;gt;/dev/null`;sd=`cat "$line/device/subsystem_device" 2&amp;gt;/dev/null`;if [[ -n "$sv" ]] &amp;amp;&amp;amp; [[ -n "$sd" ]];then grep "$sv" /etc/hw_info/linecard.lst 2&amp;gt;/dev/null|grep "$sd"|awk -F ',' '{print "Model: "$3" Type: "$4}'|tr -d '"'|tr -s " "|tr -d "\t"|sed "s/\bModel\b/\x1b[1;1m&amp;amp;\x1b[m/g;s/\bType\b/\x1b[1;1m&amp;amp;\x1b[m/g;s/^/\t/";fi;done;else echo -e "\n\t-";fi;echo;nics=`ls -d /sys/class/net/*/device 2&amp;gt;/dev/null|awk -F '/' '{print $5}'`;if [[ -n "$nics" ]];then phys=`echo "$nics"|wc -l`;echo "$nics"|while read line;do if [[ `ethtool -m $line 2&amp;gt;/dev/null` ]];then sfps=1;tput bold;echo " "$line;tput sgr0;etht=`ethtool -m $line 2&amp;gt;/dev/null|awk '/Transceiver type/ &amp;amp;&amp;amp; ++count==1{sub(/Transceiver type/,"Transceiver_type")} 1'|grep 'Identifier\|Transceiver_type\|Length\|Vendor name\|Vendor SN\|Vendor PN'|sed 's/Transceiver_type/Transceiver type/'|grep -v ': 0m\|: 0km'`;vendor=`ethtool -m $line 2&amp;gt;/dev/null|grep 'Vendor PN'|awk '{print $NF}'`;file=`find /etc/hcp/tests -name hcp_optic_info.json 2&amp;gt;/dev/null|head -n1`;if [[ -n "$file" ]] &amp;amp;&amp;amp; [[ -s "$file" ]] &amp;amp;&amp;amp; $CPDIR/jq/jq -e . "$file" &amp;gt;/dev/null 2&amp;gt;&amp;amp;1;then data=`$CPDIR/jq/jq -e -r ".transceivers.CheckPoint_PartNumber[\"$vendor\"]" "$file" 2&amp;gt;/dev/null`;elif [[ -f /etc/xcvr_list.csv ]];then data=`awk -F',' -v pn="$vendor" '$14==pn{print $3}' /etc/xcvr_list.csv|head -n1`;[[ -z "$data" ]] &amp;amp;&amp;amp; false;else data="";false;fi;if [[ $? -ne 0 ]];then echo "$etht";else echo "$etht$data"|sed "s/^[ \t]*//"|tr -d '"{},'|tr -s " "|sed "s/:/@:/"|column -t -s '@'|sed "s/^/\t/"|grep -v "TBD"$;fi;echo;fi;((phys--));if [[ $phys -eq 0 ]] &amp;amp;&amp;amp; [[ sfps -eq 0 ]];then echo -e " \033[1;31mNo SFPs/DACs found! \033[m\n";fi;done;else echo -e " \033[1;31mNo network interfaces found! \033[m\n";fi;unset stat sfps phys etht line data file vendor nics sv sd;else echo -e " \033[1;31mUnsupported OS! \033[m\n";fi&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;Integrated with our &lt;STRONG&gt;&lt;A href="https://community.checkpoint.com/t5/Scripts/ccc-Common-Check-Point-Commands/m-p/38488#M4" target="_blank" rel="noopener"&gt;ccc script&lt;/A&gt;&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 10 Feb 2026 13:56:42 GMT</pubDate>
    <dc:creator>Danny</dc:creator>
    <dc:date>2026-02-10T13:56:42Z</dc:date>
    <item>
      <title>Transceiver &amp; Line Card Inventory - One-liner</title>
      <link>https://community.checkpoint.com/t5/Scripts/Transceiver-amp-Line-Card-Inventory-One-liner/m-p/163344#M1006</link>
      <description>&lt;DIV class=""&gt;
&lt;P style="text-align: center;"&gt;&lt;span class="lia-unicode-emoji" title=":rocket:"&gt;🚀&lt;/span&gt;&amp;nbsp;Runs on all Check Point Gaia systems.&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":graduation_cap:"&gt;🎓&lt;/span&gt;&amp;nbsp;Referenced in&amp;nbsp;&lt;A href="https://support.checkpoint.com/results/sk/sk180812" target="_blank" rel="noopener"&gt;sk180812&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;One-liner (Bash) to show the inventory of plugged transceivers, DAC cables and line cards.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In expert mode run:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;echo;if [[ -f "/etc/cp-release" ]] &amp;amp;&amp;amp; ! [[ `grep Embed /etc/cp-release` ]];then stat=`cpstat os`;tput bold;echo -n "$stat"|grep "Appliance Name:"|sed 's/Appliance Name://'|tr -s ' '|tr -d '\n';if [[ `echo "$stat"|grep "Maestro"` ]] &amp;amp;&amp;amp; [[ `grep original_name /etc/appliance_config.xml|tr '&amp;lt;&amp;gt;' '\n'|grep "Check Point"` ]];then echo; echo -n " ";grep original_name /etc/appliance_config.xml|tr '&amp;lt;&amp;gt;' '\n'|grep "Check Point"|tr -d '\n';fi;tput sgr0;if [[ `echo "$stat"|grep Manufacturer|grep CheckPoint` ]];then echo -n " (Serial: `echo "$stat"|grep "Appliance SN"|awk '{print $NF}'`, MAC: `dmidecode -t1|grep UUID|awk '{print $NF}' FS=-|sed 's/../&amp;amp;:/g; s/:$//'`)";fi;echo;echo;sfps=0;tput bold;echo " Line cards";tput sgr0;if [[ `find /sys/class/net -name eth*-01 2&amp;gt;/dev/null` ]]; then find /sys/class/net -name eth*-01 2&amp;gt;/dev/null|while read line;do sv=`cat "$line/device/subsystem_vendor" 2&amp;gt;/dev/null`;sd=`cat "$line/device/subsystem_device" 2&amp;gt;/dev/null`;if [[ -n "$sv" ]] &amp;amp;&amp;amp; [[ -n "$sd" ]];then grep "$sv" /etc/hw_info/linecard.lst 2&amp;gt;/dev/null|grep "$sd"|awk -F ',' '{print "Model: "$3" Type: "$4}'|tr -d '"'|tr -s " "|tr -d "\t"|sed "s/\bModel\b/\x1b[1;1m&amp;amp;\x1b[m/g;s/\bType\b/\x1b[1;1m&amp;amp;\x1b[m/g;s/^/\t/";fi;done;else echo -e "\n\t-";fi;echo;nics=`ls -d /sys/class/net/*/device 2&amp;gt;/dev/null|awk -F '/' '{print $5}'`;if [[ -n "$nics" ]];then phys=`echo "$nics"|wc -l`;echo "$nics"|while read line;do if [[ `ethtool -m $line 2&amp;gt;/dev/null` ]];then sfps=1;tput bold;echo " "$line;tput sgr0;etht=`ethtool -m $line 2&amp;gt;/dev/null|awk '/Transceiver type/ &amp;amp;&amp;amp; ++count==1{sub(/Transceiver type/,"Transceiver_type")} 1'|grep 'Identifier\|Transceiver_type\|Length\|Vendor name\|Vendor SN\|Vendor PN'|sed 's/Transceiver_type/Transceiver type/'|grep -v ': 0m\|: 0km'`;vendor=`ethtool -m $line 2&amp;gt;/dev/null|grep 'Vendor PN'|awk '{print $NF}'`;file=`find /etc/hcp/tests -name hcp_optic_info.json 2&amp;gt;/dev/null|head -n1`;if [[ -n "$file" ]] &amp;amp;&amp;amp; [[ -s "$file" ]] &amp;amp;&amp;amp; $CPDIR/jq/jq -e . "$file" &amp;gt;/dev/null 2&amp;gt;&amp;amp;1;then data=`$CPDIR/jq/jq -e -r ".transceivers.CheckPoint_PartNumber[\"$vendor\"]" "$file" 2&amp;gt;/dev/null`;elif [[ -f /etc/xcvr_list.csv ]];then data=`awk -F',' -v pn="$vendor" '$14==pn{print $3}' /etc/xcvr_list.csv|head -n1`;[[ -z "$data" ]] &amp;amp;&amp;amp; false;else data="";false;fi;if [[ $? -ne 0 ]];then echo "$etht";else echo "$etht$data"|sed "s/^[ \t]*//"|tr -d '"{},'|tr -s " "|sed "s/:/@:/"|column -t -s '@'|sed "s/^/\t/"|grep -v "TBD"$;fi;echo;fi;((phys--));if [[ $phys -eq 0 ]] &amp;amp;&amp;amp; [[ sfps -eq 0 ]];then echo -e " \033[1;31mNo SFPs/DACs found! \033[m\n";fi;done;else echo -e " \033[1;31mNo network interfaces found! \033[m\n";fi;unset stat sfps phys etht line data file vendor nics sv sd;else echo -e " \033[1;31mUnsupported OS! \033[m\n";fi&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;Integrated with our &lt;STRONG&gt;&lt;A href="https://community.checkpoint.com/t5/Scripts/ccc-Common-Check-Point-Commands/m-p/38488#M4" target="_blank" rel="noopener"&gt;ccc script&lt;/A&gt;&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 10 Feb 2026 13:56:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Transceiver-amp-Line-Card-Inventory-One-liner/m-p/163344#M1006</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2026-02-10T13:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Transceiver &amp; Line Card Inventory - One-liner</title>
      <link>https://community.checkpoint.com/t5/Scripts/Transceiver-amp-Line-Card-Inventory-One-liner/m-p/163366#M1007</link>
      <description>&lt;P&gt;Cool script. It noteworthy that it does not run on R80.30 (I know, that R80.30 is EoS!).&amp;nbsp; Seems to work only on actual releases. Can you name the minimal version it runs on?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 13:48:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Transceiver-amp-Line-Card-Inventory-One-liner/m-p/163366#M1007</guid>
      <dc:creator>Oliver_Fink</dc:creator>
      <dc:date>2022-11-28T13:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Transceiver &amp; Line Card Inventory - One-liner</title>
      <link>https://community.checkpoint.com/t5/Scripts/Transceiver-amp-Line-Card-Inventory-One-liner/m-p/163372#M1008</link>
      <description>&lt;P&gt;I'm glad that you like it.&lt;BR /&gt;The one-liner is intended to run on supported Gaia versions.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 10:25:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Transceiver-amp-Line-Card-Inventory-One-liner/m-p/163372#M1008</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2024-01-17T10:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Transceiver &amp; Line Card Inventory - One-liner</title>
      <link>https://community.checkpoint.com/t5/Scripts/Transceiver-amp-Line-Card-Inventory-One-liner/m-p/225535#M1166</link>
      <description>&lt;P&gt;A link to this CheckMates post was added in&amp;nbsp;&lt;A href="https://support.checkpoint.com/results/sk/sk180812" target="_blank" rel="noopener"&gt;https://support.checkpoint.com/results/sk/sk180812&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 18:01:25 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Transceiver-amp-Line-Card-Inventory-One-liner/m-p/225535#M1166</guid>
      <dc:creator>Sergei_Shir</dc:creator>
      <dc:date>2024-09-03T18:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Transceiver &amp; Line Card Inventory - One-liner</title>
      <link>https://community.checkpoint.com/t5/Scripts/Transceiver-amp-Line-Card-Inventory-One-liner/m-p/270088#M1471</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I get an error when running this.&lt;BR /&gt;There's a missing check if the "file=`find /etc/hcp/tests -name hcp_optic_info.json|head -n1`" element returns an empty result.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;[Expert@CORE-GW-TE100X-01:0]# echo;if [[ -f "/etc/cp-release" ]] &amp;amp;&amp;amp; ! [[ `grep Embed /etc/cp-release` ]];then stat=`cpstat os`;tput bold;echo -n "$stat"|grep "Appliance Name:"|sed 's/Appliance Name://'|tr -s ' '|tr -d '\n';if [[ `echo "$stat"|grep "Maestro"` ]] &amp;amp;&amp;amp; [[ `grep original_name /etc/appliance_config.xml|tr '&amp;lt;&amp;gt;' '\n'|grep "Check Point"` ]];then echo; echo -n " ";grep original_name /etc/appliance_config.xml|tr '&amp;lt;&amp;gt;' '\n'|grep "Check Point"|tr -d '\n';fi;tput sgr0;if [[ `echo "$stat"|grep Manufacturer|grep CheckPoint` ]];then echo -n " (Serial: `echo "$stat"|grep "Appliance SN"|awk '{print $NF}'`, MAC: `dmidecode -t1|grep UUID|awk '{print $NF}' FS=-|sed 's/../&amp;amp;:/g; s/:$//'`)";fi;echo;echo;sfps=0;tput bold;echo " Line cards";tput sgr0;if [[ `find /sys/class/net -name eth*-01 2&amp;gt;/dev/null` ]]; then find /sys/class/net -name eth*-01 2&amp;gt;/dev/null|while read line;do grep `cat $line'/device/subsystem_vendor'` /etc/hw_info/linecard.lst|grep `cat $line'/device/subsystem_device'`|awk -F ',' '{print "Model: "$3" Type: "$4}'|tr -d '"'|tr -s " "|tr -d "\t"|sed "s/\bModel\b/\x1b[1;\t1m&amp;amp;\x1b[m/g;s/\bType\b/\x1b[1;1m&amp;amp;\x1b[m/g;";done;else echo -e "\n\t-";fi;echo;phys=`find /sys/class/net/*/device|awk -F '/' '{print $5}'|wc -l`;echo "`find /sys/class/net/*/device|awk -F '/' '{print $5}'`"|while read line;do if [[ `ethtool -m $line 2&amp;gt;/dev/null` ]];then sfps=1;tput bold;echo " "$line;tput sgr0;etht=`ethtool -m $line 2&amp;gt;/dev/null|awk '/Transceiver type/ &amp;amp;&amp;amp; ++count==1{sub(/Transceiver type/,"Transceiver_type")} 1'|grep 'Identifier\|Transceiver_type\|Length\|Vendor name\|Vendor SN\|Vendor PN'|sed 's/Transceiver_type/Transceiver type/'|grep -v ': 0m\|: 0km'`;file=`find /etc/hcp/tests -name hcp_optic_info.json|head -n1`;data=`cat $file|$CPDIR/jq/jq -e -r ".transceivers.CheckPoint_PartNumber[\"$(ethtool -m $line 2&amp;gt;/dev/null|grep 'Vendor PN'|awk '{print $NF}')\"]"`;if [[ $? -eq 1 ]];then echo "$etht";if [[ `echo "$stat"|grep "Appliance Name"|grep "Check Point"` ]];then echo -e "\n\tSKU auto-detect failed. Manually retrieve SKU with this command:";tput bold;echo -e "\tgrep SKU $file|grep -v \"TBD\"";tput sgr0;fi;else echo "$etht$data"|sed "s/^[ \t]*//"|tr -d '"{},'|tr -s " "|sed "s/:/@:/"|column -t -s '@'|sed "s/^/\t/"|grep -v "TBD"$;fi;echo;fi;((phys--));if [[ $phys -eq 0 ]] &amp;amp;&amp;amp; [[ sfps -eq 0 ]];then echo -e " \033[1;31mNo SFPs/DACs found! \033[m\n";fi;done;unset stat sfps phys etht line data file;else echo -e " \033[1;31mUnsupported OS! \033[m\n";fi

 Check Point TE100X (Serial: -REDACTED-, MAC: -REDACTED-)

 Line cards
        Model: **bleep**-51081-090 Type: 8 ports 1GbE Copper
        Model: CPAC-4-10F Type: 4 ports 10GbE SFP+

 eth1-01
parse error: Invalid numeric literal at line 2, column 0
        Identifier         : 0x03 (SFP)
        Transceiver type   : Infiniband: 1X Copper Passive
        Length (Copper)    : 1m
        Vendor name        : 10Gtek
        Vendor PN          : CAB-10GSFP-P1M
        Vendor SN          : -REDACTED-

[Expert@CORE-GW-TE100X-01:0]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get that this isn't a supported DAC, but the it affects the script plumbing providing more useful details.&lt;BR /&gt;&lt;BR /&gt;BR&lt;/P&gt;
&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2026 17:03:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Transceiver-amp-Line-Card-Inventory-One-liner/m-p/270088#M1471</guid>
      <dc:creator>Eric_Beasley</dc:creator>
      <dc:date>2026-02-09T17:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Transceiver &amp; Line Card Inventory - One-liner</title>
      <link>https://community.checkpoint.com/t5/Scripts/Transceiver-amp-Line-Card-Inventory-One-liner/m-p/270136#M1478</link>
      <description>&lt;P&gt;Will try it tomorrow on one of customer's firewalls.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2026 01:41:23 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Transceiver-amp-Line-Card-Inventory-One-liner/m-p/270136#M1478</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2026-02-10T01:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Transceiver &amp; Line Card Inventory - One-liner</title>
      <link>https://community.checkpoint.com/t5/Scripts/Transceiver-amp-Line-Card-Inventory-One-liner/m-p/270164#M1479</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/919"&gt;@Eric_Beasley&lt;/a&gt;&amp;nbsp;: I updated the one-liner as&amp;nbsp;Check Point changed from&amp;nbsp;&amp;nbsp;&lt;EM&gt;hcp_optic_info.json&lt;/EM&gt;&amp;nbsp; to&amp;nbsp;&amp;nbsp;&lt;EM&gt;/etc/xcvr_list.csv&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2026 13:16:36 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Transceiver-amp-Line-Card-Inventory-One-liner/m-p/270164#M1479</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2026-02-10T13:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Transceiver &amp; Line Card Inventory - One-liner</title>
      <link>https://community.checkpoint.com/t5/Scripts/Transceiver-amp-Line-Card-Inventory-One-liner/m-p/270166#M1480</link>
      <description>&lt;P&gt;Just tested it in the lab, worked fine.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;[Expert@CP-GW:0]# echo;if [[ -f "/etc/cp-release" ]] &amp;amp;&amp;amp; ! [[ `grep Embed /etc/cp-release` ]];then stat=`cpstat os`;tput bold;echo -n "$stat"|grep "Appliance Name:"|sed 's/Appliance Name://'|tr -s ' '|tr -d '\n';if [[ `echo "$stat"|grep "Maestro"` ]] &amp;amp;&amp;amp; [[ `grep original_name /etc/appliance_config.xml|tr '&amp;lt;&amp;gt;' '\n'|grep "Check Point"` ]];then echo;echo -n " ";grep original_name /etc/appliance_config.xml|tr '&amp;lt;&amp;gt;' '\n'|grep "Check Point"|tr -d '\n';fi;tput sgr0;if [[ `echo "$stat"|grep Manufacturer|grep CheckPoint` ]];then echo -n " (Serial: `echo "$stat"|grep "Appliance SN"|awk '{print $NF}'`, MAC: `dmidecode -t1|grep UUID|awk '{print $NF}' FS=-|sed 's/../&amp;amp;:/g; s/:$//'`)";fi;echo;echo;sfps=0;tput bold;echo " Line cards";tput sgr0;if [[ `find /sys/class/net -name eth*-01 2&amp;gt;/dev/null` ]];then find /sys/class/net -name eth*-01 2&amp;gt;/dev/null|while read line;do grep `cat $line'/device/subsystem_vendor'` /etc/hw_info/linecard.lst|grep `cat $line'/device/subsystem_device'`|awk -F',' '{print "Model: "$3" Type: "$4}'|tr -d '"'|tr -s " "|tr -d "\t"|sed "s/\bModel\b/\x1b[1;1m&amp;amp;\x1b[m/g;s/\bType\b/\x1b[1;1m&amp;amp;\x1b[m/g;s/^/\t/";done;else echo -e "\n\t-";fi;echo;phys=`find /sys/class/net/*/device|awk -F'/' '{print $5}'|wc -l`;echo `find /sys/class/net/*/device|awk -F'/' '{print $5}'`|tr ' ' '\n'|while read line;do if [[ `ethtool -m $line 2&amp;gt;/dev/null` ]];then sfps=1;tput bold;echo " "$line;tput sgr0;etht=`ethtool -m $line 2&amp;gt;/dev/null|awk '/Transceiver type/ &amp;amp;&amp;amp; ++count==1{sub(/Transceiver type/,"Transceiver_type")} 1'|grep 'Identifier\|Transceiver_type\|Length\|Vendor name\|Vendor SN\|Vendor PN'|sed 's/Transceiver_type/Transceiver type/'|grep -v ': 0m\|: 0km'`;vendor=`ethtool -m $line 2&amp;gt;/dev/null|grep 'Vendor PN'|awk '{print $NF}'|tr -d ' \t\r'`;data="";file=`find /etc/hcp/tests -name hcp_optic_info.json 2&amp;gt;/dev/null|head -n1`;if [[ -n "$file" ]] &amp;amp;&amp;amp; [[ -s "$file" ]];then data=`$CPDIR/jq/jq -e -r ".transceivers.CheckPoint_PartNumber[\"$vendor\"]" "$file" 2&amp;gt;/dev/null`;elif [[ -f /etc/xcvr_list.csv ]];then data=`awk -F',' -v pn="$vendor" '{gsub(/[ \t\r]/,"",$14)}$14==pn{print $3}' /etc/xcvr_list.csv|head -n1`;fi;if [[ -n "$data" ]] &amp;amp;&amp;amp; [[ "$data" != "null" ]];then echo -e "$etht\nCheck Point SKU : $data"|sed "s/^[ \t]*//"|tr -d '"{},'|tr -s " "|sed "s/:/@:/"|column -t -s '@'|sed "s/^/\t/"|grep -v "TBD";else echo "$etht";fi;echo;fi;((phys--));if [[ $phys -eq 0 ]] &amp;amp;&amp;amp; [[ sfps -eq 0 ]];then echo -e " \033[1;31mNo SFPs/DACs found! \033[m\n";fi;done;unset stat sfps phys etht line data file vendor;else echo -e " \033[1;31mUnsupported OS! \033[m\n";fi&lt;/P&gt;
&lt;P&gt;Standard PC (i440FX + PIIX, 1996)&lt;/P&gt;
&lt;P&gt;Line cards&lt;/P&gt;
&lt;P&gt;-&lt;/P&gt;
&lt;P&gt;No SFPs/DACs found!&lt;/P&gt;
&lt;P&gt;[Expert@CP-GW:0]#&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2026 13:18:54 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Transceiver-amp-Line-Card-Inventory-One-liner/m-p/270166#M1480</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2026-02-10T13:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Transceiver &amp; Line Card Inventory - One-liner</title>
      <link>https://community.checkpoint.com/t5/Scripts/Transceiver-amp-Line-Card-Inventory-One-liner/m-p/273984#M1514</link>
      <description>&lt;P&gt;Hello Guys,&lt;BR /&gt;&lt;BR /&gt;FYI, I tested the last version on a 9100 but I get the following :&amp;nbsp;&lt;BR /&gt;"&lt;/P&gt;
&lt;P&gt;Check Point 9100 (Serial: XXXXBBXXXX, MAC: XX:XX:XX:XX:XX:XX)&lt;/P&gt;
&lt;P&gt;Line cards&lt;BR /&gt;cat: /sys/class/net/eth1-01/device/subsystem_vendor: No such file or directory&lt;BR /&gt;cat: /sys/class/net/eth1-01/device/subsystem_device: No such file or directory&lt;BR /&gt;Usage: grep [OPTION]... PATTERN [FILE]...&lt;BR /&gt;Try 'grep --help' for more information.&lt;/P&gt;
&lt;P&gt;find: /sys/class/net/*: No such file or directory&lt;BR /&gt;find: /sys/class/net/*: No such file or directory&lt;/P&gt;
&lt;P&gt;"&lt;/P&gt;
&lt;P&gt;There is definitely a 8 port cards 1/10G installed. The gateway is running R81.20 JHF 119&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2026 14:01:16 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Transceiver-amp-Line-Card-Inventory-One-liner/m-p/273984#M1514</guid>
      <dc:creator>Marien</dc:creator>
      <dc:date>2026-03-23T14:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Transceiver &amp; Line Card Inventory - One-liner</title>
      <link>https://community.checkpoint.com/t5/Scripts/Transceiver-amp-Line-Card-Inventory-One-liner/m-p/274053#M1515</link>
      <description>&lt;P&gt;Hi Danny,&lt;BR /&gt;&lt;BR /&gt;I just ran this on a 9800 running R82 in VSX mode and got this:&lt;/P&gt;
&lt;P&gt;Check Point 9800 (Serial: &amp;lt;removed&amp;gt;, MAC: &amp;lt;removed&amp;gt;)&lt;/P&gt;
&lt;P&gt;Line cards&lt;/P&gt;
&lt;P&gt;No network interfaces found!&lt;BR /&gt;&lt;BR /&gt;Output from 'show asset all' below if that helps&lt;BR /&gt;&lt;BR /&gt;Platform: RM-40-00&lt;BR /&gt;Model: Check Point 9800&lt;BR /&gt;Serial Number: &amp;lt;removed&amp;gt;&lt;BR /&gt;CPU Model: Intel(R) Xeon(R) Silver 4316 CPU&lt;BR /&gt;CPU Frequency: 2300.001 Mhz&lt;BR /&gt;Number of Cores: 40&lt;BR /&gt;CPU Hyperthreading: Enabled&lt;BR /&gt;Number of disks: 2&lt;BR /&gt;Disk 1 Model: SAMSUNG MZQL2960HCJR-00A07&lt;BR /&gt;Disk 1 Capacity: 960 GB&lt;BR /&gt;Disk 2 Model: SAMSUNG MZQL2960HCJR-00A07&lt;BR /&gt;Disk 2 Capacity: 960 GB&lt;BR /&gt;Total Disks size: 1.92 TB&lt;BR /&gt;Total Memory: 65536 MB&lt;BR /&gt;Memory Slot 1 Size: 8192 MB&lt;BR /&gt;Memory Slot 2 Size: 8192 MB&lt;BR /&gt;Memory Slot 3 Size: 8192 MB&lt;BR /&gt;Memory Slot 4 Size: 8192 MB&lt;BR /&gt;Memory Slot 5 Size: 8192 MB&lt;BR /&gt;Memory Slot 6 Size: 8192 MB&lt;BR /&gt;Memory Slot 7 Size: 8192 MB&lt;BR /&gt;Memory Slot 8 Size: 8192 MB&lt;BR /&gt;Power supply 1 name: Power Supply #1&lt;BR /&gt;Power supply 1 status: Up&lt;BR /&gt;Power supply 2 name: Power Supply #2&lt;BR /&gt;Power supply 2 status: Up&lt;BR /&gt;LOM Status: Installed&lt;BR /&gt;LOM Firmware Revision: 7.18.1&lt;BR /&gt;TPM Status: Available&lt;BR /&gt;TPM Version: 2.0&lt;BR /&gt;Number of line cards: 2&lt;BR /&gt;Line card 1 model: CPAC-8-1/10F-D&lt;BR /&gt;Line card 1 type: 8 ports 1/10GbE Fiber Rev 1.0&lt;BR /&gt;Line card 2 model: CPAC-8-1/10F-D&lt;BR /&gt;Line card 2 type: 8 ports 1/10GbE Fiber Rev 1.0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2026 09:01:26 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Transceiver-amp-Line-Card-Inventory-One-liner/m-p/274053#M1515</guid>
      <dc:creator>genisis__</dc:creator>
      <dc:date>2026-03-24T09:01:26Z</dc:date>
    </item>
  </channel>
</rss>

