Add SNMP configuration support for Grandstream HT801,HT802 and GXP2135 (#7384)

* Add SNMP configuration support for Grandstream HT801,HT802 and GXP2135 devices

 Added configurable SNMP settings to Grandstream HT801, HT802 and GX92135 provisioning template. Includes enable/disable toggle, SNMP version selection (default v2c), and community string configuration. SNMP is disabled by default
  for security.

* Update app_config.php

---------

Co-authored-by: Matthew Midgett <mmidgett@nationalwi-fi.com>
This commit is contained in:
Trick Solutions
2025-06-03 09:58:54 -04:00
committed by GitHub
parent d8ec8be917
commit fb574fead1
4 changed files with 71 additions and 5 deletions
@@ -1057,10 +1057,24 @@
<!-- ## Network/SNMP Settings ## -->
<!-- ############################################################################## -->
<!-- # Enable SNMP. Yes or No -->
{if isset($grandstream_snmp_enable) && $grandstream_snmp_enable == '1'}
<item name="network.snmp.enable">Yes</item>
{else}
<item name="network.snmp.enable">No</item>
{/if}
<!-- # Version. Version1, Version2, Version3. Default is Version3 -->
{if isset($grandstream_snmp_version)}
{if $grandstream_snmp_version == '1'}
<item name="network.snmp.version">Version1</item>
{elseif $grandstream_snmp_version == '2'}
<item name="network.snmp.version">Version2</item>
{else}
<item name="network.snmp.version">Version3</item>
{/if}
{else}
<item name="network.snmp.version">Version2</item>
{/if}
<!-- # Port -->
<!-- # Number. Default is 161. -->
@@ -1068,7 +1082,11 @@
<!-- # Community -->
<!-- # String -->
<item name="network.snmp.community"/>
{if isset($grandstream_snmp_community)}
<item name="network.snmp.community">{$grandstream_snmp_community}</item>
{else}
<item name="network.snmp.community">public</item>
{/if}
<!-- # SNMP Trap Version -->
<!-- # Version1, Version2, Version3. -->
@@ -274,12 +274,20 @@
<!-- # Enable SNMP. 0 - No, 1 - Yes, default value is 0. -->
<!-- # Number: 0, 1 -->
<!-- # Mandatory -->
{if isset($grandstream_snmp_enable)}
<P21896>{$grandstream_snmp_enable}</P21896>
{else}
<P21896>0</P21896>
{/if}
<!-- # SNMP Version. 1 - Version 1, 2 - Version 2c, 3 - Version 3. Default value is 3. -->
<!-- # Nmuber: 1, 2, 3 -->
<!-- # Mandatory -->
<P21904>3</P21904>
{if isset($grandstream_snmp_version)}
<P21904>{$grandstream_snmp_version}</P21904>
{else}
<P21904>2</P21904>
{/if}
<!-- # SNMP Port. Default is port 162 -->
<!-- # Number: 162 or 1025 to 65535 -->
@@ -305,7 +313,11 @@
<!-- # SNMPv1/v2c Community -->
<!-- # Max Character Number: 64 -->
<P21902></P21902>
{if isset($grandstream_snmp_community)}
<P21902>{$grandstream_snmp_community}</P21902>
{else}
<P21902>public</P21902>
{/if}
<!-- # SNMP Trap Community -->
<!-- # Max String Length: 64 -->
@@ -274,12 +274,20 @@
<!-- # Enable SNMP. 0 - No, 1 - Yes, default value is 0. -->
<!-- # Number: 0, 1 -->
<!-- # Mandatory -->
{if isset($grandstream_snmp_enable)}
<P21896>{$grandstream_snmp_enable}</P21896>
{else}
<P21896>0</P21896>
{/if}
<!-- # SNMP Version. 1 - Version 1, 2 - Version 2c, 3 - Version 3. Default value is 3. -->
<!-- # Nmuber: 1, 2, 3 -->
<!-- # Mandatory -->
<P21904>3</P21904>
{if isset($grandstream_snmp_version)}
<P21904>{$grandstream_snmp_version}</P21904>
{else}
<P21904>2</P21904>
{/if}
<!-- # SNMP Port. Default is port 162 -->
<!-- # Number: 162 or 1025 to 65535 -->
@@ -305,7 +313,11 @@
<!-- # SNMPv1/v2c Community -->
<!-- # Max Character Number: 64 -->
<P21902></P21902>
{if isset($grandstream_snmp_community)}
<P21902>{$grandstream_snmp_community}</P21902>
{else}
<P21902>public</P21902>
{/if}
<!-- # SNMP Trap Community -->
<!-- # Max String Length: 64 -->