If you
want/need to toggle a single log file then you will need to add or take out the
bit for the particular log file. This is what I need to do with the
importing of the log files. Here are snippets of VB.Net code to perform
this. I haven't converted it to SQL Server but it should be fairly
straight-forward in case anyone needs this functionality.
Public
Enum SettingOptions
SQL = 1
Filter = 2
User = 4
Escalation = 8
API = 16
Thread = 32
Alert = 64
ForkD = 128
ServerGroup = 256
DSO = 32768
ApprovalServer = 65536
PlugIn = 131072
SQL = 1
Filter = 2
User = 4
Escalation = 8
API = 16
Thread = 32
Alert = 64
ForkD = 128
ServerGroup = 256
DSO = 32768
ApprovalServer = 65536
PlugIn = 131072
End
Enum
Private Function ToggleOption(ByVal
CurSettings As Int16, ByVal ModeOption As SettingOptions, ByVal ToggleOn As
Boolean) As Int16
If ToggleOn Then
Return (CurSettings Or CShort(ModeOption))
Else
Return (CurSettings Xor CShort(ModeOption))
End If
End Function
If ToggleOn Then
Return (CurSettings Or CShort(ModeOption))
Else
Return (CurSettings Xor CShort(ModeOption))
End If
End Function
To
call:
NewSetting = ToggleOption(CurSettings, SettingOptions.Plugin,
True)
Where
CurSettings comes from the Configuration ARDBC form, Configuration Value field
for the Debug-mode record. The value of NewSetting would be pushed back to
the Configuration Value field.
Stephen
From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] On Behalf Of Grooms, Frederick W
Sent: Tuesday, September 12, 2006 4:00 PM
To: [email protected]
Subject: Re: OT: Remedy Log Files - Reset Pointer
All you have to do is push to the Configuration ARDBC form
that is installed with the system. It is a vendor form that updates the
ar.conf (ar.cfg file in Windows).
If you push to it Where $Name$ = "Debug-mode"
and set the value to 0 it will turn off all logs
From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] On Behalf Of Jason Miller
Sent: Tuesday, September 12, 2006 1:55 PM
To: [email protected]
Subject: Re: OT: Remedy Log Files - Reset Pointer
Is there a way to turn off/on logging or rename the log file via ARS other then the admin tool?
RH ES3
ARS 6.3 patch 5
Jason
On 9/12/06, Carey Matthew
Black <[EMAIL PROTECTED]>
wrote:
Stephen,
How about you first tell the ARS server to use a different log file
name then grab the old file and load it up?
( It should work with any file other than arerror.log. Not sure that
name can be changed.)
--
Carey Matthew Black
Remedy Skilled Professional (RSP)
ARS = Action Request System(Remedy)
Love, then teach
Solution = People + Process + Tools
Fast, Accurate, Cheap.... Pick two.
On 9/12/06, Heider, Stephen <[EMAIL PROTECTED]> wrote:
> List,
>
> I just wrote a program that imports the ARS log files (actually, any
> text file) into a form. It works fine and clears out the log files each
> time it's run. ARS evidently remembers the last byte offset of each log
> file - instead of simply appending text to the end of the log file.
>
> When ARS adds a new line to the file it starts writing at the last byte
> offset (end of the file). Here is what happens:
>
> 1. Log file has 60KB of entries.
> 2. Program is run and imports all entries in the log file into a Remedy
> form.
> 3. Log file size is 0KB.
> 4. ARS adds a new line to the log file.
> 5. Log file size is now 61KB. The first 60KB of the file is filled with
> Nulls.
>
> I tried running arsignal with different parameters. I realize that
> restarting the Remedy NT service will reset its internal byte offset
> counter, but that is not practical in a production environment.
>
> How can the byte offset of a log file be reset? Thanks.
>
> ARS 6.3
> Windows Server 2003
>
>
> Stephen
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org
__20060125_______________________This posting was submitted with HTML in it___ __20060125_______________________This posting was submitted with HTML in it___ __20060125_______________________This posting was submitted with HTML in it___

