What about the following patch to the configib script? Would this not make sense?

--- configib    2013-05-15 09:59:22.000000000 +0100
+++ configib.new    2013-05-15 09:56:56.000000000 +0100
@@ -22,6 +22,9 @@
 portnum=1
 if [ -n "$NIC_IBAPORTS" ]; then
     portnum=$NIC_IBAPORTS
+elif [ -n "$1" ]; then
+    NIC_IBNICS=$1
+    NIC_IBAPORTS=1
 fi
 
 # pmatch determines if 1st argument string is matched by 2nd argument pattern


regards,

Arif Ali MBCS
HPC Systems Architect
OCF plc

Tel: +44 (0)114 257 2200
Mob: +44 (0)7970 148 122
Fax: +44 (0)114 257 0022
Web: www.ocf.co.uk
Blog: blog.ocf.co.uk
Twitter: @ocfplc

Please note, any emails relating to an OCF Support request must always be sent to [email protected] for a ticket number to be generated or existing support ticket to be updated. Should this not be done then OCF cannot be held responsible for requests not dealt with in a timely manner.

OCF plc is a company registered in England and Wales. Registered number 4132533, VAT number GB 780 6803 14. Registered office address: OCF plc, 5 Rotunda Business Centre, Thorncliffe Park, Chapeltown, Sheffield, S35 2PG.

This message is private and confidential. If you have received this message in error, please notify us and remove it from your system.
On 14/05/13 15:20, Arif Ali wrote:
I have gone through the script, and will say that Chris is on the right path, we still define that the nictype is infiniband, so there is no problem with confusion. So we can still check the fact if the nictype is inifniband, and use the NIC_IBNICS paramater

The if statement on line 74 for niccustomscripts should be moved down, and incorporate this.

I would say that this is a bug, and we should try to get this resolved. I am on the same line as Chris here.

The runcmd should be a variable, and the flags should be setup 

--
Arif Ali

catch me on freenode IRC, username: arif-ali


On 14 May 2013 14:24, William Wajda <[email protected]> wrote:

Confignics doesn't make any assumptions about the custom script it invokes since it could be for any type of device. However, if it isn't a custom script then it is determined to be an ib adapter based on nictypes and configib is invoked with those variables set.


Bill Wajda
HPC Software Development/xCat
B/002-3-T09  MS P963
Poughkeepsie, NY 12601
Phone: 845-433-7075 T/L 293-7075



Inactive hide details for Christopher Samuel
                  ---05/14/2013 09:19:44 AM---Hi Bill, On 14/05/13
                  22:46, William Wajda wrote:Christopher Samuel ---05/14/2013 09:19:44 AM---Hi Bill, On 14/05/13 22:46, William Wajda wrote:

From: Christopher Samuel <[email protected]>
To: [email protected],
Date: 05/14/2013 09:19 AM

Subject: Re: [xcat-user] Anyone got "niccustomscripts" working in the nics table?




Hi Bill,

On 14/05/13 22:46, William Wajda wrote:

> Confignics does not set this environment variable when invoking it as
> a niccustomscript and this is why goodnics is not set when you ran
> with -x and as a niccustomscript. Conversely, this is why your script
> did work when you copied it back to configib.

Thanks for the explanation.

Is there a reason why confignics doesnt set the variable in this case?

This difference in behaviour seems a bit counter intuitive to me.

All the best,
Chris
--
 Christopher Samuel        Senior Systems Administrator
 VLSCI - Victorian Life Sciences Computation Initiative
 Email: [email protected] Phone: +61 (0)3 903 55545
 
http://www.vlsci.org.au/      http://twitter.com/vlsci

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user



------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user



<<attachment: aali.vcf>>

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to