Hostname vs IP-address

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
JuergenF
Posts: 331
Joined: Sun Jan 26, 2003 6:00 pm
Location: Germany, North Rhine-Westphalia

Hostname vs IP-address

Post by JuergenF »

Hi all,

is there a difference between %host% and %hostaddr% ?

What I'm really looking for is this:
Assumed I have a PING test with ADDRESS set to WWW.GMX.DE
%host% and %hostaddr% both show WWW.GMX.DE
Is there a varibale showing the ip-address of that Name ?

And the other way round:
Assumed I have a PING test with ADDRESS set to 2.16.89.234
%host% and %hostaddr% both show 2.16.89.234
Is there a varibale showing the Hostname of that ip-address ?

Thanks
Juergen
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

is there a difference between %host% and %hostaddr% ?
If we are talking about variables specified as ACTION parameter, then there is no "official" %host% variable (it works but its not documented so you should use %hostaddr%)
Is there a varibale showing the ip-address of that Name ?
No. If you specified host using name, variable will return name.

Regards
Alex
JuergenF
Posts: 331
Joined: Sun Jan 26, 2003 6:00 pm
Location: Germany, North Rhine-Westphalia

Post by JuergenF »

From the documentation:
Section "test items" / "variables"
%host% or %hostaddr%
Represents the host name (or IP address) of the target System

I use it in the "Test Name" and "Comment" field of my tests.


What about an enhancement ?
Also giving the DNS-Name / IP-address translation
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

So we are not talking about actions, we are talking about templates?
Yes, here you can use both variables.
What about an enhancement ?
Also giving the DNS-Name / IP-address translation
And change test name automatically when HostMonitor or RMA detects remote host that changed IP address? Not sure this is good idea :roll:

Regards
Alex
JuergenF
Posts: 331
Joined: Sun Jan 26, 2003 6:00 pm
Location: Germany, North Rhine-Westphalia

Post by JuergenF »

KS-Soft wrote:So we are not talking about actions, we are talking about templates?
Yes, here you can use both variables.
What about an enhancement ?
Also giving the DNS-Name / IP-address translation
And change test name automatically when HostMonitor or RMA detects remote host that changed IP address? Not sure this is good idea :roll:

Regards
Alex
I think at least in the Comment field it does make sense to be able to resolve the hostname to an ip address
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

If "template" variable changes, it changes everywhere.
I have added suggestion into "to do" list, not sure what we will do...

Regards
Alex
Post Reply