If password aging is enabled, returns the configured password expiration in days. If aging is disabled, returns 0.
Switch passwords have a default aging time of 180 days.Use with the "Cisco Small Business Switch: StartupConfig: Configuration Captured" metric when incorporating into an alert rule.
to_number(split(StartupConfig,
\r
)[?contains(@,'passwords aging')]|@[0].reverse(split(not_null(@,'180'),' '))[0])