[ug-bosug] Zone Host name command

Ananth Shrinivas Ananth.Shrinivas at Sun.COM
Tue Jul 17 23:26:04 PDT 2007


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??
zoneadm list -p <ZONENAME> | nawk -F ':' '{print "cat 
$4/etc/hostname.*"}' | bash

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

Inside a running zone or outside of it ?

Cheers,
Ananth

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



More information about the ug-bosug mailing list