## User
- **User:** Mike Swanson (mike)
- **Machine:** GURU-5070
- **Role:** admin

## Session Summary

Four Paws' Avimark server had its OS reinstalled (same hardware, fresh Windows 11 Pro) and Avimark needed to be brought back online. Mike provided the Covetrus "Moving Avimark to a New Server" PDF to digest and asked me to coordinate the info to Howard (hands-on) and help recover. Digested the PDF into a recovery playbook tailored to the OS-reinstall scenario (no old server to copy from — data must come from a surviving partition or backup), and noted Four Paws runs Avimark in CLIENT/SERVER mode (confirmed from the 2026-05-18 incident where AvimarkServer.exe had vanished from Services).

Discovered via prior context that the Avimark server also has a GuruRMM agent, so I assessed the live state directly: agent DESKTOP-18P49QQ (Four Paws / Main, id ccb55043). Read-only assessment found the data intact (C:\AVImark, 45.4 GB, restored from a 6/15 backup) with all binaries present, but three concrete breakages: (1) no AvimarkServer service installed, (2) C:\AVImark not shared, (3) hostname DESKTOP-18P49QQ while the client INI expects host "server" on port 1095. Sent Howard two coord messages — the full playbook and the concrete live findings with an exact fix order — and posted RMM alerts.

On Mike's instruction, rebooted the server via RMM (shutdown /r /t 15), then set the local user "staff" password to never-expire (Set-LocalUser -PasswordNeverExpires $true; verified PasswordExpires now blank).

Howard completed the recovery (rename + share + service + reconnect). Final verification via RMM confirmed all three breakages resolved: hostname now SERVER, AVImarkServer service Running (Automatic) and listening on 1095, C:\AVImark shared, and the client INI re-connected (password blob regenerated). Stamped the playbook doc RESOLVED + VERIFIED. Avimark is back up.

## Key Decisions

- **Reused the existing port 1095, not the doc's example 9191** — the client INIs already point at 1095; switching ports would have broken every workstation.
- **Renamed the box to SERVER (the old name)** as the first fix — it simultaneously satisfies the client INI `IP=server` and keeps the workstations' `\\SERVER\AVImark` UNC shortcuts working, avoiding per-workstation rework.
- **Did the assessment + safe ops via RMM but left rename + Guardian GUI service-install to Howard at the console** — those need an interactive desktop session and the (old) server password.
- **Tailored the generic Covetrus migration doc to the OS-reinstall reality** — the doc assumes old+new servers both online; here the operative concern was restoring/locating the C:\AVImark folder and re-establishing the client/server service, share, and name.

## Problems Encountered

- **Avimark down — root causes (3):** no AvimarkServer service, C:\AVImark not shared, hostname != "server". All three identified via a single RMM assessment and resolved (service installed + running on 1095, folder shared, box renamed to SERVER).
- **Assessment command returned exit 1** but full stdout — the non-zero came from `query user`, not a real failure.
- **Agent re-resolution:** after the rename, the live command reports HOST=SERVER while the agent record/id (ccb55043) stayed stable — resolved by id, with a Four Paws client-name fallback.

## Configuration Changes

- **Created** `clients/four-paws/docs/avimark-recovery-playbook.md` (digested playbook + live assessment + RESOLVED/VERIFIED stamp).
- **Four Paws server (SERVER / DESKTOP-18P49QQ, agent ccb55043):** rebooted (RMM); local user `staff` set PasswordNeverExpires=$true. (Rename to SERVER, C:\AVImark share, and AvimarkServer hidden-service install were done by Howard at the console.)
- **Coord:** msgs to Howard-Home 10f4fd4f (playbook), 6ecf8bcd (live findings). RMM #dev-alerts posted for assessment, reboot, staff change, verify.
- **Session log:** this file.

## Credentials & Secrets

- No new credentials created or vaulted this session. Avimark client/server password not captured (the client INI stores an encrypted blob; the server-side plaintext was set by Howard during the Guardian service install). Avimark/Covetrus Tech Support: (877) 838-9273 Option 1.

## Infrastructure & Servers

- **Four Paws Avimark server:** hostname **SERVER** (renamed from DESKTOP-18P49QQ on 2026-06-23), Windows 11 Pro build 26100 (OS reinstalled 2026-06-23). GuruRMM agent id `ccb55043-b310-47df-afe3-2671c8ff113c` (Four Paws / Main).
- **Avimark:** Client/Server mode. Data at `C:\AVImark` (~45 GB). `AVImarkServer` service Running (Automatic), listening TCP **1095**. Share `AVImark` -> `C:\AVImark` (full access). Binaries: AVImark.exe/AVImarkServer.exe/AVImarkGuardian.exe (2013-2015 build) in C:\AVImark. Client INI `C:\AVImark\AVImark.ini` [Client]: IP=server, Port=1095, StandAlone=0.
- **Drives:** C: 373 GB free; E: ~9 GB (small); D:/F: empty.
- **Four Paws contact:** Josh Fender — fourpawsarizona@gmail.com — 520-321-0277. 4750 East Grant Road, Tucson AZ 85712. Syncro customer_id 33050383.

## Commands & Outputs

- RMM assessment (read-only): found C:\AVImark 45.4GB, no *avimark* service, no non-admin shares, INI IP=server/Port=1095.
- Reboot: `shutdown.exe /r /t 15 /c "ACG remote reboot - Avimark recovery"` (cmd ccef3cf2, exit 0).
- Staff never-expire: `Set-LocalUser -Name "staff" -PasswordNeverExpires $true` -> verified `PasswordExpires=` blank (cmd 7956a35d).
- Verify: HOST=SERVER; `AVImarkServer [Running] Automatic`; `LISTEN 1095 AVImarkServer`; `SHARE: AVImark -> C:\AVImark` (cmd 0f6c2a22).

## Pending / Incomplete Tasks

- **Integrations to re-register** if Four Paws uses them (confirm with Josh): Data Vault cloud backup (888-538-8348) — silent failure if skipped; APS credit cards (877-838-9273 opt 1 sub 3); plus VetXML/Sync/Intelligent Inventory/Rapport-PetWise-eMinders/IVLS per the playbook.
- **Recommended Settings doc** (caching/power/firewall) and Oplocks/Caching correction — verify applied (Help > About > System Settings) if not already done during recovery.
- Workstations: confirm all can open Avimark + print (covered by the rename keeping \\SERVER\AVImark shortcuts valid).

## Reference Information

- Playbook: `clients/four-paws/docs/avimark-recovery-playbook.md`.
- Source PDF: Covetrus "Moving Avimark to a New Server" (2024).
- Client/Server setup doc: https://software.covetrus.com/wp-content/uploads/dlm_uploads/2021/03/Setting-up-an-AVImark-client-server.pdf
- Prior incident: `session-logs/2026-05-18-session.md` (Syncro #110507180 — AvimarkServer service reinstall).
- RMM agent id: ccb55043-b310-47df-afe3-2671c8ff113c. Coord msgs: 10f4fd4f, 6ecf8bcd.
