Sunteți pe pagina 1din 2

Changes on WUG Server:

1st File: C:\Program Files


(x86)\Ipswitch\WhatsUp\HTML\NmConsole\CoreNm\Tools\Public.inc
Add the following to the var Tool section
var TOOL_SSH
="SSH";
In function GetToolHref add the following to the switch(sTool) section:
case TOOL_SSH:
return "ssh://" + sNetworkAddress;
In function GetToolIconSrc add the following to the switch(sTool) section:
case TOOL_SSH:
return "/NmConsole/CoreNm/Tools/images/icon-ssh.png";
In <script Language="JavaScript"> section add:
var TOOL_SSH
="SSH";
2. 2nd File: C:\Program Files
(x86)\Ipswitch\WhatsUp\HTML\NmConsole\Reports\Workspace\Device\General\WrDevice
Details\_WrDeviceDetails.inc
In function ShowToolTable add:
<td class="ToolItem"><a href="<%= GetToolHref(TOOL_SSH, nDeviceID,
sNetworkAddress) %>"><img border="0" src="<%= GetToolIconSrc(TOOL_SSH) %>"
title="SSH to <%=sDisplayName%>"></a></td>
3. 3rd File: C:\Program Files
(x86)\Ipswitch\WhatsUp\HTML\NmConsole\DeviceManagement\DeviceList\trNetworkMen
u.inc
Add the following to the "DeclareTranslation" section:
oNetworkMenuTranslate.DeclareTranslation("SSH", "SSH");
Add the following to the "NetworkMenu.t_sXXXXX" section:
NetworkMenu.t_sSSH = "<%= GetNetworkMenuTranslation("SSH") %>";
th
4. 4 File: C:\Program Files
(x86)\Ipswitch\WhatsUp\HTML\NmConsole\DeviceManagement\DeviceList\NetworkMenu.
js
1.

In the GetListToolsMenu() function:

Add the following to the "tool links" section:


var sSSHLink = GetToolHref(TOOL_SSH, nDeviceID, sNetworkAddress);

Add the following to the "if" statement:


sSSHLink = null;

Add the following to the "oMenuTools.AddMenuItem" section:

oMenuTools.AddMenuItem(NetworkMenu.t_sSSH, "HREF", sSSHLink,


GetToolIconSrc(TOOL_SSH));
5. Copy ssh.png to C:\ProgramFiles
(x86)\Ipswitch\WhatsUp\HTML\NmConsole\CoreNm\Tools\images\
Changes on Operator Workstation

Copy putty.exe and putty.cmd to C:\windows\.


Execute the putty.reg file. This will input registry entries on your windows machine.

S-ar putea să vă placă și