Using the Python language to get assets is roughly divided into:
Ability to store various hardware information
Hardware information can be automatically collected, automatically updated
A. Crawling hardware information on the server and updating to the database
B. Through the C/s architecture, client reporting
C. Automatic discovery, discovery of assets, deposit into the database
D. Network devices get information through SNMP
Manual entry of assets
Flexible interface for external delivery
Interface security issues, data issues
Asset classification:
A.idc
B. Type of business
C.IP Network Segment
D. Hardware class Linetype
E. Type of service (function)
F. System
G. Status
H. Administrator
CMDB Event Management
A. Recording changes to assets
B. Process log
Determine the unique identity of an asset
SN number or Asset ID or Mac
Hardware under the shelf, over-insured, scrap, whether you can automatically delete assets should not be changed to be deleted
Determining Configuration Items
Mouse, keyboard, network cable and other maintenance efforts are relatively large, not too thin
Regular stocktaking to ensure accurate data
Using Python to implement this 11-point code specification to implement the project
This article from the "12228082" blog, reproduced please contact the author!
Asset Management and use