Automated Interface Name poll Script

Started by anw, January 16, 2017, 09:58:48 PM

Previous topic - Next topic

anw

Hey guy,

i want to setup a script which runs every x hours and re checks all the interface descriptions (aliases) - the default poll - poll interface names works - but i would like to do this automatically on a template with ~50 switches.
Any help how to set this up would be appreciated

Best

Victor Kirhenshtein

Hi,

there are two options. First, you can schedule script run in scheduled tasks. You'll have to enumerate all nodes in that script and check interfaces. Other option is to create a hook script for configuration poll - then it will be called for each node after configuration poll, so you'll have to write code only for checking interfaces.

Best regards,
Victor

anw

Could you give an example for this? i know how to create scheduled tasks - but how is the command to only check for interfaces ?
about hook script - im not sure how to start there

Thanks

Victor Kirhenshtein

Just thought that if interface name poll works for you, so should configuration poll. How often you run configuration polls?

Best regards,
Victor

anw

Configueration Poll is set to default  -> 3600