-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I've made the following changes to cobblersysreport:
1. dropped config file
2. added support to pass fields via command line paramenter
3. added support to multiple interfaces (although display may be a bit
quirky still).
Sounds good, next step is to submit a patch adding it to "cobbler report" :)
--Michael
[root@bean2 cobbler]# cobblersysreport -h
Usage: cobblersysreport [options]
Options:
-h, --help show this help message and exit
-s SERVER, --server=SERVER
Server you wish to user
-t TYPE, --type=TYPE Type of output format
-f FIELDS, --fields=FIELDS
Fields for the report. Comma delimited.
Available fields: profile,owners,kickstart,
virt_bridge,name,parent,virt_cpus,virt_type,
dhcp_tag,subnet,hostname,mac_address,ip_address
gateway,vm
-l, --list-types Available types of output
[root@bean2 cobbler]# cobblersysreport -f "name, hostname, vm,
ip_address" -s
cobbler.re.redhat.com -t trac
||name||hostname||vm||ip_address||
||build01_re_redhat_com||build01||Yes||10.10.42.5||
||buildmaster01_re_redhat_com||buildmaster01||Yes||10.10.42.6||
||buildnode01_re_redhat_com||buildnode01||No||10.10.42.10||
||buildnode02_re_redhat_com||buildnode02||Yes||10.10.42.11||
If there is more than one interface configured, let's say, host has 2 IP
addresses, the information (for now would show up like this):
||ip_address||
|| 10.0.0.1 10.0.0.2||
AS
This seems workable, the other option would be one interface per line,
I'm not really sure which is better but we can wait until
someone who is using it expresses the desire to have that, could even do
both. I wouldn't worry about it too much now.
--Michael