Communications services
3.7 SNMP
Communication
Function Manual, 12/2017, A5E03735815-AF
59
Example: Disabling SNMP for a CPU 1516-3 PN/DP
Task
As the security guidelines in your network do not allow SNMP, you want to disable SNMP for
a CPU 1516-3 PN/DP.
● CPU 1516-3 PN/DP with firmware version V2.0
● STEP 7 V14
First, create a data block that contains the structure of data record B071
H
. The figure below
shows the data block "Deactivate SNMP". The data block "Deactivate SNMP" contains the
data record B071
H
as well as additional tags that you use to transfer the data record. The tag
"snmp_deactivate" is used to trigger the job for WRREC. Place this tag in the retentive
memory area so that the value is also available in the startup OB (OB100).
Figure 3-15 Example: Data block for disabling SNMP
Transfer the data record B071
H
in the startup OB (OB100) to CPU 1516-3 PN/DP with the
WRREC instruction (write data record).