Finding AS/400 server name

1395 pts.
Tags:
AS/400 Configuration
AS/400 Server
Server configuration
how to find a as400 server name? and to see its full configuration status?

Answer Wiki

Thanks. We'll let you know when a new response is added.

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

Discuss This Question: 5  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Rbogar
    Do STRSST to start service tools. You will need a service tools user ID.Then
    415 pointsBadges:
    report
  • Rbogar
    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.
    415 pointsBadges:
    report
  • TomLiotta
    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
    125,585 pointsBadges:
    report
  • Rajasekhar15
    tom i want to see all the three as u mentioned
    1,395 pointsBadges:
    report
  • TomLiotta
    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
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following