From 3ac18e65bc3e385619686bda51f78976b5ea0132 Mon Sep 17 00:00:00 2001 From: Fred Warren Date: Wed, 28 Jun 2023 11:52:42 -0700 Subject: [PATCH] chanegd targets nrb-01/nrb-02 to nrb-dc01/nrb-fileshares01 --- updateFilelist.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/updateFilelist.sh b/updateFilelist.sh index 87e2a6e..559e229 100755 --- a/updateFilelist.sh +++ b/updateFilelist.sh @@ -1,8 +1,8 @@ #!/bin/sh -/usr/bin/ssh fredw@nrb-02 'powershell.exe -command "& {Get-SmbOpenFile} | ConvertTo-Csv -notype | out-file -encoding UTF8 -filepath files.csv"' -/usr/bin/scp fredw@nrb-02:files.csv /tmp/files.csv +/usr/bin/ssh fredw@nrb-shares01 'powershell.exe -command "& {Get-SmbOpenFile} | ConvertTo-Csv -notype | out-file -encoding UTF8 -filepath files.csv"' +/usr/bin/scp fredw@nrb-shares01:files.csv /tmp/files.csv -/usr/bin/ssh fredw@nrb-01 'powershell.exe -command "Get-DHCPServerv4scope | Get-DHCPServerv4Lease | ConvertTo-CSV -notype | out-file -encoding UTF8 -filepath dhcp.csv"' -/usr/bin/scp fredw@nrb-01:/home/fredw/dhcp.csv /tmp/dhcp.csv +/usr/bin/ssh fredw@nrb-dc01 'powershell.exe -command "Get-DHCPServerv4scope | Get-DHCPServerv4Lease | ConvertTo-CSV -notype | out-file -encoding UTF8 -filepath dhcp.csv"' +/usr/bin/scp fredw@nrb-dc01:dhcp.csv /tmp/dhcp.csv cd /root/.venv/openfiles && direnv exec . python fileCsv2Json.py >/dev/null 2>&1