11-06-2014
"zoneadm -z zonename list -v" from the global zone will tell you if the zone is alive/running (column STATUS).
You can do ping tests from the global zone but better to do them remotely to rule out cabling or other networking issues.
8 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
okay people i need some help:
i was able to configure zones on my solaris 10 server, the problem is I can't ssh into the zones!!! I can zlogin -C zone2 successfully for both zones. Am I missing something? I can ping the zones, but can't ssh. From the zones, I can ping my global server. (7 Replies)
Discussion started by: Sarccastik Dude
7 Replies
2. Solaris
Hello All,
I have a list of Local Zones in my list. I want to find out their Global Zone names exactly....I know the command "arp ..."But I dont know how to filter it correctly and find it out.
Thanks in advance,
Jacky (9 Replies)
Discussion started by: jegaraman
9 Replies
3. Solaris
Hi,
I created a zone with separate /usr for the zone.
when I do ping to newly created zone it showing alive, I am able to login through zone console zlogin -C -E <zone name>
I created a test account on zone which is already existing under global zone and try to ssh, it is working fine but... (1 Reply)
Discussion started by: alberto
1 Replies
4. Solaris
Dear all,
There wasn't any monitoring on our server except on the filesystem.
Therefore, I was wondering anything i should do on a daily basis to check on the server's status, health, hardware, or any other thing as a disaster prevention? Also, what command i should use to do that?
... (2 Replies)
Discussion started by: beginningDBA
2 Replies
5. Shell Programming and Scripting
I have written little script to check the CPU performance of the machine.
Request you to contribute your comments on the same.
Feel free to add your own scriptlet to make it better.
I have decided to call it as doctortux
I have decided to run the script in two mode
1)Interactive.(Not... (4 Replies)
Discussion started by: pinga123
4 Replies
6. Shell Programming and Scripting
hello there,
can someone please tell me the commands that makes sense, from a production point of view, to be used to make sure CPU, LOAD or IO usages on a Linux or Solaris server isn't too high?
I'm aware of vmstat, iostat, sar. But i seriously need real world advice as to what fields in... (1 Reply)
Discussion started by: SkySmart
1 Replies
7. Solaris
Hi guys and gals,
Does anyone know how to import solaris zones from the xml files that sit in /etc/zones?
I want the zones from one machine to another, all I have is the XML files for the zones, so I can't export them first.
Thanks in advance
Martin (1 Reply)
Discussion started by: callmebob
1 Replies
8. Solaris
Hi All
Kindly let me know how can I move Solaris 10 OS running update 10 on physical machine to another machine solaris zone running Solaris 10 update 11 (2 Replies)
Discussion started by: amity
2 Replies
LEARN ABOUT OPENSOLARIS
scha_cluster_getzone
scha_cluster_getzone(3HA) Sun Cluster HA and Data Services scha_cluster_getzone(3HA)
NAME
scha_cluster_getzone - zone name access function
SYNOPSIS
cc [flags...] -I /usr/cluster/include file -L /usr/cluster/lib -l scha
#include <scha.h>
scha_err_t scha_cluster_getzone(char **zonename);
DESCRIPTION
The scha_cluster_getzone() function returns a string that identifies the zone from which the function is called. If you call this function
in a non-global zone, the zone name and the node name are returned, in the format nodename:zonename. If you call this function in the
global zone, only the node name is returned. The node name is not necessarily the same as the Solaris system name. The function returns an
error status. If successful, the function also returns a string that contains the node name and the zone name in the location that is
pointed to by the zonename argument.
If the call fails, the zonename argument is set to NULL. The caller of scha_cluster_getzone() is responsible for freeing the memory that is
allocated for the returned string by using the standard C library function free(3C). Freeing the memory is required only if the function
succeeds.
RETURN VALUES
The scha_cluster_getzone() function returns the following values:
0 The function succeeded.
nonzero The function failed.
ERRORS
SCHA_ERR_NOERR The function succeeded.
See scha_calls(3HA) for a description of other error codes.
EXAMPLES
Example 1 Using the scha_cluster_getzone() Function
scha_err_t err_code;
char *zonename;
err_code = scha_cluster_getzone(&zonename);
...
if (zonename != NULL) free(zonename);
FILES
/usr/cluster/include/scha.h Include file
/usr/cluster/lib/libscha.so Library
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWscdev |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO
free(3C), scha_calls(3HA), scha_cluster_get(3HA), scha_cluster_getnodename(3HA), scha_strerror(3HA), attributes(5)
Sun Cluster 3.2 7 Sep 2007 scha_cluster_getzone(3HA)