03-27-2015
I have refined my script, comments are now excluded from the search.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi!
We are having problems with our unix servers (SunOS 5.9) that services for some of our applications are continuously going down. (this is more due to the applications installed than the UNIX OS).
What I am looking for is some kind of administrative tool where I can set what service to scan... (1 Reply)
Discussion started by: erinor
1 Replies
2. UNIX for Dummies Questions & Answers
We have lost our Sys Admin and with the DST changes.. i need to make sure all services are re-started on a SUN server running SUNOS 5.9
How can i list what is running and make sure they are running after the DST patches are applied? (2 Replies)
Discussion started by: JanSP
2 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. Shell Programming and Scripting
I am trying to fetch failed process but while doing that unable to do so. like;
(1)ps -ef | grep snmpCollect
o/p is coming like -
root 12423 4393 1 19:44:06 pts/0 0:00 grep snmpCollect
(2)ps -ef | grep sttps
o/p-
root 15517 4393 0 19:53:24 pts/0 0:00 grep sttps... (6 Replies)
Discussion started by: kumarabhi84
6 Replies
5. Programming
Hi,
I need to write a code which will fetch all the application activity on user computers including app name, time of day, duration, version, etc.
Using this I need to know which applications are running currently in user's computers.
How can it be done programmatically? I need to write the... (1 Reply)
Discussion started by: arunarora
1 Replies
6. SuSE
Hi Dear Guys:
I want to get a list of running services. Is there any command having this functionality? (3 Replies)
Discussion started by: crest.boy
3 Replies
7. UNIX for Advanced & Expert Users
I did search on the subject on services in linux and they do explain how to find what are the services that loaded when the linux boot.
however I have not find how to detect what services run right now.
I would like to now that and how to kill services.
Thanks. (3 Replies)
Discussion started by: programAngel
3 Replies
8. HP-UX
Hi,
I am trying to list down list of running services, corresponding package name and status on HP-UX box. The output will be a CSV in a fashion:- Service Name, Package Name, Status.
While working on Linux centos, I used chkconfig to do the same. Below was the snippet:-
for i in `chkconfig... (3 Replies)
Discussion started by: Happy83
3 Replies
9. SuSE
Hi,
We have a ldap server configured with services (port) and want to know how to fetch that to the ldap clients:
# cat /etc/nsswitch.conf|grep -i services
services: files sss (neither sss nor ldap works)
by doing "#getent services" I am getting only the result from /etc/services but I... (1 Reply)
Discussion started by: Sridaran
1 Replies
LEARN ABOUT CENTOS
ldif2db.pl
LDIF2DB.PL(8) System Manager's Manual LDIF2DB.PL(8)
NAME
ldif2db.pl - Directory Server perl script for importing a LDIF file
SYNOPSIS
ldif2db.pl -n backend [-Z serverID] [-D rootdn] { -w password | -w - | -j filename } [-P protocol] {-s includeSuffix}* [{-x excludeSuf-
fix}*] [-O] [-c chunksize] [-v] [-h] [-g [string]] [-G namespace_id] {-i filename}*
DESCRIPTION
Imports LDIF file(s) into the server. Either the option '-n' or '-s' must be used. This script creates an entry in the directory that
launches this dynamic task.
OPTIONS
A summary of options is included below:
-Z Server Identifier
The server ID of the Directory Server instance. If there is only one instance on the system, this option can be skipped.
-D Root DN
The Directory Manager DN, or root DN. If not specified, the script will search the server instance configuration for the value.
-w password
The rootdn password.
-w -
Prompt for the rootdn password.
-j password filename
The name of the file that contains the root DN password.
-n Backend Name
The name of the LDBM database to restore. Example: userRoot
-s includeSuffix
Specifies the suffixes to be included or specifies the subtrees to be included.
-x excludeSuffix
Specifies the suffixes to be excluded or specifies the subtrees to be excluded.
-i filename
Name for the LDIF file to import.
-g [string]
Generates a unique ID. Type none for no unique ID to be generated and deterministic for the generated unique ID to be name-based. By
default, a time-based unique ID is generated. When using the deterministic generation to have a name-based unique ID, it is also
possible to specify the namespace for the server to use, as follows:
-g deterministic namespaceId
namespaceId is a string of characters in the format 00-xxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxx.
-G namespace_id
Generates a namespace ID as a name-based unique ID. This is the same as specifying the -g deterministic option.
-P Protocol
The connection protocol to connect to the Directory Server. Protocols are STARTTLS, LDAPS, LDAPI, and LDAP. If this option is
skipped, the most secure protocol that is available is used. For LDAPI, AUTOBIND is also available for the root user.
-O
Requests that only the core database is created without attribute indexes.
-c Chunk size
The number of entries to process before starting a fresh pass during the import. By default this is handled internally by the
server.
-v
Display verbose ouput
-h
Display usage
EXAMPLE
ldif2db.pl -Z instance1 -n userRoot -i /LDAP/ldif/data.ldif
ldif2db.pl -s "dc=example,dc=com" -i /LDAP/ldif/data.ldif -D 'cn=directory manager' -w password -P STARTTLS
Note: security must be enabled to use protocol STARTTLS. If STARTTLS is not available it will default to next strongest/available
protocol automatically.
DIAGNOSTICS
Exit status is zero if no errors occur. Errors result in a non-zero exit status and a diagnostic message being written to standard error.
AUTHOR
ldif2db.pl was written by the 389 Project.
REPORTING BUGS
Report bugs to http://bugzilla.redhat.com.
COPYRIGHT
Copyright (C) 2013 Red Hat, Inc.
Mar 5, 2013 LDIF2DB.PL(8)