View previous topic :: View next topic |
Author |
Message |
JuergenF
Joined: 26 Jan 2003 Posts: 331 Location: Germany, North Rhine-Westphalia
|
Posted: Sat Feb 22, 2014 4:16 am Post subject: Hostname vs IP-address |
|
|
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 |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12807 Location: USA
|
Posted: Sat Feb 22, 2014 12:47 pm Post subject: |
|
|
Quote: | 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%)
Quote: | Is there a varibale showing the ip-address of that Name ? |
No. If you specified host using name, variable will return name.
Regards
Alex |
|
Back to top |
|
|
JuergenF
Joined: 26 Jan 2003 Posts: 331 Location: Germany, North Rhine-Westphalia
|
Posted: Sun Feb 23, 2014 1:25 am Post subject: |
|
|
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 |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12807 Location: USA
|
Posted: Mon Feb 24, 2014 11:09 am Post subject: |
|
|
So we are not talking about actions, we are talking about templates?
Yes, here you can use both variables.
Quote: | 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
Regards
Alex |
|
Back to top |
|
|
JuergenF
Joined: 26 Jan 2003 Posts: 331 Location: Germany, North Rhine-Westphalia
|
Posted: Tue Feb 25, 2014 12:22 am Post subject: |
|
|
KS-Soft wrote: | So we are not talking about actions, we are talking about templates?
Yes, here you can use both variables.
Quote: | 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
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 |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12807 Location: USA
|
Posted: Wed Feb 26, 2014 8:59 am Post subject: |
|
|
If "template" variable changes, it changes everywhere.
I have added suggestion into "to do" list, not sure what we will do...
Regards
Alex |
|
Back to top |
|
|
|