Chapter 27. ProbeTest Object

Table of Contents

DNS
ProcessInfo
Disk
Mailer
Methods
GetLastError(Description)
AddRecipient (EMail,Name)
AddBCCRecipient (EMail,Name)
AddCCRecipient (EMail,Name)
ConnectServer (server,port)
Disconnect ()
GetConnectStatus ()
Send()
Properties
MessageBody
Subject
SenderName
SenderEmail
ReplyTo
XMailer
Ping
DoPing(Host,TTL,TimeOut,DataSize,TOS,DontFragment,RTT,ReplyAddress,EchoReplyStatus);
ServiceManager
RunStatus(Host, ServiceName, IsRunning, Description)
ServiceStop(Host,ServiceName)
ServiceStart(Host,ServiceName)
Sleep(Millisecs)
TCPSockets
Open(Host,Port,TimeOut)
Close()
Send(SendData, TimeOut)
Recv(RecvData,TimeOut)
GetLastError(Description)

DNS

DoResolve(Domain,Type,Server,QueryDetails,Error)

Description Queries a DNS Server from a specified type of DNS record.
Arguments
[in] DomainThe domain name to be resolved.
[in] TypeDefines the type of query to perform. Possible string values are:

  • A
  • NS
  • MD
  • MF
  • CNAME
  • SOA
  • MB
  • MG
  • MR
  • NULL
  • WKS
  • PTR
  • HINFO
  • MINFO
  • MX
  • TEXT
[in] ServerThe name of the server to be queried.
[out] QueryDetailsThe results of the query.
[out] ErrorText description of an error if one occured.
Return Value Return value of zero indicates no error occured. A value of 1 means the server name could not be resolved. An error of 2 indicates the Type of request was unknown.
Example See {installation directory}\Checks\VBScript\CheckProcess.vbs

Copyright (c) Warren Flemmer 2006www.net-probe.com