 |
| View previous topic :: View next topic |
| Author |
Message |
oxigem Newbie
Joined: 01 Dec 2006 Posts: 7
|
Posted: Wed Dec 06, 2006 4:07 pm Post subject: Problems getting SSH to work on Openview 7.5 NNM |
|
|
Hi All
Need some assistance. I am trying to get Teraterm SSH to work with a windows version of Network Node Manager (v7.5 advanced edition).
I have edited the terminal file in the HPOV\C\Registration directory and have put the correct path to teraterm but whenever I right click on a node and select SSH it does nothing, it does not launch Teraterm SSH.
I am not sure what I am doing wrong , as when I cut and paste the command line to RUN on the Windows 2K server it launches Teraterm fine.
Has anyone succesfully managed to get SSH to work on a Windows Server Box with NNM v7.5 - if so please can you assist.
Thank you in advance  |
|
| Back to top |
|
 |
aeroforce Active Member
Joined: 13 Jul 2006 Posts: 11
|
Posted: Mon Jan 08, 2007 3:03 pm Post subject: Here is my config see if it helps |
|
|
Just replace Teraterm in the config and it should work. I used the telnet to build this script. If you are trying to get the WEBGUI side let me know and I will send you that script also.
/*
* Network Node Manager SecureCRT Connect
*
* $Revision: /main/NNMET/NCIV/1 $
* $Date: 2004/03/05 16:32 UTC $
*/
Application "SecureCRT Connect"
{
Description {
"HP OpenView",
"Enables you to create a SecureCRT connection ",
"on a local system that is connected to a remote system ",
"via a network virtual terminal protocol."
}
DisplayString "SecureCRT ";
Version "NNM Release B.07.50 Oct 05 2004";
Copyright {
"(c) Copyright 1990-2004 Hewlett-Packard Development Company, LP",
"All rights reserved"
}
/*
* POP-UP MENU for SecureCRT
*/
PopupItem <100> "SecureCRT"
CONTEXT "AllContexts || isIP || WantPopupMenus"
TargetSymbolType "Connection":Any
#ifdef HPUX
f.action "HPSSH SSH" ;
#endif
#ifdef SOLARIS
f.action "Cmd SSH" ;
#endif
#ifdef NT
f.action "SecureCRT";
#endif
#ifdef LINUX
f.action "LinuxSSH SSH";
#endif
PopupItem <100> "SecureCRT"
CONTEXT "AllContexts || isIP || WantPopupMenus"
TargetSymbolType "Computer":Any
#ifdef HPUX
f.action "HPSSH SSH" ;
#endif
#ifdef SOLARIS
f.action "Cmd SSH" ;
#endif
#ifdef NT
f.action "SecureCRT";
#endif
#ifdef LINUX
f.action "LinuxSSH SSH";
#endif
PopupItem <100> "SecureCRT"
CONTEXT "AllContexts || isIP || WantPopupMenus"
TargetSymbolType "Server":Any
#ifdef HPUX
f.action "HPSSH SSH" ;
#endif
#ifdef SOLARIS
f.action "Cmd SSH" ;
#endif
#ifdef NT
f.action "SecureCRT";
#endif
#ifdef LINUX
f.action "LinuxSSH SSH";
#endif
PopupItem <100> "SecureCRT"
CONTEXT "AllContexts || isIP || WantPopupMenus"
TargetSymbolType "Connector":Any
#ifdef HPUX
f.action "HPSSH SSH" ;
#endif
#ifdef SOLARIS
f.action "Cmd SSH" ;
#endif
#ifdef NT
f.action "SecureCRT";
#endif
#ifdef LINUX
f.action "LinuxSSH SSH";
#endif
/*
** Tools
*/
MenuBar <100> "Tools" _T
{
<100> "SecureCRT" _T f.menu "SecureCRT";
}
Menu "SecureCRT"
{
#ifdef HPUX
<100> "SSH (hpssh)" _h CONTEXT "AllContexts || isIP" f.action "HPSSH SSH";
#endif /* HPUX */
#ifdef LINUX
<100> "SSH (ssh)" _x CONTEXT "AllContexts || isIP" f.action "LinuxSSH SSH";
#endif /* LINUX */
#ifdef NT
<100> "SecureCRT" _h CONTEXT "AllContexts || isIP" f.action "SecureCRT";
#endif /* NT */
#ifdef HPUX
/** Remove comments if you have vt3k on HPUX 10 **
<100> "><Vt3k (hp3000): Block Mode" _B CONTEXT "AllContexts || isIP" f.action "Block vt3k";
<100> "><Vt3k (hp3000): Type Ahead" _T CONTEXT "AllContexts || isIP" f.action "Typeahead vt3k";
** Remove comments if you have vt3k on HPUX 10 **/
#endif /* HPUX */
#ifdef SOLARIS
<100> "Telnet (cmd)" _c CONTEXT "AllContexts || isIP" f.action "CmdSSH SSH";
#endif /* SOLARIS */
}
#ifdef HPUX
Action "HPSSH SSH"
{
MinSelected 1;
MaxSelected 1;
SelectionRule (isNode || isInterface) && isIP;
NameField "IP Hostname", "IP Address";
Command "ssh";
}
#endif /* HPUX */
#ifdef LINUX
Action "LinuxSSH SSH"
{
MinSelected 1;
MaxSelected 1;
SelectionRule (isNode || isInterface) && isIP;
NameField "IP Hostname", "IP Address";
Command "ssh";
}
#endif /* LINUX */
#ifdef NT
Action "SecureCRT"
{
MinSelected 1;
MaxSelected 1;
SelectionRule (isNode || isInterface) && isIP;
NameField "IP Hostname", "IP Address";
Command "cmd /c securecrt $OVwSelections";
}
#endif /* NT */
#ifdef HPUX
/** Remove comments if you have vt3k on HPUX 10 **
Action "Block vt3k"
{
MinSelected 1;
MaxSelected 1;
SelectionRule (isNode || isInterface) && (vendor=="Hewlett-Packard");
NameField "IP Hostname", "IP Address";
Command "xnmvt3k block";
}
Action "Typeahead vt3k"
{
MinSelected 1;
MaxSelected 1;
SelectionRule (isNode || isInterface) && (vendor=="Hewlett-Packard");
NameField "IP Hostname", "IP Address";
Command "xnmvt3k typeahead";
}
** Remove comments if you have vt3k on HPUX 10 **/
#endif /* HPUX */
#ifdef SOLARIS
Action "CmdSSH SSH"
{
MinSelected 1;
MaxSelected 1;
SelectionRule (isNode || isInterface) && isIP;
NameField "IP Hostname", "IP Address";
Command "ssh";
}
#endif /* SOLARIS */
} |
|
| Back to top |
|
 |
