we have a requirement to shutdown ports in unattended locations such as meeting rooms. Is it possible to have a port automatically shutdown after a period of inactivity? for example, if we know a meeting will start at 10am we can manually open the port before this. once the meeting is over and they have neglected to tell us the port is no longer required, the port could close 1.5 hours after last use instead of being open for days until we are requested to close it.
One way to solve this is by using port-security. It is not timebased though.
This will tell the switch to learn the mac address automaticaly, and keep it until you clear it. if someone else tries to use it, it will shut down.
switchport port-security maximum 1
switchport port-security mac-address sticky
switchport port-security violation shutdown
Another approach could be using timebased acl's.