Posts

AIX Logging Configurations

Image
Clash Royale CLAN TAG #URR8PPP up vote 0 down vote favorite I would like monitor specific/target files and directories on AIX server by enabling audit on only those files and directories without enabling global file and directory auditing. The specific files and directories contain critical information as payment data and configurations. Actions required for auditing: file/directory access, content/name modifications and deletions. File example (filename: outgoing_eft.txt): /data/outgoing_payments/outgoing_eft.txt Directory example (directory name: incoming_payments): /data/incoming_payments/ Once audit is enabled, logs will be forwarded to QRadar SIEM via, say, syslog. Question: How do I enable that specific/target file and directory audit? logs aix syslog audit share | improve this question edited May 2 at 12:27 Jeff Schaller 31.1k 8 46 105 asked May 2 at 12:25 K Korir 1 High level (apologies for not creating an Answer ye...

DRBD no output of cat /proc/drbd

Image
Clash Royale CLAN TAG #URR8PPP up vote 1 down vote favorite I sync my new disk, output of drbdtop : Resource: myres: (Overall danger score: 14) Local Disc(Primary): volume 0 (/dev/drbd0): UpToDate(normal disk state) volume 1 (/dev/drbd1): UpToDate(normal disk state) volume 2 (/dev/drbd2): Inconsistent(data is not accessible or usable until resync is complete) Connection to zfs.user.osdc2(Secondary): Connected(connected to zfs.user.osdc2) volume 0: UpToDate(normal disk state) volume 1: UpToDate(normal disk state) volume 2: Replication:SyncTarget(local volume is being synchronized with data from zfs.user.osdc2) 95.6% remaining UpToDate(normal disk state) But there is no output in cat /proc/drbd about my resource. Only: version: 9.0.9-1 (api:2/proto:86-112) GIT-hash: f7b979e7af01813e031aac579140237640c94569 build by mockbuild@, 2017-09-14 17:45:45 Transports (api:16): tcp (9.0.9-1) Why there is no output? How should I resolve this issue? drbd share | improve this quest...

How to delete all the files which are not created today

Image
Clash Royale CLAN TAG #URR8PPP up vote 1 down vote favorite I want to delete all the files in a folder which are not created today. I know how to get the list of files which are created today using find . -type f -mtime -1 But, I am not getting how to get the list of all files which are not created today. Basically I have to find if there are files with old timestamp except today in a folder. If present I have to delete only the old files. linux files find date rm share | improve this question edited May 2 at 14:31 Jeff Schaller 31.1k 8 46 105 asked May 2 at 12:36 NJMR 108 3 Linux only keeps creation times for ext4 and btrfs as far as I know. -mtime gives the last time that the file was modified in any way including the contents, ownership, permissions, and name changes so neither your command nor those in the answers will delete files which weren't created today. It will delete files which weren't modified toda...