Thank you Chuck, I'll try that and compare with what I got from 'dumping' job logs.
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of CRPence
Sent: Friday, November 21, 2014 4:56 PM
To: midrange-l@xxxxxxxxxxxx
Subject: Re: Help with TRCTCPRTE
On 21-Nov-2014 16:11 -0600, Gary Thompson wrote:
I can't hardly spell TCP and a remote server admin has asked for:
* A 'traceroute' to the server name
* A 'traceroute' to the IP
I'm currently running one on the IP
For about five minutes now.
Currently shows "probing possible routes"
What I would like to know is how best to capture and get the output to
this person ?
Probably not _the best way_, but I believe the following script [performed in a new job] should produce spooled output that would resemble what they might expect to see; the actual traceroute request is not included with the given selection [but the Query Select could be extended to do so], and the query requests Arrival sequence processing so as to avoid ordering [per KEYFLD(*FILE) specification and the assumption that the output file is not keyed]:
crtpf qtemp/QMHMDT rcdlen(130) mbr(*none)
traceroute rmtsys( the_remote_server ) output(*msg)
dspjoblog output(*outfile) outfile(qtemp/jl) outmbr(*n *replace)
opnqryf qtemp/jl keyfld(*file) format(qtemp/QMHMDT)
qryslt(' qmhmid *ct "CPF98" *OR qmhmid *CT "TCP" ')
cpyfrmqryf jl qsysprt /* rplunprt(*yes ' ') _assumed_ */
clof jl
dltf qtemp/QMHMDT
dspsplf qsysprt splnbr(*last)
Repeat the above script in a new job, but replacing the_remote_server with the IP naming instead of the server name.
--
Regards, Chuck
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.