Sponsored Content
Top Forums UNIX for Dummies Questions & Answers When the run level is changed from 5 to 3? Post 302467749 by lemon_06 on Sunday 31st of October 2010 04:57:58 AM
Old 10-31-2010
When the run level is changed from 5 to 3?

A Bourne Shell script is placed in /etc/rc.d/rc3.d called S57apache. What will happen with this script when the run level is changed from 5 to 3?

many thanks
 

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

Find run-level in solaris 8.

When the solaris 8 have come up, which command can find out the current run-level? thanks. (2 Replies)
Discussion started by: nianzhe
2 Replies

2. Solaris

Confusion In run level...

Dear Friends..!! i am quit confused about the SOLARIES RUN level that is 0 . 1 or s S ... please let me know the diffirence between these run level ... 0,1 and s S... have a great day Uday naikwadi (1 Reply)
Discussion started by: udayn
1 Replies

3. SuSE

Run Level Services file

Hello, I recently updated a test system from Suse 8 to 9.3. Now our runlevel services program doesn't work, but works fine on our other 9.3 boxes. We have a file in /etc/init.d/rc3.d called S99fooprog(not actual name ofcourse). It just has a command to start a program daemon up. Anyways... (3 Replies)
Discussion started by: benefactr
3 Replies

4. Solaris

Run Level 1, S and small s

Hi Experts, A stupid question for experts :confused: !! What is the difference between run level ‘1', runlevel ‘S' and small ‘s'. As per my understanding the difference between S and 1 is that in case of ‘S' it only going to mount the critical file system which ideal should be... (2 Replies)
Discussion started by: kumarmani
2 Replies

5. Solaris

How to get the initdefault run level in Solaris 10

Hi All, In Solaris 9 and below I will get the init run-level by checking the /etc/inittab entry is:3:initdefault: But in Solaris 10 we are using the smf functionality. Here how I can get the init default run level. Please help me in this problem. Regards, ... (2 Replies)
Discussion started by: kalpeer
2 Replies

6. Solaris

Difference between run level & init level

what are the major Difference Between run level & init level (2 Replies)
Discussion started by: rajaramrnb
2 Replies

7. Shell Programming and Scripting

Run a script when a file is modified/time stamp changed

Hi, I need to run a script file which uses a file and that file is modified as and when some alarms generated, it is not based on any fixed time period.. it may be modified even once in a minute for some time and once in 30 min or once in 20 min. Hence i need to watch for the timestamp change of... (3 Replies)
Discussion started by: aemunathan
3 Replies

8. Solaris

Solaris 10 - Run Level Modification

Hello, I'm creating a VM Image of Solaris 10 on VM Player. I've completed the installation & I am using the Java Desktop as my default logon. I need to modify the Run Level to Console Mode (permanently). Unlike previous versions or Linux, modifying inittab file is not an option here. Please... (2 Replies)
Discussion started by: DevendraG
2 Replies

9. Shell Programming and Scripting

Perl - what run level

Is there a way to tell what runlevel is currently being used, for example is a user is using the gui or is the have pressed Alt+Ctrl+F1 to drop to the terminal?? (3 Replies)
Discussion started by: ab52
3 Replies

10. Solaris

Change run level at boot

for solaris 11, how does one change the run level at boot from 3 to 2? i checked "/etc/inittab" file where i usually change it in other *nix but it seems solaris is not using it. (1 Reply)
Discussion started by: badbanana
1 Replies
scsnapshot(1M)						  System Administration Commands					    scsnapshot(1M)

