AnsweredAssumed Answered

External perl script for Nimbus login

Question asked by DCAlmeida on Aug 22, 2013
Latest reply on Aug 27, 2013 by 1_keithk

Hi there!


I am trying to figure out how can I login to my primary hub from a remote machine.


I want to develop a script to "inject" alarms directly to the bus layer. This could be done by SNMP traps but by this way I have more sure about integrity.


For now I just called the libraries and arguments:


my $m = "";
for (@INC) { $m .= $_; }
if ($m !~ /nimsoft/) {
print "Adding '/opt/nimsoft/perllib' to lib\n";
use lib "/opt/nimsoft/perllib";
use Nimbus::API;
use Nimbus::smileyfrustrated:ession;


my $hostname = $ARGV[0];
my $message = $ARGV[1];
my $subsystem = $ARGV[2];
my $severity = $ARGV[3];
my $supression = $ARGV[4];


Now, the next step is to login... Can you help me doing this?