Skip to main content
khambrick
Participating Frequently
Sep 3, 2025 10:38 AM UTC

IP address, hostname, uname

Hello all - we are switching from one box (unix) to another (linux). We have some programs that check server IP, hostname, uname - to know if the user is addressing our test or production environments.

Our question is does anyone know of a Unidata environment variable that holds this type of information we could query easily?

Thanks for any ideas!

Kathleen



------------------------------
kathleen hambrick
Programmer
Rocket Forum Shared Account
------------------------------

    3 replies

    Jonathan Smith
    Rocketeer
    Sep 3, 2025 10:54 AM UTC

    Hello all - we are switching from one box (unix) to another (linux). We have some programs that check server IP, hostname, uname - to know if the user is addressing our test or production environments.

    Our question is does anyone know of a Unidata environment variable that holds this type of information we could query easily?

    Thanks for any ideas!

    Kathleen



    ------------------------------
    kathleen hambrick
    Programmer
    Rocket Forum Shared Account
    ------------------------------

    SYSTEM(9013) will return the HostName

    Using PCPERFORM will allow to get things like uname and the server ip address easily enough.



    ------------------------------
    Jonathan Smith
    UniData ATS
    Rocket Support
    ------------------------------
    Rocket Software - Senior Principal Technical Support Engineer - UniData ATS
    khambrick
    khambrickAuthor
    Participating Frequently
    Sep 3, 2025 11:09 AM UTC

    SYSTEM(9013) will return the HostName

    Using PCPERFORM will allow to get things like uname and the server ip address easily enough.



    ------------------------------
    Jonathan Smith
    UniData ATS
    Rocket Support
    ------------------------------

    Thanks Jonathon - system(9013) is what I was looking for!

    Kathleen



    ------------------------------
    kathleen hambrick
    Programmer
    Rocket Forum Shared Account
    ------------------------------
    Harold Hambrick
    Participating Frequently
    Sep 22, 2025 11:24 AM UTC

    Hello all - we are switching from one box (unix) to another (linux). We have some programs that check server IP, hostname, uname - to know if the user is addressing our test or production environments.

    Our question is does anyone know of a Unidata environment variable that holds this type of information we could query easily?

    Thanks for any ideas!

    Kathleen



    ------------------------------
    kathleen hambrick
    Programmer
    Rocket Forum Shared Account
    ------------------------------

    We just converted from AIX to Red Hat Linux so if you have any other questions feel free to reach out and I'll try to help also.



    ------------------------------
    Harold Hambrick
    Manager of UV Development
    R.T.G. Furniture Corp and its Affiliates
    Seffner FL US
    ------------------------------