I've been using WMIC for a while and sometimes you can get returned from wmic
notifications, that one of the network adapter refused the connection, this
might occur with clusters when you have 2 NICs.
Since the value returned from WMI is usually at the end, you might use this to
display the last column and than dispart
RESULT=`echo $RAW | awk '{print $(NF)}'`
RESULT=`echo $RESULT | cut -d \| -f 2`
instead of cutting n column from the beginning
RESULT=`echo $RAW | cut -d \ -f 4`
RESULT=`echo $RESULT | cut -d \| -f 2`
this works when you need to return only one value from WMI at the time
-------------------- m2f --------------------
Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=13203#13203
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users