Sponsored Content
Operating Systems Solaris How to clear maintenance state for apache2 server? Post 302423476 by busyboy on Friday 21st of May 2010 05:56:44 AM
Old 05-21-2010
did you try

svcs -vx
 

8 More Discussions You Might Find Interesting

1. Solaris

How to clear STATE - uninitialized in solaris 10

Helloo Frd's, How to clear uninitialized state in solaris 10 Services, the fallowing inetadm shows on my server. I tried svcadm clear, enable... not worked. And also i can't change to enable some of service on that. sara4@root# inetadm ENABLED STATE FMRI disabled ... (6 Replies)
Discussion started by: madhu548
6 Replies

2. Solaris

both mirrors in needs maintenance state.

Hi, Ii am facing the belwo problem: d50: Mirror Submirror 0: d30 State: Needs maintenance Submirror 1: d40 State: Needs maintenance Pass: 1 Read option: roundrobin (default) Write option: parallel (default) Size: 212176648 blocks (101 GB) d30:... (3 Replies)
Discussion started by: sag71155
3 Replies

3. Shell Programming and Scripting

How can i get the state of weblogic server

Hi, all Now i want write a shell to get the state of weblogic server,and when the Managed Server's state is not ok, after 3 times checking, i will send msg to the system administrator by sms. BTW, my environment is : Linux ,Redhat 5.4 64bit weblogic version: 10.3.3 the count number... (1 Reply)
Discussion started by: wangsk
1 Replies

4. Solaris

SSH : Restarting too quickly, changing state to maintenance

Hi, I'm new to Solaris. I have an issue with ssh service. When I restart the service it exits with an exit status of 0 $svcadm restart svc:/network/ssh:default $echo $? 0 $ However, the service goes into maintenance mode after restart. I'm able to connect even though the service is in... (3 Replies)
Discussion started by: maverick_here
3 Replies

5. Solaris

/network/smb/server goes into maintenance mode.

All I'm running an OpenSolaris system (Nexenta). When doing a svcs I see that/network/smb/server is in maintenance mode. I have run a clear on the service and restarted. I see the same service show online* for a bit but then, enters maintenance every time. In the service log I... (2 Replies)
Discussion started by: dcpatriot
2 Replies

6. Solaris

Apache2 maintenance

Hi! apache and tomcat are installed in default on solaris 10, after some configuration tomcat is enable, but apache status is maintenance... How to change its status to online...? The log say And when I tape the svcs -xv commande, this is the result bash-3.00# svcs -xv... (2 Replies)
Discussion started by: tood
2 Replies

7. Infrastructure Monitoring

Can HPOV monitor server hung state ?

Hi, We have Solaris-10 running on VMware (x86). It is being monitored by HP Openview. Sometimes when this server hungs, while ping still works, HPOpenview can't alert that server is down (which is actually unresponsive). First symptom we see is, login failure. It will ask user name and after... (7 Replies)
Discussion started by: solaris_1977
7 Replies

8. Solaris

Metastat shows state needs maintenance

