The lan command will set up a connection with the remote
system on anything but the help command (stats, get, etc.),
but will appear to the user that they simply typed the command
wrong and show the usage data.
(Tested with version 1.8.12 on mac os X mtn lion and centos 6.3.)
Examples.
Usually in ipmitool you do something wrong or incomplete,
it'll return with some usage information, like:
# ipmitool -v -H 192.168.0.23 -P calvin -U root user
User Commands:
summary [<channel number>]
list [<channel number>]
set name <user id> <username>
set password <user id> [<password>]
disable <user id>
enable <user id>
priv <user id> <privilege level> [<channel number>]
test <user id> <16|20> [<password]>
With the lan command if you just type "lan" it does exactly
that, print out usage info.
However, with "lan info" and "lan stats" it actually sends packets
to the remote system - but returns a response indistinguishable to
the basic usage output.
Indeed, the lan command with any argument (e.g. "lan foo") other
than help will set up a connection with the BMC requesting channel
info and all that (sample tshark -x data below, with "lan foo" typed
along with the correct auth data to 198.168.0.23.)
dan
^..^
24.399989 192.168.0.55 -> 192.168.0.23 IPMI/ATCA Req, Get Channel
Authentication Capabilities, seq 0x01
24.400652 192.168.0.23 -> 192.168.0.55 IPMI/ATCA Rsp, Get Channel
Authentication Capabilities, seq 0x01
24.400685 192.168.0.55 -> 192.168.0.23 IPMI/ATCA Req, Get Session Challenge,
seq 0x02
24.419798 192.168.0.23 -> 192.168.0.55 IPMI/ATCA Rsp, Get Session Challenge,
seq 0x02
24.419903 192.168.0.55 -> 192.168.0.23 IPMI/ATCA Req, Activate Session, seq
0x03
24.420936 192.168.0.23 -> 192.168.0.55 IPMI/ATCA Rsp, Activate Session, seq
0x03
24.420957 192.168.0.55 -> 192.168.0.23 IPMI/ATCA Req, Set Session Privilege
Level, seq 0x04
24.421647 192.168.0.23 -> 192.168.0.55 IPMI/ATCA Rsp, Set Session Privilege
Level, seq 0x04
24.421675 192.168.0.55 -> 192.168.0.23 IPMI/ATCA Req, Get Device ID, seq 0x05
24.424949 192.168.0.23 -> 192.168.0.55 IPMI/ATCA Rsp, Get Device ID, seq 0x05
24.424976 192.168.0.55 -> 192.168.0.23 IPMI/ATCA Req, Get Channel Info, seq
0x06
24.426638 192.168.0.23 -> 192.168.0.55 IPMI/ATCA Rsp, Get Channel Info, seq
0x06
24.426707 192.168.0.55 -> 192.168.0.23 IPMI/ATCA Req, Close Session, seq 0x07
24.427489 192.168.0.23 -> 192.168.0.55 IPMI/ATCA Rsp, Close Session, seq 0x07
------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
Ipmitool-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ipmitool-devel