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

How to view DMI and NSM management related JUNOS device logs



Article ID: KB13943 KB Last Updated: 23 Apr 2009Version: 1.0
How to view DMI and NSM management related JUNOS device logs

In order to troubleshoot DMI connection or configuration management issues, we may need to enable further debugging on the DMI agent.  Use the following procedure:

  1. Enable the traceoptions on the outbound-ssh connection which will identify if the device is trying to connect to an NSM server:

    Usage help:

    # set system services outbound-ssh traceoptions ?
    Possible completions:
    • apply-groups: Groups from which to inherit configuration data
    • apply-groups-except: Don't inherit configuration data from these groups
    • file: Trace file information
    • flag: Tracing parameters
    • no-remote-trace: Disable remote tracing
    # set system services outbound-ssh traceoptions flag ?
    Possible completions:
    • all: Trace everything
    • configuration: Trace configuration events
    • connectivity: Trace TCP connection handling


    # set system services outbound-ssh traceoptions file nsm-agent
    # set system services outbound-ssh traceoptions flag all
    # commit

  2. The logs for the DMI agent outbound-ssh connection will then be collected into the system log file “nsm-agent” and other messages in the “messages” log file.

  3. View the logs using the command  “show log nsm-agent” or “show log messages”,  from the > CLI prompt.

NOTE: It is currently not possible to log the XML RPCs (remote procedure calls) or the configuration data which is being sent/received from the device CLI; however it is possible to see the configuration file in an XML formatted output which the device provides to NSM for troubleshooting: See KB13942 - How to see the JUNOS device XML configuration file sent to NSM.   In order to capture the sent/received information, enable the NSM server side debug logging on the directive handler processes: See KB12851 - How to put Gui or Dev server directive handler in debug mode without issuing a 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