Hi Tim,
I used the following code and got an alarm in NMS. As you can see, my code uses "hubpost". Just checking, and this command does not require authentication, so the login should not be required.
Richard
use Nimbus::API;
use strict;
my $username = "administrator";
my $password = "nimsoft";
nimLogin($username, $password);
my $pds_snd = pdsCreate();
pdsPut_PCH($pds_snd, "subject", "alarm");
pdsPut_INT($pds_snd, "pri", 5);
pdsPut_PCH($pds_snd, "prid", "perlscript");
pdsPut_PCH($pds_snd, "nimid", "MM93135124-35191");
pdsPut_INT($pds_snd, "nimts", time());
pdsPut_PCH($pds_snd, "domain", "nmsdemo");
pdsPut_PCH($pds_snd, "origin", "nimsoft-vm1");
pdsPut_PCH($pds_snd, "robot", "nimsoft-vm1");
pdsPut_PCH($pds_snd, "source", "192.168.120.100");
my $udata = pdsCreate();
pdsPut_PCH($udata,"message","test");
pdsPut_PCH($udata,"subsys","test");
pdsPut_INT($udata,"level",2);
pdsPut_PDS($pds_snd,"udata",$udata);
nimNamedRequest("spooler", "hubpost", $pds_snd, 10);