Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.8.16
-
Component/s: REST
-
Security Level: Default (Default Security Scheme)
-
Labels:
-
Environment:CentOS 5.7 x86. Perl v5.8.8. Perl modules for provision.pl - perl-libwww-perl-5.805-1.1.1, perl-XML-Parser-2.34-6.1.2.2.1, perl-XML-Twig-3.26-1.fc6, perl-URI-1.35-3
Description
I wrote a script:
/opt/opennms/bin/provision.pl --username admin --password xxx requisition add $name
/opt/opennms/bin/provision.pl --username admin --password xxx node add $name $id $name
/opt/opennms/bin/provision.pl --username admin --password xxx interface add $name $id $ip
/opt/opennms/bin/provision.pl --username admin --password xxx interface set $name $id $ip descr $name
/opt/opennms/bin/provision.pl --username admin --password xxx interface set $name $id $ip snmp-primary P
/opt/opennms/bin/provision.pl --username admin --password xxx interface set $name $id $ip status 1
/opt/opennms/bin/provision.pl --username admin --password xxx service add $name $id $ip ICMP
/opt/opennms/bin/provision.pl --username admin --password xxx service add $name $id $ip SNMP
/opt/opennms/bin/provision.pl --username admin --password xxx service add $name $id $ip Telnet
/opt/opennms/bin/provision.pl --username admin --password xxx category add $name $id Prodaction
/opt/opennms/bin/provision.pl --username admin --password xxx snmp set $ip 'public' version=v2c
/opt/opennms/bin/provision.pl --username admin --password xxx requisition import $name
When you start, I ask the $name, $ip and $id, in response to seeing the conclusion:
Undefined subroutine &main::uri_escape_utf8 called at /opt/opennms/bin/provision.pl line 327.
Undefined subroutine &main::uri_escape_utf8 called at /opt/opennms/bin/provision.pl line 327.
Undefined subroutine &main::uri_escape_utf8 called at /opt/opennms/bin/provision.pl line 327.
Undefined subroutine &main::uri_escape_utf8 called at /opt/opennms/bin/provision.pl line 542.
After running the script, I see a new Node in the WEB GUI, but the parameters
interface set XXX descr
interface set XXX snmp-primary P
interface set XXX status 1
snmp set XXX 'public' version = v2c
Do not apply and Node not queried via SNMP until I manually set to "SNMP Primary P" in the WEB GUI
Thus, it turns out that neither team "set" has not been applied.
/opt/opennms/bin/provision.pl --username admin --password xxx requisition add $name
/opt/opennms/bin/provision.pl --username admin --password xxx node add $name $id $name
/opt/opennms/bin/provision.pl --username admin --password xxx interface add $name $id $ip
/opt/opennms/bin/provision.pl --username admin --password xxx interface set $name $id $ip descr $name
/opt/opennms/bin/provision.pl --username admin --password xxx interface set $name $id $ip snmp-primary P
/opt/opennms/bin/provision.pl --username admin --password xxx interface set $name $id $ip status 1
/opt/opennms/bin/provision.pl --username admin --password xxx service add $name $id $ip ICMP
/opt/opennms/bin/provision.pl --username admin --password xxx service add $name $id $ip SNMP
/opt/opennms/bin/provision.pl --username admin --password xxx service add $name $id $ip Telnet
/opt/opennms/bin/provision.pl --username admin --password xxx category add $name $id Prodaction
/opt/opennms/bin/provision.pl --username admin --password xxx snmp set $ip 'public' version=v2c
/opt/opennms/bin/provision.pl --username admin --password xxx requisition import $name
When you start, I ask the $name, $ip and $id, in response to seeing the conclusion:
Undefined subroutine &main::uri_escape_utf8 called at /opt/opennms/bin/provision.pl line 327.
Undefined subroutine &main::uri_escape_utf8 called at /opt/opennms/bin/provision.pl line 327.
Undefined subroutine &main::uri_escape_utf8 called at /opt/opennms/bin/provision.pl line 327.
Undefined subroutine &main::uri_escape_utf8 called at /opt/opennms/bin/provision.pl line 542.
After running the script, I see a new Node in the WEB GUI, but the parameters
interface set XXX descr
interface set XXX snmp-primary P
interface set XXX status 1
snmp set XXX 'public' version = v2c
Do not apply and Node not queried via SNMP until I manually set to "SNMP Primary P" in the WEB GUI
Thus, it turns out that neither team "set" has not been applied.