Software Development Kit (SDK) and API Discussions

Perl and Manageability SDK v9.3 apitest.pl issue

pete_veenbaas
4,230 Views

Greetings - Just started playing with the Neatpp ManageabilitySDK and Perl.

 

I tried a simple use case of the apitest.pl smple program and am running into the following issue:

 

[root@svlv6231# pwd
/opt/netapp-manageability-sdk-9.3/src/sample/Data_ONTAP/Perl

 

root@centosvm# perl apitest.pl cluster01 foo bar system-get-version
Can't locate object method "new" via package "HTTP::Request" (perhaps you forgot to load "HTTP::Request"?) at ../../../../lib/perl/NetApp/NaServer.pm line 722.

 

Anyone have any idea what this error message means. It appears I have all the required Perl Modules loaded at run time.

 

Thx in advance!

1 ACCEPTED SOLUTION

asulliva
4,119 Views

Hello @pete_veenbaas,

 

Which dependencies did you install?  When I use the Perl module(s) I install these:

 

  • LWP::UserAgent
  • XML::Parser
  • Net::SSLeay
  • Socket
  • Switch

LWP::UserAgent installs, among other things, the HTTP::Request module.

 

Also, you can see how to create a container based version of the NMSDK here if you're interested.

 

Hope that helps.

 

Andrew

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

View solution in original post

2 REPLIES 2

asulliva
4,120 Views

Hello @pete_veenbaas,

 

Which dependencies did you install?  When I use the Perl module(s) I install these:

 

  • LWP::UserAgent
  • XML::Parser
  • Net::SSLeay
  • Socket
  • Switch

LWP::UserAgent installs, among other things, the HTTP::Request module.

 

Also, you can see how to create a container based version of the NMSDK here if you're interested.

 

Hope that helps.

 

Andrew

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

pete_veenbaas
4,053 Views

Thx Andrew - I was missing the LWP::Useragent module

Public