With the simplified regular expression, where the left side is omitted,
xcat automatically puts the numbers from the node name in $1, $2, etc. for
however many sets of numbers you have in your node name.  So in your
example node name below, $1 would be "1" and $2 would be "01".

Bruce Potter        STSM, Linux & AIX Cluster Development, IBM,
Poughkeepsie, NY
Email: [email protected]    Phone:  external: 845-433-7073, internal: TL
293-7073




From:   Arif Ali <[email protected]>
To:     <[email protected]>,
Date:   05/31/2013 04:48 AM
Subject:        Re: [xcat-user] Regex in nics table



That's neat,

But what is the assumption here? as we have some customers that have the
following nodename schematic

ida1a01

This breaks down to

id -- iDataPlex
a1 -- CPOM rack number
a -- Rack column number
01 -- the U the machine is in

Would the easy regular expressions work for this? or, otherwise cater for
this as well?

regards,

Arif Ali MBCS
Senior HPC Technical 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 30/05/13 14:00, Lissa Valletta wrote:


      As of release 2.8.1  we support a simplified (easy)  regular
      expression,   so you could do the following with the same result.
      "compute","|
      
ib0!10.4.102.($1*1)|","ib0!-ib","ib0!Infiniband",,"ib0!barcoo_infiniband",,,



      
https://sourceforge.net/apps/mediawiki/xcat/index.php?title=Listing_and_Modifying_the_Database#Easy_Regular_expressions


      Lissa K. Valletta
      8-3/B10
      Poughkeepsie, NY 12601
      (tie 293) 433-3102



      Inactive
          hide details for Christopher Samuel ---05/30/2013
      01:02:20
          AM--------BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
      Christopher Samuel ---05/30/2013 01:02:20 AM--------BEGIN PGP SIGNED
      MESSAGE----- Hash: SHA1

      From: Christopher Samuel <[email protected]>
      To: [email protected]
      Date: 05/30/2013 01:02 AM
      Subject: Re: [xcat-user] Regex in nics table





      -----BEGIN PGP SIGNED MESSAGE-----
      Hash: SHA1

      On 30/05/13 02:24, Gilad Berman wrote:

      > What is the correct way of using regex inside the nic table?

      This is what we have:

      
#node,nicips,nichostnamesuffixes,nictypes,niccustomscripts,nicnetworks,nicaliases,comments,disable

      "compute","|\D+(\d+)|
      
ib0!10.4.102.($1*1)|","ib0!-ib","ib0!Infiniband",,"ib0!barcoo_infiniband",,,


      This gives:

      [root@barcoo-m consoles]# lsdef barcoo070 | grep nic
         installnic=mac
         nichostnamesuffixes.ib0=-ib
         nicips.ib0=10.4.102.70
         nicnetworks.ib0=barcoo_infiniband
         nictypes.ib0=Infiniband
         postscripts=confignics,setupntp,syslog,remoteshell,syncfiles
         primarynic=mac

      Hope that helps!
      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

      -----BEGIN PGP SIGNATURE-----
      Version: GnuPG v1.4.11 (GNU/Linux)
      Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

      iEYEARECAAYFAlGm3MEACgkQO2KABBYQAh8ycQCdHQ/zMrdb2gS2qTYq7P+TMHJh
      VkYAn3qv1TjBgeht+KiH9zc013wfMf5/
      =IfbQ
      -----END PGP SIGNATURE-----

      
------------------------------------------------------------------------------

      Introducing AppDynamics Lite, a free troubleshooting tool for
      Java/.NET
      Get 100% visibility into your production application - at no cost.
      Code-level diagnostics for performance bottlenecks with <2% overhead
      Download for free and get started troubleshooting in minutes.
      http://p.sf.net/sfu/appdyn_d2d_ap1
      _______________________________________________
      xCAT-user mailing list
      [email protected]
      https://lists.sourceforge.net/lists/listinfo/xcat-user


[attachment "aali.vcf" deleted by Bruce M Potter/Poughkeepsie/IBM]
------------------------------------------------------------------------------

Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

<<inline: graycol.gif>>

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to