<?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 Re: Clish quirk with SNMP config in General Topics</title>
    <link>https://community.checkpoint.com/t5/General-Topics/Clish-quirk-with-SNMP-config/m-p/204688#M33963</link>
    <description>&lt;P&gt;Btw, customers cant see that PMTR, thats internal to CP employees only, it would seem.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jan 2024 14:50:15 GMT</pubDate>
    <dc:creator>the_rock</dc:creator>
    <dc:date>2024-01-31T14:50:15Z</dc:date>
    <item>
      <title>Clish quirk with SNMP config</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Clish-quirk-with-SNMP-config/m-p/202648#M33724</link>
      <description>&lt;P&gt;While trying to make my firewalls' configurations more consistent, I noticed something weird. Here it is reproduced on one of my personal boxes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Expert@DallasSA]# clish -c "show configuration" | grep snmp
set snmp agent-version any
set snmp community public read-only 
set snmp agent-version v3-Only
...

[Expert@DallasSA]# clish
DallasSA&amp;gt; delete snmp community public
NMSSNM0075  SNMP v3-Only does not support community string.
DallasSA&amp;gt; set snmp agent-version any
DallasSA&amp;gt; delete snmp community public
DallasSA&amp;gt; set snmp agent-version v3-only
DallasSA&amp;gt; save config
DallasSA&amp;gt; exit

[Expert@DallasSA]# clish -c "show configuration" | grep snmp
set snmp agent-version v3-Only
...

[Expert@DallasSA]# fw ver
This is Check Point's software version R81.10 - Build 055

[Expert@DallasSA]# cpinfo -y fw1 | grep Take

This is Check Point CPinfo Build 914000239 for GAIA
	HOTFIX_R81_10_JUMBO_HF_MAIN	Take:  129&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's possible for the clish config to have both "set snmp agent-version any" and "set snmp agent-version v3-Only" in it at the same time. When these lines are both present in the config, you have to enter "set snmp agent-version any" &lt;STRONG&gt;again&lt;/STRONG&gt; in order to interact with the v2 community causing the "agent-version any" line to stick around. Once you have deleted it, you can&amp;nbsp;switch to v3-Only and the "agent-version any" line actually goes away.&lt;/P&gt;
&lt;P&gt;Seems like at least two minor bugs in clish.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 22:36:22 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Clish-quirk-with-SNMP-config/m-p/202648#M33724</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2024-01-09T22:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Clish quirk with SNMP config</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Clish-quirk-with-SNMP-config/m-p/204681#M33961</link>
      <description>&lt;P&gt;This is by design, not a bug.&lt;BR /&gt;This behavior is to save the configuration when switching to version any (v1/v2/v3) or when implementing the configuration on different machine (see &lt;A href="https://jira-prd.checkpoint.com/browse/PMTR-68517" target="_self"&gt;PMTR-68517&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nitzan&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 14:28:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Clish-quirk-with-SNMP-config/m-p/204681#M33961</guid>
      <dc:creator>nitzanef</dc:creator>
      <dc:date>2024-01-31T14:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Clish quirk with SNMP config</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Clish-quirk-with-SNMP-config/m-p/204686#M33962</link>
      <description>&lt;P&gt;I get same thing on R81.20 jumbo 41&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 14:49:26 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Clish-quirk-with-SNMP-config/m-p/204686#M33962</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2024-01-31T14:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Clish quirk with SNMP config</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Clish-quirk-with-SNMP-config/m-p/204688#M33963</link>
      <description>&lt;P&gt;Btw, customers cant see that PMTR, thats internal to CP employees only, it would seem.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 14:50:15 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Clish-quirk-with-SNMP-config/m-p/204688#M33963</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2024-01-31T14:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Clish quirk with SNMP config</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Clish-quirk-with-SNMP-config/m-p/204696#M33964</link>
      <description>&lt;P&gt;Then that is a&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;terrible&lt;/STRONG&gt;&lt;/EM&gt; design on multiple levels.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;"set snmp agent-version any" and "set snmp agent-version v3-Only" should not be able to coexist in the config. If you're going to use the string "v3-Only", then it should mean v3&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;ONLY&lt;/STRONG&gt;&lt;/EM&gt;. This is clearly a bug in either how clish works or in the naming of the config option.&lt;/LI&gt;
&lt;LI&gt;If you're going to allow v2 config to remain when the agent version is set to both any and v3-Only, you should allow it to be removed when the agent version is set to v3-Only. This is clearly a bug in the validation of whether commands affecting v2 can be entered. The user should always be able to remove configuration items without changing unrelated items.&lt;/LI&gt;
&lt;LI&gt;If there's v2 configuration, trying to set agent-version to v3-Only should at least generate a warning. I'd argue it should simply reject the input in the same way you can't delete a bond before you remove all of its members (deleting a bond could clearly be interpreted as removing all of its members from it, but clish doesn't work that way).&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 31 Jan 2024 15:32:56 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Clish-quirk-with-SNMP-config/m-p/204696#M33964</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2024-01-31T15:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Clish quirk with SNMP config</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Clish-quirk-with-SNMP-config/m-p/204697#M33965</link>
      <description>&lt;P&gt;Those are definitely valid points&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/27871"&gt;@Bob_Zimmerman&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 15:35:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Clish-quirk-with-SNMP-config/m-p/204697#M33965</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2024-01-31T15:35:46Z</dc:date>
    </item>
  </channel>
</rss>

