A magnetic-inductive flowmeter with a nonconductive measuring tube, a magnetic field generating apparatus, two measuring electrodes conductively coupled to the medium for tapping a measuring-circuit voltage induced in the flowing medium, and with a measuring device for detecting an empty tube. A sensor distinguishes an origin of a control action applied to the control element. The electronic apparatus has a monitor unit for monitoring a consumption power, an operation state or a manipulated state of the electronic apparatus, and a purge permission unit for judging from an output of the monitor unit whether the purge control unit is permitted to issue the purge instruction, and outputting a judgment result to the purge control unit. The indication that the mechanism is in place is provided by a trusted source, such as a hardware root of trust responsible for initiating the mechanism. A system according to the technique can, for example, accomplish concurrent in-depth packet analysis of one or more interfaces on a wireless switch.