Re: [Ipmitool-devel] Ipmi help
Paras pradhan wrote: - r...@xendev1 ~]# ipmitool lan print 1 Set in Progress : Set Complete Auth Type Support : NONE MD5 PASSWORD Auth Type Enable: Callback : : User : : Operator : : Admin: MD5 PASSWORD : OEM : IP Address Source : Static Address IP Address : 10.42.21.28 Subnet Mask : 255.255.0.0 MAC Address : 00:15:17:5a:15:62 With this setup you should be able to do impitool -U admin -P admin -I lan -H 10.42.2.28 chassis status from any machine in the 10.42.0.0/16 range *except* the very same machine *if* the IPMI card and the system are sharing a network interface. Carsten -- ___ Ipmitool-devel mailing list Ipmitool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ipmitool-devel
Re: [Ipmitool-devel] Ipmi help
Hi Paras pradhan wrote: Its' not working. If ipmi is correctly setup, i should be able to ping the ip address assigned to the ipmi right?. The network address of eth0 of my machine and that of ipmi interface is same. What i am missing here? No, the IP addresses of eth0 and the IPMI card need to be different, especially when IPMI is tunneled on the same interface. Can you give us the output of ipmitool lan print 1 (or whatever is the lan channel you have configured) as well as the output of ifconfig eth0? Cheers Carsten -- ___ Ipmitool-devel mailing list Ipmitool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ipmitool-devel
Re: [Ipmitool-devel] Ipmi help
Being able to ping the interface is not a valid assumption. Many board implementations (Most Dell systems for example) do not support the icmp protocol as that would be code overhead that is not really needed. Also if it is using a shared Nic setup (i.e. the primary/secondary Nic is also the nic for the ipmi interface) it is very unlikely that you'll be able to hit the ipmi interface via that network interface from the machine of that interface but should be able to from another machine. Without knowing the specific manufacture and board along with some more details (like was this done from the same system or a different one) it's not possible to give you a concrete answer. -Original Message- From: Paras pradhan [mailto:pradhanpa...@gmail.com] Sent: Friday, December 19, 2008 11:45 AM To: ipmitool-devel@lists.sourceforge.net Subject: [Ipmitool-devel] Ipmi help hi, I guess this is the write place to ask. I am working on to setup a fencing using IPMI which is supported in my mother board. I have assigned the ip address to the ipmi , but I am not able to ping the interface. If i do: ipmitool chassis status , it works but if i do [r...@ha1 ~]# ipmitool -I lan -H ipaddress -U admin -P admin chassis status Error: Unable to establish LAN session Error sending Chassis Status command Its' not working. If ipmi is correctly setup, i should be able to ping the ip address assigned to the ipmi right?. The network address of eth0 of my machine and that of ipmi interface is same. What i am missing here? Thanks Paras. -- ___ Ipmitool-devel mailing list Ipmitool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ipmitool-devel -- ___ Ipmitool-devel mailing list Ipmitool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ipmitool-devel
Re: [Ipmitool-devel] Ipmi help
Paras pradhan wrote: hi, I guess this is the write place to ask. I am working on to setup a fencing using IPMI which is supported in my mother board. I have assigned the ip address to the ipmi , but I am not able to ping the interface. If i do: ipmitool chassis status , it works but if i do [r...@ha1 ~]# ipmitool -I lan -H ipaddress -U admin -P admin chassis status Error: Unable to establish LAN session Error sending Chassis Status command Its' not working. If ipmi is correctly setup, i should be able to ping the ip address assigned to the ipmi right?. The network address of eth0 of my machine and that of ipmi interface is same. What i am missing here? Have you tried using lanplus as the interface? `ipmitool -I lanplus -H ipaddress -U admin -P admin chassis power status` Mike -- ___ Ipmitool-devel mailing list Ipmitool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ipmitool-devel
Re: [Ipmitool-devel] ipmi help
Sheng Peng wrote: Hi, I am new to IPMI. I am trying to write a piece code to get hardware status thru IPMI interface to my application. I did some research of openIPMI, freeIPMI and ipmitool. It seems openIPMI is more popular than freeIPMI and works for my DELL server. So I don't worry about freeIPMI anymore. Then I installed ipmitool, it seems no problem to get the info of my server. But when I looked into the source code. I am confused. Say if I just want to read temperature and fan RPM, should I use openIPMI API (if there is a thing called openIPMI API), or just ioctl like ipmitool source code does? If you want a simple scripted solution, ipmitool is a fine tool for that. So if you just want to get readings and store them in a file, and maybe send an email if they are out of range, ipmitool and a script, IMHO, is your best bet. If you need access from a C program, you need performance/efficiency, or you need to do a lot of IPMI work, IMHO the OpenIPMI API is the way to go. It's not as easy as scripting ipmitool, but it's very powerful. You can also access the OpenIPMI API from perl or python. The OpenIPMI GUI, in fact, is written in python. Direct ioctls work, but if you upgrade your firmware or move to a different box your program will probably be broken because the sensor numbers will not be consistent. I'd recommend against that approach. ipmitool and OpenIPMI will read the data from the BMC and translate into meaningful names/types that are less likely to change, making your program more portable. And I found for my Fedora 6, ipmi.h is under /usr/include/linux from kernel-hearders-xxx.rpm. But for my other system with RHEL, I can only find ipmi.h from kernel src or openIPMI/ipmitool source. Why the ipmi.h is not in a public area anymore? It's a kernel include file. So it comes from the kernel. -corey Thanks. Sheng Make every e-mail and IM count. Join the i’m Initiative from Microsoft. http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_%20MakeCount - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Ipmitool-devel mailing list Ipmitool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ipmitool-devel - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Ipmitool-devel mailing list Ipmitool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ipmitool-devel