Hi, We have a Solaris 10 machine with update 11 and was configured with IBM storage. It was assigned 2 LUNs (each 70GB) which were striped to make it 140GB. we have taken full backup of entire machine and Our storage team replaced IBM storage with Nimble storage (they did storage-level... (6 Replies)
Discussion started by: prvnrk
6 Replies
smf_enable_instance(3SCF)			 Service Configuration Facility Library Functions			 smf_enable_instance(3SCF)

NAME
smf_enable_instance, smf_disable_instance, smf_refresh_instance, smf_restart_instance, smf_maintain_instance, smf_degrade_instance, smf_restore_instance, smf_get_state - administrative interface to the Service Configuration Facility SYNOPSIS
cc [ flag... ] file... -lscf [ library... ] #include <libscf.h> int smf_enable_instance(const char *instance, int flags); int smf_disable_instance(const char *instance, int flags); int smf_refresh_instance(const char *instance); int smf_restart_instance(const char *instance); int smf_maintain_instance(const char *instance, int flags); int smf_degrade_instance(const char *instance, int flags); int smf_restore_instance(const char *instance); char *smf_get_state(const char *instance); DESCRIPTION
These functions provide administrative control over service instances. Using these functions, an administrative tool can make a request to enable, disable, refresh, or restart an instance. All calls are asynchronous. They request an action, but do not wait to see if the action succeeds or fails. The smf_enable_instance() function enables the service instance specified by instance FMRI. If flags is SMF_TEMPORARY, the enabling of the service instance is a temporary change, lasting only for the lifetime of the current system instance. The flags argument is set to 0 if no flags are to be use. The smf_disable_instance() function places the service instance specified by instance FMRI in the disabled state and triggers the stop method (see svc.startd(1M)). If flags is SMF_TEMPORARY, the disabling of the service instance is a temporary change, lasting only for the lifetime of the current system instance. The flags argument is set to 0 if no flags are to be use. The smf_refresh_instance() function causes the service instance specified by instance FMRI to re-read its configuration information. The smf_restart_instance() function restarts the service instance specified by instance FMRI. The smf_maintain_instance() function moves the service instance specified by instance into the maintenance state. If flags is SMF_IMMEDI- ATE, the instance is moved into maintenance state immediately, killing any running methods. If flags is SMF_TEMPORARY, the change to main- tenance state is a temporary change, lasting only for the lifetime of the current system instance. The flags argument is set to 0 if no flags are to be use. The smf_degrade_instance() function moves an online service instance into the degraded state. This function operates only on instances in the online state. The flags argument is set to 0 if no flags are to be use. The only available flag is SMF_IMMEDIATE, which causes the instance to be moved into the degraded state immediately. The smf_restore_instance() function brings an instance currently in the maintenance to the uninitialized state, so that it can be brought back online. For a service in the degraded state, smf_restore_instance() brings the specified instance back to the online state. The smf_get_state() function returns a pointer to a string containing the name of the instance's current state. The user is responsible for freeing this string. Possible state strings are defined as the following: #define SCF_STATE_STRING_UNINIT ((const char *)"uninitialized") #define SCF_STATE_STRING_MAINT ((const char *)"maintenance") #define SCF_STATE_STRING_OFFLINE ((const char *)"offline") #define SCF_STATE_STRING_DISABLED ((const char *)"disabled") #define SCF_STATE_STRING_ONLINE ((const char *)"online") #define SCF_STATE_STRING_DEGRADED ((const char *)"degraded") RETURN VALUES
Upon successful completion, smf_enable_instance(), smf_disable_instance(), smf_refresh_instance(), smf_restart_instance(), smf_main- tain_instance(), smf_degrade_instance(), and smf_restore_instance() return 0. Otherwise, they return -1. Upon successful completion, smf_get_state returns an allocated string. Otherwise, it returns NULL. ERRORS
These functions will fail if: SCF_ERROR_NO_MEMORY The memory allocation failed. SCF_ERROR_INVALID_ARGUMENT The instance FMRI or flags argument is invalid. SCF_ERROR_NOT_FOUND The FMRI is valid but there is no matching instance found. SCF_ERROR_CONNECTION_BROKEN The connection to repository was broken. SCF_ERROR_NO_RESOURCES The server has insufficient resources. The smf_maintain_instance(), smf_refresh_instance(), smf_restart_instance(), smf_degrade_instance(), and smf_restore_instance() functions will fail if: SCF_ERROR_PERMISSION_DENIED User does not have proper authorizations. See smf_security(5). SCF_ERROR_BACKEND_ACCESS The repository's backend refused access. SCF_ERROR_BACKEND_READONLY The repository's backend is read-only. The smf_restore_instance() and smf_degrade_instance() functions will fail if: SCF_ERROR_CONSTRAINT_VIOLATED The function is called on an instance in an inappropriate state. The scf_error(3SCF) function can be used to retrieve the error value. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Committed | +-----------------------------+-----------------------------+ |MT-Level |Safe | +-----------------------------+-----------------------------+ SEE ALSO
svc.startd(1M), libscf(3LIB), scf_error(3SCF), attributes(5), smf_security(5) SunOS 5.11 5 Nov 2007 smf_enable_instance(3SCF)
All times are GMT -4. The time now is 01:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy