1
LAN/Switching / Re: Bulk Disabling of certain ports (NeDi 1.9.100)
« on: September 27, 2021, 11:36:05 am »
well i'm not sure if NeDi can do it.
i normaly get all the devices from NeDi and than use the list as in input for a shell script which is running on the NeDi host.
you would need to modify the attached scripts a bit to fit your needs.
you will also need to have expect installed
basicly you will have a start script that reads the list line per line.
calls the actual ssh script with the parameters.
these parameters can be used in the script to connect to a switch and run predefined commands.
in this script i'm changing the network part of the IP and move it to a new subnet. so it will extract the the last octet of the ip and send as parameter D to the actual changing script.
you would need to read the IP and port from your input file and hand it over.
in order to get the list try this under device -> interface
Last change <= 09/13/21 00:00
i normaly get all the devices from NeDi and than use the list as in input for a shell script which is running on the NeDi host.
you would need to modify the attached scripts a bit to fit your needs.
you will also need to have expect installed
basicly you will have a start script that reads the list line per line.
calls the actual ssh script with the parameters.
these parameters can be used in the script to connect to a switch and run predefined commands.
in this script i'm changing the network part of the IP and move it to a new subnet. so it will extract the the last octet of the ip and send as parameter D to the actual changing script.
you would need to read the IP and port from your input file and hand it over.
in order to get the list try this under device -> interface
Last change <= 09/13/21 00:00