Page 1 of 1 1
Topic Options
#68888 - 2002-08-07 11:54 PM Diagnostic Tool - Do a tracert and e-mail results back to you
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Problem:
Have you tried to explain to a user how to do an ALT+Print Scrn and then paste the results to an e-mail or document?

History:
On a number of occasions a user is on VPN for example, and they cannot get to a resource. One of the things that has been asked it to do a tracert to the site and e-mail the results to them.

Idea:
Create a diagnostic tool for the end-users to send you results.

Solution:
Using the following tools/components, this can make this proecess pretty painless on you as the Admin and the User you are asking to do this.
TRACE.KIX is:
code:
 BREAK ON
CLS
; -- Trace Diagnostic Tool
; -- Version .8
; -- Kent Dyer
; -- 8 August 2002
$mailhost = "server.domain.com" ; -- fill in with your smtp server
$adminrecpt = "recipient@@domain.com" ; -- add in your e-mail address

:processor
?"Type in the name of the server - e.g. www.microsoft.com or 207.46.230.220"
?""
?"When ready, press the <ENTER> Key to continue"
?""
?"->"
GETS $server

IF $server <> ""
? "Processing..."
SHELL "%ComSpec% /c tracert $server > byname.txt"
SHELL 'blat byname.txt -to $adminrecpt -server $mailhost -subject "Test Results 1" -f "testroute" -q'
DEL byname.txt
ELSE
CLS
?"Sorry.. No information was entered, please try again"
?""
?"If you need to exit, press <CTRL>+<C> to leave"
?""
?"---"
GOTO processor
ENDIF

The TRACE.SED (Self Extracting Directive) File is as follows:
code:
[Version]
Class=IEXPRESS
SEDVersion=3
[Options]
PackagePurpose=InstallApp
ShowInstallProgramWindow=0
HideExtractAnimation=0
UseLongFileName=0
InsideCompressed=0
CAB_FixedSize=0
CAB_ResvCodeSigning=0
RebootMode=N
InstallPrompt=%InstallPrompt%
DisplayLicense=%DisplayLicense%
FinishMessage=%FinishMessage%
TargetName=%TargetName%
FriendlyName=%FriendlyName%
AppLaunched=%AppLaunched%
PostInstallCmd=%PostInstallCmd%
AdminQuietInstCmd=%AdminQuietInstCmd%
UserQuietInstCmd=%UserQuietInstCmd%
SourceFiles=SourceFiles
[Strings]
InstallPrompt=
DisplayLicense=
FinishMessage=
TargetName=C:\!Kix\packager\Trace.exe
FriendlyName=Trace
AppLaunched=KIX32.EXE trace.kix
PostInstallCmd=<None>
AdminQuietInstCmd=
UserQuietInstCmd=
FILE0="trace.kix"
FILE1="KIX32.EXE"
FILE2="blat.exe"
[SourceFiles]
SourceFiles0=C:\!Kix\packager\
[SourceFiles0]
%FILE0%=
%FILE1%=
%FILE2%=

The way we have implemented this is to create an individual package for each of us on our team and we can get the results sent to either yourself or another teammate.
I am sure there are many other ways that this could be used, but this should be a good start.

Have fun!

Kent

[ 09. August 2002, 07:02: Message edited by: kdyer ]
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#68889 - 2002-08-09 05:45 PM Re: Diagnostic Tool - Do a tracert and e-mail results back to you
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Nobody else has created or has found the need for diagnostic tools like this?

Oh well..

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#68890 - 2002-08-09 05:58 PM Re: Diagnostic Tool - Do a tracert and e-mail results back to you
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well, I know I'm not needing blat.
_________________________
!

download KiXnet

Top
#68891 - 2002-08-09 07:40 PM Re: Diagnostic Tool - Do a tracert and e-mail results back to you
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
What do you use for a Command-line e-mailer?

Thanks,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#68892 - 2002-08-11 06:24 AM Re: Diagnostic Tool - Do a tracert and e-mail results back to you
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Lonkero,

** BUMP **
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#68893 - 2002-08-11 07:08 AM Re: Diagnostic Tool - Do a tracert and e-mail results back to you
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
no.
I use my simple udf.
it still uses telnet and there is way to go for it with wmi. anyway, what I mean is: you don't have to use any external utility...
_________________________
!

download KiXnet

Top
#68894 - 2002-08-13 12:44 AM Re: Diagnostic Tool - Do a tracert and e-mail results back to you
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Sendmail? Isn't that still an external executable? Maybe CDO, I could see it.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#68895 - 2002-08-14 09:44 PM Re: Diagnostic Tool - Do a tracert and e-mail results back to you
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Lonkero,

** BUMP **

Sendmail is also a *NIX util too..

Kent

[ 14. August 2002, 21:45: Message edited by: kdyer ]
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#68896 - 2002-08-16 02:09 PM Re: Diagnostic Tool - Do a tracert and e-mail results back to you
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Lonkero...

I am still curious about SENDMAIL. I know it is out there for UNIX and there is a port-over for NT. It looks like a mail server or distribution service. But, what I was wondering was from a client perspective, how are you initiating SMTP mails?

I did go to:
http://www.sendmail.com
http://www.sendmail.org

Looks like there is greater *NIX Support than NT.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#68897 - 2002-08-16 02:11 PM Re: Diagnostic Tool - Do a tracert and e-mail results back to you
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
kent, with sendmail I ment my udf.
sorry for not explaining more.

it works fine if you have not disabled relaying from yourself [Big Grin]
_________________________
!

download KiXnet

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 661 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.06 seconds in which 0.025 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org