[ug-bosug] Zone Host name command

Zoram Thanga Zoram.Thanga at Sun.COM
Tue Jul 17 23:06:05 PDT 2007


Hi,

srikanth kshatriy wrote:
> Hello..
> 
> 
> 1) What is the command to get the host name of the zone?
> 
> * zlogin <zone name> uname -n * command works for only running zones. If 
> its
> in the
> configured or installed state how to get that??
> 

I'm not aware of a simple command to get that information. You could 
look at <zonepath>/root/etc/hostname or the other files of that nature.

> 
> 2) Is there any specific command to get the only network interface??
> 

zonecfg -z <zonename> info net

will display all the networking resources. If you want to look at a 
particular net resource, you can run, for example,

zonecfg -z <zonename> info net physical=<interface_name>

Cheers,
Zoram

> 
> Thanks,
> Srikanth K
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> ug-bosug mailing list
> List-Unsubscribe: mailto:ug-bosug-unsubscribe at opensolaris.org
> List-Owner: mailto:ug-bosug-owner at opensolaris.org
> List-Archives: http://www.opensolaris.org/jive/forum.jspa?forumID=54


-- 
Zoram Thanga::Sun Cluster Development::http://blogs.sun.com/zoram


More information about the ug-bosug mailing list