NetXMS Support Forum

English Support => General Support => Topic started by: anw on January 16, 2017, 09:58:48 PM

Title: Automated Interface Name poll Script
Post by: anw on January 16, 2017, 09:58:48 PM
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
Title: Re: Automated Interface Name poll Script
Post by: Victor Kirhenshtein on January 18, 2017, 12:22:28 AM
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
Title: Re: Automated Interface Name poll Script
Post by: anw on February 01, 2017, 01:19:57 PM
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
Title: Re: Automated Interface Name poll Script
Post by: Victor Kirhenshtein on February 06, 2017, 09:59:09 AM
Just thought that if interface name poll works for you, so should configuration poll. How often you run configuration polls?

Best regards,
Victor
Title: Re: Automated Interface Name poll Script
Post by: anw on February 06, 2017, 12:52:25 PM
Configueration Poll is set to default  -> 3600