资源简介
IPMI实例代码
代码片段和文件信息
/*
* VxipmiRunner.java
* Created on 2011-09-20
*
* Copyright (c) Verax Systems 2011.
* All rights reserved.
*
* This software is furnished under a license. Use duplication
* disclosure and all other uses are restricted to the rights
* specified in the written license agreement.
*/
package com.veraxsystems.vxipmi.test;
import java.net.InetAddress;
import com.veraxsystems.vxipmi.api.async.ConnectionHandle;
import com.veraxsystems.vxipmi.api.sync.IpmiConnector;
import com.veraxsystems.vxipmi.coding.commands.IpmiVersion;
import com.veraxsystems.vxipmi.coding.commands.PrivilegeLevel;
import com.veraxsystems.vxipmi.coding.commands.chassis.GetChassisStatus;
import com.veraxsystems.vxipmi.coding.commands.chassis.GetChassisStatusResponseData;
import com.veraxsystems.vxipmi.coding.protocol.AuthenticationType;
import com.veraxsystems.vxipmi.coding.security.CipherSuite;
public class VxipmiRunner {
/**
* @param args
* @throws Exception 你好
*/
public static void main(String[] args) throws Exception {
IpmiConnector connector;
// Create the connector specify port that will be used to communicate
// with the remote host. The UDP layer starts listening at this port so
// no 2 connectors can work at the same time on the same port.
connector = new IpmiConnector(6000);
System.out.println(“Connector created“);
// Create the connection and get the handle specifiy IP address of the
// remote host. The connection is being registered in ConnectionManager
// the handle will be needed to identify it among other connections
// (target IP address isn‘t enough since we can handle multiple
// connections to the same host)
ConnectionHandle handle = connector.createConnection(InetAddress
.getByName(“192.168.32.196“));
System.out.println(“Connection created“);
// Get available cipher suites list via getAvailableCipherSuites and
// pick one of them that will be used further in the session.
CipherSuite cs = connector.getAvailableCipherSuites(handle).get(3);
System.out.println(“Cipher suite picked“);
// Provide chosen cipher suite and privilege level to the remote host.
// From now on your connection handle will contain these information.
connector.getChannelAuthenticationCapabilities(handle cs
PrivilegeLevel.Administrator);
System.out.println(“Channel authentication capabilities receivied“);
// Start the session provide username and password and optionally the
// BMC key (only if the remote host has two-key authentication enabled
// otherwise this parameter should be null)
connector.openSession(handle “root“ “root“ null);
System.out.println(“Session open“);
// Send some message and read the response
GetChassisStatusResponseData rd = (GetChassisStatusResponseData) connector
.sendMessage(handle new GetChassisStatus(IpmiVersion.V20 cs
AuthenticationType.RMCPPlus));
System.out.println(“Received ans
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 580 2012-03-30 17:33 .classpath
文件 380 2012-03-30 17:11 .project
目录 0 2012-03-30 17:11 .settings\
文件 629 2012-03-30 17:11 .settings\org.eclipse.jdt.core.prefs
目录 0 2012-04-09 16:21 bin\
目录 0 2012-04-09 16:21 bin\com\
目录 0 2012-04-09 16:21 bin\com\veraxsystems\
目录 0 2012-04-09 16:21 bin\com\veraxsystems\vximpi\
目录 0 2012-04-09 16:21 bin\com\veraxsystems\vximpi\test\
文件 849 2012-04-09 16:21 bin\com\veraxsystems\vximpi\test\All.class
文件 5348 2012-04-09 16:21 bin\com\veraxsystems\vximpi\test\AsyncApiTest.class
文件 1853 2012-04-09 16:21 bin\com\veraxsystems\vximpi\test\CoderTest$ConnectionListenerImpl.class
文件 9824 2012-04-09 16:21 bin\com\veraxsystems\vximpi\test\CoderTest.class
文件 6679 2012-04-09 16:21 bin\com\veraxsystems\vximpi\test\ConnectionManagerTest$OverloadRunner.class
文件 5295 2012-04-09 16:21 bin\com\veraxsystems\vximpi\test\ConnectionManagerTest.class
文件 5196 2012-04-09 16:21 bin\com\veraxsystems\vximpi\test\ConnectionTest.class
文件 2327 2012-04-09 16:21 bin\com\veraxsystems\vximpi\test\Listener.class
文件 3066 2012-04-09 16:21 bin\com\veraxsystems\vximpi\test\Miscellaneous.class
文件 4320 2012-04-09 16:21 bin\com\veraxsystems\vximpi\test\SessionRunner.class
文件 16598 2012-04-09 16:21 bin\com\veraxsystems\vximpi\test\StateMachineTest.class
文件 4581 2012-04-09 16:21 bin\com\veraxsystems\vximpi\test\SyncApiTest.class
文件 2138 2012-04-09 16:21 bin\com\veraxsystems\vximpi\test\UdpLoad.class
目录 0 2012-04-09 16:21 bin\com\veraxsystems\vxipmi\
目录 0 2012-04-09 16:21 bin\com\veraxsystems\vxipmi\api\
目录 0 2012-04-09 16:21 bin\com\veraxsystems\vxipmi\api\async\
文件 1251 2012-04-09 16:21 bin\com\veraxsystems\vxipmi\api\async\ConnectionHandle.class
文件 7969 2012-04-09 16:21 bin\com\veraxsystems\vxipmi\api\async\IpmiAsyncConnector.class
文件 219 2012-04-09 16:21 bin\com\veraxsystems\vxipmi\api\async\IpmiListener.class
目录 0 2012-04-09 16:21 bin\com\veraxsystems\vxipmi\api\async\messages\
文件 785 2012-04-09 16:21 bin\com\veraxsystems\vxipmi\api\async\messages\IpmiError.class
文件 764 2012-04-09 16:21 bin\com\veraxsystems\vxipmi\api\async\messages\IpmiResponse.class
............此处省略1100个文件信息
相关资源
- ipmi 协议 IPMI V2.0工作原理详解
- 电影购票系统
- 超微 IPMI 管理 工具
- 通过IPMI远程部署ESXI.pdf
- NCSI简介使用手册
- IPMIView中文版ipmi批量管理工具
- ipmi-second-gen-interface-spec-v2
- Network Controller Sideband Interface (NC-SI)
- PICMG_ HPM.1_R1.0_SLAC.pdf
- Intelligent Platform Management Interface Spec
- IPMI 2.0 spec
- IPMI V1.5IPMI V2.0
- Windows 可用的ipmitool 解压可用
- ipmitool windows
- ipmitool for windows1.8.18
- ipmitool v1.8.18 for windows
- SuperMicro_IPMICFG_1.28.0_build.20180302
- IPMItool 1.8.8 for Microsoft Windows 2003 with
- 操作系统 基于优先数的时间片轮转调
- Java实现K-means算法
- windows下的ipmitool 及常用命令集
- ipmi接口总结、ipmi接口总结、
- Windows IPMITOOL
- 软件工程课程设计报告(Java实现扫雷
评论
共有 条评论