Hi ananth, On 7/18/07, Ananth Shrinivas <Ananth.Shrinivas at sun.com> wrote: > > 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
This command is giving the list of all existing zone's host names. I need the host name of a particular zone. Is there any way to grep it? > > > > > 2) Is there any specific command to get the only network interface?? Inside a running zone or outside of it ? I want to list all the network interfaces existing in the system. I need these two for my project. So please help.. 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 > > > > _______________________________________________ > 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 > -- Think beyond the limit... Srikanth. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/ug-bosug/attachments/20070718/d133238c/attachment.html>