Howto: Recover a file when you don’t know inode number in Linux

Delete a file called abc.sh: rm abc.sh Type the following command: # debugfs -w /dev/mapper/root At debugfs: prompt type lsdel command: debugfs: lsdel Sample outputs: Inode Owner Mode Size Blocks Time deleted 2113537 0 120777 3 1/ 1 Tue May 1 06:21:22 2016 1 deleted inodes found. Get block data, enter: debugfs: logdump -i <2113537> …

Howto: Recover a file when you don’t know inode number in Linux Read More »

AWS RDS IAM Policy for Read Only Access and DB Logs Download

{ “Version”: “2012-10-17”, “Statement”: [ { “Action”: [ “rds:Describe*”, “rds:ListTagsForResource”, “rds:Download*”, “ec2:DescribeAccountAttributes”, “ec2:DescribeAvailabilityZones”, “ec2:DescribeSecurityGroups”, “ec2:DescribeVpcs” ], “Effect”: “Allow”, “Resource”: “*” }, { “Action”: [ “cloudwatch:GetMetricStatistics”, “logs:DescribeLogStreams”, “logs:GetLogEvents” ], “Effect”: “Allow”, “Resource”: “*” } ] }

Setup AWS Cloudwatch Memory and Drive Monitoring on RHEL

Download Scripts https://aws.amazon.com/code/8720044071969977 Install Prerequisite Packages sudo yum install wget unzip perl-core perl-DateTime perl-Sys-Syslog perl-CPAN perl-libwww-perl perl-Crypt-SMIME perl-Crypt-SSLeay Install LWP Perl Bundles Launch cpan sudo perl -MCPAN -e shell Install Bundle install Bundle::LWP6 LWP YAML Install Script wget http://aws-cloudwatch.s3.amazonaws.com/downloads/CloudWatchMonitoringScripts-1.2.1.zip unzip CloudWatchMonitoringScripts-1.2.1.zip -d /opt rm -f CloudWatchMonitoringScripts-1.2.1.zip Setup Credentials API Access Key (Option 1) This is …

Setup AWS Cloudwatch Memory and Drive Monitoring on RHEL Read More »

What process is listening on a certain port on Solaris? / How to find out which process listens on certain port on Solaris?

Scenario: I’m looking for PID for which PORT 2817 is using here in Solaris 11. -bash-3.2# netstat -an | grep 2817 *.2817 *.* 0 0 49152 0 LISTEN 10.0.50.81.2817 10.0.50.81.37374 49152 0 49152 0 CLOSE_WAIT 10.0.50.81.2817 10.0.50.81.35510 49152 0 49152 0 CLOSE_WAIT 10.0.50.81.2817 10.0.50.81.34478 49152 0 49152 0 CLOSE_WAIT Here is a script, I found …

What process is listening on a certain port on Solaris? / How to find out which process listens on certain port on Solaris? Read More »

Scroll to Top