Hi! I'm trying to set up IPMI simulator which shows some sensors and allows reading their values. Tried OpenIPMI 2.0.22 and the latest code from Git. I modified 'lan.conf', replaced "addr localhost 9001" with "127.0.0.1 9001" to listen for IPv4, not IPv6. 'ipmisim1.emu' is not modified.
Simulator is started as: $ ~/OpenIPMI-git-install/bin/ipmi_sim -c ~/OpenIPMI-git-install/etc/ipmi/lan.conf -d -f ~/OpenIPMI-git-install/etc/ipmi/ipmisim1.emu I expected to see a watchdog and a temperature sensor as configured in 'ipmisim1.emu' example. Unfortunately senors do not show up: $ ipmitool -v -U ipmiusr -P test -H 127.0.0.1 -p 9001 -I lanplus -L administrator sensor list ---------------------------------------------------------------------- Running Get PICMG Properties my_addr 0x20, transit 0, target 0x20 Error response 0xc1 from Get PICMG Properities Running Get VSO Capabilities my_addr 0x20, transit 0, target 0x20 Invalid completion code received: Invalid command Discovered IPMB address 0x0 SDRR successfully erased Err in cmd get sensor sdr info Get SDR 0000 command failed: Requested sensor, data, or record not found Get SDR 0000 command failed: Requested sensor, data, or record not found Get SDR 0000 command failed: Requested sensor, data, or record not found Get SDR 0000 command failed: Requested sensor, data, or record not found Get SDR 0000 command failed: Requested sensor, data, or record not found ---------------------------------------------------------------------- More verbose output: $ ipmitool -vv -U ipmiusr -P test -H 127.0.0.1 -p 9001 -I lanplus -L administrator sensor list ---------------------------------------------------------------------- >> Sending IPMI command payload >> netfn : 0x06 >> command : 0x38 >> data : 0x8e 0x04 >> SENDING AN OPEN SESSION REQUEST >> Console generated random number (16 bytes) 1d 0e de b1 a8 a0 1a 63 48 42 c2 8f 53 21 b3 71 >> SENDING A RAKP 1 MESSAGE session integrity key input (41 bytes) 1d 0e de b1 a8 a0 1a 63 48 42 c2 8f 53 21 b3 71 f9 1e 15 18 a4 ce 2f 43 64 f7 9c 08 30 4d 25 26 14 07 69 70 6d 69 75 73 72 Generated session integrity key (20 bytes) 73 42 b2 65 28 b4 5a 44 45 e8 ed 39 18 90 c4 56 2e 03 0f e9 Generated K1 (20 bytes) 3e 3e 91 e9 40 1c fc e5 f1 7e 2e 77 0b c7 60 56 a3 7c 45 32 Generated K2 (20 bytes) 6d 78 ea e2 38 79 17 e6 bf 36 23 b0 2d 82 35 69 d7 88 20 16 >> SENDING A RAKP 3 MESSAGE IPMIv2 / RMCP+ SESSION OPENED SUCCESSFULLY >> Sending IPMI command payload >> netfn : 0x06 >> command : 0x3b >> data : 0x04 Local RqAddr 0x20 transit 0:0 target 0x20:0 bridgePossible 0 Set Session Privilege Level to ADMINISTRATOR >> Sending IPMI command payload >> netfn : 0x2c >> command : 0x3e >> data : 0x00 0x02 Local RqAddr 0x20 transit 0:0 target 0x20:0 bridgePossible 0 IPM Controller is not HPM.2 compatible >> Sending IPMI command payload >> netfn : 0x06 >> command : 0x01 >> data : Local RqAddr 0x20 transit 0:0 target 0x20:0 bridgePossible 1 Iana: 4753 Running Get PICMG Properties my_addr 0x20, transit 0, target 0x20 >> Sending IPMI command payload >> netfn : 0x2c >> command : 0x00 >> data : 0x00 Local RqAddr 0x20 transit 0:0 target 0x20:0 bridgePossible 1 Error response 0xc1 from Get PICMG Properities Running Get VSO Capabilities my_addr 0x20, transit 0, target 0x20 >> Sending IPMI command payload >> netfn : 0x2c >> command : 0x00 >> data : 0x03 Local RqAddr 0x20 transit 0:0 target 0x20:0 bridgePossible 1 Invalid completion code received: Invalid command Acquire IPMB address Discovered IPMB address 0x0 Interface address: my_addr 0x20 transit 0:0 target 0x20:0 ipmb_target 0 Querying SDR for sensor list >> Sending IPMI command payload >> netfn : 0x06 >> command : 0x01 >> data : Local RqAddr 0x20 transit 0:0 target 0x20:0 bridgePossible 1 >> Sending IPMI command payload >> netfn : 0x0a >> command : 0x20 >> data : Local RqAddr 0x20 transit 0:0 target 0x20:0 bridgePossible 1 SDR free space: 65534 SDR records : 0 Rebuilding SDRR... >> Sending IPMI command payload >> netfn : 0x0a >> command : 0x22 >> data : Local RqAddr 0x20 transit 0:0 target 0x20:0 bridgePossible 1 SDR reservation ID 0005 >> Sending IPMI command payload >> netfn : 0x0a >> command : 0x27 >> data : 0x05 0x00 0x43 0x4c 0x52 0xaa Local RqAddr 0x20 transit 0:0 target 0x20:0 bridgePossible 1 >> Sending IPMI command payload >> netfn : 0x06 >> command : 0x01 >> data : Local RqAddr 0x20 transit 0:0 target 0x20:0 bridgePossible 1 >> Sending IPMI command payload >> netfn : 0x04 >> command : 0x20 >> data : Local RqAddr 0x20 transit 0:0 target 0x20:0 bridgePossible 1 >> Sending IPMI command payload >> netfn : 0x0a >> command : 0x22 >> data : Local RqAddr 0x20 transit 0:0 target 0x20:0 bridgePossible 1 SDR reservation ID 0006 >> Sending IPMI command payload >> netfn : 0x0a >> command : 0x23 >> data : 0x06 0x00 0x00 0x00 0x00 0x05 Local RqAddr 0x20 transit 0:0 target 0x20:0 bridgePossible 1 Get SDR 0000 command failed: Requested sensor, data, or record not found >> Sending IPMI command payload >> netfn : 0x0a >> command : 0x23 >> data : 0x06 0x00 0x00 0x00 0x00 0x05 Local RqAddr 0x20 transit 0:0 target 0x20:0 bridgePossible 1 Get SDR 0000 command failed: Requested sensor, data, or record not found >> Sending IPMI command payload >> netfn : 0x0a >> command : 0x23 >> data : 0x06 0x00 0x00 0x00 0x00 0x05 Local RqAddr 0x20 transit 0:0 target 0x20:0 bridgePossible 1 Get SDR 0000 command failed: Requested sensor, data, or record not found >> Sending IPMI command payload >> netfn : 0x0a >> command : 0x23 >> data : 0x06 0x00 0x00 0x00 0x00 0x05 Local RqAddr 0x20 transit 0:0 target 0x20:0 bridgePossible 1 Get SDR 0000 command failed: Requested sensor, data, or record not found >> Sending IPMI command payload >> netfn : 0x0a >> command : 0x23 >> data : 0x06 0x00 0x00 0x00 0x00 0x05 Local RqAddr 0x20 transit 0:0 target 0x20:0 bridgePossible 1 Get SDR 0000 command failed: Requested sensor, data, or record not found >> Sending IPMI command payload >> netfn : 0x06 >> command : 0x3c >> data : 0x02 0x01 0x00 0x00 Local RqAddr 0x20 transit 0:0 target 0x20:0 bridgePossible 0 Closed Session 00000102 <<OPEN SESSION RESPONSE << Message tag : 0x00 << RMCP+ status : no errors << Maximum privilege level : Unknown (0x00) << Console Session ID : 0xa0a2a3a4 << BMC Session ID : 0x00000102 << Negotiated authenticatin algorithm : hmac_sha1 << Negotiated integrity algorithm : hmac_sha1_96 << Negotiated encryption algorithm : aes_cbc_128 <<RAKP 2 MESSAGE << Message tag : 0x00 << RMCP+ status : no errors << Console Session ID : 0xa0a2a3a4 << BMC random number : 0xf91e1518a4ce2f4364f79c08304d2526 << BMC GUID : 0xa123456789abcdefa123456789abcdef << Key exchange auth code [sha1] : 0xb8ff57d9242c899153ed3da809662357650f3f81 <<RAKP 4 MESSAGE << Message tag : 0x00 << RMCP+ status : no errors << Console Session ID : 0xa0a2a3a4 << Key exchange auth code [sha1] : 0x17db29555c647462d56a9214 SDRR successfully erased Err in cmd get sensor sdr info ---------------------------------------------------------------------- I did not set up QEMU, as only a simple simulator with few sensors is necessary. Can you help ? What am I doing wrong if even demo example does not work ? Thanks! Andris Mednis ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Openipmi-developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openipmi-developer
