I am looking for the same. The status codes have different messages in each version, so it's not a good solution to just have a list in a file. I am trying to find where backup exec stores it's status codes and messages. I figured it's in the db tables but i have yet to find it.
Any ideas?
Update:
My end goal was to write to a log file so I could import the results to another app. The write to file works great. So the event handling is woring. Just can't figure out why I can't write to eventLog1. If anyone has an idea let me know.
I have made a service in visual studio and imported the eventlog component from the tools. Besides that, I have tweked the code a bit. The service runs fine, starts and stops without error, but it is not detecting new events in the event log despite an attached handler. It shuld see ANY new...
OMG! I haven't even made that change yet, but I can already tell, you are absolutely correct. Without the directory, the file never exists, and it always creates a new file. Sigh, I cannot believe I missed that! Sharp eyes, sir, thank you very much.
I do not open the same file anywhere else. At the very beginning of the script, I do have the following:
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objDir = objFSO.GetFolder(strDir)
If Not objFSO.FolderExists(strBackupDir) Then
objFSO.CreateFolder(strBackupDir)
End If
If...
I have a script that cycles through log files. As it reads each log file, it runs the sub below to open the output file, write a single line, then close the file.
Sub logStatus(message, account, sourcelog)
strFile = strBackupDir & strBackupFile
Set objFile = objFSO.OpenTextFile(strFile, 8...
I have an IIS website set up that is a "test" web client. Basically, when a user has an issue connecting to an external site, they connect to our internal "test" website, enter the URL info, etc, and it runs a series of tests to figure out what the issue is. So far, everything runs great...
Update: I added code to the script to output soemthing after:
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2\Applications\MicrosoftIE")
and also after:
Set colItems = objWMIService.ExecQuery( _
"SELECT * FROM MicrosoftIE_ConnectionSettings",,48)
No errors, and i...
I have a web app that connects to client computer using full administrative privileges via WMI. It specifically pulls the "root\CIMV2\Applications\MicrosoftIE" directory, MicrosoftIE_ConnectionSettings class. On most machines, it returns all the available data, including items with no value...
I have some fairly simple data that I want to display in a scrollable window in my C# app. I do not have the data saved in a table or anything yet, so i am flexible for this solution.
I have a few servers I check for via ping, to make sure thye are up, and report a status. I need to display a...
I wasn;t able to tets this until recently. I am running into a wall here. All of my windows 2000 boxes are running MSXML version 3.0. Apparently 3.0 doesn't support the getProxy method. Only 4.0 does. So I have 1 of 2 options:
a. find a way to include the 4.0 objects needed for getproxy...
Thank you for the additional information. That would make sense, and I am glad there is an object I can use. Basically I just need to send an http request programatically, and it has to use a specific proxy for my test. As long as the Iserver object can accomplish this, I should be ok. I...
Hi guys, I am using XMLHTTP object to send an http request. I want to send the HTTP request using different proxies, so I made a sub that is called and passed different proxy server names to test.
sub testSite(url, proxy)
Set objHTTP = CreateObject("MSXML2.XMLHTTP")
objHTTP.open "GET", url...
I can use putty, but how would i utilize putty via vbscript? I suppose it is possible by using putty command line, make a wscript.shell object, pipe it the putty ftp commands. I can do that. Out of curiosity, any other ways, maybe something built into .net? I'd be surprised if .net didn't...
My syntax may be a little off, but this is basically how to do it, simple loop, easy since the filenames are in order already.
'begin Script
Dim arrFiles(filename1, filename2, filename3)
Dim strLastFirstSix, strThisFirstSix, strDosCommand
'need a starting point
strLastFirstSix = arrFiles(0)...
Has anyone successfully created an ssh session using vbscript? I can only assume there is support for ssh connection in the .net framework of windows, but I cannot find any sample code for this. Basically I will be running the script from a client box, and it needs to connect to an ssh server...
Not sure if this is the best forum for C# and ISA administration but here it goes....
I am trying to administer IA remotely using C#. I can run C# code directly on an ISA server, and then connect to other ISA servers no problem, as follows:
private FPCLib.FPC root = new FPCLib.FPC();
root =...
That did the trick, I appreciate it. This was my first attempt at reg expressions. I'm using this to validate secure passwords from a website, such as 3 special charatcers, etc.
I have some simple code that checks a string for lowercase charatcers. I then want to know how many lowercase characters exist. Later in the code I also check for other regulkar expression filters such as uppercase, numbers, and special characters. For simplicity, I am only showing lowercase...
Since this environment you are writing these application for is dynamic, you definitely want to make the applications dynamic. If not, then as you stated before, they will be trashed ina year, and that is after countless hours of maintenance to change in the app whatever changed in the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.