Background: We have an interface priority custom property to allow differing types of interface or based on clients whims, to alert into our ITSM at the assigned level.
The Issue: we need to find a way to automate interfaces being added as a P4, whether it's a brand new piece of kit or just an extra interface on a single device being enabled.
The problem: I don't know how best to automate this.
- I can easily set up a report to send me any interfaces that aren't assigned to P2, P3 or P4 but that's manual and reactive, and relies on me being in.
Ideally I'd like to have a job (?I guess?) run that finds any interface that doesn't have a priority assigned and change it to P4. This job would run daily in the small hours, as it is rare an interface added today will be in support the same day or even less likely that it will alert.
But I have no idea where to start building a script that would do this for me, or even if a job is the right approach. An alert might be a better approach and it 'fixes' the issue within minutes - but it is still the issue of how to do the fix that I don't have a clue about.
Suggestions?
Anybody already done this on another CP that I can edit to our needs?