


POSTED: Aug 26, 2011 6:38 PM (GMT)
Do STRSST to start service tools. You will need a service tools user ID.Then
then (1) Start a service tool, (7) Hardware service manager, (F6) Print Configuration. This will place a "rack config" file in your default OUTQ. You can let it print or copy off as you want.
DSPNETA will show Server Name – What do you mean by Configuration Status?


Do STRSST to start service tools. You will need a service tools user ID.Then
What “server name” do you need to see? The system may have at least three distinctly different server names — the legacy ‘system name’, the TCP/IP host name and a Windows Network server name.
And what is meant by “full configuration status”? There are at least hundreds of fairly common “configuration status” elements depending on what is needed. Device configuration/status? Communications configuration/status? Software resources configuration/status? Work management configuration/status? Hardware resources configuration/status? Others?
Tom
tom i want to see all the three as u mentioned
For legacy ‘system name’, simple CL would use:
The ‘system name’ will be retrieved and stored in variable &SysName. You can also use the Retrieve Network Attributes (QWCRNETA) API; request the ‘SYSNAME’ network attribute. The API can be called from pretty much any language on an AS/400 (including REXX).
For NetServer name (Windows networking), call the List Server Information (QZLSLSTI) API and request format ‘ZLSL0200′. The server name will be in the returned data structure beginning at offset 68 (decimal) and be 15 bytes long.
For TCP/IP host name, it can get a little tricky. Systems may have many IP addresses and each address can have many host names. There should be only one “primary” host name though, and there should only be one “primary” IP address. (“Primary” is my word to designate that the value represents what the system itself thinks it should be.)
To find what the system thinks that its “host name” is, there are two possibilities.
You can call the Retrieve TCP/IP Attributes (QtocRtvTCPA) API and request format ‘TCPA0300′. The unqualified host name will be at offset 176 (decimal) of the returned data structure. It will be in a 64-byte field. The domain name will be in a 255-byte field immediately after that. The fully-qualified domain name (FQDN) will be the concatenation of those two values (trimmed) together, with a “.dot” delimiter between them. If you don’t need portability, that API is very useful.
If portability is a concern, then you should use a standard API — gethostname()–Retrieve Host Name. The API returns a pointer to a character string containing the host name.
Tom