grabbing/parsing iSCSI iface information
- by chrisg
I'm writing a puppet provider for iSCSI and want to grab information about the ifaces (in my case HBAs) we have, is there a better way than doing this:
iscsiadm -m iface -I be2iscsi.00:00:00:00:00:00|grep iface.ipaddress|sed -e 's/iface.ipaddress = //'
it looks pretty ugly, but the -n switch doesn't seem to work unless you're in --op=update
is there a better way to grab this information, in particular in ruby?