Sponsored Content
Full Discussion: service status in AIX
Operating Systems AIX service status in AIX Post 302480158 by zaxxon on Tuesday 14th of December 2010 06:35:43 AM
Old 12-14-2010
This is no matter regarding the OS, about what options a shell script supports. There are also scripts on Linux that do not have a status option. It has nothing to do with AIX or Linux.

If the script does not support a status option and you don't want to do a ps (I don't see any problem in this), you can only hope it is being handled by the AIX System Resource Controller (SRC), which I doubt in that case. You can check the status of supported Subsystems, Subsystem Groups and Subsyserver of it with lssrc -a and grep for it's name, for example.
Though, I assume this software you are controlling by this script is not part of the SRC at all.
Anyway here is a documentation from IBM about SRC, if you are interessted:

IBM Info Center - System Resource Controller

Another option might be to implement a status option into the script by yourself - though on updates it might be overwritten.
 

10 More Discussions You Might Find Interesting

1. AIX

Aix - Service Pack

I've recently installed ServicePack1 for Tecnology_Level 9 of AIX 5.2 . The result of installation is "OK" but with oslevel -s i dont see the service pack installed .... after many research i try (with many luck!!) instfix -i|grep SP and the result : All filesets for 5200-08-01_SP... (1 Reply)
Discussion started by: BabylonRocker
1 Replies

2. Linux

Ftp Service /process Status

:confused: Hi Can anyone tell me how to check the FTP process status in linux . eg,I'm ftpping some files from "A" server to "B" server through FTP command , after ftpping these files , I 'm suppose to delete the files which are successfully ftpped from "A" server ,but when I 'm checking the... (1 Reply)
Discussion started by: GaneshB
1 Replies

3. HP-UX

Monitor Service Status

Hey guys how do you determined the status of a certain service if its running or not aside from using ps. (0 Replies)
Discussion started by: sbn
0 Replies

4. Solaris

How can i know service status in solaris8,9?

How can i know service status and its dependencies in solaris 8,9? Thanks in advance.. (2 Replies)
Discussion started by: younus_syed
2 Replies

5. AIX

AIX Service Packs

Can anyone out there let me know what is the *common* Technology Level and Service Pack that everyone is at? I am at 5300-06-04-0748 on all of my LPARs. Also- does anyone have any guidelinies to rolling out new TL and Sps? Thanks (4 Replies)
Discussion started by: seacros
4 Replies

6. Red Hat

#service --status-all : screen flickering

hi there when i run #service --status-all or #service nfs status the screen flickers if i ssh from remote system than i dont have flickering on the remote nor that system. is it something to do with probably display configuration. ? and which file are the display setting... (7 Replies)
Discussion started by: dplinux
7 Replies

7. UNIX for Dummies Questions & Answers

service exit status

what are the number for the exit status for command service and what does every number mean. (2 Replies)
Discussion started by: programAngel
2 Replies

8. UNIX for Dummies Questions & Answers

Finding service status on windows from Linux

Hi all, Please advise how do i find services status running on windows machines from Linux. =-===================== Some one developed a script use rsh command to find the status but it stopped working. rsh <Some IIS server Name> service -S < Windows Server name where service running>... (1 Reply)
Discussion started by: ashish_uiit
1 Replies

9. Shell Programming and Scripting

script killing a process from service status output

Hello, can some please suggest a script, for killing the process PID. This are steps I am currently performing to kill the process. I cant user service splunk stop, to kill these processes, because of uid and gid mismatch for splunk user. # service splunk status Splunk status: splunkd... (8 Replies)
Discussion started by: bobby320
8 Replies

10. Shell Programming and Scripting

Show service status in dialog

Hello is it possible to show current status of service like cron with dialog ? something that show the output of service crond status in top of menu: dialog --title "Administrator" --menu "Please choose an option:" 20 55 10 \ 1 "Add New USER" \ 2 "List all user" \ 3 "Remove user" \ 4... (6 Replies)
Discussion started by: nimafire
6 Replies
WIN32_QUERY_SERVICE_STATUS(3)						 1					     WIN32_QUERY_SERVICE_STATUS(3)

win32_query_service_status - Queries the status of a service

SYNOPSIS
mixed win32_query_service_status (string $servicename, [string $machine]) DESCRIPTION
Queries the current status for a service, returning an array of information. PARAMETERS
o $servicename - The short name of the service. o $machine - The optional machine name. If omitted, the local machine will be used. RETURN VALUES
Returns an array consisting of the following information on success, FALSE if there is a problem with the parameters or a Win32 Error Code on failure. o $ServiceType - The dwServiceType. See Win32Service Service Type Bitmasks. o $CurrentState - The dwCurrentState. See Win32Service Service Status Constants. o $ControlsAccepted - Which service controls are accepted by the service. See Win32Service Service Control Message Accepted Bitmasks. o $Win32ExitCode - If the service exited, the return code from the process. o $ServiceSpecificExitCode - If the service exited with an error condition, the service specific code that is logged in the event log is visible here. o $CheckPoint - If the service is shutting down, holds the current check point number. This is used by the SCM as a kind of heart-beat to detect a wedged service process. The value of the check point is best interpreted in conjunction with the WaitHint value. o $WaitHint - If the service is shutting down it will set WaitHint to a checkpoint value that will indicate 100% completion. This can be used to implement a progress indicator. o $ProcessId - The Windows process identifier. If 0, the process is not running. o $ServiceFlags - The dwServiceFlags. See Win32Service Service Service Flag Constants. SEE ALSO
Win32Service Predefined Constants. PHP Documentation Group WIN32_QUERY_SERVICE_STATUS(3)
All times are GMT -4. The time now is 08:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy