1,350 pts.
 Finding AS/400 server name
how to find a as400 server name? and to see its full configuration status?

Software/Hardware used:
ASKED: August 26, 2011  7:54 AM
UPDATED: March 31, 2012  5:33 PM
  Help
 Approved Answer - Chosen by Rajasekhar15 (Question Asker)

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.

ANSWERED:  Aug 26, 2011  6:41 PM (GMT)  by Rajasekhar15

 
Other Answers:

DSPNETA will show Server Name – What do you mean by Configuration Status?

Last Wiki Answer Submitted:  August 26, 2011  2:30 pm  by  Rickmcd   1,480 pts.
Latest Answer Wiki Contributors:  Rickmcd   1,480 pts.
To see other answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Do STRSST to start service tools. You will need a service tools user ID.Then

 415 pts.

 

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

 107,995 pts.

 

tom i want to see all the three as u mentioned

 1,350 pts.

 

For legacy ‘system name’, simple CL would use:

dcl   &SysName    *char     8
rtvneta     sysname( &SysName )

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

 107,995 pts.