Skip to content

CastellaniDavide/osversion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

osversion

GitHub license Author Version Language Python sys.platform supported On GitHub

Tags

#wmi, #automation, #python3, #os, #ping, #csv, #database, #datetime

Description

Get the os vesioning by a list of PC. The output will be printed in "osversion.csv" file & "osversion.db" database

Required

  • python3
  • pip3 packages (in the repo core pip3 install -r requirements/requirements.txt)

Goals

  • Save in csv file the PC's infos
  • Save the infos in a database
  • Print only if in debug mode
  • Make standard csv
  • Make database optional
  • Check if PC is avariable (using ping)
  • Use append method
  • Add date info
  • Add unchecked_PC.csv file and unchecked_PC table for the PCs that i can't reach

Directories structure

  • .github
    • ISSUE_TEMPLATE
      • bug_report.md
      • feature-request.md
  • bin
    • osversion.py
  • docs
    • LICENSE
    • README.md
    • _config.yml
  • flussi
    • computers.csv
    • osversion.csv
    • osversion.db (optional) <- On first run
    • osversion_history.csv <- On first run
    • unchecked_PC.csv
  • log
    • trace.log
  • requirements
    • requirements.txt

Execution examples (in bin folder)

  1. update "computers.csv" file with our PC
  2. (Clear "trace.log" file)
  3. python3 osversion.py

Changelog

Version_02.01_2020-10-1

  • Fixed some bugs
  • Optimized csv
  • Print only if in debug mode
  • Made database optional
  • Check if PC is avariable (using ping)
  • Use append method
  • Add date info
  • Add unchecked_PC.csv file and unchecked_PC table for the PCs that i can't reach
  • Added a WebSite with the last version

Version_01.02_2020-9-24

  • Added an optimization in csv write: helps to prevent some problems

Version_01.01_2020-9-18

  • Initial version

Made by Castellani Davide If you have any problem please contact me: