zioinfo-mail/scripts/setup/jenkins_fix.py
DESKTOP-TKLFCPR\ython 28d3ba4836 refactor(cleanup): commit folder reorganization - scripts/, _archive/, docs/ restructure
- Move backend/frontend/messenger/ old paths to _archive/
- Reorganize scripts into scripts/deploy, check, push, setup, misc
- Move docs (pptx, docx) to docs/
- Add .claude agents and skills for fullstack/folder-cleanup harness
- workspace/ projects remain intact

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-01 19:43:09 +09:00

22 lines
920 B
Python

import paramiko, sys, time
sys.stdout.reconfigure(encoding='utf-8', errors='replace')
client = paramiko.SSHClient()
client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
client.connect('101.79.17.164', username='root', password='1q2w3e!Q', timeout=15)
def run(label, cmd, timeout=30):
print(f'\n[{label}]')
_, o, e = client.exec_command(cmd, timeout=timeout)
out = o.read().decode('utf-8', errors='replace').strip()
if out: print(out[:400])
return out
# Jenkins가 400을 반환하는 이유 확인
run('Jenkins 응답 상세', 'curl -sv http://localhost:8080/api/json 2>&1 | head -30')
run('Jenkins 설정 파일', 'cat /var/lib/jenkins/config.xml 2>/dev/null | head -20')
run('Jenkins 설치 상태', 'cat /var/lib/jenkins/jenkins.install.InstallUtil.lastExecVersion 2>/dev/null')
run('Nginx Jenkins 설정', 'cat /etc/nginx/sites-enabled/jenkins 2>/dev/null | head -20')
client.close()