Thank you all so much.
On Fri, Jul 10, 2015 at 09:40 Jarrod Johnson <[email protected]> wrote:

>  Oh, btw, does nodels <nodes> vpd.serial give you what you expect?
>
>
>
> If you want to do it, there's not a particularly well built in, but to
> make a script that would do it:
>
>
>
> # rinv n2-n4 serial|grep System | sed -e 's/^/nodech /' -e 's/: System
> Serial Number: / nodepos.comments=/'
>
> nodech n3 nodepos.comments=06CAWPX
>
> nodech n4 nodepos.comments=06CAWPY
>
> nodech n2 nodepos.comments=06CAWPW
>
>
>
> Redirect that to a shell script and the shell script should do it's thing.
>
> *From:* Damir Krstic [mailto:[email protected]]
>
> *Sent:* Friday, July 10, 2015 10:00 AM
>
> *To:* xCAT Users Mailing list
>
> *Subject:* [xcat-user] best way to populate nodepos table
>
>
>
> As of today we are not using nodepos table for anything. I started
> experimenting and while adding nodepos.rack, nodepos.chassis, and
> nodepos.height values are easy to add using nodech command, things that are
> different between nodes are not that easy to enter without a lot of manual
> data entry.
>
>
>
> My table currently looks like this:
>
>
>
> #node,rack,u,chassis,slot,room,height,comments,disable
>
> "qnode5001","w22","1","qfpc01","left",,"1u",,
>
> "qnode5002","w22","1","qfpc01","right",,"1u",,
>
> "qnode5003","w22","2","qfpc01","left",,"1u",,
>
> "qnode5004","w22","2","qfpc01","right",,"1u",,
>
>
>
> w22 is the floor position of the rack, slot is u 1 in the rack and left or
> right indicates where in the chassis node resides.
>
> Is there any way to automate slot and u position using nodech command?
> Also, under comments in this table I would like to read-in rinv serial
> number command but I am unsure how to do that.
>
> Any help would be greatly appreciated.
>
> Thanks,
>
> Damir
>
> ------------------------------------------------------------------------------
> Don't Limit Your Business. Reach for the Cloud.
> GigeNET's Cloud Solutions provide you with the tools and support that
> you need to offload your IT needs and focus on growing your business.
> Configured For All Businesses. Start Your Cloud Today.
> https://www.gigenetcloud.com/
> _______________________________________________
> xCAT-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xcat-user
>
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to