Subversion Repositories sysadmin_scripts

Rev

Rev 116 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

Set of Perl scripts to help manage virtuals

ParseXenConfigs.pl
Just goes through all Xen config files and pulls information. Currently only looks for MAC address and checks for duplicates

findVirtuals.pl
Designed to be put on shared storage on several hypervisors and run via cron. Determines which virtual is running on which 
hypervisor, saving it in a database (dom0_db.yaml in same directory as script), it can also display a tab delimited list
of which virtual is running on which hypervisor (-s option)

Sample crontab entry included. If run from crontab, using -r (Report Only) will only return a string if there is an update; something
added/removed/moved

All flags available by passing --help.

-s          Show database
-c filename Use alternative database
-n          Don't update the database
-v          Be Verbose (show some stats)
-r          Report - only display if something changed