KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Hostname vs IP-address

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
JuergenF



Joined: 26 Jan 2003
Posts: 331
Location: Germany, North Rhine-Westphalia

PostPosted: Sat Feb 22, 2014 4:16 am    Post subject: Hostname vs IP-address Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Sat Feb 22, 2014 12:47 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
JuergenF



Joined: 26 Jan 2003
Posts: 331
Location: Germany, North Rhine-Westphalia

PostPosted: Sun Feb 23, 2014 1:25 am    Post subject: Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Mon Feb 24, 2014 11:09 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
JuergenF



Joined: 26 Jan 2003
Posts: 331
Location: Germany, North Rhine-Westphalia

PostPosted: Tue Feb 25, 2014 12:22 am    Post subject: Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Wed Feb 26, 2014 8:59 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index