Is it possible to set the OneClick Topology Arrangement Default to Tree for all container?
Release : 20.2
Component : Spectrum OneClick
Spectrum Does not currently have a way to set the default arrangement option. The arrangement
could however be set through scripting/cli.
use seek to find the desired models
use AutoPlace to change the arrangement
Attribute ModelType_Handle/0x10001
LAN Container Model Type Handle: 0x1002d
Seek Command to find All LAN Containers
❯ cd $SPECROOT/vnmsh
❯ ./connect
❯ ./seek attr=0x10001,val=0x1002d
MHandle MName MTypeHnd MTypeName
0x1000473 BGP Alarm 0x1002d LAN
0x100006e BroadcomIT 0x1002d LAN
0x1000277 TEST 0x1002d LAN
0x1000527 US ARMY 0x1002d LAN
0x100072e CiscoWLC 0x1002d LAN
The following would change the AutoPlacement of all LAN Containers on a SpectroSERVER from Radial to Tree
Example shell script
#!/bin/sh
CLIMNAMEWIDTH=64
export CLIMNAMEWIDTH
CLISESSID=$$
export CLISESSID
SPECROOT=`grep SPECROOT /opt/SPECTRUM/spectrum80.env|cut -d'=' -f2`
VNMSHPATH="${SPECROOT}/vnmsh"
SSTOOLPATH="${SPECROOT}/SS-Tools"
${VNMSHPATH}/connect
for i in `${VNMSHPATH}/seek attr=0x10001,val=0x1002d | grep -v MHandle | awk ' {print $1}'`
do
echo "MHandle: ${i}"
${SSTOOLPATH}/AutoPlace -mh $i -type Tree
done
${VNMSHPATH}/disconnect