简体   繁体   English

如何将会话导入 MobaXterm?

[英]How to import sessions into MobaXterm?

I have to monitor many servers (over 3000) and the management has decided to use MobaXterm.我必须监控许多服务器(超过 3000 台),管理层决定使用 MobaXterm。 All right, it works fine.好吧,它工作正常。

The ideal would be to have sessions already set up and shared with colleagues, it would be a considerable convenience.理想的情况是已经设置了会话并与同事共享,这将是一个相当大的便利。

Is there a way to massively import server data (name, ip, login) into sessions instead of insert them one by one?有没有一种方法可以将服务器数据(名称、IP、登录名)大量导入到会话中,而不是一个一个地插入它们?

From the Sessions tab, left click User sessions and select Import sessions from fileSessions选项卡中,左键单击User sessions并选择Import sessions from file

从文件导入会话

The file should be similar to the following image.该文件应类似于下图。

在此处输入图片说明

The version is Personal Edition v11.0 .版本为Personal Edition v11.0

MobaXterm is able to import sessions from a list of hosts, but this is limited to the import of hosts without users/port/passwords/advanced settings. MobaXterm 能够从主机列表中导入会话,但这仅限于导入没有用户/端口/密码/高级设置的主机。 For that, you have to create a file with one server per line.为此,您必须创建一个每行一台服务器的文件。

Then, in order to try this feature, you can start a local terminal and run the "ServersListToMxtSessions.sh" script.然后,为了尝试此功能,您可以启动本地终端并运行“ServersListToMxtSessions.sh”脚本。 The script will ask you to select a file, so just select the one you have created.该脚本将要求您选择一个文件,因此只需选择您创建的文件即可。

Hope it helps....希望它有帮助......

MobaXterm is able to import sessions either from: MobaXterm 能够从以下任一方式导入会话:

  • The file in .mxtsessions format. .mxtsessions格式的文件。

    You can export few examples first to see the syntax, so you can write a script to save it into that format.您可以先导出几个示例以查看语法,因此您可以编写脚本将其保存为该格式。

  • PuTTy/SuperPuTTy sessions. PuTTy/SuperPuTTy 会话。

    All sessions from PuTTy can be imported. PuTTy 中的所有会话都可以导入。 To import into PuTTy, you can create a registry file .要导入 PuTTy,您可以创建一个注册表文件.

  • Other session formats (check the contextual menu in Sessions for full list).其他会话格式(检查会话中上下文菜单以获取完整列表)。

Alternatively use a macro app to achieve that (such as AutoHotkey ).或者使用宏应用程序来实现(例如AutoHotkey )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM