On Mon, Nov 5, 2012 at 5:26 PM, ^..^ <zenf...@gmail.com> wrote:
> 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.)
>

If I understand code correctly, and I'm sad to ever say this, but this
seems like a feature rather than a bug. You see, interface is being
opened and closed in 'lib/ipmi_main.c', resp. ipmi_main(). Thus way
sooner than all arguments are validated.
My $0.02 USD. I haven't studied 'src/plugins/lan/' and might got it all wrong.

Z.

> 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
> Ipmitool-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ipmitool-devel

------------------------------------------------------------------------------
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
Ipmitool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipmitool-devel

Reply via email to