|
WebNMS Application/Applet Client supports Telnet and SSH for managing the devices remotely. Once a device is discovered as a node, Telnet menu is enabled by default.
By default, the Telnet option is provided to log in to any remote device discovered in a network.
Telnet menu available in the maps can be further enhanced by configuring the following additional parameters:
You can implement the following additional features by modifying the snmpmenu.xml and nodemenu.xml files located in the <WebNMS Home>/mapdata/menus directory. The configuration files available in <Web NMS Home>/listmenus should also be configured with the same modifications. Ensure to restart the WebNMS Server if you have modified these configuration files.
To enable automatic login while opening a Telnet
Session to a device, configure the following parameters:
port: The port in which the Telnet Server is running.
loginPrompt: This is the prompt issued by the remote device for getting the user name or login name. Typically this is "login" for Unix systems.
username: This is the user name or login name that is present on the system.
passwordPrompt: This is the prompt issued by the remote system for getting the password for the user name provided. Typically this is "Password" for Unix systems.
password: The password for the user name.
<?xml version="1.0"?>
<!DOCTYPE MENU SYSTEM "menu.dtd">
<MENU
..........
..........
<MENU-ITEM
name="Telnet to device">
<JAVA-UI
action_type="openframe"
action_value="com.adventnet.telnet.telnetwindow.NmsTelnetFrame?host=${ipAddress}&port=23&username=guest&loginPrompt=login:&passwordPrompt=Password:&password=guest">
</JAVA-UI>
</MENU-ITEM>
</MENU>
|
|
Note:
|
<MENU-ITEM
name="Telnet to device">
<JAVA-UI
action_type="openframe" action_value="com.adventnet.telnet.telnetwindow.NmsTelnetFrame?host=${ipAddress}&frameTitle=MyFrameTitle">
</JAVA-UI>
</MENU-ITEM>
<MENU-ITEM
name="Telnet to device">
<JAVA-UI
action_type="openframe" action_value="com.adventnet.telnet.telnetwindow.NmsTelnetFrame?host=${ipAddress}&fontSize=11">
</JAVA-UI>
</MENU-ITEM>
<MENU-ITEM
name="Telnet to device">
<JAVA-UI
action_type="openframe" action_value="com.adventnet.telnet.telnetwindow.NmsTelnetFrame?host=${ipAddress}&encoding=gb2312">
</JAVA-UI>
</MENU-ITEM>
<MENU-ITEM
name="Telnet to device">
<JAVA-UI
action_type="openframe" action_value="com.adventnet.telnet.telnetwindow.NmsTelnetFrame?host=${ipAddress}&terminalType=vt100">
</JAVA-UI>
</MENU-ITEM>
<MENU-ITEM
name="Telnet to device">
<JAVA-UI
action_type="openframe" action_value="com.adventnet.telnet.telnetwindow.NmsTelnetFrame?host=${ipAddress}&socketTimeout=300">
</JAVA-UI>
</MENU-ITEM>
|
|
Note: The Socket Timeout is set in seconds. |
<MENU-ITEM
name="Telnet to device">
<JAVA-UI
action_type="openframe" action_value="com.adventnet.telnet.telnetwindow.NmsTelnetFrame?host=${ipAddress}&iconImage=Image.png">
</JAVA-UI>
</MENU-ITEM>
|
|
Note: The Image (Image.png) icon can be placed in AdventNetCLI.jar in the com.adventnet.telnet.telnetwindow package. It can also be placed in any other directory from where the application starts and the parameter for iconImage has to be set as /ImagesHome/Image.png |
Closing Telnet Window automatically
on disconnecting from Remote Host
<MENU-ITEM
name="Telnet to device">
<JAVA-UI
action_type="openframe"
action_value="com.adventnet.telnet.telnetwindow.NmsTelnetFrame?host=${ipAddress}&closeOnDisconnect=true">
</JAVA-UI>
</MENU-ITEM>
|
|
Note: If closeOnDisconnect is set to any other value than true / TRUE, the Telnet Window remains open. |
Starting Telnet Session to a Device
On configuring the above parameters, you can start the Telnet Session to a device.
In map, select the device for which you need to start a telnet session.
Right-click the device and choose Snmp-Node or Node menu > Telnet to Device. The Telnet window is displayed.
|
|
Note: The telnet functionality will be invoked using the RMI API "TELNET". Therefore, RMI is necessary for the telnet client to work. |
SSH is a secured connection between device and Server, which needs valid user name and password to log in. The user has to authenticate before connecting to the device remotely. SSH to Device menu is an optional menu item (not available in Client by default), which can be enabled by configuring Server-side configuration files.
|
|
Note: SSH is available in two versions, namely SSH1 and SSH2. |
Configuring SSH to Device Menu Item
To enable menu item in WebNMS Client
Shut down the WebNMS Server and Client before configuring the files.
Edit NmsProcessesBE.conf file available in <WebNMS Home>/conf directory and modify the process com.adventnet.nms.telnet.telnetwindow.StartTelnetClient as given below. If the process in not present in the file, add the following lines:
#java com.adventnet.nms.telnet.telnetwindow.StartTelnetClient
[SSH_SUPPORT_REQUIRED true/false]
PROCESS com.adventnet.nms.telnet.telnetwindow.StartTelnetClient
ARGS SSH_SUPPORT_REQUIRED true
Edit the NmsProcessesFE.conf file located in the <WebNMS Home>/conf directory and modify the process com.adventnet.nms.telnet.telnetwindow.StartTelnetClient as given below. If the process in not present in the file, add the following :
#java com.adventnet.nms.fe.telnet.telnetwindow.StartTelnetClientFE
[SSH_SUPPORT_REQUIRED true/false]
PROCESS
com.adventnet.nms.fe.telnet.telnetwindow.StartTelnetClientFE
ARGS SSH_SUPPORT_REQUIRED true
Edit the nodemenu.xml, snmpmenu.xml,
and routermenu.xml files
located in the <WebNMS Home>/mapdata/menus
directory and add the following:
<MENU-ITEM name="SSH to device">
<JAVA-UI action_value="com.adventnet.telnet.telnetwindow.NmsTelnetFrame?host=${ipAddress}&port=22&sshRequired=true"
action_type="openframe"/>
</MENU-ITEM>
Edit the nodemenu.xml and snmpmenu.xml files located in the <WebNMS Home>/listmenus directory and add the following:
<MENU-ITEM name="SSH to device">
<JAVA-UI
action_value="com.adventnet.telnet.telnetwindow.NmsTelnetFrame?host=${ipAddress}&port=22&sshRequired=true"
action_type="openframe"/>
</MENU-ITEM>
Now start the WebNMS Server.
To enable automatic SSH login to device in menu item of WebNMS Client
Edit the nodemenu.xml, snmpmenu.xml, and routermenu.xml files located in the <WebNMS Home>/mapdata/menus directory and add the following:
<MENU-ITEM
name="SSH to device">
<JAVA-UI
action_type="openframe" action_value="com.adventnet.telnet.telnetwindow.NmsTelnetFrame?host=${ipAddress}&port=22&closeOnDisconnect=true&sshRequired=true&username=root&password=rootpwd"/>
</MENU-ITEM>
Edit the nodemenu.xml and snmpmenu.xml files located in the <WebNMS Home>/listmenus directory and add the following:
<MENU-ITEM
name="SSH to device">
<JAVA-UI
action_type="openframe" action_value="com.adventnet.telnet.telnetwindow.NmsTelnetFrame?host=${ipAddress}&port=22&closeOnDisconnect=true&sshRequired=true&username=root&password=rootpwd"/>
</MENU-ITEM>
|
|
Note:
|
Starting SSH Session to Device
On configuring the above parameters, you can start the SSH Session to a device.
In map, select the device for which you need to start an SSH session.
Right-click the device and choose Snmp-Node or Node menu > SSH to Device. The Authentication dialog box is displayed.
Specify user name and password.
Click Login. The SSH window is displayed.
|