Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding the Ping button to the menu bar 1

Status
Not open for further replies.

toddbro

Technical User
Oct 27, 2003
1
NZ
Hello VLAN52 or other HP openview experts,

I have Just bought hp openview. I have setup polling and to date I have managed to build a respectable map of my network.

Unforunately there is not a button on tool bar to ping and telnet onto my devices. Instead you have to scroll through the Hp File menu in order to reach the ping command. This is slow and cumbersome.....

Does anyone know how to add both the commands, ping and telnet as buttons to the hp open view menu for simple ease of use...


 
add file with config to $OV_REGISTRATION directory like following:

Application "HP ping Windows"
{

Command -Shared "xnmappmon";

#ifdef NT
#else /* NT */

ToolbarButton <0>
@&quot;toolbar/ping.24.pm:toolbar/ping.24.pm&quot;
Context &quot;AllContexts&quot; f.action &quot;pings&quot;;
#endif /* NT */


Action &quot;pings&quot; {
MinSelected 0 ;
/* SelectionRule (isNode || isInterface) && isIP;
*/
CallbackArgs &quot; -dataLine 2 -singleDialog -commandTitle \&quot;Ping hosts\&quot; -appendSelectList -appendSelectListToTitle -cmd netcheck -o icmpTimeout=3 -o icmpTries=2 -et ip &quot;;
}
}
 
thanks for the script Lubeg. Have installed the script as &quot;pingbutton&quot; in $OV/registration. Do I need to then run xnmappmon to install the function as a right mouse button app?

Thanks, Marty.
 
for install the finction as a right mouse button app you should describe 'Popup menu' in this registration file.

More information you could find in OVwRegInto man page.

PS: don`t forget to restart your client
 
Thanks once again Lubeg. The following parses / runs ok on WIN2k (NNM v6.41); however, I am unable to enter different target symbol types (e.g. server, computer, device). Any ideas?

___________________________________________________________
Application &quot;Ping_mouse&quot;
{

Command -Shared &quot;xnmappmon&quot;;

/*
* POP-UP MENU for Ping
*/

PopupItem <100> &quot;Ping&quot;
CONTEXT &quot;AllContexts || isIP || WantPopupMenus&quot;
TargetSymbolType &quot;Connector&quot;:Any

#ifdef NT
f.action &quot;Ping&quot;;
#endif
Action &quot;Ping&quot;
{
MinSelected 0 ;
SelectionRule (isNode || isInterface) && isIP;
CallbackArgs &quot; -dataLine 2 -singleDialog -commandTitle \&quot;Ping hosts\&quot; -appendSelectList -appendSelectListToTitle -cmd netcheck -o icmpTimeout=3 -o icmpTries=2 -et ip &quot;;
}
}
 
try to change with target symbol type &quot;connector&quot; for anything else.

 
Thanks Lubeg - however I have tried numerous ways of including the different symbol types using the OV default file for telnet as a guide. e.g.

[truncated]
/*
* POP-UP MENU for Ping
*/

PopupItem <100> &quot;Ping&quot;
CONTEXT &quot;AllContexts || isIP || WantPopupMenus&quot;
TargetSymbolType &quot;Connector&quot;:Any

#ifdef NT
f.action &quot;Ping&quot;;
#endif
Action &quot;Ping&quot;
PopupItem <100> &quot;Ping&quot;
CONTEXT &quot;AllContexts || isIP || WantPopupMenus&quot;
TargetSymbolType &quot;Server&quot;:Any

#ifdef NT
f.action &quot;Ping&quot;;
#endif
Action &quot;Ping&quot;
[truncated]

_________________________________________________
In the meantime, the guys here are happy with the overall result so appreciate your help and hope others use the script too.

- Marty
GO THE ALL BLACKS!!


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top