grabbing/parsing iSCSI iface information
Posted
by
chrisg
on Server Fault
See other posts from Server Fault
or by chrisg
Published on 2012-07-03T17:32:19Z
Indexed on
2012/07/04
9:18 UTC
Read the original article
Hit count: 204
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?
© Server Fault or respective owner