npkt83 Newbie
Joined: 14 Mar 2007 Posts: 2
|
Posted: Wed Mar 14, 2007 9:06 am Post subject: Re: Here is my config see if it helps |
|
|
| aeroforce wrote: | Just replace Teraterm in the config and it should work. I used the telnet to build this script. If you are trying to get the WEBGUI side let me know and I will send you that script also.
/*
* Network Node Manager SecureCRT Connect
*
* $Revision: /main/NNMET/NCIV/1 $
* $Date: 2004/03/05 16:32 UTC $
*/
Application "SecureCRT Connect"
{
Description {
"HP OpenView",
"Enables you to create a SecureCRT connection ",
"on a local system that is connected to a remote system ",
"via a network virtual terminal protocol."
}
DisplayString "SecureCRT ";
Version "NNM Release B.07.50 Oct 05 2004";
Copyright {
"(c) Copyright 1990-2004 Hewlett-Packard Development Company, LP",
"All rights reserved"
}
/*
* POP-UP MENU for SecureCRT
*/
PopupItem <100> "SecureCRT"
CONTEXT "AllContexts || isIP || WantPopupMenus"
TargetSymbolType "Connection":Any
#ifdef HPUX
f.action "HPSSH SSH" ;
#endif
#ifdef SOLARIS
f.action "Cmd SSH" ;
#endif
#ifdef NT
f.action "SecureCRT";
#endif
#ifdef LINUX
f.action "LinuxSSH SSH";
#endif
PopupItem <100> "SecureCRT"
CONTEXT "AllContexts || isIP || WantPopupMenus"
TargetSymbolType "Computer":Any
#ifdef HPUX
f.action "HPSSH SSH" ;
#endif
#ifdef SOLARIS
f.action "Cmd SSH" ;
#endif
#ifdef NT
f.action "SecureCRT";
#endif
#ifdef LINUX
f.action "LinuxSSH SSH";
#endif
PopupItem <100> "SecureCRT"
CONTEXT "AllContexts || isIP || WantPopupMenus"
TargetSymbolType "Server":Any
#ifdef HPUX
f.action "HPSSH SSH" ;
#endif
#ifdef SOLARIS
f.action "Cmd SSH" ;
#endif
#ifdef NT
f.action "SecureCRT";
#endif
#ifdef LINUX
f.action "LinuxSSH SSH";
#endif
PopupItem <100> "SecureCRT"
CONTEXT "AllContexts || isIP || WantPopupMenus"
TargetSymbolType "Connector":Any
#ifdef HPUX
f.action "HPSSH SSH" ;
#endif
#ifdef SOLARIS
f.action "Cmd SSH" ;
#endif
#ifdef NT
f.action "SecureCRT";
#endif
#ifdef LINUX
f.action "LinuxSSH SSH";
#endif
/*
** Tools
*/
MenuBar <100> "Tools" _T
{
<100> "SecureCRT" _T f.menu "SecureCRT";
}
Menu "SecureCRT"
{
#ifdef HPUX
<100> "SSH (hpssh)" _h CONTEXT "AllContexts || isIP" f.action "HPSSH SSH";
#endif /* HPUX */
#ifdef LINUX
<100> "SSH (ssh)" _x CONTEXT "AllContexts || isIP" f.action "LinuxSSH SSH";
#endif /* LINUX */
#ifdef NT
<100> "SecureCRT" _h CONTEXT "AllContexts || isIP" f.action "SecureCRT";
#endif /* NT */
#ifdef HPUX
/** Remove comments if you have vt3k on HPUX 10 **
<100> "><Vt3k (hp3000): Block Mode" _B CONTEXT "AllContexts || isIP" f.action "Block vt3k";
<100> "><Vt3k (hp3000): Type Ahead" _T CONTEXT "AllContexts || isIP" f.action "Typeahead vt3k";
** Remove comments if you have vt3k on HPUX 10 **/
#endif /* HPUX */
#ifdef SOLARIS
<100> "Telnet (cmd)" _c CONTEXT "AllContexts || isIP" f.action "CmdSSH SSH";
#endif /* SOLARIS */
}
#ifdef HPUX
Action "HPSSH SSH"
{
MinSelected 1;
MaxSelected 1;
SelectionRule (isNode || isInterface) && isIP;
NameField "IP Hostname", "IP Address";
Command "ssh";
}
#endif /* HPUX */
#ifdef LINUX
Action "LinuxSSH SSH"
{
MinSelected 1;
MaxSelected 1;
SelectionRule (isNode || isInterface) && isIP;
NameField "IP Hostname", "IP Address";
Command "ssh";
}
#endif /* LINUX */
#ifdef NT
Action "SecureCRT"
{
MinSelected 1;
MaxSelected 1;
SelectionRule (isNode || isInterface) && isIP;
NameField "IP Hostname", "IP Address";
Command "cmd /c securecrt $OVwSelections";
}
#endif /* NT */
#ifdef HPUX
/** Remove comments if you have vt3k on HPUX 10 **
Action "Block vt3k"
{
MinSelected 1;
MaxSelected 1;
SelectionRule (isNode || isInterface) && (vendor=="Hewlett-Packard");
NameField "IP Hostname", "IP Address";
Command "xnmvt3k block";
}
Action "Typeahead vt3k"
{
MinSelected 1;
MaxSelected 1;
SelectionRule (isNode || isInterface) && (vendor=="Hewlett-Packard");
NameField "IP Hostname", "IP Address";
Command "xnmvt3k typeahead";
}
** Remove comments if you have vt3k on HPUX 10 **/
#endif /* HPUX */
#ifdef SOLARIS
Action "CmdSSH SSH"
{
MinSelected 1;
MaxSelected 1;
SelectionRule (isNode || isInterface) && isIP;
NameField "IP Hostname", "IP Address";
Command "ssh";
}
#endif /* SOLARIS */
} |
|
|
| Back to top |
|
 |
