06-17-2009
Quote:
Originally Posted by
s_linux
Hi All,
I want to disable bunch of unused services on SLES and RHEL to improve the performance. Since we have more than 100 servers to disable services, I want to do with some script. Any one can give me an idea how to write a script to disable services. Thanks
How about creating a list of the services you want to disable
then just use a loop
for i in `cat /tmp/service-disable`
do
chkconfig --levels 3 5 $i off
done
9 More Discussions You Might Find Interesting
1. AIX
Aix 5, how can I disable, telnet, ftp and snmp?
Thanks (4 Replies)
Discussion started by: csaunders
4 Replies
2. UNIX for Advanced & Expert Users
We're running SCO Open Server 5. On occassion we need to disable/enable HP print services. There's nothing that I have found in the HP printer manager that allows for this. I know we can stop/start print services via SCOADMIN. On occassion one of our HP printers will generate an error, the msg in... (4 Replies)
Discussion started by: sighbrrguy
4 Replies
3. UNIX for Dummies Questions & Answers
Hello all happy people! :)
Iam trying to figure out how to disable running services, and witch i can disable. Iam running ssh,apache,ftp and identd.
Here is an output from nmap:
21/tcp open ftp Solaris ftpd
22/tcp open ssh SunSSH 1.1 (protocol 2.0)
23/tcp ... (2 Replies)
Discussion started by: empty
2 Replies
4. Solaris
I've successfully installed syslog-ng and chkconfig using the packages from the OpenCSW project, these packages install under /opt/csw. I now need to disable the default syslog daemon and enable the new service created by the OpenCSW package (/etc/init.d/cswsyslog_ng).
Is there any good way to... (3 Replies)
Discussion started by: aussieos
3 Replies
5. Shell Programming and Scripting
Hi All,
I have bash script, so what is sintax script in bash for Enable and Disable Tab Key. Thanks for your help.:(
Thanks,
Rico (1 Reply)
Discussion started by: carnegiex
1 Replies
6. UNIX for Dummies Questions & Answers
I would like to know how would i disable service which helps mounting of removable devices automatically?
I dont want to disable mounting but i would like to disable automatic mounting of devices.
I would like to do this as security major on one of our production server. (2 Replies)
Discussion started by: pinga123
2 Replies
7. Red Hat
Hi all Expertise,
I have following issue to solve,
SSL / TLS Renegotiation DoS (low) 222.225.12.13
Ease of Exploitation Moderate
Port 443/tcp
Family Miscellaneous
Following is the problem description:------------------
Description The remote service encrypts traffic using TLS / SSL and... (2 Replies)
Discussion started by: manalisharmabe
2 Replies
8. Red Hat
I had a doubt if any services need to be restarted if port no in /etc/services in an RHEL setup is changed. For eg, the port no of 443 for SSL may need to be changed.
I hope my query is clear whether any services need to be restarted if port no in /etc/services is changed.
Please revert with... (10 Replies)
Discussion started by: RHCE
10 Replies
9. Shell Programming and Scripting
Hi,
I just started working on a script. After my research, i found a command which can help me:
AIM: To build a script which starts the services (Services 1) on server 1 automatically whenever its down. And it has a dependency on other service (Service 2) on Server 2.
So my script has to... (4 Replies)
Discussion started by: draghun9
4 Replies
LEARN ABOUT OPENSOLARIS
netservices
netservices(1M) System Administration Commands netservices(1M)
NAME
netservices - enable or disable network services
SYNOPSIS
netservices open
netservices limited
DESCRIPTION
The netservices command uses the Solaris service management facility, smf(5), to control services that accept over the network from remote
clients.
When netservices is invoked with the limited command-line argument, all network services except the secure shell daemon, sshd(1M), are
either disabled or constrained to respond to local requests only.
Invoking netservices with the open command-line argument enables a large set of network services, as in previous releases of Solaris.
To customize the configuration set enabled by netservices, use svcadm(1M) to enable or disable individual services. Use svccfg(1M) to set
properties that determine whether a service accepts input from remote clients. See the man pages for individual services for the names of
service instances and their properties.
Note that the netservices command has an interface stability of Obsolete.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
|Interface Stability |Obsolete |
+-----------------------------+-----------------------------+
SEE ALSO
svcadm(1M), svccfg(1M), sshd(1M), attributes(5), smf(5)
SunOS 5.11 31 Aug 2006 netservices(1M)