Welcome, Guest. Please login or register.

Author Topic: Disabling unused interface  (Read 1681 times)

Saguu

  • Newbie
  • *
  • Posts: 27
    • View Profile
Disabling unused interface
« on: May 30, 2019, 10:19:38 am »
Hello,
NeDi is able to find interfaces not used for 30 days by switches. Is it also possible to massively disable all unused interfaces of all switches? Or can you run a TCL script from NeDi?

Thank you for your help

Saguu

rickli

  • Administrator
  • Hero Member
  • *****
  • Posts: 2893
    • View Profile
    • NeDi
Re: Disabling unused interface
« Reply #1 on: June 03, 2019, 04:32:08 pm »
It's not possible out of the box yet. If you know PHP, you could add some customizations in iftools.php and devtools.php to prepare config statements and send them to Devices-Write...
Please consider Other-Invoices on your NeDi installation for an annual contribution, tx!
-Remo

Saguu

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: Disabling unused interface
« Reply #2 on: August 26, 2019, 08:48:30 pm »
Hello,

I tried to do it via PHP but unfortunately I'm really not good in PHP.
Instead, I use python and netmiko : (https://github.com/tnielsen2/cisco-port-shutdown)

Saguu
« Last Edit: September 29, 2021, 08:09:05 am by Saguu »