Hi there,
I have been working on a script based on the Self healing whitepaper - https://www.netapp.com/us/media/tr-4585.pdf
The script is for OCUM inode alert to trigger a WFA work flow to fix inodes
Since we are using the vApp I had to use a perl scrip instead of a power shell script
Thanks to the white paper and information available on this community i was able to get WFA workflow working to fix the inodes , but having issues with the perl script on OCUM that is needed to make the REST API call.
Took help from some of the debugging instructions shared by @mbeattie in a few different posts here and identified that the issue was because REST/Client.pm was not available on the OCUM vApp that is needed by the perl script.
Debug error message when the perl script is executed:
2019-07-03 11:01:43 [INFO ] [ScriptExecutor-2] [AlertScriptService:108] - Script execution of file : OCUM_WFA_Inode_Event.pl for EventID : 270028 in progress..
Can't locate REST/Client.pm in @INC (you may need to install the REST::Client module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /opt/netapp/ocum/scriptPlugin/OCUM_WFA_Inode_Event.pl line 7.
I tried installing REST::Client on the vApp using CPAN , but getting below error :
cpan[1]> install REST::Client
Fetching with HTTP::Tiny:
http://www.cpan.org/authors/01mailrc.txt.gz
HTTP::Tiny failed with an internal error: Could not connect to 'www.cpan.org:80': Network is unreachable
Trying with
/usr/bin/wget -O "/root/.cpan/sources/authors/01mailrc.txt.gz.tmp26476"
to get
http://www.cpan.org/authors/01mailrc.txt.gz
--2019-07-04 08:03:45-- http://www.cpan.org/authors/01mailrc.txt.gz
Resolving www.cpan.org (www.cpan.org)... 151.101.78.217, 2a04:4e42:12::729
Connecting to www.cpan.org (www.cpan.org)|151.101.78.217|:80... failed: Connection timed out.
Connecting to www.cpan.org (www.cpan.org)|2a04:4e42:12::729|:80... failed: Network is unreachable.
Function system("/usr/bin/wget -O "/root/.cpan/sources/authors/01mailrc.txt.gz.tmp26476" "http://www.cpan.org/authors/01mailrc.txt.gz" ")
returned status 4 (wstat 1024), left
/root/.cpan/sources/authors/01mailrc.txt.gz.tmp26476 with size 0
Warning: no success downloading '/root/.cpan/sources/authors/01mailrc.txt.gz.tmp26476'. Giving up on it.
I believe this is because the way vApp is designed . That is locked down to prevent outside softwares or patches being applied ? But shouldnt making REST API calls be one of the basic functionalities that must be built in into OCUM ?
Any help would be greatly appreciated!