Hello,
I am newbie to ipmi and really appreciate your helps.
When I run ipmilan and got coredump. It looks like it read config file and
some configuration is not right.
Is there any good lan.conf file available so I can run ipmilan without
coredump? My goal is using lanserv or ipmi_sim as base to develop my own
bmc firmware.
Thank you!
Mike
1.) coredump stack
============================================================
(gdb) where
#0 0x000003ff874baad0 in strlen () from /lib64/libc.so.6
#1 0x000003ff875eda7c in get_fname (sfx=sfx@entry=0x3ff875f2300 "",
p=0x2f5ea670) at persist.c:186
#2 0x000003ff875ee544 in read_persist (
name=name@entry=0x3ff875f0e50 "lanparm.mc%2.2x.%d") at persist.c:280
#3 0x000003ff875e9024 in read_lan_config (lan=0x2f5ea8a0)
at lanserv_ipmi.c:3096
#4 ipmi_lan_init (lan=lan@entry=0x2f5ea8a0) at lanserv_ipmi.c:3177
#5 0x00000000004020d0 in main (argc=<optimized out>, argv=0x2f5ea8c8)
at lanserv.c:845
2.) lan.conf file
===========================================================
# lan.conf
# A configuration file for lanserv or ipmi_sim to configure the various
# communication parameters for the device.
# This is a name used to identify this instance, and used to create
# the default name of the emulator startup command file and eventually
# the storage facility for permanent storage.
name "AXP-SERVER"
#
# Work on the BMC first
set_working_mc 0x20
# Define a LAN channel on channel 1 (eth1)
startlan 1
# Define an IP address and port to listen on. You can define more
# than one address/port to listen on multiple addresses. The ::
# listens on all addresses.
addr 0.0.0.0 623
# Maximum privilege limit on the channel.
priv_limit admin
# Allowed IPMI 1.5 authorization types
#allowed_auths_callback none md2 md5 straight
#allowed_auths_user none md2 md5 straight
#allowed_auths_operator none md2 md5 straight
#allowed_auths_admin none md2 md5 straight
# guid for IPMI 2.0 authorization You can also use a string
#guid a123456789abcdefa123456789abcdef
guid "vos92Gk2Ols901ls"
# You can specify a BMC key for IPMI 2.0 authorization. See the
# spec for details.
#bmc_key "abcdefghijklmnopqrst"
# A program to get and set the LAN configuration of the interface.
lan_config_program "/etc/ipmi/lancontrol eth1"
endlan
# Define a LAN channel on channel 2 (eth0)
startlan 2
# We don't define a listen address, as it is not necessary, the
# one from channel 1 covers everything.
# Maximum privilege limit on the channel.
priv_limit admin
# Allowed IPMI 1.5 authorization types
#allowed_auths_callback none md2 md5 straight
#allowed_auths_user none md2 md5 straight
#allowed_auths_operator none md2 md5 straight
#allowed_auths_admin none md2 md5 straight
# guid for IPMI 2.0 authorization You can also use a string
#guid a123456789abcdefa123456789abcdef
guid "vos92Gk2Ols901ls"
# You can specify a BMC key for IPMI 2.0 authorization. See the
# spec for details.
#bmc_key "abcdefghijklmnopqrst"
# A program to get and set the LAN configuration of the interface.
lan_config_program "/etc/ipmi/lancontrol eth0"
endlan
# Now add some users. User 0 is invalid, user 1 is the special
"anonymous"
# user and cannot take a username. Note that the users here are only
# used if the persistent user config doesn't exist.
# # valid name passw priv-lim max-sess allowed-auths
user 1 false "" "test" user 10 none md2 md5 straight
user 2 true "ADMIN" "ADMIN" admin 10 none md2 md5 straight
#
# Target board 1
#
set_working_mc 1
#
# Target board 2
#
set_working_mc 2
#
# Target board 3
#
set_working_mc 3
#
# Target board 5
#
set_working_mc 5
#
# Target board 6
#
set_working_mc 6
# Allow a console connection to perform emulation commands.
#console localhost 9000
# Dynamically load a module to extend the simulator. After the module is
# loaded, if the function "ipmi_sim_module_init" is defined in the module,
# it will be called with the following parameters:
# int ipmi_sim_module_init(sys_data_t *sys, char *initstr);
# where initstr is the init string passed on the module load line.
# It should return 0 on success or an errno no failure.
loadlib "/usr/lib/ipmi_sim/marvell_mod.so" ""
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Openipmi-developer mailing list
Openipmi-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openipmi-developer