I'm using the provision.pl script to do some integration from an
external system to opennms.
Periodically, provision.pl is called to add or delete ip interfaces from
a node, or to set some ip interfaces as managed or as unmanaged.
Everything is working fine, but looks like the options for setting the
managed/unmanaged status for an interface are not working.
From the help of the script:
interface set <foreign-source> <foreign-id> <ip-address> <key>
* status - 1 for managed, 3 for unmanaged (yes, I
So, the command I'm executing is to set an interface as unmanaged is:
provision.pl interface set RequisitionName ForeignID IPADDRESS status 3
and for setting an interface as managed:
provision.pl interface set RequisitionName ForeignID IPADDRESS status 1
I don't get any kind of error from the script, but the status is always
Managed. I cannot find a way to set it as Unmanaged. I also tried with
status 3, status F (as in db), status -1, ..
Am I missing something or the script is just not working?