switchport port-security aging static command is specifically used in order to specify the aging time of statically defined secure MAC addresses on a port. If the
static keyword is not used, then the aging is only applied to the dynamically learned addresses. More information on these commands can be found here:
The err-disabled state has a feature on Cisco devices where you can configure an automatic recovery of the interface based on the reason for the err-disabled state. Specifically, the following command will configure an interface that has been put in err-disabled state due to a port security violation to recover after 300 seconds, or five minutes:
errdisable recovery cause psecure-violation
This is a global command that is configured in the global configuration mode. The default timer for the recovery is 300 seconds, but this can be changed to 120 seconds for example, using the following command:
errdisable recovery interval 120
Remember that errdisable is a state of an interface if there is an error or a violation of some parameters set in the config. It is not exclusive to port security. Port security is only one of the many reasons for an err-disabled state to occur on an interface.
More information about the err-disable state and its automatic recovery can be found here:
I hope this has been helpful!