Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

Customize Right Click Menu in STRM

0

0

Article ID: KB15315 KB Last Updated: 11 Dec 2009Version: 2.0
Summary:
Clicking the right mouse button (right-click) on any IP address in the STRM UI interface allows you to access additional details for the selected IP address. The information below details how to customize the right-click button.
Symptoms:
How to configure right-click button on IP address in STRM
Solution:
This document provides procedures for customizing these menu options using a plug-in Application Programming Interface (API).  You can add additional items, such as an option to scan the NetBIOS, to the menu and provide easy access to functionality.

Follow steps below to customize the right-click menu
  1. Log in to the STRM CLI using SSH as root user
  2. Copy the ip_context_menu.xml file from the /opt/qradar/conf/templates directory to the /opt/qradar/conf directory.
  3. Edit the file #vi /opt/qradar/conf/ip_context_menu.xml
  4. The file accepts menuEntry XML nodes to customize the right-click menu. Use the following format:
    menuentry url="{URL}" name="{NAME}" exec="{COMMAND}" requiredcapabilities="{ Required Capabilities}" description="{DESCRIPTION}"

    Where:
    {NAME} is the text that appears in the right-click menu.

    {DESCRIPTION} is the description of the entry. This is the text that appears in the tooltip for your menu option. This is an optional field.

    {URL} is the URL field that specifies the web address that opens in a new window. You can use the placeholder %IP% in this field to refer to the IP address that is being selected.
    Also, to pass other URL parameters to this URL, you must use the '&' option. For example: url="/lookup?ip=%IP%&force=true"

    {COMMAND} is a command that you wish to execute on the Console. The output of the command appears in a new window.  Use the placeholder %IP% in this field to refer to the IP address that is being selected.

    {Required Capabilities} is any capabilities the user is required to have to access this option, comma-delimited. (for example, "ADMIN"). If the user does not have all capabilities listed, the entry will not appear. This is an optional field.

    The completed file must resemble the following:

    <contextMenu>
    <menuEntry name="Traceroute" exec="/usr/sbin/traceroute %IP%" />
    <menuEntry name="External ARIN Lookup"url="http://ws.arin.net/whois/?queryinput=%IP%" />
    </contextMenu>


    For example - To configure IDP Profile in the right-click menu

    <contextMenu>
    <menuEntry name="Juniper IDP Profile" url="/console/JuniperProfilerRightClick.jsp?hostIp=%IP%" />
    </contextMenu>
  5. Save and exit the file
  6. Restart Tomcat services: #service tomcat restart
Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search