Hello, thank you for your help! I used the command line:
"ipmitool -I lan -H 172.30.2.118 -P password chassis power status" in a remote machine,
and found it was ok!
Best wishes for you families!
regards,
Chenli Hu
Chen Li Hu/China/Contr/IBM
2006-09-15 17:29 |
|
Hello, i think the network is ok, maybe there are some wrong with the authentication ??
when strace "ipmitool -I lan -H 172.30.2.118 -P password chassis power status"
i found it conneted and sent out a message sucessfully, but failed to receive messages ???
mcptest8:~ # strace ipmitool -I lan -H 172.30.2.118 -P password chassis power status
execve("/bin/ipmitool", ["ipmitool", "-I", "lan", "-H", "172.30.2.118", "-P", "password", "chassis", "power", "status"], [/* 49 vars */]) = 0
[ Process PID=3308 runs in 32 bit mode. ]
brk(0) = 0x811f000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xfffffffff7f36000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(0x3, 0xffc4a0a8) = 0
mmap2(NULL, 34296, PROT_READ, MAP_PRIVATE, 3, 0) = 0xfffffffff7f2d000
close(3) = 0
open("/lib/libm.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0004\0"..., 512) = 512
fstat64(0x3, 0xffc4a12c) = 0
......
socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(623), sin_addr=inet_addr("172.30.2.118")}, 16) = 0 // connect success??
rt_sigaction(SIGALRM, {0x8075a40, [], SA_STACK|SA_NOCLDSTOP|0x49270}, NULL, 8) = 0
send(3, "\6\0\377\6\0\0\21\276\200\0\0\0", 12, 0) = 12 // send success ??
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
alarm(2) = 0
recv(3, 0x811e141, 1024, 0) = ? ERESTARTSYS (To be restarted) // recv failed ??
--- SIGALRM (Alarm clock) @ 0 (0) ---
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
alarm(0) = 0
send(3, "\6\0\377\7\0\0\0\0\0\0\0\0\0\t \30\310\201\0008\16\004"..., 23, 0) = 23
nanosleep({429496729600000, 578552079250138664}, NULL) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
alarm(2) = 0
recv(3, 0x811e141, 1024, 0) = ? ERESTARTSYS (To be restarted)
--- SIGALRM (Alarm clock) @ 0 (0) ---
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
alarm(0) = 0
nanosleep({21474836480000000, 578552225279026728}, NULL) = 0
send(3, "\6\0\377\7\0\0\0\0\0\0\0\0\0\t \30\310\201\0008\16\004"..., 23, 0) = 23
.......
close(3) = 0
write(2, "ipmi_lan_send_cmd failed to open"..., 39ipmi_lan_send_cmd failed to open intf
) = 39
write(2, "Unable to get Chassis Power Stat"..., 36Unable to get Chassis Power Status
) = 36
exit_group(1) = ?
Process 3308 detached
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Ipmitool-devel mailing list Ipmitool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ipmitool-devel