Extrating Optimization Run Log files
Hi Gurus,
I have requirement to extract Optimization Run Log file from SCM to Tera data data base. Is there any BAPI that could read the Optimiztion Run Log file. I know it can be downloaded to the desktop from SCM, but the requirement is to extract this log information into another Data base through batch jobs.
Waiting for your valuable inputs
Many thanks,
Balaji
Balaji
This might work - Run transaction /n/SAPAPO/COPT01 and maintain the path of the DB in column Log Direc.against the optimizer you are using.
Thanks and Regards
Anand Srinivasan
Similar Messages
-
Hello,
I have a scm server on linux, and on an aditional server (also linux) the scm optimizer 7.02 installed.
On the optimizer server the directory of the gateway /usr/sap/GWP/G00/log is running full verytime, the application runns a CTM calculation.
During the run there is one log file increasing over 9GB.
How can i control the log level of a ctm optimizer run??
Are these big log files normal?
Is there a possibility to avoid logging?
Kind regards
ArneDear Arnies
Got too busy with regular work...
I 'm giving you several options,to control 'logging' in CTM:
1) Just Go to the CTM Profile used, and swithch off logging --Check SAP Note:
1166935
2)De-select the explanation Tool too
(CTM Profile > settings > technical settings > Use planning
Explanation.)
3)CTM optimizer log staus can be switched off -refer SAP Note: 1073902
4)Check your log retention time... You can reduce it by setting a new 'Log Expiration in
date' in transaction /SAPAPO/COPT00 to lower than 14 days.(default)
Generally,you need to have all these logging enabled 'only for Trouble shooting'
Hence,Logs and Explanation Tools should be reserved for profiles in test
systems as they use lots of memory.
Wish you A Happy new year--..
Best Regards
Suresh -
Interface Trip Stop Run - Log file showing an Error
Hi
When I run Interface Trip Stop Run - SRS, Request completed successfully but it has the following error. " Failed GMI_Shipping_Util.GMI.UPDATE_SHIPMENT_TXN for Delivery Id 38237"
In Sales Order the Line Status is Closed.
In Shipping Transactions Form the Status is Showing Shipped.Next Step it Run Interfaces.
When I checked the Lot Qty in Lot Genealogy the on hand qty of that lot is Zero.
And the transaction is showing Pending in Item Transaction Inquiry.
Please tell me how to proceed with this sales order.
Thanks in Advance
Prem.Its a concurrent program.
Submit a request with name: Interface Trip Stop - SRS.
i have tested and this will resolve your query too. -
Total lock-ups with fan running - translate system.log file please!?
Hi, all. My late 2005 2.3 gig dual G5 has been experiencing random lock ups for as long as I can remember. My system is up to date and I have tested each pair of the 5 gigs of ram that I have and the system freezes with each pair. It can happen at any time, when I am doing absolutely nothing, for example, overnight. I am at my wits end!
Here's the system log file for the latest freezes. Can anyone tell me what's going on here??? I really need to get to the root of this problem. Thanks so so much in advance.
Apr 12 17:32:52 Marc-Weinbergs-Computer kernel[0]: AFP_VFS afpfs_Reconnect: connect on /Volumes/Macintosh HD failed 89.
Apr 12 17:32:52 Marc-Weinbergs-Computer kernel[0]: AFP_VFS afpfs_unmount: /Volumes/Macintosh HD, flags 524288, pid 62
Apr 12 17:44:46 Marc-Weinbergs-Computer /Library/Application Support/FLEXnet Publisher/Service/11.03.005/FNPLicensingService: Started\n
Apr 12 17:44:46 Marc-Weinbergs-Computer /Library/Application Support/FLEXnet Publisher/Service/11.03.005/FNPLicensingService: This service performs licensing functions on behalf of FLEXnet enabled products.\n
Apr 12 18:01:06 Marc-Weinbergs-Computer KernelEventAgent[62]: tid 00000000 received unknown event (256)
Apr 12 18:01:49 Marc-Weinbergs-Computer KernelEventAgent[62]: tid 00000000 received unknown event (256)
Apr 12 18:08:29 Marc-Weinbergs-Computer diskarbitrationd[69]: SDCopy [1056]:36091 not responding.
Apr 12 18:16:18 Marc-Weinbergs-Computer KernelEventAgent[62]: tid 00000000 received unknown event (256)
Apr 12 18:16:53 Marc-Weinbergs-Computer KernelEventAgent[62]: tid 00000000 received unknown event (256)
Apr 12 19:24:12 Marc-Weinbergs-Computer ntpd[191]: time reset -0.650307 s
Apr 13 01:05:45 Marc-Weinbergs-Computer ntpd[191]: time reset -0.496917 s
Apr 13 03:15:03 Marc-Weinbergs-Computer cp: error processing extended attributes: Operation not permitted
Apr 13 07:15:03 Marc-Weinbergs-Computer postfix/postqueue[1778]: warning: Mail system is down -- accessing queue directly
Apr 13 03:15:03 Marc-Weinbergs-Computer cp: error processing extended attributes: Operation not permitted
Apr 13 15:53:53 Marc-Weinbergs-Computer KernelEventAgent[62]: tid 00000000 received unknown event (256)
Apr 13 15:53:54 Marc-Weinbergs-Computer KernelEventAgent[62]: tid 00000000 received unknown event (256)
Apr 13 22:15:48 localhost kernel[0]: standard timeslicing quantum is 10000 us
Apr 13 22:15:47 localhost mDNSResponder-108.6 (Jul 19 2007 11: 33:32)[63]: starting
Apr 13 22:15:48 localhost kernel[0]: vmpagebootstrap: 506550 free pages
Apr 13 22:15:47 localhost memberd[70]: memberd starting up
Apr 13 22:15:49 localhost kernel[0]: migtable_maxdispl = 70
Apr 13 22:15:49 localhost kernel[0]: Added extension "com.firmtek.driver.FTATASil3132E" from archive.
Apr 13 22:15:49 localhost kernel[0]: Added extension "com.firmtek.driver.Sil3112DeviceNub" from archive.
Apr 13 22:15:49 localhost kernel[0]: Copyright (c) 1982, 1986, 1989, 1991, 1993
Apr 13 22:15:49 localhost kernel[0]: The Regents of the University of California. All rights reserved.
Apr 13 22:15:49 localhost kernel[0]: using 5242 buffer headers and 4096 cluster IO buffer headers
Apr 13 22:15:49 localhost kernel[0]: AppleKauaiATA shasta-ata features enabled
Apr 13 22:15:49 localhost kernel[0]: DART enabled
Apr 13 22:15:47 localhost DirectoryService[75]: Launched version 2.1 (v353.6)
Apr 13 22:15:49 localhost kernel[0]: FireWire (OHCI) Apple ID 52 built-in now active, GUID 001451ff fe1b4c7e; max speed s800.
Apr 13 22:15:49 localhost kernel[0]: USBF: 20.590 OHCI driver: OHCIRootHubPortPower bit not sticking (1). Retrying.
Apr 13 22:15:49 localhost kernel[0]: USBF: 20.590 OHCI driver: OHCIRootHubPortPower bit not sticking (1). Retrying.
Apr 13 22:15:49 localhost kernel[0]: USBF: 20.590 OHCI driver: OHCIRootHubPortPower bit not sticking (1). Retrying.
Apr 13 22:15:49 localhost kernel[0]: USBF: 20.590 OHCI driver: OHCIRootHubPortPower bit not sticking (1). Retrying.
Apr 13 22:15:49 localhost kernel[0]: USBF: 20.590 OHCI driver: OHCIRootHubPortPower bit not sticking (1). Retrying.
Apr 13 22:15:49 localhost kernel[0]: USBF: 20.590 OHCI driver: OHCIRootHubPortPower bit not sticking (1). Retrying.
Apr 13 22:15:49 localhost kernel[0]: USBF: 20.590 OHCI driver: OHCIRootHubPortPower bit not sticking (1). Retrying.
Apr 13 22:15:49 localhost kernel[0]: USBF: 20.590 OHCI driver: OHCIRootHubPortPower bit not sticking (1). Retrying.
Apr 13 22:15:49 localhost kernel[0]: USBF: 20.590 OHCI driver: OHCIRootHubPortPower bit not sticking (1). Retrying.
Apr 13 22:15:48 localhost lookupd[71]: lookupd (version 369.5) starting - Sun Apr 13 22:15:48 2008
Apr 13 22:15:49 localhost kernel[0]: USBF: 20.590 OHCI driver: OHCIRootHubPortPower bit not sticking (1). Retrying.
Apr 13 22:15:49 localhost kernel[0]: Extension "com.microsoft.driver.MicrosoftKeyboardUSB" has no kernel dependency.
Apr 13 22:15:49 localhost kernel[0]: AppleSMUparent::clientNotifyData nobody registed for 0x40
Apr 13 22:15:49 localhost kernel[0]: Security auditing service present
Apr 13 22:15:49 localhost kernel[0]: BSM auditing present
Apr 13 22:15:49 localhost kernel[0]: disabled
Apr 13 22:15:49 localhost kernel[0]: rooting via boot-uuid from /chosen: 82827EDF-0263-3B93-BEED-4B114E820B85
Apr 13 22:15:49 localhost kernel[0]: Waiting on <dict ID="0"><key>IOProviderClass</key><string ID="1">IOResources</string><key>IOResourceMatch</key><string ID="2">boot-uuid-media</string></dict>
Apr 13 22:15:49 localhost kernel[0]: Got boot device = IOService:/MacRISC4PE/ht@0,f2000000/AppleMacRiscHT/pci@9/IOPCI2PCIBridge/k2-sat a-root@C/AppleK2SATARoot/k2-sata@0/AppleK2SATA/ATADeviceNub@0/IOATABlockStorageD river/IOATABlockStorageDevice/IOBlockStorageDriver/ST3320620AS Media/IOApplePartitionScheme/AppleHFS_Untitled1@10
Apr 13 22:15:49 localhost kernel[0]: BSD root: disk0s10, major 14, minor 12
Apr 13 22:15:49 localhost kernel[0]: jnl: replay_journal: from: 8451584 to: 11420160 (joffset 0x952000)
Apr 13 22:15:50 localhost kernel[0]: AppleSMU -- shutdown cause = 3
Apr 13 22:15:50 localhost kernel[0]: AppleSMU::PMU vers = 0x000d00a0, SPU vers = 0x67, SDB vers = 0x01,
Apr 13 22:15:50 localhost kernel[0]: HFS: Removed 8 orphaned unlinked files
Apr 13 22:15:50 localhost kernel[0]: Jettisoning kernel linker.
Apr 13 22:15:50 localhost kernel[0]: Resetting IOCatalogue.
Apr 13 22:15:50 localhost kernel[0]: Matching service count = 1
Apr 13 22:15:50 localhost kernel[0]: Matching service count = 1
Apr 13 22:15:50 localhost kernel[0]: Matching service count = 1
Apr 13 22:15:50 localhost kernel[0]: Matching service count = 1
Apr 13 22:15:50 localhost kernel[0]: Matching service count = 1
Apr 13 22:15:50 localhost kernel[0]: Matching service count = 3
Apr 13 22:15:50 localhost kernel[0]: NVDANV40HAL loaded and registered.
Apr 13 22:15:50 localhost kernel[0]: PowerMac112ThermalProfile::start 1
Apr 13 22:15:50 localhost kernel[0]: PowerMac112ThermalProfile::end 1
Apr 13 22:15:50 localhost kernel[0]: SMUNeo2PlatformPlugin::initThermalProfile - entry
Apr 13 22:15:50 localhost kernel[0]: SMUNeo2PlatformPlugin::initThermalProfile - calling adjust
Apr 13 22:15:50 localhost kernel[0]: PowerMac112ThermalProfile::adjustThermalProfile start
Apr 13 22:15:50 localhost kernel[0]: IPv6 packet filtering initialized, default to accept, logging disabled
Apr 13 22:15:50 localhost kernel[0]: BCM5701Enet: Ethernet address 00:14:51:61:ee:78
Apr 13 22:15:50 localhost kernel[0]: BCM5701Enet: Ethernet address 00:14:51:61:ee:79
Apr 13 22:15:51 localhost lookupd[86]: lookupd (version 369.5) starting - Sun Apr 13 22:15:51 2008
Apr 13 22:15:51 localhost kernel[0]: jnl: replay_journal: from: 21611008 to: 7857152 (joffset 0x952000)
Apr 13 22:15:51 localhost kernel[0]: jnl: replay_journal: from: 673280 to: 24382976 (joffset 0x952000)
Apr 13 22:15:51 localhost kernel[0]: jnl: replay_journal: from: 3890176 to: 6294016 (joffset 0x7d01000)
Apr 13 22:15:51 localhost diskarbitrationd[69]: disk0s10 hfs 82827EDF-0263-3B93-BEED-4B114E820B85 NewestSeagate /
Apr 13 22:15:52 localhost kernel[0]: NVDA,Display-A: vram [90020000:10000000]
Apr 13 22:15:52 localhost mDNSResponder: Adding browse domain local.
Apr 13 22:15:53 localhost kernel[0]: hfs mount: enabling extended security on Maxtor
Apr 13 22:15:53 localhost diskarbitrationd[69]: disk1s3 hfs 0DBE2113-B1F5-388F-BF70-2E366A095330 Maxtor /Volumes/Maxtor
Apr 13 22:15:54 localhost kernel[0]: NVDA,Display-B: vram [94000000:08000000]
Apr 13 22:15:54 Marc-Weinbergs-Computer configd[67]: setting hostname to "Marc-Weinbergs-Computer.local"
Apr 13 22:15:54 Marc-Weinbergs-Computer /System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow: Login Window Application Started
Apr 13 22:15:56 Marc-Weinbergs-Computer diskarbitrationd[69]: disk2s3 hfs 971CABB3-C211-38FC-8E91-6B4F8EA5FA20 B08-09-07 /Volumes/B08-09-07
Apr 13 22:15:56 Marc-Weinbergs-Computer loginwindow[110]: Login Window Started Security Agent
Apr 13 22:15:57 Marc-Weinbergs-Computer kernel[0]: AppleBCM5701Ethernet - en1 link active, 1000-Mbit, full duplex, symmetric flow control enabled
Apr 13 22:15:57 Marc-Weinbergs-Computer configd[67]: AppleTalk startup
Apr 13 22:15:57 Marc-Weinbergs-Computer TabletDriver[119]: #### GetFrontProcess failed to get front process (-600)
Apr 13 22:15:59 Marc-Weinbergs-Computer configd[67]: posting notification com.apple.system.config.network_change
Apr 13 22:16:00 Marc-Weinbergs-Computer configd[67]: posting notification com.apple.system.config.network_change
Apr 13 22:16:00 Marc-Weinbergs-Computer configd[67]: executing /System/Library/SystemConfiguration/Kicker.bundle/Contents/Resources/enable-net work
Apr 13 22:16:00 Marc-Weinbergs-Computer configd[67]: posting notification com.apple.system.config.network_change
Apr 13 22:16:01 Marc-Weinbergs-Computer lookupd[123]: lookupd (version 369.5) starting - Sun Apr 13 22:16:01 2008
Apr 13 22:16:01 Marc-Weinbergs-Computer kernel[0]: HFS: Removed 2 orphaned unlinked files
Apr 13 22:16:01 Marc-Weinbergs-Computer diskarbitrationd[69]: disk3s3 hfs CDA8BCC5-0CE4-33E8-A910-4B0952DBC230 FullBU-09-07 /Volumes/FullBU-09-07
Apr 13 22:16:04 Marc-Weinbergs-Computer configd[67]: target=enable-network: disabled
Apr 13 22:16:05 Marc-Weinbergs-Computer configd[67]: AppleTalk startup complete
Apr 13 22:16:09 Marc-Weinbergs-Computer TabletDriver[237]: #### GetFrontProcess failed to get front process (-600)
Apr 13 22:16:09 Marc-Weinbergs-Computer launchd[241]: com.wacom.wacomtablet: exited with exit code: 253
Apr 13 22:16:09 Marc-Weinbergs-Computer launchd[241]: com.wacom.wacomtablet: 9 more failures without living at least 60 seconds will cause job removal
Apr 13 22:16:29 Marc-Weinbergs-Computer /Applications/DiskWarrior.app/Contents/MacOS/DiskWarriorDaemon: [Sun Apr 13 22:16:28 EDT 2008] : ATA device 'ST3320620AS', serial number '6QF0L6LR', reports it is functioning at a temperature of 95.0F (35C) degrees.
Apr 13 22:16:29 Marc-Weinbergs-Computer /Applications/DiskWarrior.app/Contents/MacOS/DiskWarriorDaemon: [Sun Apr 13 22:16:28 EDT 2008] : Spare blocks for ATA device 'ST3320620AS', serial number '6QF0L6LR', appear to still be available. (Total Available: 36) (Use Attempts: 0)
Apr 13 22:16:29 Marc-Weinbergs-Computer /Applications/DiskWarrior.app/Contents/MacOS/DiskWarriorDaemon: [Sun Apr 13 22:16:29 EDT 2008] : ATA device 'ST3320620AS', serial number '6QF0LGS4', reports it is functioning at a temperature of 100.4F (38C) degrees.
Apr 13 22:16:29 Marc-Weinbergs-Computer /Applications/DiskWarrior.app/Contents/MacOS/DiskWarriorDaemon: [Sun Apr 13 22:16:29 EDT 2008] : Spare blocks for ATA device 'ST3320620AS', serial number '6QF0LGS4', appear to still be available. (Total Available: 36) (Use Attempts: 0)
Apr 13 22:16:29 Marc-Weinbergs-Computer /Applications/DiskWarrior.app/Contents/MacOS/DiskWarriorDaemon: [Sun Apr 13 22:16:29 EDT 2008] : ATA device 'ST3320620AS', serial number '9RV000FC', reports it is functioning at a temperature of 95.0F (35C) degrees.
Apr 13 22:16:29 Marc-Weinbergs-Computer /Applications/DiskWarrior.app/Contents/MacOS/DiskWarriorDaemon: [Sun Apr 13 22:16:29 EDT 2008] : Spare blocks for ATA device 'ST3320620AS', serial number '9RV000FC', appear to still be available. (Total Available: 36) (Use Attempts: 0)
Apr 13 22:16:29 Marc-Weinbergs-Computer /Applications/DiskWarrior.app/Contents/MacOS/DiskWarriorDaemon: [Sun Apr 13 22:16:29 EDT 2008] : ATA device 'Maxtor 6B300S0', serial number 'B6211G0H', reports it is functioning at a temperature of 89.6F (32C) degrees.
Apr 13 22:16:29 Marc-Weinbergs-Computer /Applications/DiskWarrior.app/Contents/MacOS/DiskWarriorDaemon: [Sun Apr 13 22:16:29 EDT 2008] : Spare blocks for ATA device 'Maxtor 6B300S0', serial number 'B6211G0H', appear to still be available. (Total Available: 63) (Use Attempts: 0)
Apr 13 22:16:54 Marc-Weinbergs-Computer /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder: _TIFFVSetField: tiff data provider: Invalid tag "Copyright" (not supported by codec).\n
Apr 13 22:16:54 Marc-Weinbergs-Computer /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder: _TIFFVSetField: tiff data provider: Invalid tag "Copyright" (not supported by codec).\n
etc.Hi-
The machine seems to be having trouble with loading certain drivers, but, as this isn't a crash log, and doesn't show the "hang-up" or freeze, it's hard to tell.
Noted possibilities are:
-Microsoft keyboard (possible USB power problem)
-firmtek driver (from archive) questionable due to the "archive" annotation
-Wacom tablet driver, causing system problems
Running in Safe mode without freezes would help to determine if one of these drivers is the problem.
Other possibilities are outdated drivers, or simply a need to reinstall the OS.
If unnecessary, removing the driver(s) would be a good idea.
External USB and Firewire devices are all suspect, should all be disconnected, revert to Apple keyboard, and test system performance. Adding one device at a time, and testing each will be necessary to clear each device.
I have experienced system trouble when a Wacom tablet was not connected, but the driver was left installed.
Disabling the driver from Startup items may be necessary to test without the Wacom tablet connected. -
Save Log file from Disk Utility App running from Recovery HD?
Background:
I had an issue with QT and screen recording; it was coming out solid green. I read on Apple Support that I should restart holding down Command-R. I did that, booted into Recovery HD, then opened Disk Utility. I repaired permissions, then decided to repair my HDD for good measure. I noticed that Disk Utility did make a repair to my HDD. Something like "found 57" instead of "56" files in the directory on the HDD; directory needs to be updated. Not sure, I just remember those numbers… "56" is what the system knew of but there were really "57" on the HDD. I sound ignorant… I know.
After I rebooted QuickTime worked correctly (maybe merely repairing permissions was the solution) however another issue, I have been struggling with for years, was also resovlved!
I have been having an issue for years with an Icy Dock external enclosure in RAID 1 mode with my older 2009 iMac. The issue remained after upgrading from Snow Leopard to Tiger to Mountain Lion and resetting PRAM and repairing permissions and repairing it's HDD etc. many times over. After powering up the enclosure a message would appear: "The Disk you insterted was not readable by this computer." "Initialize…" "Ignore" "Eject". Then the volume would mount on the Desktop behind the warning and work perfectly. I would then click "Ignore". I had modified the old iMac with an internal SSD in place of the optical drive… at one point.
I recently sold that iMac and bought a 2012 iMac
Regardless I continued to have the same issue with the enclosure and my new iMac. However, after repairing the internal HDD today, the external Icy Dock RAID now mounts without giving me a warning to, "Initialize…" "Ignore" "Eject". This warning was appearing just before I repaired permissions and repaired the internal HDD on the iMac using the Recovery HD. In fact the reason I was tyring to use QT screen capture was to make a screen capture of the terminal window process while runing a "diskutil activity" command during powering-on my external enclosure to send to Icy Dock to troubleshoot this cross computer and cross OS incompatibility with their enclosure.
My external RAID enclosure wasn't even powered on during repair of the internal HDD?! So how could a brand new iMac's HDD directory be effected in such a way by an external RAID enclosure as to make changes to it's directory. And now how could an issue with mounting an external RAID enclosure be corrected by repairing the directory structure on the internal HDD on the iMac? Could it be a conflict with USB IDs? Are those written to the directory? The internal and external sharing the same ID and the external having to be unmounted and remounted using a new ID each time? How could it have been repaired? Lots of questions…
Main Question:
Anyway,,, I want to copy the Disk Utility Log from my Recovery HD so I could see exactly what was repaired and report it to Icy Dock. But I am not sure if the log files are saved or not when rebooting from Recovery HD. Not sure how I could find the log file at this point. Are logfiles saved when running DiskUtility from the Recovery HD???
Sorry for the length.Oh crap. The enclosure was working properly, now it's exhibiting the same problem as before and I haven't even rebooted the computer yet. So, what's up?
-
Storing of log file in A/P Server while running BDC session in SM35
Hi All,
I have issue when running BDC session in SM35.
The actual issue is
I need to store of log file generated while running BDC session in <b>SM35</b> in <b>Application/Presentation</b> Server path.
When ever we run single session the Log file regarding that session we need to store in Application/Presentation Server.
Can anybody have solution for this issue.
Thanks in advance.
Thanks & Regards,
Rayeez.Hi
See the std report RSBDC_ANALYSE, here you can know how to find out the log of B.I..
You can create a program like that to load the log into file instead of showing it.
Max -
Amending script to read list of computers, run script and output to log file
Hello all,
I have cobbled together a script that runs and does what I want, now I would like to amend the script to read a list of computers rather than use the msg box that it is currently using for the strcomputer, if the computers doesn't respond to a ping, then
log that, if it does continue with the script and when it is complete, log a success or failure. I have just started scripting and would really appreciate some help on this one,thanks. I created the script to fix an SCCM updates issue and failing task sequences,
so it may prove useful to others.
There are msg box entries that can be removed that were originally in there for the user running the script.
'setting objects
Dim net, objFSO, shell
Dim objFile, strLine, intResult
Set objnet = CreateObject("wscript.network")
Set objFSO = CreateObject("scripting.filesystemobject")
Set objshell = CreateObject("wscript.shell")
strfile = "c:\wuafix\wuafix.vbs"
strUser = "domain\user"
strPassword = "password"
'getting server name or IP address
strComputer=InputBox("Enter the IP or computer name of the remote machine on which to repair the WUA agent:", "Starting WUA Fix")
'check to see if the server can be reached
Dim strPingResults
Set pingExec = objshell.Exec("ping -n 3 -w 2000 " & strComputer) 'send 3 echo requests, waiting 2secs each
strPingResults = LCase(pingExec.StdOut.ReadAll)
If Not InStr(strPingResults, "reply from")>0 Then
WScript.Echo strComputer & " did not respond to ping."
WScript.Quit
End If
'Check if source file exists
If Not objFSO.FileExists(strFile) Then
WScript.Echo "The source file does not exist"
WScript.Quit
End If
MsgBox "The WUA Fix is in process. Please wait.", 64, "Script Message"
'mapping drive to remote machine
If objFSO.DriveExists("Z:") Then
objnet.RemoveNetworkDrive "Z:","True","True"
End If
objnet.MapNetworkDrive "Z:", "\\" & strComputer & "\c$", True
'creating folder for install exe on remote machine
If (objFSO.FolderExists("Z:\wuafix\") = False) Then
objFSO.CreateFolder "Z:\wuafix"
End If
'copying vbs to remote machine
objFSO.CopyFile strFile, "Z:\wuafix\wuafix.vbs"
'set command line executable to run a silent install remotely
strInstaller1 = "cscript.exe c:\wuafix\wuafix.vbs"
'strInstaller2 = "c:\wuafix\wuafix.vbs"
strExec = "c:\pstools\PsExec.exe "
'objshell.Run strExec & " \\" & strComputer & strInstaller1
On Error Resume Next
result = objshell.Run(strExec & " \\" & strComputer & " " & strInstaller1)
If Err.Number = 0 Then
WScript.Echo "PSXEC Runing WUA fix remotely"
Else MsgBox Err.Number
MsgBox result
End If
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colLoggedEvents = objWMIService.ExecQuery _
("SELECT * FROM Win32_NTLogEvent WHERE Logfile = 'Application' AND " _
& "EventCode = '4'")
Wscript.Echo "Event Viewer checked and Fix Applied:" & colLoggedEvents.Count
MsgBox "Removing mapped drive Please wait.", 64, "Script Message"
If objFSO.DriveExists("Z:") Then
objnet.RemoveNetworkDrive "Z:","True","True"
End If
MsgBox "The WUA Fix has been applied.", 64, "Script Message"
quit
wscript.quit
Any help appreciated and explanations on the process would be great as I would like to learn the process involved, which is difficult when working during the day.
many thanksHi Bill,
long story short, I have approx. 2800 clients with an old entry in WMI for updates that the sccm client cannot clear or run because they do not exist anymore, so the client will not run updates or use a task sequence because of this, so my script fixes this
and does a couple of other things, I have found another way to do this by running a different script that uses WMI to call a cscript function that uses the wuafix.vbs that is coped to the machine, I am also changing the echo entries to output to a log
file instead so that I can track what client has run the fix andn which ones haven't.
If you have any suggestions then please let me know, nothing nefarious :)
many thanks -
Can FTP-access to field point log file interrupt the running program?
Can FTP-access to field point log file interrupt the running program?
We have a problem where our factory process control program on a Field Pointer suddenly stops the process. We are running the development system on a PC, wich deploys the program on the Field point, with user interface on the PC. Quite often the process stops for no apparent reason. I'm not sure right now if the control program on the Field Point is still running or if it stops. We use FTP from a distant PC (over VPN) directly to the Field Point to check if the process is running, by looking for date and size of log files produced during running process. I've never opened och copied any log file during process run, because this I'm sure this would cause problems for new log entries to be written. But can the mere looking at the log folder via XP-pros ftp-functionality cause the Field Point to have problems writing data to a log file?
I'm not sure how windows XP pro handles "my network places" when it comes to FTP, it look that it keeps some kind of local copy of the folders, or at least the files opened.
Next version of the program will have only basic functionality on the Field Point, leaving logging etc. to another program on the PC, but right now we are stuck with this system.
Ola AIt turned out that the problem lies in the harware of the production machine, it was not a labiew-program problem at all!
Ola -
How to open log file while program is running?
Hi,
I am using log4j to generate a log file. The application connects to a remote server and does some updates on a database. Is it possible to view the log file while the program is running? When I click on the log file to open it, I get a message "the document is in use by another application and cannot be accessed".
Looking for ideas to get around this problem.
Thanks and Regards,
Harsha Hegdetail.exe -f
Tail is a Unix program but if you search google you can find a port for Windows. It will show the contents of the file in a cmd prompt and will update as new lines are being added to the file so you can see the most up-to-date version as log4j is writing to it. -
Log Files for an Edge 95 running F9.3.3
I have an Edge 95 that is having trouble and we feel it may be the camera losing connection to the codec.
Is the log file I can look at that may show loss of contact with the camera?
Do I need to increase the logging level with the syslog command?
We are managing the Edge with TMS 13.2 and do not see anything strange in the audit, trap or history log
Any info or assistance would be appreciated - ThanksHi Jens,
On a SX/C running recent firmware, in the Web Interface, go to Diagnostics / Log Files.
From there you "Start Extended Logging" to generate a packet capture.
But, if you really want to use the "remotesupport" account, you can do a tcpdump from the shell in a similar way you used to as "root".
Wayne
Please remember to rate respoinses and to mark your question as answered if appropriate. -
Server started in RUNNING mode not showing in Startup Log File when MS Starts
Dear all,
When we start OSB Managed Server, server status is showing Running Status in Web logic console and it is also serving the requests. but in server Start up log file, it is not showing 'Server started in RUNNING mode' after it started.
this behavior is only for 4 managed servers in cluster of 6 managed servers. other 2 managed servers are starting and showing the message correctly.
please some body show some light on it as we need to fix this issue urgently.
thanks in advance.
prDear all,
When we start OSB Managed Server, server status is showing Running Status in Web logic console and it is also serving the requests. but in server Start up log file, it is not showing 'Server started in RUNNING mode' after it started.
this behavior is only for 4 managed servers in cluster of 6 managed servers. other 2 managed servers are starting and showing the message correctly.
please some body show some light on it as we need to fix this issue urgently.
thanks in advance.
pr -
Jafa log file is suplicated each time the process is run
Hi all,
I am trying to create a file logger,,Following is part of my coding.
Now I can see the log file being created. However my problem is that every time I run the process the log is appended to the test.log file correctly. But the problem is that it also create test.log.1, test.log.2.. etc files each time the process is run. It will be great if anyone advise me how to eleminate these extra files being generated each time. I need just one log file to be genereted and all the logs to be appended to it.
boolean append = true;
FileHandler handler = new FileHandler(test.log);
SimpleFormatter simpleFormatter = new SimpleFormatter();
handler.setFormatter(simpleFormatter);
logger.addHandler(handler);Thanks in adavanceAre you saying that it is creating new logs AND appending to the other one? That doesn't seem quite right.
-
Java log file is duplicated for each run.
Hi all,
I am trying to create a file logger,,Following is part of my coding.
Now I can see the log file being created. However my problem is that every time I run the process the log is appended to the test.log file correctly. But the problem is that it also create test.log.1, test.log.2.. etc files each time the process is run. It will be great if anyone advise me how to eleminate these extra files being generated each time. I need just one log file to be genereted and all the logs to be appended to it.
boolean append = true;
FileHandler handler = new FileHandler(test.log);
SimpleFormatter simpleFormatter = new SimpleFormatter();
handler.setFormatter(simpleFormatter);
logger.addHandler(handler);Thanks in adavancecould some one please help me out on this.
-
What are the log files created while running a mapping?
Hi Sasi , I have a doubt who actually generates the " Log Events ". Is it the Log Manager or Application services ?
Hi Anitha, The Integration service will be generate two logs when the mapping runs 1) Session log -- Has the details of the task ,session errors and load statistics..2) Workflow log -- Has the details of the workflow processing, and workflow errors.. The workflow log will be generated when the workflow started and the session log will be generated once the session intiated.For more detail Please refer the infa help docs... Normally the services will generate log ex: IS and RS will log their activity... The below process will happen the when the workflow inititated..[Copied fropm infa help docs] 1.#The Integration Service writes binary log files on the node. It sends information about the sessions and workflows to the Log Manager.2.#The Log Manager stores information about workflow and session logs in the domain configuration database. The domain configuration database stores information such as the path to the log file location, the node that contains the log, and the Integration Service that created the log.3.#When you view a session or workflow in the Log Events window, the Log Manager retrieves the information from the domain configuration database to determine the location of the session or workflow logs.4.#The Log Manager dispatches a Log Agent to retrieve the log events on each node to display in the Log Events window. ThanksSasiramesh
-
SELECT top two longest running steps from a log file
Simplified example.
Our jobs write records to our own internal log file. I want to write a query that will pull log records for a specific job, between specific dates. This will help determine if the job is running slower than usual and to find the steps within the job that
are the longest running.
Jobs are identified by the Type field. Type=1 is a specific job name.
Each job writes a DESC=START record to the log at the beginning of the job. the Desc=START record will be updated at the end of the job with the ENDDT.
I want to pull the top two longest running steps (ENDDT-BEGINDT) for each job (Type) where the step startdr and enddt falls between the START startDT and end dt.
I also want to always pull key step names, like DESC=START and DESC=xya for each job.
LOG RECORDS
DESC,TYPE,BEGINDT,ENDDT
START,1,2014-10-22 07:56:56.000,2014-10-22 09:56:56.000
aaa,1,2014-10-22 07:57:56.000,2014-10-22 08:57:56.000
bbb,1,2014-10-22 08:57:56.000,2014-10-22 09:01:56.000
ccc,1,2014-10-22 09:01:56.000,2014-10-22 09:56:56.000
xya,1,2014-10-22 09:55:56.000,2014-10-22 09:56:56.000
START,1,2014-10-21 11:56:56.000,2014-10-22 02:56:56.000
aaa,1,2014-10-21 11:57:56.000,2014-10-22 01:57:56.000
bbb,1,2014-10-22 01:57:56.000,2014-10-22 02:56:56.000
ccc,1,2014-10-22 02:56:56.000,2014-10-22 02:56:56.000
xya,1,2014-10-22 09:55:56.000,2014-10-22 09:56:56.000
Desired result set.
If pulling job type 1 records for last 2 days, would end up with this result set. START and xya are always pulled and then the top 2 longest running steps for each of the START records.
DESC,TYPE,BEGINDT,ENDDT,Duration
START,1,2014-10-22 07:56:56.000,2014-10-22 09:56:56.000
aaa,1,2014-10-22 07:57:56.000,2014-10-22 08:57:56.000
ccc,1,2014-10-22 09:01:56.000,2014-10-22 09:56:56.000
xya,1,2014-10-22 09:01:56.000,2014-10-22 09:56:56.000
START,1,2014-10-21 11:56:56.000,2014-10-22 02:56:56.000
aaa,1,2014-10-21 11:57:56.000,2014-10-22 01:57:56.000
bbb,1,2014-10-22 01:57:56.000,2014-10-22 02:56:56.000
xya,1,2014-10-22 09:55:56.000,2014-10-22 09:56:56.000
I am asking for help in how to create this query. ThanksHi TheBrenda,
According to your description, I have written a sample query and tested it in my local environment.
The following sample query is for your reference:
--create table log_records
CREATE TABLE log_records ([DESC] varchar(10),[TYPE] int,BEGINDT datetime,ENDDT datetime)
--insert values to table log_records
INSERT INTO log_records VALUES
('START',1,'2014-10-22 07:56:56.000','2014-10-22 09:56:56.000'),
('aaa',1,'2014-10-22 07:57:56.000','2014-10-22 08:57:56.000'),
('bbb',1,'2014-10-22 08:57:56.000','2014-10-22 09:01:56.000'),
('ccc',1,'2014-10-22 09:01:56.000','2014-10-22 09:56:56.000'),
('xya',1,'2014-10-22 09:55:56.000','2014-10-22 09:56:56.000'),
('START',1,'2014-10-21 11:56:56.000','2014-10-22 02:56:56.000'),
('aaa',1,'2014-10-21 11:57:56.000','2014-10-22 01:57:56.000'),
('bbb',1,'2014-10-22 01:57:56.000','2014-10-22 02:56:56.000'),
('ccc',1,'2014-10-22 02:56:56.000','2014-10-22 02:56:56.000'),
('xya',1,'2014-10-22 02:56:56.000','2014-10-22 02:56:56.000')
--run the following main query to get top two longest running steps
WITH A AS
(SELECT BEGINDT,ENDDT FROM log_records WHERE [DESC]='START'),
B AS
SELECT LR.[DESC], LR.TYPE, LR.BEGINDT BEGINDT1, LR.ENDDT ENDDT1, A.BEGINDT BEGINDT2, A.ENDDT ENDDT2,DATEDIFF(SECOND,LR.BEGINDT,LR.ENDDT) AS timediff,ROW_NUMBER() OVER(PARTITION BY A.BEGINDT ORDER BY DATEDIFF(SECOND,LR.BEGINDT,LR.ENDDT) DESC ) AS rn FROM log_records LR JOIN A
ON LR.BEGINDT >= A.BEGINDT AND LR.ENDDT<=A.ENDDT
SELECT [DESC],[TYPE],BEGINDT1 BEGINDT,ENDDT1 ENDDT FROM B WHERE rn<4 or [DESC]='xya' ORDER BY BEGINDT2,rn
The result of the main query is:
DESC TYPE
BEGINDT
ENDDT
START 1 2014-10-21 11:56:56.000 2014-10-22 02:56:56.000
aaa 1 2014-10-21 11:57:56.000 2014-10-22
01:57:56.000
bbb 1 2014-10-22 01:57:56.000 2014-10-22 02:56:56.000
xya 1 2014-10-22 02:56:56.000 2014-10-22
02:56:56.000
START 1 2014-10-22 07:56:56.000 2014-10-22 09:56:56.000
aaa 1 2014-10-22 07:57:56.000 2014-10-22
08:57:56.000
ccc 1 2014-10-22 09:01:56.000 2014-10-22
09:56:56.000
xya 1 2014-10-22 09:55:56.000 2014-10-22
09:56:56.000
If you have any question, please feel free to let me know.
Regards,
Jerry Li
Maybe you are looking for
-
If I remember correctly, firefox for linux previously had an option to import a web page as PDF. Now it doesn't seem to be working that way anymore. I am using Ubuntu 10.04 Lucid Lynx with the most recent Firefox program.
-
Hi all. Is it Possible to change the Name ' ASRL3::INSTR' to COM3 instead, in a' VISA resource name' Control. see attached pic. is there a control propertie that can change this View eks. "ASL3::INSTR" To "COM3"? HFZ HFZ Attachments: VISA INSTR
-
Hi I would like to make executable jar. I have class files and also some supporting jar file..how do i include the supporting jar files into the newly creating executable jar file. Say to lookup jndi i need some supporing jar files.... so to make my
-
hello i am importing and it is failing. below is the error on the import. script used impdp system/mywordl@myword REMAP_SCHEMA=ben:ben dumpfile=hip%U.dmp directory=done logfile=dmp.log TABLE_EXISTS_ACTION=REPLACE parallel=2 error Processing object ty
-
HT1338 I can't find download files in my Mac. Why?
I use 13 inch MacBook Pro, but I'm not faimliar with Mac OS. Last two days ago, I removed the download folder from the Dock accenditally. After that, I cannot find my downloading files from my mail ever. I'd like to know how can I fix it? Software fo