1. Check

  • Log in as smru on the tbhf-anc-mrm server.

  • Enter the following commands at a Command Line.

    cd ~delta/github/git/delta-software-labs/Documentation
     cd ../Linux-Tools
    bin/check-computers | more
    bin/check-computers | grep -i '7-zip'
    bin/check-computers | grep -i 'cleanup'
    bin/check-computers | grep -i 'clink'
    bin/check-computers | grep -i 'crowdstrike' | grep -Eiv '_Servers|TST'
    bin/check-computers | grep -i 'domain'
    bin/check-computers | grep -i 'dropbox'
    bin/check-computers | grep -i 'meec' | grep -Eiv 'TST'
    bin/check-computers | grep -i 'microsoft teams' | grep -Eiv '_Servers|TST'
    bin/check-computers | grep -i 'openssh'
    bin/check-computers | grep -i 'delta windows tools:' | grep -Eiv '_Stolen' | sort
    bin/check-computers | grep -i 'teamviewer'
  • Fix Windows Updates issues on the following computers.

    SMRUNB-MSL02
    SMRUNB-MSB02
    SMRUNB-MSB05
    SMRUNB-MTW04
    SMRUNB-ORC03
    SMRUNB-PE04
    SMRUWS-LB34
    SMRUWS-TB02
    TBHFNB-CB06
    TBHFNB-MT03
    TBHFNB-MTW02
    TBHFNB-PE03
    TBHFWS-YGN01

2. Endian

  • Log in as smru on the tbhf-anc-mrm server.

  • Enter the following commands at a Command Line.

    EFW=10.10.1.170                                         #Maesot
    EFW=192.168.##.170                                      #Sites
    DELTA_LINUX_TOOLS="/media/Windows/Software/_Delta/Delta-Linux-Tools-#.#.#"
    scp -p $DELTA_LINUX_TOOLS/sbin/show-inventory root@$EFW:
    ssh root@$EFW
    . /etc/profile.d/smru.sh
    bash show-inventory
    vdir smru*
    exit
    scp -p root@$EFW:smru* /home/Other/Inventory
    exit
  • Move the Inventory files from /home/Other/Inventory to the correct directory.

3. Linux

3.1. Get ANC client

  • Check the ANC client is online.

  • Putty to the ANC client IP address.

  • Type smru for the user name and press Enter.

  • Type the password and press Enter.

  • Type sudo su - and press Enter.

  • Type the password and press Enter.

show-inventory
dir
mv smrunb-anc* ~delta/
exit
exit
  • Putty to the ANC server at MST.

  • Type smru for the user name and press Enter.

  • Type the password and press Enter.

  • Note: the IP address is depend on what ANC client you connect.

scp -p smru@192.168.25.33:smrunb-anc* /home/Other/Inventory
ssh-keygen -f "/home/delta/.ssh/known_hosts" -R 192.168.25.33
scp -p smru@192.168.25.33:smrunb-anc* /home/Other/Inventory
  • Type Yes to confirm.

  • Type the password and press Enter.

  • Type exit.

3.2. Get Inventory

CLIENT=192.168.27.42
ping -c4 $CLIENT
DELTA_LINUX_TOOLS="/media/Windows/Software/_Delta/Delta-Linux-Tools-#.#.#"
scp -p $DELTA_LINUX_TOOLS/sbin/show-inventory root@$CLIENT:
ssh root@$CLIENT "bash show-inventory; vdir smru*"
scp -p root@$CLIENT:smru* /home/Other/Inventory

3.3. Search Inventory

# Get sorted list of computers with speed indication.
grep -ir 'Delta Windows Tools Configuration:.*(' /home/Other/Inventory |
  sed -e 's/^\(.*\).* (\([0-9:]\+\) \([0-9:]\+\)).*$/\3 \2 \1/' |
  sed -e 's/^\([0-9]\.\)/0\1/' | sort

# Get sorted list of computers with usage indication.
grep -ir 'Windows Usage' /home/Other/Inventory |
  sed -e 's/^\(.*\).*[[:space:]]\+\([0-9.]\+%\)\(.*\)$/\2 \1\3/' |
  sed -e 's/^\([0-9]\.\)/0\1/' | sort

# Get sorted list of computers with usage indication.
grep -ir 'Windows Usage.*:' /home/Other/Inventory |
  sed -e 's/^\(.*\).*[[:space:]]\+\([0-9.]\+%\)\(.*\)$/\2 \1\3/' |
  sed -e 's/^\([0-9]\.\)/0\1/' | sort

4. Windows

4.1. Upload inventory files

4.2. Collect inventory files

  • Start Command Prompt.

  • Type o and press Enter.

  • Type the Level 2 password and press Enter.

  • Enter the following commands.

    update-inventory MKT
    update-inventory MSL
    update-inventory MST
    update-inventory WPA
  • Close Command Prompt.

4.3. Add info

  • File name Information.cmtsv.

  • Start Command Prompt with administrative privileges.

  • Type o and press Enter.

  • Type the Level 2 password and press Enter.

    add-info
  • Close Command Prompt.

4.4. Convert to Excel file

  • Start Command Prompt.

  • Type o and press Enter.

  • Type the Level 2 password and press Enter.

  • Type ConvertTo-Table > C:\Tmp\Inventory.txt and press Enter.

  • Type y and press Enter.

  • Start Excel.

  • Select Blank workbook.

  • Select File > Open > Browse.

  • Select All Files (.) in file type dropdown list.

  • Select Inventory.txt in C:\Tmp folder.

  • Click Open.

  • Click Next.

  • Check Treat consecutive delimiters as one.

  • Click Next.

  • Click Finish.

  • Select File > Save as > Browse.

  • Select Excel Workbook (.xlsx) in Save as type: dropdown list.

  • Click Save.

  • Close Command Prompt.