The workflow is compiled in another tool and I wouldn't be able to export it. The rest URL I am using to add the device is:
http://$ONECLICK:8080/spectrum/restful/model?landscapeid=$LANDSCAPE$ipaddress=$IP&commstring=$STRING$retry=2$timeout=10000&parentmh=$PARENTwhere
$ONECLICK is the OneClick web server
$LANDSCAPE is the landscape id (we have three)
$IP is the ip address of the device being added
$STRING is the snmpv3 string
$PARENT is the model handle of the network container I want it placed in
This successfully adds the device but fails to place it in the Network container, and instead places it in the Universe (which is where the Network containers are also located).
The REST URL for maintenance mode is
http://$ONECLICK:8080/spectrum/restful/model/$MODELHANDLE?attr=0x1295d&val=falsewhere
$ONECLICK is the OneClick web server
$MODELHANDLE is the model handle of the device
This puts the IsManaged attribute to No, but the condition stays Normal and the device can still be polled.
Original Message:
Sent: 06-01-2020 03:28 PM
From: Joseph Ackley
Subject: Spectrum Rest API and Maintenance Mode
Dan,
Can you send the work flow and the rest commands?
Joe
Original Message:
Sent: 06-01-2020 03:01 PM
From: Dan Oviatt
Subject: Spectrum Rest API and Maintenance Mode
We have a workflow written in another tool that uses Rest commands to add devices to Spectrum (and other tools). We have been having a couple of problems with it. The devices are successfully added but they never go into the Network container specified in the command, they always get dumped into the Universe. Also the flow places the device in Maintenance Mode but this doesn't always work. The device shows InMaintenance is set to Yes in the information tab, but the condition is still Normal and the device is still being polled. Even the manual snmp poll button in the console can successfully contact the device and it shouldnt be able to if the device is in maintenance mode.