Java Tech Client - Server Process connection
RMI is remote method invocation
CORBA is general tech/architecture, ORB = object request broker (interface to communicate with others P language)
IIOP is CORBA's protocol. CORBA IIOP has its own IDL (I... definition language).
RMI over IIOP is to run RMI to overcome the other P language, so that you dont need to learn the IIOP special language.
Windows Tech
DCOM - Distributed COM : is CORBA in windows
RPC : remote procedure call : the technology connected client and server, there is a spesial dll, called for example : rpcrt4.dll. Some application uses this dll as the interface. This to overcome a developer to create their own dll in their own language.
RPC/IP : used by exchange server and outlook client
RPC/HTTP : used by exchange server and outlook client which has slow connection
Unix Tech
Open Group’s Distributed Computing Environment (DCE) : RPC in UNix
Conclusion:
I would say the DCOM+RPC is equal to CORBA+IIOP.
Reference: http://technet.microsoft.com/en-us/library/cc787851(WS.10).aspx
Wednesday, 9 June 2010
Unix trick : ctrl - r and ctrl - s
Tips and tricks
ctrl - r ==> find reverse command in history
ctrl - s ==> ctrl - r in forward direction
if ctrl - s does not work : type stty -ixon beforehand.
Keep in mind those command can be pushed over and over again till you find what you want.
alt > ==> repeat cmd from last line in history
alt < ==> repeat cmd from first line in history
In VI:
type r ==> to replace a character after the cursor.
type R ==> to replace some characters after the cursor.
ctrl - r ==> find reverse command in history
ctrl - s ==> ctrl - r in forward direction
if ctrl - s does not work : type stty -ixon beforehand.
Keep in mind those command can be pushed over and over again till you find what you want.
alt > ==> repeat cmd from last line in history
alt < ==> repeat cmd from first line in history
In VI:
type r ==> to replace a character after the cursor.
type R ==> to replace some characters after the cursor.
Monday, 7 June 2010
process affinity processor
Linux:
xx@XX:~$ chrt --help
chrt (util-linux-ng 2.14.2)
usage: chrt [options] [prio] [pid | cmd [args...]]
manipulate real-time attributes of a process
-b, --batch set policy to SCHED_BATCH
-f, --fifo set policy to SCHED_FIFO
-i, --idle set policy to SCHED_IDLE
-p, --pid operate on existing given pid
-m, --max show min and max valid priorities
-o, --other set policy to SCHED_OTHER
-r, --rr set policy to SCHED_RR (default)
-h, --help display this help
-v, --verbose display status information
-V, --version output version information
You must give a priority if changing policy.
Report bugs and send patches to
xx@XX:~$ taskset -pc 1 32752
pid 32752's current affinity list: 0
pid 32752's new affinity list: 1
xx@XX:$ taskset --help
taskset (util-linux-ng 2.14.2)
usage: taskset [options] [mask | cpu-list] [pid | cmd [args...]]
set or get the affinity of a process
-p, --pid operate on existing given pid
-c, --cpu-list display and specify cpus in list format
-h, --help display this help
-V, --version output version information
The default behavior is to run a new command:
taskset 03 sshd -b 1024
You can retrieve the mask of an existing task:
taskset -p 700
Or set it:
taskset -p 03 700
List format uses a comma-separated list instead of a mask:
taskset -pc 0,3,7-11 700
Ranges in list format can take a stride argument:
e.g. 0-31:2 is equivalent to mask 0x55555555
xx@XX:$ pidstat
Linux 2.6.28-11-generic (XX) 06/07/2010 _i686_ (2 CPU)
01:44:27 PM PID %usr %system %guest %CPU CPU Command
01:44:27 PM 1 0.00 0.00 0.00 0.00 0 init
01:44:27 PM 3 0.00 0.00 0.00 0.00 0 migration/0
01:44:27 PM 4 0.00 0.05 0.00 0.05 0 ksoftirqd/0
01:44:27 PM 6 0.00 0.00 0.00 0.00 1 migration/1
pmap ==> pmap - report memory map of a process
strace ==> strace - trace system calls and signals
WINDOWS:
start cmd_process (you can set the cpu affinity)
taskmgr (you can change the cpu affinity)
xx@XX:~$ chrt --help
chrt (util-linux-ng 2.14.2)
usage: chrt [options] [prio] [pid | cmd [args...]]
manipulate real-time attributes of a process
-b, --batch set policy to SCHED_BATCH
-f, --fifo set policy to SCHED_FIFO
-i, --idle set policy to SCHED_IDLE
-p, --pid operate on existing given pid
-m, --max show min and max valid priorities
-o, --other set policy to SCHED_OTHER
-r, --rr set policy to SCHED_RR (default)
-h, --help display this help
-v, --verbose display status information
-V, --version output version information
You must give a priority if changing policy.
Report bugs and send patches to
xx@XX:~$ taskset -pc 1 32752
pid 32752's current affinity list: 0
pid 32752's new affinity list: 1
xx@XX:$ taskset --help
taskset (util-linux-ng 2.14.2)
usage: taskset [options] [mask | cpu-list] [pid | cmd [args...]]
set or get the affinity of a process
-p, --pid operate on existing given pid
-c, --cpu-list display and specify cpus in list format
-h, --help display this help
-V, --version output version information
The default behavior is to run a new command:
taskset 03 sshd -b 1024
You can retrieve the mask of an existing task:
taskset -p 700
Or set it:
taskset -p 03 700
List format uses a comma-separated list instead of a mask:
taskset -pc 0,3,7-11 700
Ranges in list format can take a stride argument:
e.g. 0-31:2 is equivalent to mask 0x55555555
xx@XX:$ pidstat
Linux 2.6.28-11-generic (XX) 06/07/2010 _i686_ (2 CPU)
01:44:27 PM PID %usr %system %guest %CPU CPU Command
01:44:27 PM 1 0.00 0.00 0.00 0.00 0 init
01:44:27 PM 3 0.00 0.00 0.00 0.00 0 migration/0
01:44:27 PM 4 0.00 0.05 0.00 0.05 0 ksoftirqd/0
01:44:27 PM 6 0.00 0.00 0.00 0.00 1 migration/1
pmap ==> pmap - report memory map of a process
strace ==> strace - trace system calls and signals
WINDOWS:
start cmd_process (you can set the cpu affinity)
taskmgr (you can change the cpu affinity)
Wednesday, 26 May 2010
Memory, Virtual memory, /3GB /USERVA, /PAE, PTE
virtual memory --> PTE/page table entry --> memory/paging (RAM/disk)
PTE : is the map table
In windows 32bit: 2GB is for kernel space, the other 2GB for shared/user.
32bit means it can allocate only up to 4GB memory.
The division means that each user process can have up to 2GB of virtual memory address.
/3GB ==> makes each user process can have up to 3GB (3072MB)
/USERVA ==> is a way to offset the lack of memory for PTE (PTE is in kernel space??).
So if /3gb is used, and /userva is used (ex. =3030), the PTE can have additional space as much as the substraction of them (3072-3030MB=42MB additional for kernel space : free PTE).
More detail : http://support.microsoft.com/kb/810371
/PAE ==> is a way to have more than 4GB memory recognised by the OS. It does not mean each process can have more than 2GB (or 3GB with /3GB on), but it means that there are some more space in memory to be used instead to be paged out to disk.
Wanna know deeper about address in memory, go to :
http://www.cs.cornell.edu/~tomf/notes/cps104/virtual.html
http://everything2.com/title/Page+Table+Entry
PTE : is the map table
In windows 32bit: 2GB is for kernel space, the other 2GB for shared/user.
32bit means it can allocate only up to 4GB memory.
The division means that each user process can have up to 2GB of virtual memory address.
/3GB ==> makes each user process can have up to 3GB (3072MB)
/USERVA ==> is a way to offset the lack of memory for PTE (PTE is in kernel space??).
So if /3gb is used, and /userva is used (ex. =3030), the PTE can have additional space as much as the substraction of them (3072-3030MB=42MB additional for kernel space : free PTE).
More detail : http://support.microsoft.com/kb/810371
/PAE ==> is a way to have more than 4GB memory recognised by the OS. It does not mean each process can have more than 2GB (or 3GB with /3GB on), but it means that there are some more space in memory to be used instead to be paged out to disk.
Wanna know deeper about address in memory, go to :
http://www.cs.cornell.edu/~tomf/notes/cps104/virtual.html
http://everything2.com/title/Page+Table+Entry
Tuesday, 25 May 2010
Threads in Processes
Threads are in process, they use the same address space of the process.
How to see threads inside process:
Linux: pstree
UNix : ptree
In general:
AIX : ps -mo THREAD -L pid
Linux : ps -L pid
Topas : press H
Manually, just go to : /proc/pid/lwp/threadsID
What can you do:
Linux : renice integerTID (TID = thread ID)
AIX : you can see which processor handle the threads and define which you want, detail:
http://www.ibm.com/developerworks/aix/library/au-aixprocesscontrol/index.html
Can you kill TID in runtime:
Yes, just kill TID, but not suggested, better to kill the process.
In one well-known application, kill a TID same like killing the whole process.
In the programming there is function to stop only thread though, do googling for it.
How to see threads inside process:
Linux: pstree
UNix : ptree
In general:
AIX : ps -mo THREAD -L pid
Linux : ps -L pid
Topas : press H
Manually, just go to : /proc/pid/lwp/threadsID
What can you do:
Linux : renice integerTID (TID = thread ID)
AIX : you can see which processor handle the threads and define which you want, detail:
http://www.ibm.com/developerworks/aix/library/au-aixprocesscontrol/index.html
Can you kill TID in runtime:
Yes, just kill TID, but not suggested, better to kill the process.
In one well-known application, kill a TID same like killing the whole process.
In the programming there is function to stop only thread though, do googling for it.
Monday, 24 May 2010
JSP and Servlet
JSP = java server pages (.jsp) = a html-like file which contain dynamic content (eg:date now)
html file extension can be changed into jsp extension, then that file will go through the tomcat translation ==> java file, then it'll be compiled into .class.
JSP basically is a html file with some java code inside (extrainfo: java code in a block is named scriplet, like function in vbs).
This html-jsp can import some java classes.
And can use bean as well, bean basically is a java class (java file compiled --> .class file), bean can have scope session (so can be used at diffrent session at which the bean containing diffrent value@property)
http://www.jsptut.com/Forms.jsp
EJB container manage the lifecycle of Ent bean, for statefull: doesntexist - ready - passive
active is in memory, passive in 2nd storage.
after ejbremove method called by ejbContainer, it is ready to be GC-ed.
http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/EJBConcepts9.html
More detail on this : http://www.jsptut.com/
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Servlet (a java class) : java programming language concentrate on web function
javax.servlet.http.HttpServletRequest
javax.servlet.http.HttpServletResponse
javax.servlet.jsp.JspWriter
javax.servlet.jsp.PageContext
More detail on this : http://www.jsptut.com/Further.jsp
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
So jsp is the presentation, and the servlet is the engine.
html file extension can be changed into jsp extension, then that file will go through the tomcat translation ==> java file, then it'll be compiled into .class.
JSP basically is a html file with some java code inside (extrainfo: java code in a block is named scriplet, like function in vbs).
This html-jsp can import some java classes.
And can use bean as well, bean basically is a java class (java file compiled --> .class file), bean can have scope session (so can be used at diffrent session at which the bean containing diffrent value@property)
http://www.jsptut.com/Forms.jsp
EJB container manage the lifecycle of Ent bean, for statefull: doesntexist - ready - passive
active is in memory, passive in 2nd storage.
after ejbremove method called by ejbContainer, it is ready to be GC-ed.
http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/EJBConcepts9.html
More detail on this : http://www.jsptut.com/
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Servlet (a java class) : java programming language concentrate on web function
javax.servlet.http.HttpServletRequest
javax.servlet.http.HttpServletResponse
javax.servlet.jsp.JspWriter
javax.servlet.jsp.PageContext
More detail on this : http://www.jsptut.com/Further.jsp
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
So jsp is the presentation, and the servlet is the engine.
Friday, 21 May 2010
IBM TDS / LDAP
bash-2.05b# ps -ef | grep ldapdb2
ldapdb2 614418 1106044 0 Mar 24 - 11:28 db2acd 0
ldapdb2 1134664 1106044 0 Mar 24 - 67:01 db2sysc 0
bash-2.05b$ ps -ef | grep ldapdb2svc ==> result 0 (normal - just info)
the process is "db2sysc" which open the 3700 port (this is the ldapdb2svc port)
bash-2.05b# ps -ef | grep ibmdiradm
ldap 638978 1 0 Mar 24 - 0:45 /usr/ldap//bin/ibmdiradm -l
bash-2.05b# ps -ef | grep ibmslapd | grep -v grep
ldap 688256 1 2 Mar 24 - 623:26 /usr/bin/ibmslapd
>>>>>>>>>>>>
Usage: ibmdiradm [options]
where:
options:
-f file use file as configuration file
-h level debug level. Use in conjunction with ldtrc
-p port use port as the port to start ibmdiradm on
-s SSLport use SSLport as the port to start ibmdiradm on
-V print version information
-? this help screen
bash-2.05b# ibmdiradm -V
Directory server version is IBM Tivoli Directory Admin Server(SSL), Version 5.2 (Oct 17 2005 17:13:43)
>>>>>>>>>>
bash-2.05b# ibmslapd --help
ibmslapd: illegal option -- -
Usage:
ibmslapd [ -a | -n | -c ]
where:
-a start server in configuration only mode
-n do not start server in configuration only mode
-c run in console mode
bash-2.05b# ibmslapd -v
Directory server version is IBM Tivoli Directory (SSL), Version 5.2 (Oct 17 2005 17:08:46)
>>>>>>>>>>>>>>>>>
bash-2.05b# ibmdirctl
You must specify a command
Usage: ibmdirctl [options] command -- [ibmslapd options]
where:
command: command to issue to ibmdiradm
must be one of start/stop/restart/status/admstop
start starts the IBM Tivoli Directory Server
stop stops the IBM Tivoli Directory Server
restart stops and starts the IBM Tivoli Directory Server
status displays whether the IBM Tivoli Directory Server is running
statusreturn sets exit code 0=running, 1=starting, 2=stopped
admstop stops the IBM Tivoli Directory Server Administration Daemon
options:
-D adminDn bind DN
-h hostname ibmdiradm hostname
-K keyfile file to use for keys
-N key_name private key name to use in keyfile
-p port ibmdiradm port number
-P key_pw keyfile password
-v run in verbose mode
-w adminPw bind password or '?' for non-echoed prompt
-Y use a secure ldap connection (TLS)
-Z use a secure ldap connection (SSL)
-? this help screen
ibmslapd options are any options the ibmslapd process takes
at startup time. These are ignored if the 'stop' command was issued.
If ibmslapd options are requested, they must be preceded by the '--'.
If the 'admstop' command is issued successfully, the IBM Tivoli Directory
Server Administration Daemon must be restarted manually. (red - ibmdiradm command)
>>>>>>>>>>>>>>>>>>>>>>>>
Example :
Knowing the status of ibmslapd:
ibmdirctl -D cn=root -w xxxxxx status
ibmdirctl -D cn=root -w ? status ==> for password prompt
Note if you get "connection error", try check ibmdiradm process there or not.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
PORTS (/etc/services/):
ldap 389/tcp # Lightweight Directory Access Protocol
ldap 389/udp # Lightweight Directory Access Protocol
ldaps 636/tcp # ldap protocol over TLS/SSL (was sldap)
ldaps 636/udp # ldap protocol over TLS/SSL (was sldap)
www-ldap-gw 1760/tcp # www-ldap-gw
www-ldap-gw 1760/udp # www-ldap-gw
ldap-admin 3407/tcp # LDAP admin server port
ldap-admin 3407/udp # LDAP admin server port
ldapdb2svc 3700/tcp
ldapdb2svci 3701/tcp
DB2_ldapdb2 60000/tcp
DB2_ldapdb2_1 60001/tcp
DB2_ldapdb2_2 60002/tcp
DB2_ldapdb2_END 60003/tcp
ibm-diradm 3538/tcp # IBM Directory Server
ibm-diradm 3538/udp # IBM Directory Server
ibm-diradm-ssl 3539/tcp # IBM Directory Server SSL
ibm-diradm-ssl 3539/udp # IBM Directory Server SSL
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
bash-2.05b$ db2 list node directory
Node Directory
Number of entries in the directory = 2
Node 1 entry:
Node name = IDSINODE
Comment =
Directory entry type = LOCAL
Protocol = LOCAL
Instance name = ldapdb2
Node 2 entry:
Node name = LDAPDB2N
Comment =
Directory entry type = LOCAL
Protocol = TCPIP
Hostname = localhost
Service name = ldapdb2svc
>>>>>>>>>>>>>>>>>>>>>>>>>>
Getting the config of DB2:
bash-2.05b$ db2 get dbmconfig
>>>>>>>>>>>>>>>>>
TROUBLE SHOOTING:
1. check the ldap db2 instance:
bash-2.05b$ db2 connect to ldapdb2 (ensure the set : DB2INSTANCE=ldapdb2)
Database Connection Information
Database server = DB2/AIX64 9.5.5
SQL authorization ID = LDAPDB2
Local database alias = LDAPDB2
2. db2 => LIST DATABASE DIRECTORY
System Database Directory
Number of entries in the directory = 2
Database 1 entry:
Database alias = LDAPDB2B
Database name = LDAPDB2
Node name = LDAPDB2N
Database release level = c.00
Comment =
Directory entry type = Remote
Catalog database partition number = -1
Alternate server hostname =
Alternate server port number =
Database 2 entry:
Database alias = LDAPDB2
Database name = LDAPDB2
Local database directory = /ldapdb2/data
Database release level = c.00
Comment =
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname =
Alternate server port number =
3. ldapsearch -p 389 -b "" -s base objectclass=*
namingcontexts=CN=SCHEMA
namingcontexts=CN=LOCALHOST
namingcontexts=CN=PWDPOLICY
namingcontexts=CN=IBMPOLICIES
namingcontexts=SECAUTHORITY=DEFAULT
namingcontexts=DC=AMM,DC=XX,DC=NL
subschemasubentry=cn=schema
supportedextension=1.3.18.0.2.12.1
.......
supportedextension=1.3.18.0.2.12.37
supportedcontrol=2.16.840.1.113730.3.4.2
......
supportedcontrol=1.3.18.0.2.10.18
security=none
port=389
supportedsaslmechanisms=CRAM-MD5
supportedsaslmechanisms=DIGEST-MD5
supportedldapversion=2
supportedldapversion=3
ibmdirectoryversion=5.2
ibm-ldapservicename=deehqws011oxixm
ibm-serverId=8d6c19c0-30ea-102a-9241-8d6a2b010899
ibm-supportedacimechanisms=1.3.18.0.2.26.3
ibm-supportedacimechanisms=1.3.18.0.2.26.4
ibm-supportedacimechanisms=1.3.18.0.2.26.2
vendorname=International Business Machines (IBM)
vendorversion=5.2
ibm-sslciphers=N/A
ibm-slapdisconfigurationmode=FALSE
ibm-slapdSizeLimit=500
ibm-slapdTimeLimit=900
ibm-slapdDerefAliases=always
ibm-supportedAuditVersion=2
ibm-sasldigestrealmname=xxxxxxxxx----(red:hostname)
4. ldapsearch -b dc=amm,dc=xx,dc=nl '(uid=at*)'
ldapsearch -b dc=amm,dc=xx,dc=nl '(uid=at*)' dn
???????????????????????????????????????????????????????????????
ldapdb2 614418 1106044 0 Mar 24 - 11:28 db2acd 0
ldapdb2 1134664 1106044 0 Mar 24 - 67:01 db2sysc 0
bash-2.05b$ ps -ef | grep ldapdb2svc ==> result 0 (normal - just info)
the process is "db2sysc" which open the 3700 port (this is the ldapdb2svc port)
bash-2.05b# ps -ef | grep ibmdiradm
ldap 638978 1 0 Mar 24 - 0:45 /usr/ldap//bin/ibmdiradm -l
bash-2.05b# ps -ef | grep ibmslapd | grep -v grep
ldap 688256 1 2 Mar 24 - 623:26 /usr/bin/ibmslapd
>>>>>>>>>>>>
Usage: ibmdiradm [options]
where:
options:
-f file use file as configuration file
-h level debug level. Use in conjunction with ldtrc
-p port use port as the port to start ibmdiradm on
-s SSLport use SSLport as the port to start ibmdiradm on
-V print version information
-? this help screen
bash-2.05b# ibmdiradm -V
Directory server version is IBM Tivoli Directory Admin Server(SSL), Version 5.2 (Oct 17 2005 17:13:43)
>>>>>>>>>>
bash-2.05b# ibmslapd --help
ibmslapd: illegal option -- -
Usage:
ibmslapd [ -a | -n | -c ]
where:
-a start server in configuration only mode
-n do not start server in configuration only mode
-c run in console mode
bash-2.05b# ibmslapd -v
Directory server version is IBM Tivoli Directory (SSL), Version 5.2 (Oct 17 2005 17:08:46)
>>>>>>>>>>>>>>>>>
bash-2.05b# ibmdirctl
You must specify a command
Usage: ibmdirctl [options] command -- [ibmslapd options]
where:
command: command to issue to ibmdiradm
must be one of start/stop/restart/status/admstop
start starts the IBM Tivoli Directory Server
stop stops the IBM Tivoli Directory Server
restart stops and starts the IBM Tivoli Directory Server
status displays whether the IBM Tivoli Directory Server is running
statusreturn sets exit code 0=running, 1=starting, 2=stopped
admstop stops the IBM Tivoli Directory Server Administration Daemon
options:
-D adminDn bind DN
-h hostname ibmdiradm hostname
-K keyfile file to use for keys
-N key_name private key name to use in keyfile
-p port ibmdiradm port number
-P key_pw keyfile password
-v run in verbose mode
-w adminPw bind password or '?' for non-echoed prompt
-Y use a secure ldap connection (TLS)
-Z use a secure ldap connection (SSL)
-? this help screen
ibmslapd options are any options the ibmslapd process takes
at startup time. These are ignored if the 'stop' command was issued.
If ibmslapd options are requested, they must be preceded by the '--'.
If the 'admstop' command is issued successfully, the IBM Tivoli Directory
Server Administration Daemon must be restarted manually. (red - ibmdiradm command)
>>>>>>>>>>>>>>>>>>>>>>>>
Example :
Knowing the status of ibmslapd:
ibmdirctl -D cn=root -w xxxxxx status
ibmdirctl -D cn=root -w ? status ==> for password prompt
Note if you get "connection error", try check ibmdiradm process there or not.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
PORTS (/etc/services/):
ldap 389/tcp # Lightweight Directory Access Protocol
ldap 389/udp # Lightweight Directory Access Protocol
ldaps 636/tcp # ldap protocol over TLS/SSL (was sldap)
ldaps 636/udp # ldap protocol over TLS/SSL (was sldap)
www-ldap-gw 1760/tcp # www-ldap-gw
www-ldap-gw 1760/udp # www-ldap-gw
ldap-admin 3407/tcp # LDAP admin server port
ldap-admin 3407/udp # LDAP admin server port
ldapdb2svc 3700/tcp
ldapdb2svci 3701/tcp
DB2_ldapdb2 60000/tcp
DB2_ldapdb2_1 60001/tcp
DB2_ldapdb2_2 60002/tcp
DB2_ldapdb2_END 60003/tcp
ibm-diradm 3538/tcp # IBM Directory Server
ibm-diradm 3538/udp # IBM Directory Server
ibm-diradm-ssl 3539/tcp # IBM Directory Server SSL
ibm-diradm-ssl 3539/udp # IBM Directory Server SSL
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
bash-2.05b$ db2 list node directory
Node Directory
Number of entries in the directory = 2
Node 1 entry:
Node name = IDSINODE
Comment =
Directory entry type = LOCAL
Protocol = LOCAL
Instance name = ldapdb2
Node 2 entry:
Node name = LDAPDB2N
Comment =
Directory entry type = LOCAL
Protocol = TCPIP
Hostname = localhost
Service name = ldapdb2svc
>>>>>>>>>>>>>>>>>>>>>>>>>>
Getting the config of DB2:
bash-2.05b$ db2 get dbmconfig
>>>>>>>>>>>>>>>>>
TROUBLE SHOOTING:
1. check the ldap db2 instance:
bash-2.05b$ db2 connect to ldapdb2 (ensure the set : DB2INSTANCE=ldapdb2)
Database Connection Information
Database server = DB2/AIX64 9.5.5
SQL authorization ID = LDAPDB2
Local database alias = LDAPDB2
2. db2 => LIST DATABASE DIRECTORY
System Database Directory
Number of entries in the directory = 2
Database 1 entry:
Database alias = LDAPDB2B
Database name = LDAPDB2
Node name = LDAPDB2N
Database release level = c.00
Comment =
Directory entry type = Remote
Catalog database partition number = -1
Alternate server hostname =
Alternate server port number =
Database 2 entry:
Database alias = LDAPDB2
Database name = LDAPDB2
Local database directory = /ldapdb2/data
Database release level = c.00
Comment =
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname =
Alternate server port number =
3. ldapsearch -p 389 -b "" -s base objectclass=*
namingcontexts=CN=SCHEMA
namingcontexts=CN=LOCALHOST
namingcontexts=CN=PWDPOLICY
namingcontexts=CN=IBMPOLICIES
namingcontexts=SECAUTHORITY=DEFAULT
namingcontexts=DC=AMM,DC=XX,DC=NL
subschemasubentry=cn=schema
supportedextension=1.3.18.0.2.12.1
.......
supportedextension=1.3.18.0.2.12.37
supportedcontrol=2.16.840.1.113730.3.4.2
......
supportedcontrol=1.3.18.0.2.10.18
security=none
port=389
supportedsaslmechanisms=CRAM-MD5
supportedsaslmechanisms=DIGEST-MD5
supportedldapversion=2
supportedldapversion=3
ibmdirectoryversion=5.2
ibm-ldapservicename=deehqws011oxixm
ibm-serverId=8d6c19c0-30ea-102a-9241-8d6a2b010899
ibm-supportedacimechanisms=1.3.18.0.2.26.3
ibm-supportedacimechanisms=1.3.18.0.2.26.4
ibm-supportedacimechanisms=1.3.18.0.2.26.2
vendorname=International Business Machines (IBM)
vendorversion=5.2
ibm-sslciphers=N/A
ibm-slapdisconfigurationmode=FALSE
ibm-slapdSizeLimit=500
ibm-slapdTimeLimit=900
ibm-slapdDerefAliases=always
ibm-supportedAuditVersion=2
ibm-sasldigestrealmname=xxxxxxxxx----(red:hostname)
4. ldapsearch -b dc=amm,dc=xx,dc=nl '(uid=at*)'
ldapsearch -b dc=amm,dc=xx,dc=nl '(uid=at*)' dn
???????????????????????????????????????????????????????????????
Subscribe to:
Posts (Atom)