Forum Discussion

Blue_whale's avatar
Blue_whale
Icon for Cirrocumulus rankCirrocumulus
Feb 29, 2024

Help required on : SNMPv2 allowed address configuration

Hi Team , 

We have a compliance issue and have to match the SNMPv2 configuration exactly as below ...what is the CLI command to match the exact below configuration ?

allowed-addresses { (127.0.0.0\/255.0.0.0 |182.64.10.0\/255.255.255.0 |182.80.10.0\/255.255.255.0 |182.88.10.0\/255.255.255.0 |186.34.16.0\/255.255.255.0 |186.18.16.0\/255.255.255.0 ){6}}

 

Will the below command can fix the issue ? not sure what does {6} means !

modify sys snmp allowed-addresses replace-all-with { 127.0.0.0/255.0.0.0 182.64.10.0/255.255.255.0 182.80.10.0/255.255.255.0 182.88.10.0/255.255.255.0 186.34.16.0/255.255.255.0 186.18.16.0/255.255.255.0 }

 

  • The TMSH command you have will do the work, don't forget to run save sys config.

    The meaning of {6} does not pertain to F5, you need to see from the source of this syntax, but in my opinion it may be just a counter of the number of addresses within the list.