What are the event codes for maintenance mode that can be used to audit who and when devices are placed into Maintenance Mode?
All supported version
In Maintenance Even Type code is 0x10222
Out of Maintenance Event Type code is 0x10223
Standard Out-of-Box (OOB) data retention for the Archive Manager's DDM database is 45 days. To retrieve older user-initiated events, the SRM database must be queried if its retention period (typically 150+ days) is sufficient.
select * from event e, model m where m.model_key=e.model_key AND e.type=0x10222 AND m.model_name='[DEVICE_NAME]' and e.time > '[YYYY-MM-DD HH:MM:SS]';The MySQL query returns a list of events where the device was placed into Maintenance Mode, including the timestamp and the user responsible.