Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Tuesday, 4 January 2022

Linux useful commands

Linux find and copy command with time and date range

 find -type f -newermt "2022-1-4 00:00:00" \! -newermt "2022-1-4 10:30:00" -exec cp {} /tmp/test/ \;

Tuesday, 22 October 2019

Netstat command



 Below netstat commands are helpful while troubleshooting the Socket timeout issue. 


  • ·         netstat -ie                          -- to show all interfaces
  • ·         netstat –r                            -- show current rounting table
  • ·         netstat –C                           -- show the current active connection
  • ·         netstat -at                            -- show all the current connection,
  -l    -- listen on local machine
  -p  -- processes

  • ·         netstat -tanp | grep PID
  • ·         netstat -nap | grep :Port
      Most of the 11 TCP states are easy to understand and most programmers know what they mean:
CLOSED: There is no connection.
LISTEN: The local end-point is waiting for a connection request from a remote end-point i.e. a passive open was performed.
SYN-SENT: The first step of the three-way connection handshake was performed. A connection request has been sent to a remote end-point i.e. an active open was performed.
SYN-RECEIVED: The second step of the three-way connection handshake was performed. An acknowledgement for the received connection request as well as a connection request has been sent to the remote end-point.
ESTABLISHED: The third step of the three-way connection handshake was performed. The connection is open.
FIN-WAIT-1: The first step of an active close (four-way handshake) was performed. The local end-point has sent a connection termination request to the remote end-point.
CLOSE-WAIT: CLOSE_WAIT means the operating system knows that the remote application has closed the connection and waits for the local application to also do so.
FIN-WAIT-2: The remote end-point has sent an acknowledgement for the previously sent connection termination request. The local end-point waits for an active connection termination request from the remote end-point.If the count is high then may be there is some issue, application is not closing the connection properly. Lots of FIN-WAIT-2 connection ead to a memory overflow.
LAST-ACK: The local end-point has performed a passive close and has initiated an active close by sending a connection termination request to the remote end-point.
CLOSING: The local end-point is waiting for an acknowledgement for a connection termination request before going to the TIME-WAIT state.
TIME-WAIT: The local end-point waits for twice the maximum segment lifetime (MSL) to pass before going to CLOSED to be sure that the remote end-point received the acknowledgement

Friday, 2 December 2016

WebCenter Portal Security Layers

WebCenter Portal Security Layers




WebCenter Portal applications share the same four bottom security layers (WebCenter Security Framework, ADF Security, OPSS, and WebLogic Server Security). The application layer will, of course, depend on the implementation.

1. WebCenter Portal Application Security
WebCenter Portal provides support for:
Application role management and privilege mapping
Self-registration
Portal-level security management
External application credential management

2. WebCenter Portal Security Framework
The WebCenter Portal Security Framework provides support for:
Service Security Extension Framework (a common permission-based and role-mapping based model for specifying the security model for services)
Permission-based authorization
Role-mapping based authorization
External applications and credential mapping
3. ADF Security
ADF Security provides support for:
Page authorization
Task flow authorization
Secure connection management
Credential mapping APIs
Logout invocation, including logout from SSO-enabled configurations with Oracle Access Manager and Oracle SSO
Secured login URL for ADF Security-based applications (the adfAuthentication servlet)

5. Oracle Platform Security Services (OPSS)
OPSS provides support for:
Anonymous-role
Authenticated-role
Identity store, policy store, and credential store
Identity Management Services
Oracle Web Service Manager Security
Authorization
Policy and Credential Lifecycle

6. WebLogic Server Security
WebLogic Server Security provides support for:
WebLogic authenticators
Identity asserters
J2EE container security
SSL


Friday, 13 May 2016

Easy steps to resize partition on Linux using btrfs filesystem

The BRTFS file system has a advanced features from ext4 file system, Resizing of file file system with brtfs is very easy. In this case we are resizing /home directory to extend / partition

step 1 : Reduce the 200 G from /home partition

#btrfs filesystem resize -200G /home

step 2 :- check the /home partition is reduced

#btrfs filesystem show df /home

#btrfs filesystem df /home

#btrfs filesystem show

# btrfs filesystem resize -200G /home

Step 3: –

#lvdisplay

#lvreduce -L -200G /dev/mapper/vg_XXXXXX-lv_home

Extend The root partition: –

#lvextend -L +200G /dev/mapper/vg_XXXXXXX-lv_root

#btrfs filesystem resize +200G /

#df

#lvdisplay

#btrfs filesystem show

#btrfs filesystem df /

#btrfs filesystem df /home

There is no need to stop any process.