본문 바로가기 메뉴 바로가기

fendys

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

fendys

검색하기 폼
  • ALL fendys write (151)
    • AWS (21)
    • linux (93)
    • security (0)
    • ansible (13)
    • monitoring (2)
    • VM (0)
    • DB (4)
    • windows (4)
    • it (12)
    • 가상화폐 (0)
  • 방명록

linux (93)
packer ami update

request - version check!!!#yum-config-manager --add-repo https://rpm.releases.hashicorp.com/AmazonLinux/hashicorp.repo#yum install terraform#yum install ansible#pip install --upgrade awscli#packer plugins install github.com/hashicorp/amazon#packer plugins install github.com/hashicorp/ansible ###### ami-update.json#### use packer build ami-update.json{ "_comment": "AMI using Amazon Linux2", "va..

linux 2024. 8. 2. 00:27
"grubby" 커널 변경 명령어

oracle linux8 버전에서 검증 되었습니다.grubby --info=ALL #변경 가능한 전체 커널 버전을 보여준다.[root@fendys ~]# grubby --info=ALL index=0kernel="/boot/vmlinuz-5.4.17-2136.300.7.el8uek.x86_64"args="ro crashkernel=auto LANG=en_US.UTF-8 console=tty0 console=ttyS0,115200n8 rd.luks=0 rd.lvm=0 rd.md=0 rd.dm=0 net.ifnames=1 nvme_core.shutdown_timeout=10 nvme_core.io_timeout=4294967295 ipmi_si.tryacpi=0 ipmi_si.trydmi=0 ipmi_si...

linux 2024. 7. 10. 16:14
sed 활용

sed command를 통해서 아래 포함할문구1 또는 포함할문구2 가 있는 라인은 삭제 하고 /data/result/filename명으로 저장한다. #!/bin/bash for file in ls * do if [ -f $file ] then tmpfile="$file" mkdir -p /data/result wc -l $file >> /data/result/result.log sed -e '/{포함할문구1}\|{포함할문구2}/d' $file > /data/result/$tmpfile wc -l /data/result/$file >> /data/result/result.log fi done sed command를 통해서 아래 {team\\\":{\\\"number\\\":\\\"[0-9]\{16\}} 을..

linux 2024. 4. 5. 20:36
grub2 설정 변경

# vi /etc/default/grub --> 수정 # grub2-mkconfig -o /boot/grub2/grub.cfg (BIOS) # grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg (EFI)

linux 2023. 11. 30. 16:29
linux 유저 생성 스크립트

사전 조건 유저가 직접 패스워드 변경 해야됨 명령어 통제를 그룹 단위로 하고 있음 초기 로그인 시도 시 무조건 패스워드 변경 해야됨 신규 유저 생성시 패스워드 만료 작업이 자주 누락되어 사용함 #!/bin/bash read -p "Your name : " user PS3='Please Select team: ' select team in "a-team" "b-team" do echo "$team - $user " useradd -g $team $user echo 'password1!' | passwd --stdin $user passwd --expire $user break done exit 0

linux 2023. 11. 1. 14:28
linux bash user 90 day no login chshell nologin!

#!/bin/bash today=$(date +%Y%m%d') rbashuser=$(cat /etc/passwd |grep rbash |awk 'BEGIN {FS = ":"} {print $1}'|egrep -v "root|nike|secupang") for user in $rbashuser do auser=$user buser=$(lastlog -u $user |grep $user |awk '{print $1}') #buser=$(lastlog -b 90 -u $user |grep $user |awk '{print $1}') if [ "$auser" != "$buser" ] then echo $auser login !! else echo $auser nologin 90day change nologin ..

linux 2023. 11. 1. 14:22
linux 90 days no login users change nologin mode! bash scripts

ad join이 불가한 상황에 유저 패스워드 만료 및 어카운트 비활성화 관련 bash scripts cron해서 사용 하면 됨 #!/bin/bash today=$(date +%Y%m%d) expiredate=$(date -d "+1 week" "+%Y-%m-%d") rbashuser=$(cat /etc/passwd |grep rbash |awk 'BEGIN {FS = ":"} {print $1}'|egrep -v "root|admin") for user in $rbashuser do auser=$user buser=$(lastlog -b 90 -u $user |grep $user |awk '{print $1}') if [ "$auser" != "$buser" ] then resultuser=$(chage..

linux 2023. 10. 21. 01:10
logstash pipline output

fendys.myqnapcloud.com kafka -> local server file input { kafka { bootstrap_servers => "fendys.myqnapcloud.com:9094" topics_pattern => ".*" codec => json group_id => "all-log-idc-backup" consumer_threads => "10" } } filter { if [service][name] { if [service][type] { mutate { replace => { "[@metadata][archive][namespace]" => "%{[service][name]}/%{+YYYY}-%{+MM}-%{+dd}-%{[service][name]}-%{[service..

linux 2023. 6. 14. 15:50
이전 1 2 3 4 ··· 12 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • [여행] warmfree
  • [재미] wowns
TAG
  • DL20 GEN9 장비에 CentOS 7
  • nxos ansible
  • cisco ansible
  • 윈도우서버 계정 관려
  • ansible ios
  • ISCSI 볼륨 RAC
  • nutanix rac
  • centos7 ntp
  • cmd로 계정 생성
  • vm rac
  • ios ansible
  • chrony
  • dl20
  • dl20 g9 centos7 설치
  • linux command log
  • ansible network
  • dl20 centos7
  • 특정 라인삭제
  • 리눅스 커맨드 로그남기기
  • cgroup
  • 윈도우 cmd 계정 관리
  • cmd로 윈도우 계정 관리
  • oracle linux8 kernel
  • shell connmad log
  • 특정 문구 치환
  • CentOS 7 GUI
  • windows.old 강제삭제
  • ipmi
  • ILO
  • kernel 변경
more
«   2025/08   »
일 월 화 수 목 금 토
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바