Hi, I need add to OrionNPM about 220 nodes that actually are offline; Network Discovery only adds up nodes, then do it manually (one by one) is a really mess. Then I think in a simple an fast way to add the down nodes with Network Discovery -> Bulk Upload :-)
The trick is add to windows the "Microsoft loopback Adapter", It´s a virtual adapter, then assign the down IP´s to the new interface in batch and run Network Discovery. Finally uninstall the Virtual adapter ;-)
Success!!!!
Add Vitual loopback Adapter
- Control Panel -> Add Hardware
- You will next be asked if the hardware is connected. Select Yes
- Now, select *from the bottom of the list* the ‘Add a new hardware device’ option
- Click Install the hardware that I manually select from a list, and then click Next.
- Select ‘Network adapters’ from the Common hardware types section within the dialog box. Click Next.
- Select Microsoft and then the Microsoft Loopback Adapater, and then click Next.
- Lastly, you will be prompted to Finish up the installation.
- In Network Connections rename the new adapter to Loopback
Adding a lot of IP to Loopback
In the CLI window paste a batch like this:
netsh in ip add address "Loopback" 10.0.0.2 255.255.255.254
netsh in ip add address "Loopback" 10.4.0.2 255.255.255.254
netsh in ip add address "Loopback" 10.0.9.2 255.255.255.254
netsh in ip add address "Loopback" 10.1.0.9 255.255.255.254
netsh in ip add address "Loopback" 10.7.0.2 255.255.255.254
netsh in ip add address "Loopback" 10.0.0.5 255.255.255.254
...
NOTES
- Be careful with the net mask assigned to each IP (must be very small), if overlaps with local network you can lose conectivity wit your Orion server
- Virtual Adapter only supports 254 IP´s