Re: [Arsperl-users] Will ARSperl 1.91 with ARS 7.6.03
ARSperl 1.91 won't compile with ARS 7.6.3. You might download the latest developer version via CVS. See the paragraph Anonymous CVS Access at http://sourceforge.net/scm/?type=cvsgroup_id=116013 If this would be too complicated, I can send you a zip package instead. Be aware that there's a known issue that causes ARSperl not to work with the 64bit API on Linux under any circumstances. Regards, Thilo On 09.02.2011 19:15, George Payne wrote: Everyone... Presuming that I can get ARSperl 1.91 compiled properly, will it even work with ARS version 7.6.03? Is there a different version of ARSperl that I should be using? Thanks, Watty -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users
Re: [Arsperl-users] Need Help: Qualification String LIKE
Use the field ID instead of User Ident, e.g. '536870912' LIKE %-N-% Regards, Thilo Stapff On 08.07.2010 17:05, Chinh Do wrote: I need to search all fields that have this string -N- in the middle, for examples, 123-N-abc and 4759ABC-N-Bill. Using Oracle SQL, I can code ...fieldname LIKE '%-N-%' . I tried my $qual1 = 'User Ident' LIKE \%-N-%\ but it does not work. How do I code the qualification string using ARSPerl to get the same result as using LIKE? Thank you, Chinh. -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users
Re: [Arsperl-users] ARSPerl with
I have not tested it yet, but I see no reason why it shouldn't be possible. Having said that, there's no package avaible that is binary compatible to Perl 5.12, so you would have to compile it yourself. Best regards, Thilo Stapff On 20.05.2010 20:50, Chinh Do wrote: Can I use ARSPerl 1.91 with ActivePerl 5.12.1? I heard that I can use ARSPerl 1.91 with ActivePerl 5.8 only. Thank you, Jimmy Do -- -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users -- -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users
Re: [Arsperl-users] Bulk transaction
Hi, the message User is currently connected from another machine probably means that a user tool connection to the same remedy server with another IP address already exists. This is just like connecting with two user tools form different machines with same user account, which is prohibited for licensing reasons. This error is probably not specifically related to the ars_BeginBulkEntryTransaction function. Yes, these functions are intended to work like a database transaction. See the documentation for ARBeginBulkEntryTransaction and AREndBulkEntryTransaction in the C API guide. Best regards, Thilo Stapff On 20.05.2010 19:56, German Valenzuela wrote: Hi somebody has used ars_BeginBulkEntryTransaction and ars_EndBulkEntryTransaction? I'm trying to use, but an error occur, the message is 'User is currently connected from another machine' These functions, work like a database transaction? Thanks -- German Valenzuela Prill Tecnologia +55 (21) 8193-7098 german.valenzu...@prill.com.br mailto:german.valenzu...@prill.com.br http://www.prill.com.br -- -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users -- -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users
Re: [Arsperl-users] [SPAM] ARSPerl on AIX
It looks like most of the syntax errors are caused by C++ style comments in supportrev.c (i.e. //... instead of /* */). I don't know if this applies to your AIX/xlc version, but there seems to be a -qcpluscmt compiler flag to handle this. Just google for xlc qcpluscmt. Moreover, try changing line 3356 of support.c from int dt = in-tag - AR_FIELD_OFFSET; to unsigned int dt = in-tag - AR_FIELD_OFFSET; and line 1242 of supportrev.c from int len; to STRLEN len; I'll also check in an update to the CVS repository on Sourceforge, which will have these issues fixed. Regards, Thilo Findlay, Graham wrote: Hi, We are trying to install ARSPerl (v1.91)on AIX 5.3 but the compile is not working. The compiler we are using is IBM’s xlc and we have a soft link from cc_r to the xlc compiler. Output from the compiler is below……..can anyone help? Skip blib/lib/ARSarerrno-h.pm (unchanged) Skip blib/lib/ARSnparm.pm (unchanged) Skip blib/lib/_h2ph_pre.ph (unchanged) Skip blib/lib/ARSar-h.pm (unchanged) Skip blib/lib/ARSnterrno-h.pm (unchanged) Skip blib/lib/ARSnt-h.pm (unchanged) Skip blib/lib/ARSOOsup.pm (unchanged) Skip blib/lib/ARSOOmsgs.pm (unchanged) Skip blib/lib/ARSOOform.pm (unchanged) Skip blib/lib/ARS.pm (unchanged) cc_r -c -I/usr/ars/api630p018aix/include -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong -O-DVERSION=\1.91\ -DXS_VERSION=\1.91\ -I/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE -g -DARS32 -DARS452 -DPERL_PATCHLEVEL_IS=8 -DPERL_SUBVERSION_IS=2 -DPERL_BASEREV_IS=50 ARS.c 1500-030: (I) INFORMATION: boot_ARS: Additional optimization may be attained by recompiling and specifying MAXMEM option with a value greater than 16384. cc_r -c -I/usr/ars/api630p018aix/include -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong -O-DVERSION=\1.91\ -DXS_VERSION=\1.91\ -I/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE -g -DARS32 -DARS452 -DPERL_PATCHLEVEL_IS=8 -DPERL_SUBVERSION_IS=2 -DPERL_BASEREV_IS=50 support.c support.c, line 3358.90: 1506-280 (W) Function argument assignment between types unsigned int* and int* is not allowed. 1500-030: (I) INFORMATION: perl_ARFieldLimitStruct: Additional optimization may be attained by recompiling and specifying MAXMEM option with a value greater than 16384. cc_r -c -I/usr/ars/api630p018aix/include -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong -O-DVERSION=\1.91\ -DXS_VERSION=\1.91\ -I/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE -g -DARS32 -DARS452 -DPERL_PATCHLEVEL_IS=8 -DPERL_SUBVERSION_IS=2 -DPERL_BASEREV_IS=50 supportrev.c supportrev.c, line 1244.23: 1506-280 (W) Function argument assignment between types unsigned long* and int* is not allowed. supportrev.c, line 2810.17: 1506-046 (S) Syntax error. supportrev.c, line 2821.57: 1506-046 (S) Syntax error. supportrev.c, line 2822.57: 1506-046 (S) Syntax error. supportrev.c, line 2822.123: 1506-045 (S) Undeclared identifier dataType. supportrev.c, line 3009.17: 1506-046 (S) Syntax error. supportrev.c, line 3189.17: 1506-046 (S) Syntax error. make: 1254-004 The error code from the last command is 1. Visa Europe, Europe's leading payment systems provider, is owned and governed within Europe for the benefit of European financial institutions. This email (including attachments) is confidential and is solely intended for the addressee. Unless you are the addressee, you may not read, use or store this email in any way, or permit others to. If you have received it in error, please contact Visa Europe on +44 (0)20 7937 8111. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now.
Re: [Arsperl-users] Trouble Setting Drop Down Menu Items with ARSperl
This is probably a message defined in a filter somewhere (since the message number is 1). I suppose that when you select a Ticket Owner in the Remedy client, other fields are probably set as well (invisible to the user). You might want to do an active link/filter log of that action to see what really happens behind the scenes. Regards, Thilo Jim Hranicky wrote: I'm trying to set the value of a Drop Down menu in Remedy (in this case Ticket Owner like so: my $ars = new ARS ( -server = $server, -username = $username, -password = $password ); my $form = $ars-openForm (-form = $schema); $form-set( -entry = $eid, -gettime = 0, -value = { Ticket Owner = $name, } ) When I try this I get this error: [ERROR] (Ticket Owner is not valid. Please select a value from the drop down.) (ARERR #1) I can set them from the remedy client, but not from ARSperl -- does anyone know the right way to set this? Thanks, -- | Jim Hranicky, Security EngineerUF InfoSec Team | | E202 SSRB Phone (352) 392-2061 | | j...@ufl.edu | -- -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users
[Arsperl-users] ADV: Yet another free ARS workflow analyzer
Hi all, here comes arXtract, another ARS workflow analyzer in the tradition of ARSdoc. It's Perl-based and stores its data in ARS forms – enabling you to find virtually ANYTHING you want to know about your ARS code. Just search for arbitray keywords using Remedy User Tool or MidTier. arXtract's data structure combined with the ARS clients' advanced search function will give you an unprecedented insight into your ARS application. ARS workflow is presented as pseudocode enabling you to read your workflow as if it was – well, imagine some kind of ARS scripting language. Before you expect too much, let me answer the obvious question: arXtract translates ARS workflow into human-readable pseudocode. It does not, conversely, compile that pseudocode into ARS workflow. Not yet. Well, just try it out. You will need a licensed ARS server as you'll probably have more than 2000 workflow objects (also counting forms and fields) to be documented. The freeware version of arXtract can be downloaded from http://www.apprologic.com Have fun and kind regards, Thilo Stapff ApproLogic GmbH Waldstr. 92 D-63128 Dietzenbach Phone: +49 6074 4811814 Fax: +49 6074 4811816 EMail: thilo.sta...@apprologic.de -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users
Re: [Arsperl-users] 1.90 - Query Sort
The ars_GetListEntry function has those parameters too. Moreover, if no such parameters are passed, the sort order of the form should indeed be used. I once made the mistake of putting the return values from ars_GetListEntry into a hash, which has the effect that the sorting information gets lost, even if the entries are returned in the correct order: %entries = ars_GetListEntry( ... ); Thilo Brad Fike wrote: LJ, Long time no talk. I normally sort the records on my own but you can use the ars_GetListEntryWithFields function. It has some optional sort parameters. http://www.soton.ac.uk/~_remedy/ARSperl/manual/ars_GetListEntryWithFields.html -Brad On Fri, Jul 10, 2009 at 5:15 PM, LJ Longwinglj.longw...@gmail.com wrote: I'm interested in having the records pulled back from a query be sorted. I set the sort order on the form in question, but that doesn't seem to affect the sort of the results I get via ARSPerl. Any and all assistance is appreciated. -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users
Re: [Arsperl-users] ars_DeleteEntry
Just as a note, the speed of mass deletions can be vastly increased by using ars_Begin(End)BulkEntryTransaction. Of course, deleting by SQL will probably still be a magnitude faster. jeff murphy wrote: Yes, although it'll take probably a long time to delete them all. You might be better off going to SQL and deleting from the H, T and B tables directly. On Mar 30, 2009, at 7:56 PM, Steve McDonald wrote: Prior to a server upgrade and migration I need to purge 750k + records from my custom help desk application. The records contain an attachment pool. If I use ars_DeleteEntry will the corresponding b table bxxxcxxx entries be deleted as well? Thanks, Steve McDonald Sr. Remedy Applications Programmer Choice Hotels International -- -- Arsperl-users mailing list Arsperl-users@arsperl.org mailto:Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users -- -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users -- -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users
Re: [Arsperl-users] Newbie - ARS - Creating Ticket
Your script should probably look something like this: my $ctrl = ars_Login( $server, $user, $passwd ); die Login Error: $ars_errstr\n if ! $ctrl; my %fieldValues = ( 10038 = stormgt, # PersonID 10003 = stormgt, # FirstName 10001 = stormgt, # Last Name 10007 = $arrFields[2], # Comments Work Log 536870916 = $arrFields[3], # Group Assigned # ... remaining fields . ); my $entryId = ars_CreateEntry( $ctrl, $formName, %fieldValues ); die Create Error: $ars_errstr\n if ! $ctrl; Regards, Thilo Gary sperano wrote: Hello All, I am extremely new to posting to this group as well as to the ASR module for perl. I have been tasked with converting a a vbs script, that currently creates remedy tickets, to perl. With that being said, I do have a question in regards to the field ID, I think. The vbs script contains the following lines. I think, please correct me if I am wrong, in between the parentheses is the field id. Using the ARS module, how do I create the ticket using the field id? Also, I need to make sure that a ticket number is returned to me and that the process was successful, how do I do this? * fieldValues.Item(10038)= stormgt 'PersonID* * fieldValues.Item(10003) = stormgt 'FirstName* * fieldValues.Item(10001) = stormgt 'Last Name* * fieldValues.Item(10007) = arrFields(2) 'Comments Work Log* * fieldValues.Item(536870916) = arrFields(3) 'Group Assigned* * fieldValues.Item(10031) = Originating Call 'Incident Relationship* * fieldValues.Item(10017) = arrFields(4) 'Incident Type* * fieldValues.Item(10039) = arrFields(5) 'Item Affected* * fieldValues.Item(536870932) = SHCWeb_wsf 'Originating Desk* * fieldValues.Item(10013) = arrFields(6) 'Priority* * fieldValues.Item(8) = arrFields(7) 'Problem Summary* * fieldValues.Item(10014) = arrFields(8) 'Problem Type* * fieldValues.Item(1) = arrFields(10) 'Symptoms* * fieldValues.Item(536870913) = arrFields(11) 'Problem Detail* * fieldValues.Item(536870912) = arrFields(12) 'Specific Issue* Below are the contents of the entire script that needs to be converted Thanks for any and all assistance you can offer code 'This script will parse TSO Backuplogs, and create GIRS tickets where needed Dim objFSO, objSource, objOutput, strLine Dim arrFields, headerline Dim OutputFile,ProxyName,Secword,Newword, FolderPath Dim objFolder, colFiles, objFile , ErrorLog, objErrorOutput ProxyName=prxpnbu Secword=4Password Const formName = Incident Dim server, fieldValues, entryId, result Set server = CreateObject(BMC.ARSystem.Server) Set fieldValues = CreateObject(BMC.ARSystem.FieldValueList) Newword=Chr(Asc(Left(Secword,1)+2)) Mid(Secword,2) server.Login server.my.company.com, ProxyName, Newword FolderPath=F:\Ticketing Set objFSO = CreateObject(Scripting.FileSystemObject) Set objFolder= objFSO.GetFolder(FolderPath) Set colFiles= objFolder.Files For Each objFile In colFiles 'If the source file has the correct name, then process it, otherwise move to next file. If instr(1,objFile.Name,DPA_Ticket_Creator) Then 'If the file has content, process it If objFile.Size 100 then 'Wscript.Echo objFile.name SourceFile = FolderPath \ objFile.Name Set objSource= objFSO.OpenTextFile(SourceFile,1) 'If the log file doesn't exist, then create it. OutputFile=F:\Ticketing\Logs\Processed objFile.Name If objFSO.FileExists(OutputFile) Then Set objOutput= objFSO.OpenTextFile(OutputFile,1 ) 'If there is no header in the logfile, add it. If objoutput.AtEndOfStream = True Then objOutput.Close Set objOutput= objFSO.OpenTextFile(OutputFile,8) 'Copy original header strLine= objSource.ReadLine objOutput.WriteLine (IncidentID, strLine , Ticket_Create_Time) Else 'Logfile already exists with content Set objOutput= objFSO.OpenTextFile(OutputFile,8) 'Skip headerline of source objSource.SkipLine End If Else Set objOutput=objFSO.CreateTextFile(OutputFile) objOutput.Close Set objOutput= objFSO.OpenTextFile(OutputFile,8 ) 'Copy original header strLine= objSource.ReadLine objOutput.WriteLine (IncidentID, strLine , Ticket Create Time) End If Do Until objSource.AtEndOfStream On Error Resume Next strLine= objSource.ReadLine arrFields= Split(strLine, ,) 'Test Group Assigned To field to confirm that
Re: [Arsperl-users] ARSperl 1.91 vs ARS 7.1
The libicu*bmc.so files should probably be in the api/lib directory. At least they have to be available somewhere on your machine. Moreover, they must be found, which means that you might have to run the ldconfig command on the directory where they are located, or add the directory to the LD_LIBRARY_PATH. Regards, Thilo Bruno Manuel Pinto Gomes wrote: Hi, I'm getting the following error message: Can't load '/cm/ot/CMA/CM_TOOL!GMS.NEW_ARS_VERSION/build_G!68.IP.L3/pm/external_perl_lib/i686-linux/auto/ARS/ARS.so' for module ARS: /cm/ot/CMA/CM_TOOL!GMS.NEW_ARS_VERSION/build_G!68.IP.L3/pm/external_perl_lib/i686-linux/auto/ARS/ARS.so: undefined symbol: ucnv_open_3_2 at /cm/ot/TOOL/PERL!13.0.2/build_G!68.IP.L3/pm/lib/i686-linux/DynaLoader.pm line 206. at /auto/home/gms/work/REMEDY/queryRemedy.pl line 6 Compilation failed in require at /auto/home/gms/work/REMEDY/queryRemedy.pl line 6. BEGIN failed--compilation aborted at /auto/home/gms/work/REMEDY/queryRemedy.pl line 6. I google a bit and found this thread http://www.mail-archive.com/arsperl-users@arsperl.org/msg00383.html, which says that I should change the Makefile.PL to this: $ARS_LIBS .= -lpthread -licuuc -licui18n; To $ARS_LIBS .= -lpthread -licuucbmc -licui18nbmc; I have the last source version of 1.91, so my Makefile.PL is already correct, but I still get the error. BTW, I cannot find licuucbmc nor licui18nbmc inside my api/lib directory. Where should they be? Thanks in advance. Cheers. Bruno Gomes PT: +351 966 175 401 BE: +32 485 937 881 brunogome...@yahoo.com brunogome...@gmail.com -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users
Re: [Arsperl-users] Field id works but field name does not in query
ars_LoadQualifier doesn't work with field names. According to the manual it should work with field labels, which of course are view-dependent. In this case the view name has to be passed to ars_LoadQualifier in the displayTag parameter (see the manual page). Problems with field labels have been reported occasionally, so the preferred method probably is to always use field IDs only. Regards, Thilo Franklin Lee wrote: Can someone explain why this WHERE clause works WHERE ('Assignee Login ID' LIKE %joeuser%) AND ('7' = 1) but this one does _not_ WHERE ('Assignee Login ID' LIKE %joeuser%) AND ('Status' = 1) The error it throws is Unknown field referenced in query line (position 51 (...) AND ('Status'^ = 1))) I double-checked and the field name for field 7 on this table is 'Status'. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users
Re: [Arsperl-users] ars_GetListVUI not working?
Hi Rob, I asked about the version of arsperl. Thilo Urban, Robert (, externer Mitarbeiter) wrote: Hi Thilo, I'm using v7.1 patch 004. rob urban -Ursprüngliche Nachricht- Von: Thilo Stapff [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 25. September 2008 20:24 An: ARSperl User Discussion Betreff: Re: [Arsperl-users] ars_GetListVUI not working? It should definitely work this way. What version of ARSperl are you using? Urban, Robert (, externer Mitarbeiter) wrote: Hi Folks, I'm trying to get (@views = ars_GetListVUI($ARS, $schema, 0)) || die $ars_errstr; to work.I've also tried: (@views = ars_GetListVUI($ARS, $schema)) || die $ars_errstr; Both return an empty list, but $ars_errstr is also empty. $ARS and $schema are valid. Does this not work, or is there some magical incantation? thanks, rob urban - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users
Re: [Arsperl-users] ars_GetListVUI not working?
The problem is definitely a bug in 1.84 (and probably earlier versions). Versions 1.85 or higher should work fine. Thilo LJ Longwing wrote: Could you try upgrading to 1.90 or 1.91 and see if you still have problems? -Original Message- From: Urban, Robert (, externer Mitarbeiter) [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2008 9:38 AM To: ARSperl User Discussion Subject: Re: [Arsperl-users] ars_GetListVUI not working? Oops, sorry. It's v1.84. rob urban -Ursprüngliche Nachricht- Von: Thilo Stapff [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 26. September 2008 12:40 An: ARSperl User Discussion Betreff: Re: [Arsperl-users] ars_GetListVUI not working? Hi Rob, I asked about the version of arsperl. Thilo Urban, Robert (, externer Mitarbeiter) wrote: Hi Thilo, I'm using v7.1 patch 004. rob urban -Ursprüngliche Nachricht- Von: Thilo Stapff [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 25. September 2008 20:24 An: ARSperl User Discussion Betreff: Re: [Arsperl-users] ars_GetListVUI not working? It should definitely work this way. What version of ARSperl are you using? Urban, Robert (, externer Mitarbeiter) wrote: Hi Folks, I'm trying to get (@views = ars_GetListVUI($ARS, $schema, 0)) || die $ars_errstr; to work.I've also tried: (@views = ars_GetListVUI($ARS, $schema)) || die $ars_errstr; Both return an empty list, but $ars_errstr is also empty. $ARS and $schema are valid. Does this not work, or is there some magical incantation? thanks, rob urban - --- - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ - --- -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users -- --- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users -- --- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two
Re: [Arsperl-users] ars_APIVersion - wrong returns?
Up to version 1.90 ars_APIVersion was returning the value of AR_EXPORT_VERSION (from arstruct.h) instead of AR_CURRENT_API_VERSION. This has been changed with version 1.91. You didn't mention what ARSperl version you are using, but it probably can't be 1.91 (or else I'd be very surprised). Regards, Thilo Georg Grabler wrote: Hello, I'm playing around with what ars_APIVersion returns, because in our company it's likely that they want to exclude too old api versions. Now, I compiled ARSPerl against a 7.0.1 ARS Lib - which works nicely. I edited the Makefile.PL a little, and now wanted to ask - how do you determine the API Version? I've looked at the Makefile.PL, which can output the Version (by reading the ar.h), which works pretty nice. What's overlooked: serverReleaseFromAPIVersion is missing 7.0 = 12 (currently, all 7.0 have the api version 12, 7.1 has 13). Enabling the checks for the api version in the Makefile.PL returns ars_APIVersion: 9 What's the reason ARSPerl returns 9 in this case, when I have the ars libs with version 12, and even the Makefile.PL recognizes i've got a version 12? Seems like a little bug, and I'd appreciate any advice how to fix that. I looked trough the code, but couldn't seem to find the position where the ARS API Version is set (?). Do you receive that wrong value from the compiled libraries? Maybe, there's a little mistake done by BMC releasing those unix libs? Thanks, Georg - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users
Re: [Arsperl-users] ars_CreateContainer
You might try the following: - create a packing list in the Admin Tool - read the Object via ars_GetContainer - print the resulting data structure with Data::Dumper - use the output as a template for your packing list This should work because usually the structure for the ars_Create... functions is the same as returned from the ars_Get... functions. Here's a code snippet: my $packingList = ars_GetContainer( $ctrl, $packingListName ); die ars_GetContainer($packingListName): $ars_errstr\n if $ars_errstr; use Data::Dumper; print Data::Dumper-Dump( [$packingList], ['packingList'] ); Regards, Thilo Stapff LJ Longwing wrote: Hey...I'm new to this list...so please go easy on me. ARS 7.1 Patch 2 ARSPerl 1.90 ActivePerl-5.8.8.819 Windows 2003 I've been using ARSPerl for quite some time, but mainly the client functions. I'm writing a script with the intention of taking 2 packing list names, determining if one of them exists, if not, create it, if it does I want to add the contents of pl1 to pl2 and update to the server. I've been using the Java 7.1 API and have done this there...but I don't want to write an entire program and hafta call it from my perl script to get this done. I have successfully used ars_GetContainer, and determined if pl2 exists on the server, I'm at the point where I'm trying to create a new container and can't find ANY good documentation about how to create the hash in question. Any and all help is appreciated, most preferable of course would be a snippet of code that would create a 'blank' packing list. Thanks for your time. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users
Re: [Arsperl-users] ars_SetContainer
, 'label' = '', 'description' = '' }, { 'permittedGroups' = [], 'value_dataType' = 'null', 'value' = undef, 'dataType' = 1, 'type' = 32801, 'label' = '', 'description' = '' } ] }; here is the output when I add the PL through my script $packingList = { 'owner' = 'longwing.lj', 'ownerObjList' = [], 'numReferences' = 6, 'name' = '20080918-DailyMaster', 'lastChanged' = 'Webservice', 'objPropList' = [ { 'prop' = 60020, 'value' = '', 'valueType' = 'char' } ], 'timestamp' = 1221756118, 'adminList' = [], 'type' = 'pack', 'groupList' = {}, 'referenceList' = [ { 'permittedGroups' = [], 'value_dataType' = 'null', 'value' = undef, 'dataType' = 1, 'type' = 32783, 'label' = '', 'description' = '' }, { 'permittedGroups' = [], 'value_dataType' = 'null', 'value' = undef, 'dataType' = 1, 'type' = 32793, 'label' = '', 'description' = '' }, { 'permittedGroups' = [], 'value_dataType' = 'null', 'value' = undef, 'dataType' = 1, 'type' = 32784, 'label' = '', 'description' = '' }, { 'permittedGroups' = [], 'value_dataType' = 'null', 'value' = undef, 'dataType' = 1, 'type' = 32785, 'label' = '', 'description' = '' }, { 'permittedGroups' = [], 'value_dataType' = 'null', 'value' = undef, 'dataType' = 1, 'type' = 32801, 'label' = '', 'description' = '' }, { 'dataType' = 0, 'name' = '20080527-CherylConversionFormChanges', 'type' = 6, 'label' = '', 'description' = '' } ] }; The only difference I can see is the order of the last two elements...I don't see why that would be important, but it may be. Your assistance is appreciated. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thilo Stapff Sent: Thursday, September 18, 2008 3:20 AM To: ARSperl User Discussion Subject: Re: [Arsperl-users] ars_CreateContainer You might try the following: - create a packing list in the Admin Tool - read the Object via ars_GetContainer - print
Re: [Arsperl-users] ARSperl 1.91 make test errors
I don't have any experience with 64 bit systems so I can only take a guess here. To me, the situation looks as follows: The Remedy API libraries are 32 bit, so ARSperl has to be compiled with -m32. Your Perl interpreter is 64 bit, so ARSperl would also have to be compiled as 64 bit, which of course collides with the condition above. A possible solution might be to compile a Perl interpreter with -m32 and use that one for ARSperl. Regards, Thilo Stapff Vaughan, Mark wrote: I have added the ‘-m32’ switch as suggested in another thread, but I still get the same errors: gcc -c -I/export/third-party/remedy/ars/software/ars710p3/api/include -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\1.91\ -DXS_VERSION=\1.91\ -fPIC -I/usr/local/lib/perl5/5.8.5/sun4-solaris-64int/CORE -g -Wno-unused-variable -Wuninitialized -DARS32 -DARS452 -DPERL_PATCHLEVEL_IS=8 -DPERL_SUBVERSION_IS=5 -DPERL_BASEREV_IS=50 -m32 ARS.c ARS.c: In function `XS_ARS_ars_CreateField': ARS.xs:3817: warning: `createMode' might be used uninitialized in this function ARS.xs: In function `XS_ARS_ars_CreateActiveLink': ARS.xs:5178: warning: cast to pointer from integer of different size ARS.xs: In function `XS_ARS_ars_SetActiveLink': ARS.xs:5340: warning: cast to pointer from integer of different size ARS.xs: In function `XS_ARS_ars_CreateFilter': ARS.xs:5519: warning: cast to pointer from integer of different size ARS.xs: In function `XS_ARS_ars_SetFilter': ARS.xs:5661: warning: cast to pointer from integer of different size ARS.xs: In function `XS_ARS_ars_CreateEscalation': ARS.xs:5828: warning: cast to pointer from integer of different size ARS.xs: In function `XS_ARS_ars_SetEscalation': ARS.xs:5965: warning: cast to pointer from integer of different size Any help would be greatly appreciated. Thanks, Mark Vaughan *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Vaughan, Mark *Sent:* Friday, September 05, 2008 4:02 PM *To:* ARSperl User Discussion *Subject:* [Arsperl-users] ARSperl 1.91 make test errors I have built 1.91 on Solaris 10 using gcc and it compiles with the usual array of compilation errors (‘warning: cast to pointer from integer of different size’ mostly). When I run ‘make test’, I get a handful of ‘uninitialized value’ warnings inside of ARS.pm, line 49. I traced the problem to sub ARS::ERRORSTR::FETCH. The problem is the messageType array contains an invalid value (4294967295). As this value is -1 when using 32 bits and casting is working correctly, I’m presuming that I am compiling something incorrectly. The test cases exhibiting this error are: t/21setlogging t/31createschema Thanks, Mark Vaughan - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ -- Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users
Re: [Arsperl-users] ARS 1.90 Can't load ARS.dll
-- The DLLs need to be in a directory that is contained in your system's PATH variable, exactly as if they were .exe files. -- The user tool itself is not needed. -- You might, however, need the icu...32.dll files from the user tool directory. Thilo HEWITT, DARRYL wrote: I am still getting Can't load 'E:/Program Files/Perl/site/lib/auto/ARS/ARS.dll' for module ARS: load_file: The specified module could not be found at E:/Program Files/Perl/lib/DynaLoader.pm line 229. What I have done since our last email exchange: 1) Deleted and re-installed ARS Perl package just to make sure I had done it correctly. (DOS commands and results are attached) 2) Copied arxxx70.dll's to the root folder where our Remedy AR Server was installed. 3) Ran perl -MARS -e print $ARS::VERSION to test and received the same error. 4) After checking the registry, I tried to register dll's with REGSVR32 E:\Program Files\AR System\User\arapi70.dll but received error: 5) Rather than mess with figuring out the dll registration issue, I installed Remedy User 7.0.1 since I had found registry settings in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDll's folder for E:\Program Files\AR System\User\arapi70.dll on the server that works. Remedy User 7.1 was already installed on this server. 6) Ran perl -MARS -e print $ARS::VERSION to test and received the same error. All of the above raises some questions that I hope you will answer. -- Where is ARSPerl expecting to find the Remedy API's? -- Does the Remedy User for the correct version need to be installed on the server, or PC, running the Perl package? Does this also need to be run where AR Server is installed? I had always assumed that ARSPerl was basically mimicking someone running Remedy User. -- We have been using ARSPerl since 2002 and it has worked well. However, all I have ever done when moving the location of the Perl scripts is make sure that the following 3 dll's were present in the Perl scripts folder for the Perl script issuing the USE ARS: arapixx.dll, arrpcxx.dll, and arutlxx.dll. Is this all that really needs to be present? To repeat some of my previous, we have two Windows 2003 SP1 servers: DSMRDCRD02 and DSMRDCRD03. I have installed the ARSPerl 1.90 package on both using the same procedure. Running the DOS command line perl -MARS -e print $ARS::VERSION works on DSMRDCRD03 but receives the load failure error on DSMRDCRD02. DSMRDCRD02 was built with the Remedy AR software from scratch, i.e. new. DSMRDCRD03 was built with the Remedy AR software as an upgrade over an existing install of version 7.0.1. Any help or suggestions would be greatly appreciated. *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *jeff murphy *Sent:* Tuesday, March 04, 2008 8:12 AM *To:* ARSperl User Discussion *Subject:* Re: [Arsperl-users] ARS 1.90 Can't load ARS.dll Yes, you'll need to use the same revision of the API that the perl module was compiled against. The good news is that, from a perl script perspective, it doesn't matter if you use a 7.0 API against a 7.1 server, or even a 6.3 API against a 7.1 server. There are only a few edge cases that you might hit against (currency fields iirc) but in general you should be OK. jeff On Mar 4, 2008, at 11:05 AM, HEWITT, DARRYL wrote: Thanks for your quick response! Yes, ARS.dll does exist at E:\Program Files\Perl\site\lib\auto\ARS. I have a theory that I would like to run by you. Does the Perl code version check the ARS api's when the USE clause is executed? On the server that is not working, we have installed and are running AR version 7.1 (arxxx71.dll's). On the server that works, we have installed AR version 7.1 (arxxx71.dll's) but there also exist arxxx70.dll's, arxxx63.dll's, and arxxx51.dll's. I won't even try to explain how that happened but could that be affecting the load of ARS.dll? I realize that ARS 1.90 was written to AR version 7.0.1. Does that mean it will not work with AR version 7.1? - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R)
Re: [Arsperl-users] ARS 1.90 Can't load ARS.dll
This doesn't match my experience. Admittedly I haven't worked with ARS 7.1 very much, but in the few cases I've tested this, I had no problems whatsoever. Thilo strauss wrote: My experience is that you cannot get any data from a 7.1 server with ARSPerl_190_701. The 7.1 API changed in ways that prevent you from doing so. Christopher Strauss, Ph.D. Call Tracking Administration Manager University of North Texas Computing IT Center http://itsm.unt.edu/ *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *jeff murphy *Sent:* Tuesday, March 04, 2008 10:12 AM *To:* ARSperl User Discussion *Subject:* Re: [Arsperl-users] ARS 1.90 Can't load ARS.dll Yes, you'll need to use the same revision of the API that the perl module was compiled against. The good news is that, from a perl script perspective, it doesn't matter if you use a 7.0 API against a 7.1 server, or even a 6.3 API against a 7.1 server. There are only a few edge cases that you might hit against (currency fields iirc) but in general you should be OK. jeff On Mar 4, 2008, at 11:05 AM, HEWITT, DARRYL wrote: Thanks for your quick response! Yes, ARS.dll does exist at E:\Program Files\Perl\site\lib\auto\ARS. I have a theory that I would like to run by you. Does the Perl code version check the ARS api's when the USE clause is executed? On the server that is not working, we have installed and are running AR version 7.1 (arxxx71.dll's). On the server that works, we have installed AR version 7.1 (arxxx71.dll's) but there also exist arxxx70.dll's, arxxx63.dll's, and arxxx51.dll's. I won't even try to explain how that happened but could that be affecting the load of ARS.dll? I realize that ARS 1.90 was written to AR version 7.0.1. Does that mean it will not work with AR version 7.1? - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users
Re: [Arsperl-users] Compiling ARS perl on AIX
I'm no AIX expert, but according to Google, xdr_sizeof and __rpc_createerr are symbols from libnsl. So the first thing I would try is to append -lnsl to the $ARS_LIBS variable in Makefile.PL. This was included for earlier versions of the ARS API (see the if ($ARSVERSION = ...) blocks in Makefile.PL), but has been removed for version = 6.3 (I don't know why). The next step would be to verify if there is a libnsl.a installed on your system and if ld is able to find it. Regards, Thilo White, Linn wrote: I'm having issues compiling ARSperl on AIX Version 5. I can successfully create the makefile, but the compile chokes with an error from ld. $ make cp ARSarerrno-h.pm blib/lib/ARSarerrno-h.pm cp ARSnparm.pm blib/lib/ARSnparm.pm cp artypes.ph blib/lib/artypes.ph cp _h2ph_pre.ph blib/lib/_h2ph_pre.ph cp ARSar-h.pm blib/lib/ARSar-h.pm cp ARSnterrno-h.pm blib/lib/ARSnterrno-h.pm cp ARSnt-h.pm blib/lib/ARSnt-h.pm cp ARSOOsup.pm blib/lib/ARSOOsup.pm cp ARSOOmsgs.pm blib/lib/ARSOOmsgs.pm cp ARSOOform.pm blib/lib/ARSOOform.pm cp ARS.pm blib/lib/ARS.pm AutoSplitting blib/lib/ARS.pm (blib/lib/auto/ARS) /usr/bin/perl -e 'use ExtUtils::Mksymlists; Mksymlists(NAME = ARS, DL_FUNCS = { }, FUNCLIST = [], DL_VARS = []);' /usr/bin/perl /usr/opt/perl5/lib/5.8.2/ExtUtils/xsubpp -typemap /usr/opt/perl5/lib/5.8.2/ExtUtils/typemap -typemap typemap ARS.xs ARS.xsc mv ARS.xsc ARS.c cc_r -c -I/opt/tools/remedy/api/include -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong -O-DVERSION=\1.84\ -DXS_VERSION=\1.84\ -I/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE -g -DARS32 -DARS452 -DPERL_PATCHLEVEL_IS=8 -DPERL_SUBVERSION_IS=2 -DPERL_BASEREV_IS=50 ARS.c ARS.xs, line 4296.36: 1506-280 (W) Function argument assignment between types unsigned long* and int* is not allowed. cc_r -c -I/opt/tools/remedy/api/include -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong -O-DVERSION=\1.84\ -DXS_VERSION=\1.84\ -I/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE -g -DARS32 -DARS452 -DPERL_PATCHLEVEL_IS=8 -DPERL_SUBVERSION_IS=2 -DPERL_BASEREV_IS=50 support.c cc_r -c -I/opt/tools/remedy/api/include -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong -O-DVERSION=\1.84\ -DXS_VERSION=\1.84\ -I/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE -g -DARS32 -DARS452 -DPERL_PATCHLEVEL_IS=8 -DPERL_SUBVERSION_IS=2 -DPERL_BASEREV_IS=50 supportrev.c Running Mkbootstrap for ARS () chmod 644 ARS.bs rm -f blib/arch/auto/ARS/ARS.so LD_RUN_PATH= ld -bhalt:4 -bM:SRE -bI:/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE/perl.exp -bE:ARS.exp -bnoentry -lpthreads -lc_r ARS.o support.o supportrev.o /opt/tools/remedy/api/lib/libar.a -o blib/arch/auto/ARS/ARS.so -L/opt/tools/remedy/api/lib -lpthread ld: 0711-317 ERROR: Undefined symbol: .xdr_sizeof ld: 0711-317 ERROR: Undefined symbol: .__rpc_createerr ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. make: 1254-004 The error code from the last command is 8. Stop. Thank You Linn White Infrastructure Associate(Automation) Desk: 864-987-1795 Cell: 864-901-0997 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users
Re: [Arsperl-users] Solaris compile problems with 1.90 * GetEntryBLOB core dumps
ARSperl 1.90 doesn't support ARS 4.0 any more. Concerning the core dump, do you call ars_GetEntryBLOB with AR_LOC_BUFFER or AR_LOC_FILENAME? Does the core dump occur with both of those variants? If it occurs only with AR_LOC_FILENAME, it might help to change line 756 of the file ARS.xs from loc.u.filename = locFile; to loc.u.filename = strdup(locFile); and compile again. (The line number refers to ARS.xs in version 1.90 and might be different in 1.85) Regards, Thilo Stapff Allan Yates wrote: I have a Solaris server: # uname -a SunOS ottqa05 5.6 Generic_105181-35 sun4u sparc I can compile ARSperl 1.8001, 1.81, 1.82, and 1.85 successfully. However 1.90 fails. ARS version is 4.0. The reason I am trying to get a new version working, is that ars_GetEntryBLOB is intermittentantly core dumping and I was hoping a new version of the API might fix that. If I retrieve attachments in a given field order on a service request then it core dumps every time, if I reverse the order then it succeeds each time. Any ideas on the compile problem (or the core dump)? Thanks, Allan. 1.90: # make Skip blib/lib/ARSarerrno-h.pm (unchanged) Skip blib/lib/ARSnparm.pm (unchanged) Skip blib/lib/_h2ph_pre.ph (unchanged) Skip blib/lib/ARSar-h.pm (unchanged) Skip blib/lib/ARSnt-h.pm (unchanged) Skip blib/lib/ARSnterrno-h.pm (unchanged) Skip blib/lib/ARSOOsup.pm (unchanged) Skip blib/lib/ARSOOmsgs.pm (unchanged) Skip blib/lib/ARSOOform.pm (unchanged) Skip blib/lib/ARS.pm (unchanged) gcc -B/usr/ccs/bin/ -c -I/usr/ar/api/include -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\1.90\ -DXS_VERSION=\1.90\ -fPIC -I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE -g -DARS32 -DPERL_PATCHLEVEL_IS=8 -DPERL_SUBVERSION_IS=0 -DPERL_BASEREV_IS=50 ARS.c In file included from ARS.xs:28: supportrev_generated.h:69: parse error before ARCharMenuDDFieldStruct supportrev_generated.h:72: parse error before ARCharMenuDDFormStruct supportrev_generated.h:75: parse error before ARCharMenuDDStruct supportrev_generated.h:90: parse error before ARCharMenuSSStruct supportrev_generated.h:105: parse error before ARCompoundSchemaList supportrev_generated.h:111: parse error before ARContainerOwnerObjList supportrev_generated.h:184: parse error before ARFieldLimitList supportrev_generated.h:190: parse error before ARFieldMappingList supportrev_generated.h:262: parse error before ARQualifierList supportrev_generated.h:308: parse error before ARUnsignedIntList ARS.c: In function `XS_ARS_ars_SetImpersonatedUser': ARS.c:8526: `ARAccessNameType' undeclared (first use in this function) ARS.c:8526: (Each undeclared identifier is reported only once ARS.c:8526: for each function it appears in.) ARS.c:8526: parse error before impersonatedUser ARS.c:8535: `impersonatedUser' undeclared (first use in this function) make: *** [ARS.o] Error 1 - SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users - SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users
Re: [Arsperl-users] ARSPerl 1.9 will not run with API 7.0
It looks like ARSperl doesn't find the BMC unicode libraries, probably because of an error in Makefile.PL Try to change line 114 in Makefile.PL: $ARS_LIBS .= -lpthread -licuuc -licui18n; to $ARS_LIBS .= -lpthread -licuucbmc -licui18nbmc; and compile again. Regards, Thilo Stapff Frassl, Maurice wrote: Hi Guys! Having some problems getting ARSPerl running with 7.0 API! I installed it the common way – I always did witch 1.85 – got no errors. If I try to run a script using ARS now I get the following error! Can't load '/usr/perl5/site_perl/5.8.4/sun4-solaris-64int/auto/ARS/ARS.so' for module ARS: ld.so.1: perl: fatal: relocation error: file /usr/perl5/site_perl/5.8.4/sun4-solaris-64int/auto/ARS/ARS.so: symbol ucnv_compareNames_3_2: referenced symbol not found at /usr/perl5/5.8.4/lib/sun4-solaris-64int/DynaLoader.pm line 230. at casc_ARSFuncs.pm line 25 The file ARS.so is where it is expected! So may somebody can help!? thx --- Maurice Frassl Application Engineer [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] UPC CIO IP Provisioning SP t +43 1 960685621 m +43 69919605621 f +43 1 960685666 Erlachgasse 116 A-1100 Vienna Austria --- This e-mail is confidential and may well also be legally privileged. If you have received it in error, you are on notice of its status. Please notify us immediately by reply e-mail and then delete this message from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person: to do so could be a breach of confidence. Thank you for your cooperation. Information pursuant to paragraph 14 Austrian Companies Code: UPC Austria GmbH; Registered Office: Wolfganggasse 58-60, 1120 Vienna Company Register Number: FN 189858d at the Commercial Court of Vienna - SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users - SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users
Re: [Arsperl-users] Cannot connect to remote server
As far as I understood, we should be able to connect eventhough we are using the 7.0 API and are using 6.3 on our Remedy server. I'm not sure about this. It should certainly work to run the 6.3 API against a 7.0 server, but not necessarily the other way round. Regards, Thilo - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users
Re: [Arsperl-users] Problem from web or cron
You might try the following: Assuming that '80101' is a date or date/time field, specify the date in the qualifier string as an integer (epoch time for date/time fields, see recent arsperl-users thread about date conversion for date fields). Furthermore, it looks like '86010' might be a selection field. If this is the case, specify the corresponding integer values of Problem and Informational here as well. Regards, Thilo Stapff Brad O'Hara wrote: COMMAND LINE: Started at Wed Oct 17 14:35:00 EDT 2007 after login errstr= q=('86010' = Problem OR '86010' = Informational) AND '80101' = 10/16/2007 after load qual errstr= qual=ARQualifierStructPtr=SCALAR(0x89ae9b0) after get list errstr= number entries=19 CNS-061 CNS-062 CNS-063 CNS-064 CNS-065 CNS-066 CNS-067 CNS-068 CNS-069 CNS-070 CNS-071 CNS-072 CNS-073 CNS-075 CNS-076 CNS-077 CNS-078 CNS-079 CNS-080 CRON: Started at Wed Oct 17 14:43:02 EDT 2007 after login errstr= q=('86010' = Problem OR '86010' = Informational) AND '80101' = 10/16/2007 after load qual errstr= qual=ARQualifierStructPtr=SCALAR(0x98d8810) after get list errstr= number entries=0 Thanks sooo much for your help! This is driving me crazy. Notice I get logged in and the qualifier is built fine, but I get no entries. I attached the entire script if that helps. Brad Thilo Stapff wrote: Would it be possible to insert some debug statements to see how far it gets (especially checking for $ars_errstr after every ARS API call)? I don't know where the output from cron jobs goes, but there should be a log file for this. Or maybe the output can be explicitly redirected in the cron job definition? Do you know if the script gets started at all? Regards, Thilo Stapff Brad O'Hara wrote: Sorry to bother you directly, I posted this to the list without a response :-( and noticed you answer most questions. I am using ARSperl 1.90 against a v7.01 server. Not sure what I am doing wrong! I have the following code that retrieves entries when run from the command line, but not from a crontab entry. my $c = ars_Login(CCACHE::SERVER, CCACHE::USERNAME, CCACHE::PASSWORD); my $query= qq/('86010' = Problem OR '86010' = Informational) AND '80101' = $date/; ($qual = ars_LoadQualifier($c, $schema, $query)); # Get Requests my (%entries = ars_GetListEntry($c, $schema, $qual, 0, 0)) ; if ( %entries ) { my (%values, %ticket); foreach $entry_id (sort keys %entries) { } } else { #nothing returned } The only thing I could think of was a path difference, however, I set $ENV{'PATH'} = to the same as the shell path. Any help is greatly appreciated. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users
Re: [Arsperl-users] Inserting a date in ARSPerl
The BMC Form and Application Objects Guide says: Users can enter dates from January 1, 4713 B.C. to January 1, A.D. 2440588 is the difference (in days) between January 1, 1970 AD and January 1, 4713 BC. I don't know why they chose 4713 BC as the starting year. Regards, Thilo Stapff Pittman, Timothy wrote: Thanks. That worked. I understand where 86400 came from, but what is the significance of 2440588? Tim Pittman Project Engineer Respironics, Inc. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thilo Stapff Sent: Wednesday, October 17, 2007 1:03 PM To: ARSperl User Discussion Subject: Re: [Arsperl-users] Inserting a date in ARSPerl Unfortunately, date fields (unlike date/time fields) are only supported since ARSperl version 1.90 The value has to be an integer which can be computed from an epoch timestamp by int( $epoch_time / 86400 ) + 2440588 Regards, Thilo Stapff Pittman, Timothy wrote: I have been having considerable difficulty trying to use ARSPerl to create an entry with a date. My web page is prompting the user to enter a date, which I'm assuming will be in the format mm/dd/. I am using the perl module ParseDate to attempt to figure out what they enter. In any case, I need to convert this user-entered value into some format that ars_CreateEntry can deal with. My code does this: ($entryId = ars_CreateEntry($ctrl, $shopSchema, $sf{Description}, $details, ... various fields you don't care about... $sf{Date Required}, $date1, ... more fields... $sf{Status}, Submitted)) or print \np[ERROR]\tCould not add shop order due to $ars_errstrbbr\n; I have tried numerous ways of formatting the date field $date1 above to attempt to get it to shop up in the proper format in Remedy. I have tried numerous variations of the following: A string (i.e. 10/17/2007) An integer (converted via timelocal and others to epoch time) I either end up with the date 1/1/ or 1/1/4713 B.C. in my date field. I have searched everywhere on the net that I can find and nothing has helped. Does anyone know what to do to a user-entered date to make ars_CreateEntry accept it properly? This is running on a Win2K server with ARSPerl 1.82 against a Remedy 6.0 system on Oracle. Thanks, Tim CONFIDENTIALITY NOTICE -- This message, together with any attachments, may be legally privileged and is confidential information intended only for the use of the individual or entity to which it is addressed. It is exempt from disclosure under applicable law including court orders. If you are not the intended recipient, you are hereby notified that any use, dissemination, distribution or copy of this message, or any attachment, is strictly prohibited. If you have received this message in error, please notify the original sender and delete this message, along with any attachments, from your computer. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users
Re: [Arsperl-users] need to import data from all forms at once
The import tool can be automated. See the chapter Using the Remedy Import command line interface in the AR 6.3 Advanced Development Guide. Regards, Thilo Stapff STAN HOLODNAK, BLOOMBERG/ 731 LEXIN wrote: We are moving ARS 6.3 Server from Informix to Oracle. I already exported forms structure and workflow with ARS Admin tool. Now I want to import data. I don't want to use import tool since we have more then 150 forms. Is there anyway to automate Import tool or is there ARSPERL script that does that? BTW did someone use Migrator 7.0.1? Is it usefull for this task? Thank you. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users
Re: [Arsperl-users] Problem with 7.x enum list with gaps
For the 'Enum With Gaps' field, you have to use $field-{limit}{enumLimits}{customList} instead of $field-{limit}{enumLimits}{regularList} Regards, Thilo Michiel Beijen wrote: Excuse me, here is my message one more time. sf.net keeps sending messages to me that they've blocked and removed .zip and .pl attachments. I guess I also ran into a problem with the 7.x Enum field when it contains gaps and I have attached a .def file and a perl script to explain it. The list of enum values that is returned when you do an ars_GetField call on a enum field with gaps between the values is empty. Regards, Michiel Here's the perl script: - use ARS; use strict; use warnings; use Data::Dumper; my $ctrl = ars_Login( shift, shift, shift ) || die login: $ars_errstr; my $schema = MB:Test; foreach ('Conventional Enum', 'Enum With Gaps') { print Fetching values for $_\n; ( my $fid = ars_GetFieldByName( $ctrl, $schema, $_ ) ) || die $ars_errstr; ( my $field = ars_GetField( $ctrl, $schema, $fid ) ) || die $ars_errstr; print Dumper ( @{ $field-{limit}{enumLimits}{regularList} } ); my @enumvals = @{ $field-{limit}{enumLimits}{regularList} }; print Status values $_: . join( ',', @enumvals ) . \n; } - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users
Re: [Arsperl-users] Errors opening a form
As Jarl already explained, this is a problem with the new (since ARS 7.0) custom enum lists. ARSperl 1.90 supports them, so this is definitely a problem with the OO interface. Regards, Thilo Jeff Murphy wrote: Peter Farr wrote: Damn! I do not have any control over the Remedy side so I doubt there is anything I can do about it. Every time I start to use ARSPerl it throws up another roadblock. Thanks for the reply, Jarl. Make a simple form, if you can, that duplicates the problem and submit the form definition and script. We can then look into adding that functionality. jeff - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users
Re: [Arsperl-users] Errors opening a form
The OO interface is just a layer on top of the standard ars_Get... functions. The $c-query() method, for example, uses ars_GetListEntry internally. Without having seen some code, I can only take a guess as to what went wrong with the failed ars_GetListEntry attempts: ars_GetListEntry could have been called with the wrong number of arguments (probably the firstRetrieve parameter missing). In this case, ars_GetListEntry is aborted before any connection over the network occurs. The way to detect this would be to check $ars_errstr after the ars_GetListEntry call, but if this is omitted the whole behaviour might indeed appear quite mysterious. Regards, Thilo Stapff Peter Farr wrote: The reason I switched to the OO version of the interface was because the old style one did not return any data. I could do calls like ars_GetListField, ars_GetFieldByName and ars_GetServerInfo, but any calls that tried to retrieve data like ars_GetListEntryWithFields or ars_GetListEntry did not return anything. When I asked one of the Remedy developers to trace it on their side he could see the API calls for login, ars_GetListField (or whatever), but never saw anything in the log if I tried ars_GetListEntry. It is like the API never sent any request at all to the server if it involved reading field contents. When I switched to the OO style we could see all the calls come across in the trace, including $c-getFieldID() and $c-getAsHash(), and even better, I actually get data back into Perl. Then we ran into the openForm() issue, which we have resolved by creating a self-join with no enumerated fields(thanks Jarl). I am pretty much ready to just switch to C if I run into any more issues. I am on a very short schedule. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users
Re: [Arsperl-users] ARSPerl newbie: How to list field values from a form?
ars_GetListEntry needs at least one more parameter (firstRetrieve, usually = 0): %entries = ars_GetListEntry($ctrl, $schema, $qual, 0 , 0); instead of %entries = ars_GetListEntry($ctrl, $schema, $qual, 0); Moreover, you should always check for errors after calling an API function, e.g. die ars_GetListEntry( $schema, $qs ): $ars_errstr\n if $ars_errstr; You might also try using the field ID of Category instead of the field name in the qualifier string. Regards, Thilo Stapff Ravi wrote: Hi:I am trying query a schema and print a fieldname and values for all records with a qualifying filter. I can't seem to figure out which function to use and how. This is what I have now and I get 0 records. Is asr_GetListEntry the right function? Does someone have a sample script or point me to the right one in the example dir? $schema = My:Alarm Base; $qs = qq/'Category' = Voice/; ($qual = ars_LoadQualifier($ctrl,$schema,$qs)) || die error in ars_LoadQualifier; %entries = ars_GetListEntry($ctrl, $schema, $qual, 0); foreach $entry_id (sort keys %entries) { printf(%s %s\n, $entry_id, $entries{$entry_id}); } Thanks Ravi - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users
Re: [Arsperl-users] ARSPerl newbie: How to list field values from a form?
I'm not sure what you are talking about. ARTermination() is always called on exit because ARS.xs implements a destructor function for ARControlStructPtr objects. Perl also closes filehandles automatically. If you have other resources which need cleanup, you can wrap your code into an eval block: eval { ... ars_GetListEntry( ); die Error message\n if $ars_errstr; ... } warn $@ if $@; # do cleanup here So, in my opinion, in most cases the use of die should be just fine. Best regards, Thilo Jarl Grøneng wrote: I does not like the die parameter if you got an error. You may miss the clean-up part. - Jarl On 8/9/07, Thilo Stapff [EMAIL PROTECTED] wrote: ars_GetListEntry needs at least one more parameter (firstRetrieve, usually = 0): %entries = ars_GetListEntry($ctrl, $schema, $qual, 0 , 0); instead of %entries = ars_GetListEntry($ctrl, $schema, $qual, 0); Moreover, you should always check for errors after calling an API function, e.g. die ars_GetListEntry( $schema, $qs ): $ars_errstr\n if $ars_errstr; You might also try using the field ID of Category instead of the field name in the qualifier string. Regards, Thilo Stapff Ravi wrote: Hi:I am trying query a schema and print a fieldname and values for all records with a qualifying filter. I can't seem to figure out which function to use and how. This is what I have now and I get 0 records. Is asr_GetListEntry the right function? Does someone have a sample script or point me to the right one in the example dir? $schema = My:Alarm Base; $qs = qq/'Category' = Voice/; ($qual = ars_LoadQualifier($ctrl,$schema,$qs)) || die error in ars_LoadQualifier; %entries = ars_GetListEntry($ctrl, $schema, $qual, 0); foreach $entry_id (sort keys %entries) { printf(%s %s\n, $entry_id, $entries{$entry_id}); } Thanks Ravi - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users
Re: [Arsperl-users] Performance problems
$field_ids[3] contains just the field id itself. The value of the field is in $entry{$field_id[3]}}. You should also note that gmtime returns the month as numbers 0..11 instead of 1..12. Anyway, an easier (and problably more reliable) method for date formatting would be to use a module from CPAN (e.g. Date::Format). Regards, Thilo Paizo wrote: i tried the following: foreach my $entry_id (sort keys %entries) { my %entry = ars_GetEntry($ctrl, $ARSschema, $entry_id, @field_ids); print $field_ids[3]\n;# test: print number 3 the first clicle then nothing ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = gmtime($field_ids[3]); $year += 1900; $mon += 1; if ($mday 10) { $timestamp_a = 0.$mday.q{/}; } else { $timestamp_a = $mday.q{/}; } if ($mon 10) { $timestamp_a .= 0.$mon.q{/}.$year. ; } else { $timestamp_a .= $mon.q{/}.$year. ; } if ($hour 10) { $timestamp_a .= 0.$hour..; } else { $timestamp_a .= $hour..; } if ($min 10) { $timestamp_a .= 0.$min..; } else { $timestamp_a .= $min..; } if ($sec 10) { $timestamp_a .= 0.$sec; } else { $timestamp_a .= $sec; } print $timestamp_a\n\n; #test: print 01/01/1970 00.00.03 in the first cile then always 01/01/1970 00.00.00 $field_ids[3] = $timestamp_a; print datafile join(|, @[EMAIL PROTECTED] ) . \n; } hope its more clear. 2007/8/2, Clayton Scott [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: On 8/2/07, Paizo [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: i have another ( stupid question, still new to perl :| ) , if inside the the loop: [ loop snipped ] i want to convert some dates that are in seconds since 1970 to something like dd/mm/ hh.mm.ss if i try to read $field_ids[3] and always get 3 instead of the real content :/ what i miss? Without more code, and data I really can't tell. If you want the value for a field in the form you more likely want to use the entry hash: $entry{'field_id'} If you want to inspect these data structures you can use the Data::Dumper module. use Data::Dumper; print Dumper [EMAIL PROTECTED]; foreach my $entry_id (sort keys %entries) { my %entry = ars_GetEntry($ctrl, $ARSschema, $entry_id, @field_ids); print Dumper \%entry; print datafile join(|, @[EMAIL PROTECTED] ) . \n; } -- Clayton Scott [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Arsperl-users mailing list Arsperl-users@arsperl.org mailto:Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users -- A me cugin na volta xe ndà dal geataro e el ga domandà na coppetta trigusto co i gusti seegheta, sarexe e schie co na fettina de poenta. El geataro pena sentio cheà goduriosa scelta, el se ga messo subito el pigiama de banane e el ghe ga messo in testa a corona de poegge medie e lo ga fatto diventare Re dei Gelati Biricchini. --- Confezione trigusto seegheta/sarexe/chie co pratico contenitore par e fete de poenta, stile estatè o quea dea ciocoeata Altri gusti poe essere bigadini/kiwi/lasonil co socoi de vacca da tociare o erbagatta/straciatella/calsina co coe de sorxe da tociare Rileggendo a firma diria che se poe puntare al mercato dei ghiaccioli col el gusto crema al diserbo e paraflù ricoperta da una soffice crosta de pus co al posto del bacheto un termometro anale pratico pa misurarse a freve dopo aver magnà el geato (chi xe che no lo fa al giorno d'oggi?!?!). Garantite scorese bitonali e solfeggi anali. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users
Re: [Arsperl-users] Can you change the remedy user's password in ARSperl?
If it works in the User Tool (which it might or might not do, depending on the field/entry permissions of the Group form), it should work via ARSperl as well: ars_SetEntry( $ctrl, $entryId, 0, 102 = 'new_password' ); Regards, Thilo Jeff Murphy wrote: Van De Kerk, David - PHX wrote: Hi, I am very new to ARSperl. Is it possible to change the password of the user you log in with? I've never tried it via Perl, but you should be able to change the password by setting the appropriate record/field in the User form. jeff - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users
Re: [Arsperl-users] What did I do wrong with NMake?
To run the Visual C compiler from the command line, some system variables need to be set, e.g INCLUDE, LIB, LIBPATH. I don't know exactly what variables are needed, but somewhere in your Visual Studio installation directory should be the vcvars32.bat script, which can be executed before running Makefile.PL to set the necessary variables. Regards, Thilo Bruce Scott wrote: I am installing ARSPerl v 1.9 (using Perl v 5.8.8.820 and NMake v 1.5) on a Windows XP workstation, with a copy of the AR System 5.1.2 API directory set up locally for use during testing. Step 1(perl Makefile.pl) of the installation sequence seems to go fine (per the logs below), but step 2 (nmake) doesn't complete (something about not recognizing cl as a valid command). Any suggestions? Thanks, Bruce Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\bscottcd\ C:\cd arsperl C:\ARSperlperl Makefile.pl Building against perl 5.008008 Generating support.h file.. Processing AR_STRUCT_ITEM codes.. Processing AR_SERVER_STAT codes.. Processing AR_SCHEMA codes.. Processing AR_COM_PARM codes.. Processing AR_COM_METHOD codes.. Processing AR_DDE codes.. Processing AR_ACTIVE_LINK_ACTION codes.. Processing AR_ACTIVE_LINK_ACTION_OPEN codes.. Processing AR_CHAR_MENU_DD type codes.. Processing AR_CHAR_MENU_DD name codes.. Processing AR_CHAR_MENU_DD value format.. Processing AR_CHAR_MENU codes.. Processing AR_FILTER_ACTION codes.. Processing AR_MENU_REFRESH codes.. Processing AR_PERMISSIONS (Schema) codes.. Processing AR_PERMISSIONS (Field) codes.. Processing AR_DATA_TYPE codes.. Processing AR_BYTE_LIST codes.. Processing AR_NO_MATCH codes.. Processing AR_MULTI_MATCH codes.. Processing AR_RETURN codes.. Processing AR_FUNCTION codes.. Processing ARCON codes.. Processing ARCONOWNER codes.. Processing ARREF codes.. Processing AR_KEYWORD codes.. Processing AR_SERVER_INFO codes.. Generating serverTypeInfoHints.h .. Converting C header files to perl modules .. The system cannot find the file specified. The system cannot find the file specified. Configuring with options: ARSVERSION = 5.00 ARSAPI = C:\Documents and Settings\bscott\My Documents\Remedy\Devel oper Files\AR System 512\Arserver\Api AUTODEFINES = -D_WIN32 -DARS32 -DARS452 -DPERL_PATCHLEVEL_IS=8 -DPER L_SUBVERSION_IS=8 -DPERL_BASEREV_IS=50 Checking if your kit is complete... Looks good Note (probably harmless): No library found for oldnames.lib Note (probably harmless): No library found for kernel32.lib Note (probably harmless): No library found for user32.lib Note (probably harmless): No library found for gdi32.lib Note (probably harmless): No library found for winspool.lib Note (probably harmless): No library found for comdlg32.lib Note (probably harmless): No library found for advapi32.lib Note (probably harmless): No library found for shell32.lib Note (probably harmless): No library found for ole32.lib Note (probably harmless): No library found for oleaut32.lib Note (probably harmless): No library found for netapi32.lib Note (probably harmless): No library found for uuid.lib Note (probably harmless): No library found for ws2_32.lib Note (probably harmless): No library found for mpr.lib Note (probably harmless): No library found for winmm.lib Note (probably harmless): No library found for version.lib Note (probably harmless): No library found for odbc32.lib Note (probably harmless): No library found for odbccp32.lib Note (probably harmless): No library found for msvcrt.lib Writing Makefile for ARS === ARSperl 'make test' configuration. === Please enter the following information. This information will be recorded in ./t/config.cache If you want to skip the 'make test' step, just hit ENTER three times. You can configure it later by either re-running 'perl Makefile.PL' or by editting ./t/config.cache Fair warning: you probably don't want to run 'make test' against a production ARSystem server. Server Name []: remedydev01 Admin Username []: bscott Admin Password []: (This is not what was typed in, by the way) Type 'make' (windows: 'nmake') to build ARSperl. Type 'make test' to test ARSperl before installing. Type 'make install' to install ARSperl. C:\ARSperlnmake Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. cp ARSarerrno-h.pm blib\lib/ARSarerrno-h.pm cp ARSnparm.pm blib\lib/ARSnparm.pm cp _h2ph_pre.ph blib\lib/_h2ph_pre.ph cp ARSar-h.pm blib\lib/ARSar-h.pm cp ARSnterrno-h.pm blib\lib/ARSnterrno-h.pm cp ARSnt-h.pm blib\lib/ARSnt-h.pm cp ARSOOsup.pm
Re: [Arsperl-users] What did I do wrong with NMake?
The ARSperl package contains files that need to be compiled with a C compiler. Basically, there are the following two options: (1) Download the pre-compiled arsperl_181_511.zip from http://sourceforge.net/project/showfiles.php?group_id=116013package_id=125945 This seems to be the newest version compiled against any 5.x API. Of course it is somewhat outdated, but it might nevertheless work for your purposes. (2) The Visual C++ Express Edition is available for free from Microsoft: http://msdn.microsoft.com/vstudio/express/visualc/ Unfortunately it takes some effort to install all needed components and get things going. Here are some tips I wrote recently to the ARSlist about this topic: It is definitely possible to compile ARSperl with Visual C++ Express 2005. The most common diffculties might be as follows: (1) You will need also the Microsoft Platform SDK. (2) You have to take care that some environment variables are set correctly. Visual Studio and the Platform SDK both supply batch scripts to achieve this (vcvars32.bat for Visual C++, ...\Setup\SetEnvLaunch***Retail.Cmd for the SDK) (3) After compiling, the so called manifest file has to be embedded into the newly created ARS.dll (don't ask me why), or else you might get an error message MSVCR80.dll not found when trying to run ARSperl. To do this, run: mt -manifest blib\arch\auto\ARS\ARS.dll.manifest -outputresource:blib\arch\auto\ARS\ARS.dll;2 (The mt command is installed with Visual Studio) Regards, Thilo Stapff Bruce Scott wrote: Actually, I don't have Visual C (or any variant of C) currently installed on my workstation. My understanding was that I could copy the nmake.exe and nmake.err into the C:\Perl\bin directory and the rest would be handled by the path statement Thanks, Bruce -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thilo Stapff Sent: Thursday, June 21, 2007 11:08 AM To: ARSperl User Discussion Subject: Re: [Arsperl-users] What did I do wrong with NMake? To run the Visual C compiler from the command line, some system variables need to be set, e.g INCLUDE, LIB, LIBPATH. I don't know exactly what variables are needed, but somewhere in your Visual Studio installation directory should be the vcvars32.bat script, which can be executed before running Makefile.PL to set the necessary variables. Regards, Thilo Bruce Scott wrote: I am installing ARSPerl v 1.9 (using Perl v 5.8.8.820 and NMake v 1.5) on a Windows XP workstation, with a copy of the AR System 5.1.2 API directory set up locally for use during testing. Step 1(perl Makefile.pl) of the installation sequence seems to go fine (per the logs below), but step 2 (nmake) doesn't complete (something about not recognizing cl as a valid command). Any suggestions? Thanks, Bruce Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\bscottcd\ C:\cd arsperl C:\ARSperlperl Makefile.pl Building against perl 5.008008 Generating support.h file.. Processing AR_STRUCT_ITEM codes.. Processing AR_SERVER_STAT codes.. Processing AR_SCHEMA codes.. Processing AR_COM_PARM codes.. Processing AR_COM_METHOD codes.. Processing AR_DDE codes.. Processing AR_ACTIVE_LINK_ACTION codes.. Processing AR_ACTIVE_LINK_ACTION_OPEN codes.. Processing AR_CHAR_MENU_DD type codes.. Processing AR_CHAR_MENU_DD name codes.. Processing AR_CHAR_MENU_DD value format.. Processing AR_CHAR_MENU codes.. Processing AR_FILTER_ACTION codes.. Processing AR_MENU_REFRESH codes.. Processing AR_PERMISSIONS (Schema) codes.. Processing AR_PERMISSIONS (Field) codes.. Processing AR_DATA_TYPE codes.. Processing AR_BYTE_LIST codes.. Processing AR_NO_MATCH codes.. Processing AR_MULTI_MATCH codes.. Processing AR_RETURN codes.. Processing AR_FUNCTION codes.. Processing ARCON codes.. Processing ARCONOWNER codes.. Processing ARREF codes.. Processing AR_KEYWORD codes.. Processing AR_SERVER_INFO codes.. Generating serverTypeInfoHints.h .. Converting C header files to perl modules .. The system cannot find the file specified. The system cannot find the file specified. Configuring with options: ARSVERSION = 5.00 ARSAPI = C:\Documents and Settings\bscott\My Documents\Remedy\Devel oper Files\AR System 512\Arserver\Api AUTODEFINES = -D_WIN32 -DARS32 -DARS452 -DPERL_PATCHLEVEL_IS=8 -DPER L_SUBVERSION_IS=8 -DPERL_BASEREV_IS=50 Checking if your kit is complete... Looks good Note (probably harmless): No library found for oldnames.lib Note (probably harmless): No library found for kernel32.lib Note (probably harmless): No library found for user32.lib
Re: [Arsperl-users] referenced symbol not found errors (ucnv_compareNames_3_2)
Andrew, the referenced symbol problem is most likely caused by an error in Makefile.PL, line 114, which currently looks like this: $ARS_LIBS .= -lpthread -licuuc -licui18n; This should rather be $ARS_LIBS .= -lpthread -licuucbmc -licui18nbmc; This is already fixed in the newest CVS revision, for instructions how to download, see http://sourceforge.net/cvs/?group_id=116013 The make clean problem would indeed be a big issue. I need to investigate this further before I can say anything about it. It would be of great help if you could send me - the generated Makefile - the output of a make clean run Regards Thilo Andrew Hicox wrote: Hello Everyone: I'm attempting to compile ARSPerl-1.90 on Solaris 10, with perl 5.8..8 and gcc 3.4.3 compile seems to go fine, but make test (and all other attempts to use the module) result in the following error: Can't load '/prod/remedy/STAGE/PERL_UPGRADE/ARSperl-1.90/blib/arch/auto/ARS/ARS.so' for module ARS: ld.so.1: perl: fatal: relocation error: file /prod/remedy/STAGE/PERL_UPGRADE/ARSperl-1.90/blib/arch/auto/ARS/ARS.so: symbol ucnv_compareNames_3_2: referenced symbol not found at /prod/remedy/lib/perl5/5.8.8/sun4-solaris/DynaLoader.pm line 230. yeah, I've got some custom paths in there, but I'm fairly certain that's not the issue. I noted Thilo's earlier post with the suggestion of editing the supportrev_generated.h .c files. I tried this but it did not seem to make a difference. ALSO ... and this is a BIG issue ... 'make realclean' and 'make clean' will REMOVE the libar.a file from your api directory (OUTSIDE THE BUILD DIRECTORY). It's fortunate I made a backup of my api directory prior ;-) In any case ... is there anything maybe in a nightly build or CVS out there that would address this issue? I'm afraid it goes a bit deeper than my knowledge can take me. I've got quite a bit of infrastructure built on ARSPerl ... I really need this to compile against the ARS7 api in this environment. Any suggestions? thanks, -Andrew Hicox - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users
Re: [Arsperl-users] change status and write on diary
The ars_SetEntry call should rather look like this: ars_SetEntry($c, Form Name, $entryId, 0, $t{'Status'}, Closed, ... The 0 after $entryId is the getTime parameter. If it has a nonzero value, it can be used to prevent the change if the entry has been changed by another user after the getTime (seconds after Jan 1 1970). Regards, Thilo Paizo wrote: thanks for your anwers. I still don't understand how you choose a specific trouble ticket, you just call getfieldtable by passing a form name and change the status and the diary by ars_setentry but of which ticket?! 2007/5/15, Jeff Murphy [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: Paizo wrote: Hi Listeners, I would like to know how to modify a trouble ticket, for example change its status and write some lines on the diary field of the note. I didn't find examples about this, can you give some hints please? Off the top of my head.. $c = ars_Login(server, user, pass); %t = ars_GetFieldTable($c, Form Name); ars_SetEntry($c, Form Name, $t{'Status'}, Closed, $t{'Diary'}, All fixed!) || die $ars_errstr; ars_Logoff($c); something fairly close to that. Combine the above with the documentation, and you should be on your way! jeff - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Arsperl-users mailing list Arsperl-users@arsperl.org mailto:Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users -- CFAH3 CUT-LASS - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users
Re: [Arsperl-users] What's the download path for getting the
You can also download it from arswiki.org, which is easier because they have a tar while containing only the API package: http://arswiki.org/projects/arapi/browser/releases Regards, Thilo STAN HOLODNAK, BLOOMBERG/ 731 LEXIN wrote: Login to Remedy website http://www.bmc.com/remedy/ Go to Download Patches, click on BMC Remedy Product Download. Select Linux. API comes with the server, so when running ar_install, install only API not server package. -Stan Holodnak - Original Message - From: Richard Hellier arsperl-users@arsperl.org At: 5/11 13:51:41 Folks, Anyone know the URL for downloading the Linux version of the API, please? Thanks! Richard. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users
Re: [Arsperl-users] Error running ARSperl 1.90 / ARSapi 7.0.1 on SLES9 Patch3 (2.6.5-7.283-smp)
This indicates that the shared library libicudatabmc.so.32 is not found. The libicu*.so files should be available in your $ARSAPI/lib directory (if not, you can download them from http://arswiki.org), but the dynamic linker probably doesn't know that. A possible solution is to run ldconfig on the $ARSAPI/lib directory. There might also exist a gcc command line option to specify a shared library search directory at compile time, but I'm not sure about that. Thilo Robert Bürger wrote: Hi Thilo, thank you for your quick response! I just renewed my file which the CVS ones and unfortunately here is the next error message: Can't load '/usr/lib/perl5/site_perl/5.8.3/i586-linux-thread-multi/auto/ARS/ARS.so' for module ARS: libicudatabmc.so.32: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.3/i586-linux-thread-multi/DynaLoader.pm line 229. at ./ISAM_assFirma.pl line 36 Compilation failed in require at ./ISAM_assFirma.pl line 36. BEGIN failed--compilation aborted at ./ISAM_assFirma.pl line 36. Do I need to install additional libraries? (which ones?) Robert - Ursprüngliche Mail Von: Thilo Stapff [EMAIL PROTECTED] An: ARSperl User Discussion arsperl-users@arsperl.org Gesendet: Donnerstag, den 26. April 2007, 11:00:14 Uhr Betreff: Re: [Arsperl-users] Error running ARSperl 1.90 / ARSapi 7.0.1 on SLES9 Patch3 (2.6.5-7.283-smp) The error message undefined symbol: ucnv_open_3_2 means that ARSperl cannot load the unicode library (libicuuc etc.). This happens because of an error in Makefile.PL, line 114: $ARS_LIBS .= -lpthread -licuuc -licui18n; This line should rather read like this: $ARS_LIBS .= -lpthread -licuucbmc -licui18nbmc; BTW, the newest developer version in Sourceforge CVS has this already fixed, along with fixes for some memory leaks. For information about downloading this version, see http://sourceforge.net/cvs/?group_id=116013 (under Anonymous CVS Access) Mit freundlichen Grüßen Thilo Stapff Robert Bürger wrote: Hello, I get this error after running my script: Can't load '/usr/lib/perl5/site_perl/5.8.3/i586-linux-thread-multi/auto/ARS/ARS.so' for module ARS: /usr/lib/perl5/site_perl/5.8.3/i586-linux-thread-multi/auto/ARS/ARS.so: undefined symbol: ucnv_open_3_2 at /usr/lib/perl5/5.8.3/i586-linux-thread-multi/DynaLoader.pm line 229. at ./ISAM_assFirma.pl line 36 Compilation failed in require at ./ISAM_assFirma.pl line 36. BEGIN failed--compilation aborted at ./ISAM_assFirma.pl line 36. Can anybody help me on this? Here is the installation log. (I got many warnings, gcc-3.3.3) # perl Makefile.PL Building against perl 5.008003 Generating support.h file.. Processing AR_STRUCT_ITEM codes.. Processing AR_SERVER_STAT codes.. Processing AR_SCHEMA codes.. Processing AR_COM_PARM codes.. Processing AR_COM_METHOD codes.. Processing AR_DDE codes.. Processing AR_ACTIVE_LINK_ACTION codes.. Processing AR_ACTIVE_LINK_ACTION_OPEN codes.. Processing AR_CHAR_MENU_DD type codes.. Processing AR_CHAR_MENU_DD name codes.. Processing AR_CHAR_MENU_DD value format.. Processing AR_CHAR_MENU codes.. Processing AR_FILTER_ACTION codes.. Processing AR_MENU_REFRESH codes.. Processing AR_PERMISSIONS (Schema) codes.. Processing AR_PERMISSIONS (Field) codes.. Processing AR_DATA_TYPE codes.. Processing AR_BYTE_LIST codes.. Processing AR_NO_MATCH codes.. Processing AR_MULTI_MATCH codes.. Processing AR_RETURN codes.. Processing AR_FUNCTION codes.. Processing ARCON codes.. Processing ARCONOWNER codes.. Processing ARREF codes.. Processing AR_KEYWORD codes.. Processing AR_SERVER_INFO codes.. Generating serverTypeInfoHints.h .. Converting C header files to perl modules .. Configuring with options: ARSVERSION = 7.00 ARSAPI = /app/arsdev/arserver/api AUTODEFINES = -g -DARS32 -DARS452 -malign-double -DPERL_PATCHLEVEL_IS=8 -DPERL_SUBVERSION_IS=3 -DPERL_BASEREV_IS=50 Note (probably harmless): No library found for -licuuc Note (probably harmless): No library found for -licui18n Writing Makefile for ARS === ARSperl 'make test' configuration. === Please enter the following information. This information will be recorded in ./t/config.cache If you want to skip the 'make test' step, just hit ENTER three times. You can configure it later by either re-running 'perl Makefile.PL' or by editting ./t/config.cache Fair warning: you probably don't want to run 'make test' against a production ARSystem server. Server Name []: Admin Username []: Admin Password []: Type 'make' (windows: 'nmake') to build ARSperl. Type 'make test' to test ARSperl before installing. Type 'make install
Re: [Arsperl-users] Error installing/using ARSperl 1.90 on Solaris 9 with Perl 5.8.3
Try to replace the following lines in the source code: in file supportrev_generated.h, line 339: void copyUIntArray( int size, unsigned int *dst, SV* src ); by void copyUIntArray( int size, ARInternalId *dst, SV* src ); in file supportrev_generated.c, line 11925 (near end of file): void copyUIntArray( int size, unsigned int *dst, SV* src ){ by void copyUIntArray( int size, ARInternalId *dst, SV* src ){ Regards, Thilo Emily Conner wrote: Only seeing this error on compile: supportrev_generated.c: In function `rev_ARCharMenuQueryStruct': supportrev_generated.c:2791: warning: passing arg 2 of `copyUIntArray' from incompatible pointer type but getting this error trying to use ARS: Can't load '/usr/local/lib/perl5/site_perl/5.8.3/sun4-solaris/auto/ARS/ARS.so' for module ARS: ld.so.1: perl5.8.3: fatal: relocation error: file /usr/local/lib/perl5/site_perl/5.8.3/sun4-solaris/auto/ARS/ARS.so: symbol ucnv_compareNames_3_2: referenced symbol not found at /usr/local/lib/perl5/5.8.3/sun4-solaris/DynaLoader.pm line 229. I saw this in Makefile.PL, but it was already uncommented: # If you get errors during compilation/runtime similar to # undefined symbol: sv_isa then add this define. 'DEFINE' = ${AUTODEFINES}, Any ideas? Thanks, Emily # perl Makefile.PL Building against perl 5.008003 Generating support.h file.. Processing AR_STRUCT_ITEM codes.. Processing AR_SERVER_STAT codes.. Processing AR_SCHEMA codes.. Processing AR_COM_PARM codes.. Processing AR_COM_METHOD codes.. Processing AR_DDE codes.. Processing AR_ACTIVE_LINK_ACTION codes.. Processing AR_ACTIVE_LINK_ACTION_OPEN codes.. Processing AR_CHAR_MENU_DD type codes.. Processing AR_CHAR_MENU_DD name codes.. Processing AR_CHAR_MENU_DD value format.. Processing AR_CHAR_MENU codes.. Processing AR_FILTER_ACTION codes.. Processing AR_MENU_REFRESH codes.. Processing AR_PERMISSIONS (Schema) codes.. Processing AR_PERMISSIONS (Field) codes.. Processing AR_DATA_TYPE codes.. Processing AR_BYTE_LIST codes.. Processing AR_NO_MATCH codes.. Processing AR_MULTI_MATCH codes.. Processing AR_RETURN codes.. Processing AR_FUNCTION codes.. Processing ARCON codes.. Processing ARCONOWNER codes.. Processing ARREF codes.. Processing AR_KEYWORD codes.. Processing AR_SERVER_INFO codes.. Generating serverTypeInfoHints.h .. Converting C header files to perl modules .. Configuring with options: ARSVERSION = 7.00 ARSAPI = /opt/remedy/api AUTODEFINES = -g -DARS32 -DARS452 -DPERL_PATCHLEVEL_IS=8 -DPERL_SUBVERSION_IS=3 -DPERL_BASEREV_IS=50 Checking if your kit is complete... Looks good Writing Makefile for ARS === ARSperl 'make test' configuration. === Please enter the following information. This information will be recorded in ./t/config.cache If you want to skip the 'make test' step, just hit ENTER three times. You can configure it later by either re-running 'perl Makefile.PL' or by editting ./t/config.cache Fair warning: you probably don't want to run 'make test' against a production ARSystem server. Server Name []: Admin Username []: Admin Password []: Type 'make' (windows: 'nmake') to build ARSperl. Type 'make test' to test ARSperl before installing. Type 'make install' to install ARSperl. # make cp ARSarerrno-h.pm blib/lib/ARSarerrno-h.pm cp ARSnparm.pm blib/lib/ARSnparm.pm cp artypes.ph blib/lib/artypes.ph cp _h2ph_pre.ph blib/lib/_h2ph_pre.ph cp ARSar-h.pm blib/lib/ARSar-h.pm cp ARSnterrno-h.pm blib/lib/ARSnterrno-h.pm cp ARSnt-h.pm blib/lib/ARSnt-h.pm cp ARSOOsup.pm blib/lib/ARSOOsup.pm cp ARSOOmsgs.pm blib/lib/ARSOOmsgs.pm cp ARSOOform.pm blib/lib/ARSOOform.pm cp ARS.pm blib/lib/ARS.pm AutoSplitting blib/lib/ARS.pm (blib/lib/auto/ARS) /usr/local/bin/perl /usr/local/lib/perl5/5.8.3/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.8.3/ExtUtils/typemap -typemap typemap ARS.xs ARS.xsc mv ARS.xsc ARS.c gcc -B/usr/ccs/bin/ -c -I/opt/remedy/api/include -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\1.90\ -DXS_VERSION=\1.90\ -fPIC -I/usr/local/lib/perl5/5.8.3/sun4-solaris/CORE -g -DARS32 -DARS452 -DPERL_PATCHLEVEL_IS=8 -DPERL_SUBVERSION_IS=3 -DPERL_BASEREV_IS=50 ARS.c gcc -B/usr/ccs/bin/ -c -I/opt/remedy/api/include -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\1.90\ -DXS_VERSION=\1.90\ -fPIC -I/usr/local/lib/perl5/5.8.3/sun4-solaris/CORE -g -DARS32 -DARS452 -DPERL_PATCHLEVEL_IS=8 -DPERL_SUBVERSION_IS=3 -DPERL_BASEREV_IS=50 support.c gcc -B/usr/ccs/bin/ -c -I/opt/remedy/api/include -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
Re: [Arsperl-users] ars_LoadQualifier blows in ARSPerl 1.85
Not sure what you mean. Could you be a little more specific, perhaps send a code sample? Do you get an error message in $ars_errstr or does it simply crash? Thilo STAN HOLODNAK, BLOOMBERG/ 731 LEXIN wrote: Thilo, hardcoding field name is working. Thank you. One more thing, ars_MergeEntry fails if the diary field is empty. Any idea why? -Stan - Original Message - From: Thilo Stapff arsperl-users@arsperl.org At: 4/10 13:35:32 I've seen this problem too but was never able to solve it. You might, however, use field IDs in the qualifier instead of labels, e.g. ... AND '536870913' = 037001 That way it has, so far, always worked. Regards, Thilo STAN HOLODNAK, BLOOMBERG/ 731 LEXIN wrote: It runs OK sometimes but sometimes it exits with this message ars_LoadQualifier: [ERROR] Unknown field referenced in query line (position 39 (... AND 'Case ID+'^ = 037...)) (ARERR #1587) Print out query just before ars_LoadQualifier says 'Case Status' = Closed AND 'Case ID+' =0373200. So the query itself is correct. Why the error message shows '^' and why does it exit? Thank you. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users
Re: [Arsperl-users] installation probleme on Solaris
Apparently there's no compiler installed. See e.g. http://www.unixguide.net/sun/faq/5.37.shtml for an explanation. The easiest solution is probably to install gcc (as binary package from http://www.sunfreeware.com/). Regards Thilo Stapff Serouche Rahimpour wrote: dear listers, I am trying to install ARSperl-1.90 on my Solaris box (SunOS 5.9). At make command, I get the following error: /usr/ucb/cc: language optional software package not installed *** Error code 1 make: Fatal error: Command failed for target `ARS.o' Any help/idea what could be ? Thank you sharing your knowledge. Serouche - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users
Re: [Arsperl-users] Error running 1.90 / 7.0.1 API
Maybe it has to do with the different versions of gcc (and accordingly glibc) on the two systems. Unix has also a ldd utility to show library depencies. See man lcc for more information. Regards, Thilo Georg Grabler schrieb: Hello, I'm experiencing problems on one of our testing linux boxes with the new ars version. Note: On my local system ARSPerl 1.90 runs fine (arslib-7.0.1 and arsperl 1.90, ARCH Linux current, gcc 4.1.2). I get an error, in combination with __ctype_b_loc. The output is as follows: [Wed Mar 14 10:40:26 2007] Main.pl: Can't load '/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/ARS/ARS.so' for module ARS: /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/ARS/ARS.so: undefined symbol: __ctype_b_loc at /usr/lib/perl5/5.6.1/i386-linux/DynaLoader.pm line 206. The testing systems are running the same configuration as the production servers do, so don't wonder about the low perl version number. Compile environment: Linux (RHEL) GCC 2.96 Perl: 5.6.1 Does anyone know what this error means? Any hints what to look at? Kind regards, Georg - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users
Re: [Arsperl-users] Help with Error Message when Compiling Perl
Jack, this looks like a bug in the ARS.xs file. It might work if you edit line 4295 of ARS.xs as follows: Replace int len; by STRLEN len; or unsigned int len; Regards, Thilo Stapff Jack Samson wrote: Hi All, I am on a solaris server and am trying to compile perl. Has anyone seen this error when trying to compile? I am on a 6.03 server using Patch 18. Any insight would be helpful. make test /opt/SUNWspro/prod/bin/cc -c -I/usr/ar/remedy/api/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xO3 -xdepend -DVERSION=\1.84\ -DXS_VERSION=\1.84\ -KPIC -I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE -g -DARS32 -DARS452 -DPERL_PATCHLEVEL_IS=6 -DPERL_SUBVERSION_IS=1 -DPERL_BASEREV_IS=50 ARS.c ARS.xs, line 4296: warning: argument #2 is incompatible with prototype: prototype: pointer to unsigned int : /usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE/proto.h, line 709 argument : pointer to int /opt/SUNWspro/prod/bin/cc -c -I/usr/ar/remedy/api/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xO3 -xdepend -DVERSION=\1.84\ -DXS_VERSION=\1.84\ -KPIC -I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE -g -DARS32 -DARS452 -DPERL_PATCHLEVEL_IS=6 -DPERL_SUBVERSION_IS=1 -DPERL_BASEREV_IS=50 support.c Regards, Jackson _ Get FREE Web site and company branded e-mail from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Arsperl-users mailing list Arsperl-users@arsperl.org https://lists.sourceforge.net/lists/listinfo/arsperl-users