View Full Version : I/P addresses on Printers and RMTOUTQs
ukpi1b
09-25-2002, 08:34 PM
I did not try it myself, but it could be helpfull. Run command RTVCFGSRC as: RTVCFGSRC CFGD(*ALL) CFGTYPE(*ALL) SRCFILE(xxxLIB/QCLSRC) Prompt command(F4) for CL source file member name and specific CFGTYPE option.
GlenKerner
09-26-2002, 05:25 AM
That will give me a source file that would allow me to recreate the devices. What I'm looking for is the ability to produce a file that contains this information. Basically, I'm trying to map the IP addresses being used by the AS/400 devices. I'm writing a utility to use the WRKOUTQD and the DSPDEVD commands and coping the spool file to a database file and reading the report. I have a feeling that is the only way I will be able to get this information.
Guest.Visitor
11-04-2002, 07:44 AM
This may not be much help, but I do remember running across a table somewhere on the system that was keeping track of IP addresses. It wasn't the same as the Host Table Entry under CFGTCP, because this particular table did show our printer addresses. I'm sorry that I can't remember where I found it, but I think I stumbled onto it from an article I found on the www.iseriesnetwork.com site. I remember thinking what a great article it was becuase it explained a lot of the folders that you find listed under the IFS and what they were used for. Clark Jones
GlenKerner
11-04-2002, 01:25 PM
Thanks. I will check out the site. I spent the time building a utility that takes the spooled output of the appropriate commands and builds a file but I may be missing something. Maybe if I find the article it will give me the filen I need.
Guest.Visitor
11-05-2002, 06:43 AM
Glen, Just wondering if you were able to accomplish this. I'm trying to do a similar program so that when a ping to an ip address is not successful the program will end/restart the writer for the queue that ip address is associated with.
GlenKerner
11-05-2002, 10:03 AM
I need to be able to have a list of the Printers and their associated I/P addresses including the Remote an Virtual printers. I can't find a command that will put the OUTQ description to a file or retieve it's attributes. Nor can I find a rtv or dsp to outfile for dev descriptions. How can I get an accurate mapping of what I/P addresses are being used on our AS/400 (just Printers/Writer)? Thank you in advance
Guest.Visitor
11-05-2002, 10:03 AM
Glen/Scott, I think that both of you could use the QSPROUTQ API to get the information you need. If a printer is setup using *INTNETADR as the remote system then you can use the QSPROUTQ API to get the IP address. It will be in the Remote System Name field. HTH, Jeff
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.