npkt83 Newbie
Joined: 14 Mar 2007 Posts: 2
|
Posted: Wed Mar 14, 2007 9:09 am Post subject: |
|
|
Hello,
I am working on a solaris box running NNM 7.51.. I have found that you script just launches SSH in the back ground.
Could you point me to where I am going wrong as I need SSH to configure some Cisco devices.
npkt83 |
|
| Back to top |
|
 |
mpeckar Active Member
Joined: 12 Mar 2007 Posts: 25 Location: US
|
Posted: Mon Mar 26, 2007 11:11 am Post subject: |
|
|
Try something like this in the "Command" line:
Command "/usr/dt/bin/dtterm -title "${OVwSelection1}" -e ssh ${OVwSelection1}&"; }
Note the "&" at the end of the command.
From Fognet's Field Guide to OpenView Network Node Manager (more info at www.fogbooks.com or www.ovforum.org/bookstore.cfm )...
Another approach is to call a script and pass it a scpecific username that differs from the default, which in the above ARF will be the user who opened the ovw session. Also, such a script could not require a selection name so a host can be provided if a node is not selected. In this case, simply remove the "MinSelected" requirement from the ARF. Such a script might look like this:
#!/bin/sh
stty erase `^H`
target=$1
if [ "$target" = "" ] then /usr/bin/echo "Enter host to
connect to: \c"
read target
echo ""
fi
/usr/bin/echo "Enter Username: \c"
read logon
/usr/bin/ssh $logon@$target
/usr/bin/echo ""
Mike |
|
| Back to top |
|
 |
oxigem Newbie
Joined: 01 Dec 2006 Posts: 7
|
Posted: Wed Apr 18, 2007 3:09 pm Post subject: SecureCRT |
|
|
Is securecrt a freeware or Opensource SSH Client - I have tried to download it but it appears to be available as a 30 day trial.
Please advise.
Thanks |
|
| Back to top |
|
 |
wodisch Expert
Joined: 12 Mar 2007 Posts: 87 Location: Europe most of the time, quite often EMEA, sometimes USA
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|
 |
|