Does Monitoring_Profile.pl support HTTPS connection?

Document ID : KB000117374
Last Modified Date : 11/10/2018
Show Technical Document Details
Introduction:
Spectrum 10.3 comes with a new interesting tool Monitoring_Profile.pl that should be launched as:
./Monitoring_Profile.pl <device model handle> <OneClick host name> <port> 
Now, if you specify a "wrong" port or the SSL port 443 the script will fail to discover the notification traps of MIB files.
The the trap_detail_<mh>.csv file will contain “No Traps Found” for all mibs. 



 
Question:
Does the Monitoring_Profile.pl support OneClick web server with Secure Sockets Layer (SSL) protocol enabled?
 
Environment:
Spectrum 10.3
Answer:
The script code of Monitoring_Profile.pl script  that extracts the traps from the mib files is the following:
..
foreach my $mibName(keys %array_mib) 

my $server_endpoint = "http://$HostName:$Port/spectrum/mib/getMibInfo?name=$array_mib{$mibName}&landscape=$query_landscape"; 
#print "Fetching data for mib $mibName ..."; 
my $req = HTTP::Request->new(GET => $server_endpoint); 

$req->header('content-type' => 'application/xml'); 
$req->header('accept' => 'application/json'); 
$req->authorization_basic($username,$password); 

my $resp = $ua->request($req); 

open( my $OUT_FILE1, ">>$outputTrapFileName") or die "Could not open file '$outputFileName' $!"; 
if ($resp->is_success) 
...
So the script is expecting an "http://$HostName...."  connection where:

$HostName is OC server hostname 
$Port is the OC tomcat port 

but even if if you modify the script to have:

my $server_endpoint = "https://$HostName:$Port/spectrum/mib/getMibInfo?name=$array_mib{$mibName}&landscape=$query_landscape"; 

the script will fail to extract the traps because currently the Monitoring_Profile.pl has limitation in running with https.

The support of HTTPS has been planned for the next Spectrum version.