NAME
scsnapshot - retrieve configuration data about resource groups, resource types, and resources, and generate a shell script SYNOPSIS
scsnapshot [-s scriptfile] [-o imagefile] scsnapshot [-s scriptfile] oldimage newimage DESCRIPTION
Note - Beginning with the Sun Cluster 3.2 release, Sun Cluster software includes an object-oriented command set. Although Sun Cluster software still supports the original command set, Sun Cluster procedural documentation uses only the object-oriented command set. For more infor- mation about the object-oriented command set, see the Intro(1CL) man page. The scsnapshot tool retrieves information from the Cluster Configuration Repository (CCR) about configuration data that is related to resource groups, resource types, and resources. The scsnapshot tool formats the configuration data as a shell script that can be used for the following purposes: o To replicate configuration data on a cluster that has no configured resource groups, resource types, and resources o To upgrade configuration data on a cluster that has configured resource groups, resource types, and resources The scsnapshot tool retrieves configuration data only from the CCR. Other configuration data is ignored. The scsnapshot tool does not take into account the dynamic state of different resource groups, resource types, and resources. You can use this command only in the global zone. OPTIONS
The following options are supported by the scsnapshot tool. If you use an incorrect command option, the correct way to use the command option is displayed. -s scriptfile Stores the generated script in a file called scriptfile. You can use this option only in the global zone. If this option is not specified, the generated script is written to the standard output. If a file called scriptfile already exists, it is renamed as scriptfile.old, and a new file called scriptfile is created. If a file called scriptfile.old already exists, it is overwritten. -o imagefile Stores the generated image file in a file called imagefile. You can use this option only in the global zone. If this option is not specified, an image file is not generated. If a file called imagefile already exists, it is renamed as imagefile.old, and a new file called imagefile is created. If a file called imagefile.old already exists, it is overwritten. oldimage Specifies an image file that contains the old configuration data. newimage Specifies an image file that contains the new configuration data. EXTENDED DESCRIPTION
The output of the scsnapshot tool is an executable Bourne shell-based script. Before you run the script, you might need to manually change some properties to reflect the features of your host. The script compares the following characteristics of the local cluster to the cluster where the script was generated: o Machine architecture o Version of the Solaris Operating System o Version of the Sun Cluster software If the characteristics are not the same, the script writes an error and ends. A message asks whether you want to rerun the script by using the -f option. The -f option forces the script to run, despite any difference in characteristics. The script generated by the scsnapshot tool verifies that the Sun Cluster resource type exists on the local cluster. If the resource type does not exist on the local cluster, the script writes an error and ends. A message asks whether you want to install the missing resource type before you run the script again. To run a script that is generated by the scsnapshot tool, you need solaris.cluster.resource.modify RBAC authorization. For more informa- tion, see the rbac(5) man page. USAGE
This section describes how you can use the scsnapshot tool. Retrieving Configuration Data for Resource Groups, Resource Types, and Resources scsnapshot [-s scriptfile] [-o imagefile] Used without the -o option, the scsnapshot tool generates a script that creates configuration data for clusters that do not already have configured resource groups, resource types, and resources. See Example 1. Used with the -o option, the scsnapshot tool produces an image file that represents the configuration data. The image file can be used in further invocations of the scsnapshot tool to upgrade configuration data on a cluster. See Example 2. To use the scsnapshot tool to retrieve configuration data, you need solaris.cluster.resource.read role-based access control (RBAC) autho- rization. For more information, see the rbac(5) man page. To track differences between versions of configuration data, store the image files in a source control system such as SCCS. Upgrading Configuration Data for Resource Groups, Resource Types, and Resources scsnapshot [-s scriptfile] oldimage newimage The scsnapshot tool generates a shell script that can be used to upgrade the configuration data that is contained in the oldimage file with the configuration data that is contained in the newimage file. To use the scsnapshot tool to upgrade configuration data, you do not need specific RBAC authorization. EXAMPLES
Example 1 To Generate a Shell Script That Retrieves Configuration Data for Resources Groups, Resource Types, and Resources The script that is generated in this example is called scriptfile.sh. example% scsnapshot -s scriptfile.sh Example 2 To Generate a Shell Script That Retrieves Configuration Data and Stores an Image File The script that is generated in this example is called scriptfile.sh. The configuration data is stored in an image file called imagefile. example% scsnapshot -s scriptfile.sh -o imagefile Example 3 To Generate a Shell Script That Upgrades Configuration Data on One Cluster With Configuration Data From Another Cluster This example creates a script that upgrades the configuration data on cluster1 to match the configuration data on cluster2. The configura- tion data for cluster1 is in a file called imagefile1, and the configuration data for cluster2 is in a file called imagefile2. The name of a shell script is not specified, so the generated script is written to the standard output. example% scsnapshot imagefile1 imagefile2 EXIT STATUS
The following exit status codes are returned: 0 The command completed successfully. nonzero An error occurred. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWsczu | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ SEE ALSO
Intro(1CL), attributes(5), clconfiguration(5CL), rbac(5), rg_properties(5), rt_properties(5), r_properties(5) Sun Cluster 3.2 22 Jun 2006 scsnapshot(1M)
All times are GMT -4. The time now is 03:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy