I keep getting the following VBScript runtime error: "File name or class name not found during Automation operation: 'GetObject'", on this statement: Set WMI = GetObject("winmgmts:"), and numerous variations of it. My guess is I don't have something installed. I'm testing...
Thanks, but I tried that. It works fine on the command line, but inside the VBscript, it puts nothing into the file. No error messages or anything, the script runs, but there is no output. If I remove the "> myfile.txt", the ping will display it's output on my terminal.
I'm writing a script which will run in background and wake up periodically and ping an address. The ping works fine, but I've tried everything and can't get the output into a text file. I'll clue you in, I've only written two other scripts so far, I'm a newbie at this, so be gentle.
Got the answer, meant to post it a couple of days ago.
To run vbscript under HP OpenView Network Node Manager, you must include "wscript.exe" on the command line, preceding the script you want to execute.
I wrote a small vbscript to handle notifications from HP OpenView NNM. I am running on NNM B.06.10 on NT 4.0. If I run the script from the command line, either with or without arguments, it runs fine. When executed by NNM, it fails with an exit value 1. I have a case open with HP, but so far...
I'm new to OpenView myself. I've been playing with a vbscript (which I really don't know too much about either), running on NT. It uses a freebie product called "mailto". I don't know where to find it on the web, you'll have to look around. The guy who dumped OpenView on me...
I'm pretty much in the same postion, the guy who new NNM up and left. I know next to nothing about networks. Luckily I'm going to the HP OpenView NNM class, soon. I took the CBT that comes with OpenView, it's great for falling asleep to. Where do they get these people that they put in those...
This is a ksh which we run every 15 minutes, it uses a control file, making it more flexible. It runs out of a nfs mounted file and keeps an eye on 9 HP_UX boxes.
FILE01="/tmp/$LOGNAME.temp.bdf.msg1"
FILE02="/tmp/$LOGNAME.temp.bdf.msg2"...
Kevorka,
Don't really know much about what I'm doing. I just play with it till it works. A lot of the code could be simpler, but I like to try different ways of doing things.
I don't have a lot of experince with this stuff, but you might be able to use an external javascript file. This is what I've played around with.
// JAVASCRIPT.JS - FOOTER TEXT
function footercolor(BGcolor, FONTcolor){
var BGcolor2="LIGHTGREEN";
var FONTcolor2="RED";
var...
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.