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
update-service(8)					      System Manager's Manual						 update-service(8)

NAME
update-service - add/remove a service to/from system-wide service supervision SYNOPSIS
update-service --add|--remove service-directory [service-name] update-service --list|--check [service-name] DESCRIPTION
service-directory must be a directory to be used by supervise(8), service-name must not start with a dot, and must not contain a slash. update-service adds or removes the service-directory to the system-wide service supervision provided through daemontools' svscan(8), lists all registered system-wide services, or checks for a specific service-name whether it is registered. When adding a service, and the service-directory resides in /etc/, update-service makes sure that the ./supervise/ subdirectories in the service-directory, and the optional service-directory/log/, are symbolic links pointing into /var/lib/supervise/, unless they already are symbolic links. OPTIONS
--add | -a Add the service directory service-directory to the system-wide service supervision, under the name service-name. If service-name is not specified, update-service will use the basename of service-directory. You can use the svc(8) program to control the newly added service, and the svstat(8) program to query its status, e.g.: # svstat /etc/service/service-name --remove | -r Remove the service directory service-directory, which has been added under the name service-name, from the system-wide service supervision. If service-name is not specified, update-service will use the basename of service-directory. When removing the ser- vice-directory, the exit command is sent to the corresponding supervise(8) process, telling it to take the service down and exit afterwards. You can use the svc(8) and svstat(8) programs to control the removed service, or query its status, e.g.: # svstat service-directory --list | -l If service-name is specified, update-service checks whether service-name is registered as system-wide service, prints a message and exits non-zero if not, or prints the service-name and the directory it points to and exits zero if yes. If service-name is not specified, it prints the names of all system-widely registered services, one per line. --check | -c The same as --list, but update-service doesn't print anything to standard out or standard error. ENVIRONMENT
SVDIR The environment variable $SVDIR overrides the default services directory /etc/service/. FILES
/etc/service/ SEE ALSO
svc(8), svstat(8), svscan(8), svscanboot(8) AUTHOR
Gerrit Pape <pape@smarden.org> update-service(8)
All times are GMT -4. The time now is 09:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy