Move 150+ scripts from root and scripts/ into client/project directories: - clients/dataforth/scripts/ (110 files: AD2, sync, SSH, DB, DOS scripts) - clients/bg-builders/scripts/ (14 files: Lesley mgmt, Exchange, termination) - clients/internal-infrastructure/scripts/ (10 files: GDAP, Gitea, backups) - projects/msp-tools/scripts/ (9 files: CIPP, MSP onboarding, Datto) - projects/gururmm-agent/scripts/ (3 files: API test, JWT, record counts) - clients/glaztech/scripts/ (1 file: CentraStage removal) Also reorganized: - VPN scripts → infrastructure/vpn-configs/ - Retrieved API/JS files → api/ - Forum posts → projects/community-forum/forum-posts/ - SSH docs → clients/internal-infrastructure/docs/ - NWTOC/CTONW docs → projects/wrightstown-smarthome/docs/ - ACG website files → projects/internal/acg-website-2025/ - Dataforth docs → clients/dataforth/docs/ - schema-retrieved.sql → docs/database/ Deleted 24 tmp_*.ps1 one-off debug scripts (preserved in git history). Root reduced from 220+ files to 62 items (docs + directories only). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
50 lines
1.8 KiB
Batchfile
50 lines
1.8 KiB
Batchfile
@echo off
|
|
REM Check if old database at 172.16.3.20 is accessible
|
|
|
|
echo ==========================================
|
|
echo Checking Old Database (Jupiter 172.16.3.20)
|
|
echo ==========================================
|
|
echo.
|
|
|
|
echo [1] Testing connectivity to Jupiter...
|
|
plink -batch guru@172.16.3.20 "echo 'Connected successfully'" 2>nul
|
|
if errorlevel 1 (
|
|
echo ERROR: Cannot connect to Jupiter ^(172.16.3.20^)
|
|
echo.
|
|
echo Possible issues:
|
|
echo - Server is down
|
|
echo - Network issue
|
|
echo - SSH not accessible
|
|
echo.
|
|
goto :end
|
|
)
|
|
|
|
echo Connected successfully
|
|
echo.
|
|
|
|
echo [2] Checking if MariaDB Docker container is running...
|
|
plink -batch guru@172.16.3.20 "docker ps --filter 'name=mariadb' --format '{{.Names}} - {{.Status}}'" 2>nul
|
|
echo.
|
|
|
|
echo [3] Checking database connectivity...
|
|
plink -batch guru@172.16.3.20 "docker exec mariadb mysql -u claudetools -pCT_e8fcd5a3952030a79ed6debae6c954ed -D claudetools -e \"SELECT VERSION();\" 2>/dev/null" 2>nul
|
|
if errorlevel 1 (
|
|
echo ERROR: Cannot connect to database
|
|
goto :end
|
|
)
|
|
echo.
|
|
|
|
echo [4] Checking for conversation_contexts data...
|
|
plink -batch guru@172.16.3.20 "docker exec mariadb mysql -u claudetools -pCT_e8fcd5a3952030a79ed6debae6c954ed -D claudetools -e \"SELECT COUNT(*) as context_count FROM conversation_contexts;\" 2>/dev/null" 2>nul
|
|
echo.
|
|
|
|
echo [5] Checking for other data...
|
|
plink -batch guru@172.16.3.20 "docker exec mariadb mysql -u claudetools -pCT_e8fcd5a3952030a79ed6debae6c954ed -D claudetools -e \"SELECT TABLE_NAME, TABLE_ROWS FROM information_schema.TABLES WHERE TABLE_SCHEMA = 'claudetools' AND TABLE_ROWS > 0 ORDER BY TABLE_ROWS DESC LIMIT 10;\" 2>/dev/null" 2>nul
|
|
echo.
|
|
|
|
:end
|
|
echo ==========================================
|
|
echo Check Complete
|
|
echo ==========================================
|
|
pause
|