The following describes how to run a scripted discovery of multiple devices via the Spectrum vnmsh
CLI
DX NetOps Spectrum all releases
A command line discovery of devices would need to be scripted using a similar approach to the following:
192.x.x.4
192.x.x.8
192.x.x
.10–192.x.x
.23
192.x.x
.27
192.x.x
.32
#!/bin/sh
./connect
for IP in ‘cat ip_list.txt’
do
./create model ip=$IP comm=public
done
./disconnect
“create association”
to associate the new model to the container:./create association rel=staticGlobalCollects rmh=<mh of GlobalCollection> mh=<mh of device>
For example:
device model handle: 0x10000d1
GC model handle: 0x100012d
With the above two model handles the command would look like the following:
./create association rel=staticGlobalCollects rmh=0x100012d lmh=0x10000d1