定制 ocolin/hyconext 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ocolin/hyconext

最新稳定版本:1.10

Composer 安装命令:

composer require ocolin/hyconext

包简介

Basic interface for Hyconext switch

README 文档

README

This is a little plugin to handle sending commands to a Hyconext switch. Regular ssh commands don't work, but expect does. Instead of requiring a PHP expect extension, it relies on the expect binary.

Requirements

Must have expect binary on host system.

Setup

Constructor takes 4 arguments:

  • $host - Name or IP of the Hyconext device.
  • $pass - Password for Hyconext device.
  • $user - Username of Hyconext device. Defaults to 'admin'.
  • $path - Optional path to expect binary. Defaults to /usr/bin/expect. Should only be the path to expect and not the binary itself. If another binary is supplied only the path will be used.

Example:

$hyconextApi = Ocolin\Hyconext\API(
    host: '10.10.10.10',
    user: 'admin',
    pass: $_ENV['password']
);

Calls

Show Mac-Address

This command returns a list of the MAC table.

Example

$output = $hyconextApi->show_Mac_Address();

This will return an object containing the property 'totals' with the totals of the type of addresses, and the property 'list' which will contain a list of objects representing the MAC addresses from the MAC table.

统计信息

  • 总下载量: 16
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-07-08