1---2name: it-infrastructure-sysadmin-engine3description: Comprehensive IT infrastructure, system administration, networking, troubleshooting, Active Directory, DNS, DHCP, virtualization, cloud infrastructure, and IT automation expertise.4license: Unspecified5---6# IT Infrastructure & Sysadmin Engine78## Purpose9Provide expert-level IT infrastructure knowledge covering networking, system administration, troubleshooting methodologies, and cloud/on-premises infrastructure management.1011## Networking Fundamentals1213### OSI Model (Troubleshooting Layer by Layer)14| Layer | Name | Protocols | Troubleshooting |15|-------|------|-----------|-----------------|16| 7 | Application | HTTP, DNS, SMTP, FTP | Check app logs, API responses |17| 6 | Presentation | SSL/TLS, JPEG, ASCII | Check certificates, encoding |18| 5 | Session | NetBIOS, RPC, PPTP | Check session state, auth |19| 4 | Transport | TCP, UDP | Check ports, firewalls, `netstat` |20| 3 | Network | IP, ICMP, OSPF, BGP | Check routing, `ping`, `traceroute` |21| 2 | Data Link | Ethernet, ARP, VLAN | Check switches, MAC tables, `arp` |22| 1 | Physical | Cables, WiFi, Fiber | Check cables, link lights, signal |2324### DNS Deep Dive25- **Record Types**: A (IPv4), AAAA (IPv6), CNAME (alias), MX (mail), TXT (verification/SPF/DKIM), NS (nameserver), SOA (authority), SRV (service), PTR (reverse)26- **Resolution Flow**: Client cache → Local DNS → Root → TLD → Authoritative27- **Troubleshooting**: `nslookup`, `dig`, `host`, check TTL, check propagation28- **Common Issues**: Stale cache, misconfigured records, TTL too high/low, DNSSEC validation failures2930### DHCP31- **DORA Process**: Discover → Offer → Request → Acknowledge32- **Scope Management**: Address pools, reservations, exclusions, lease duration33- **Troubleshooting**: Check scope exhaustion, relay agents, lease conflicts, `ipconfig /release && ipconfig /renew`3435### Subnetting Quick Reference36| CIDR | Subnet Mask | Hosts | Use Case |37|------|-------------|-------|----------|38| /32 | 255.255.255.255 | 1 | Host route |39| /30 | 255.255.255.252 | 2 | Point-to-point |40| /28 | 255.255.255.240 | 14 | Small segment |41| /24 | 255.255.255.0 | 254 | Standard LAN |42| /16 | 255.255.0.0 | 65,534 | Large network |4344## System Administration4546### Windows Server47- **Active Directory**: Domain controllers, OUs, GPOs, FSMO roles, replication, trusts48- **Group Policy**: Computer vs User config, precedence (Local → Site → Domain → OU), `gpupdate /force`, `gpresult /r`49- **File Services**: NTFS permissions, share permissions, DFS, quotas50- **Certificate Services**: PKI, CA hierarchy, certificate templates, auto-enrollment51- **Hyper-V**: Virtual switches, checkpoints, live migration, replication5253### Linux Server54- **Package Management**: apt (Debian/Ubuntu), yum/dnf (RHEL/CentOS), pacman (Arch)55- **Service Management**: `systemctl start/stop/enable/status service`56- **User Management**: `useradd`, `usermod`, `passwd`, `/etc/passwd`, `/etc/shadow`, `sudo`57- **Cron Jobs**: `crontab -e`, format: `min hour dom month dow command`58- **Log Management**: `/var/log/`, `journalctl`, `logrotate`, syslog/rsyslog59- **Performance**: `top`/`htop`, `vmstat`, `iostat`, `sar`, `free -h`, `df -h`6061## Troubleshooting Methodology6263### The 7-Step IT Troubleshooting Framework641. **Identify the Problem**: What exactly is broken? Who is affected? When did it start? What changed?652. **Establish a Theory**: Based on symptoms, what are the most likely causes? (Start with the simplest)663. **Test the Theory**: Can you reproduce? Does the evidence support your theory?674. **Establish a Plan**: What's the fix? What's the rollback plan? Who needs to be notified?685. **Implement the Fix**: Apply the change, monitor for side effects696. **Verify Full Functionality**: Test the fix AND test that nothing else broke707. **Document**: Root cause, fix applied, prevention measures7172### The "5 Whys" for Root Cause Analysis73- Problem: Website is down74- Why? The web server crashed75- Why? It ran out of memory76- Why? A memory leak in the application77- Why? An unclosed database connection in a loop78- Why? No connection pooling was implemented79- **Root Cause**: Missing connection pooling → Fix: Implement connection pooling8081## Cloud Infrastructure8283### AWS Core Services84| Category | Service | Purpose |85|----------|---------|---------|86| Compute | EC2, Lambda, ECS, EKS | Run applications |87| Storage | S3, EBS, EFS, Glacier | Store data |88| Database | RDS, DynamoDB, ElastiCache | Manage data |89| Networking | VPC, Route 53, CloudFront, ELB | Connect and deliver |90| Security | IAM, KMS, WAF, GuardDuty | Protect resources |91| Monitoring | CloudWatch, CloudTrail, X-Ray | Observe and audit |9293### Azure Equivalent Services94| AWS | Azure | Purpose |95|-----|-------|---------|96| EC2 | Virtual Machines | Compute |97| S3 | Blob Storage | Object storage |98| RDS | Azure SQL | Managed database |99| VPC | Virtual Network | Networking |100| IAM | Azure AD / Entra ID | Identity |101| Lambda | Azure Functions | Serverless |102| CloudWatch | Azure Monitor | Monitoring |103104### Infrastructure as Code105- **Terraform**: Multi-cloud, declarative, state management, modules106- **CloudFormation**: AWS-native, JSON/YAML templates107- **Ansible**: Agentless, SSH-based, playbooks for configuration management108- **Pulumi**: Infrastructure as real code (TypeScript, Python, Go)109110## Virtualization & Containers111112### Virtualization113- **Type 1 Hypervisors**: VMware ESXi, Hyper-V, KVM (bare metal)114- **Type 2 Hypervisors**: VirtualBox, VMware Workstation (hosted)115- **Key Concepts**: vCPU allocation, memory ballooning, thin provisioning, snapshots, live migration116117### Containers (Docker/Kubernetes)118- **Docker**: Images, containers, Dockerfile, docker-compose, volumes, networks119- **Kubernetes**: Pods, Deployments, Services, Ingress, ConfigMaps, Secrets, PVCs120- **Best Practices**: Multi-stage builds, non-root users, health checks, resource limits, image scanning121122## Monitoring & Alerting123124### The 4 Golden Signals (Google SRE)1251. **Latency**: How long requests take (track p50, p95, p99)1262. **Traffic**: How much demand (requests/sec, concurrent users)1273. **Errors**: Rate of failed requests (5xx, timeouts, exceptions)1284. **Saturation**: How full is the system (CPU, memory, disk, connections)129130### Monitoring Stack Options131- **Metrics**: Prometheus + Grafana, Datadog, CloudWatch132- **Logs**: ELK Stack (Elasticsearch, Logstash, Kibana), Loki, Splunk133- **Traces**: Jaeger, Zipkin, AWS X-Ray, Datadog APM134- **Alerting**: PagerDuty, OpsGenie, Prometheus Alertmanager135136## Backup & Disaster Recovery137138### 3-2-1 Backup Rule139- **3** copies of data140- **2** different storage media141- **1** offsite/cloud copy142143### Recovery Objectives144- **RPO** (Recovery Point Objective): How much data loss is acceptable?145- **RTO** (Recovery Time Objective): How quickly must service be restored?146- Design backup frequency and DR strategy around these objectives