Topic Options
Rate This Topic
#61465 - 12/11/02 03:36 PM need ARS Perl guidance
jsummitt Offline
Just Signed Up

Registered: 12/11/02
Posts: 1
Hi I am new to ARS Perl... I need a quick way to grap information from a schema our Remedy Admin has created that holds on call info.. If I could grab all the info in the table out using ARSPerl then I can process that info using perl on my non ARS system..Is this possible?? Thanks in advance

Top
#61466 - 12/12/02 08:18 AM Re: need ARS Perl guidance [Re: knight525]
Matt Reinfeldt Offline
Old Hand
***

Registered: 06/12/01
Posts: 1419
Loc: Madison, WI
you probably want to use ars_GetEntry ... check the documentation for arsperl for more specifics. I do this type of thing all the time.
_________________________
Matt Reinfeldt
I belong to the following Professional Networks:
http://www.naymz.com/search/matt/reinfeldt/1524717
http://www.linkedin.com/in/mreinfeldt

Top
#61467 - 02/11/03 02:36 PM Re: need ARS Perl guidance [Re: Matt Reinfeldt]
Anonymous
Unregistered


I'm having problems getting ars_GetListEntry to work correctly/at all. I'm getting the error "qualifier is not of type ARQualifierStructPrt at test.pl line 11"

any ideas? script looks like this:
#!/usr/local/bin/perl
use ARS;

$c = ars_Login("my_server", "my_account", "my_password");
if (!$c) {print("Could not connect to ARS ($ars_errstr)\n");exit(1);}
# die "ars_Login: $ars_errstr";

($q = ars_LoadQualifier($c, "User", "'Login Name' = \"my_username\"")) ||
die $ars_errstr;

%entries = ars_GetListEntry($c, "User", $q , 100);
foreach $entry_id (sort keys %entries) {
print "EntryID: $entry_id Short-Descrip: $entries{$entry_id}\n";


I also tried qual of "1=1".

Top
#61468 - 02/11/03 02:39 PM Re: need ARS Perl guidance [Re: Anonymous]
Anonymous
Unregistered


It must have been a typo, I did get it to work..

Russ

Top