Skip to main content

IP address, hostname, uname

  • September 3, 2025
  • 3 replies
  • 12 views

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
Forum|alt.badge.img
  • Rocketeer
  • 356 replies
  • September 3, 2025

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
------------------------------

  • Author
  • Participating Frequently
  • 15 replies
  • September 3, 2025

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
  • 20 replies
  • September 22, 2025

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
------------------------------