Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Event Generation Scripts

    This section lists the files that are executed at different stages of a JMB generation and collection.

    Event Initiation

    Table 1 lists the files executed for detecting the occurrence of an event and triggering data collection when an event is detected.

    Table 1: Files Executed for Detecting an Event and Triggering Data Collection

    Directory Location Under /var/db/scripts

    File Name

    Description

    op

    ais_shell.sh

    Passively monitors event notifications from Junos OS; no code is executed until triggered by Junos OS

    op

    ais_shell2.sh

    For future use to passively monitor event notifications from Junos OS as a Restricted User

    op

    ais_arc.sh

    Initiates data collection when core file copying is not required

    op, commit

    ais_arc.slax

    Initiates data collection when core file copying is not required

    op

    ais_all_chm.sh

    Initiates data collection when core file copying is required

    op, commit

    ais_all_chm.slax

    Initiates data collection when core file copying is required

    Event Data Collection Management

    Table 2 lists the files used for managing data collection when an event is detected on a device.

    Table 2: Files that Manage Data Collection

    Directory Location Under /var/db/scripts

    File Name

    Description

    op

    ais_jmb_chm.sh

    Manages all JMB attachment generation

    event

    jmb-attach-incid.slax

    Parses CLI commands as listed in the events database file provided by Service Now

    Event Data Collection

    Table 3 lists the files used for collecting data when an event is detected on a device. All files have *.slax extension.

    Table 3: Files that Collect Event Data

    Directory Location Under /var/db/scripts

    File Name

    Description

    event

    jmb-attach-toc.slax

    Generates Table of Contents in a JMB

    event

    jmb-manifest-default.slax

    Generates device family-specific JMB manifest section

    event

    jmb-manifest-ex-vc-low.slax

    Generates device family-specific JMB manifest section

    event

    jmb-manifest-ex-xre.slax

    Generates device family-specific JMB manifest section

    event

    jmb-manifest-junos-es.slax

    Generates device family-specific JMB manifest section

    event

    jmb-manifest-junos-es-low.slax

    Generates device family-specific JMB manifest section

    event

    jmb-manifest-lcc.slax

    Generates device family-specific JMB manifest section

    event

    jmb-manifest-mtj.slax

    Generates device family-specific JMB manifest section

    event

    jmb-manifest-mtj-low.slax

    Generates device family-specific JMB manifest section

    event

    jmb-manifest-recent-core-file.slax

    Generates JMB manifest data related to core files on the device.

    event

    jmb-manifest-txm.slax

    Generates device family-specific JMB manifest section

    event

    jmb-manifest-txp.slax

    Generates device family-specific JMB manifest section

    event

    jmb-manifest-rma.slax

    Generates RMA request-specific JMB manifest section

    op

    ais-rma_attachment.slax

    Collects express RMA data; see above

    op, commit

    ais-attach-file.slax

    Creates intermediate files for use by ais_jmb_chm.sh for JMB attachments for all JMB types

    event

    attach-acxseries.slax

    Executes commands for generating Extended Support Information (ESI) for specific devices; invokes ais-attach-file.slax

    event

    attach-default.slax

    Executes commands for generating Extended Support Information (ESI) for specific devices; invokes ais-attach-file.slax

    event

    attach-ex.slax

    Executes commands for generating Extended Support Information (ESI) for specific devicies; invokes ais-attach-file.slax

    event

    attach-ex-low.slax

    Executes commands for generating Extended Support Information (ESI) for specific platforms; invokes ais-attach-file.slax

    event

    attach-ex-super-low.slax

    Executes commands for generating Extended Support Information (ESI) for specific platforms; invokes ais-attach-file.slax

    event

    attach-ex-vc.slax

    Executes commands for generating Extended Support Information (ESI) for specific platforms; invokes ais-attach-file.slax

    event

    attach-ex-vc-low.slax

    Executes commands for generating Extended Support Information (ESI) for specific devices; invokes ais-attach-file.slax

    event

    attach-ex-vc-super-low.slax

    Executes commands for generating Extended Support Information (ESI) for specific platforms; invokes ais-attach-file.slax

    event

    attach-jcs1200.slax

    Executes commands for generating Extended Support Information (ESI) for specific platforms; invokes ais-attach-file.slax

    event

    attach-jseries.slax

    Executes commands for generating Extended Support Information (ESI) for specific devices; invokes ais-attach-file.slax

    event

    attach-m10i.slax

    Executes commands for generating Extended Support Information (ESI) for specific platforms; invokes ais-attach-file.slax

    event

    attach-m120.slax

    Executes commands for generating Extended Support Information (ESI) for specific platforms; invokes ais-attach-file.slax

    event

    attach-m160_m40e.slax

    Executes commands for generating Extended Support Information (ESI) for specific devices; invokes ais-attach-file.slax

    event

    attach-m7i.slax

    Executes commands for generating Extended Support Information (ESI) for specific devices; invokes ais-attach-file.slax

    event

    attach-mx.slax

    Executes commands for generating Extended Support Information (ESI) for specific devices; invokes ais-attach-file.slax

    event

    attach-mx104.slax

    Executes commands for generating Extended Support Information (ESI) for specific platforms; invokes ais-attach-file.slax

    event

    attach-mx2000.slax

    Executes commands for generating Extended Support Information (ESI) for specific devices; invokes ais-attach-file.slax

    event

    attach-mx80.slax

    Executes commands for generating Extended Support Information (ESI) for specific devices; invokes ais-attach-file.slax

    event

    attach-srx.slax

    Executes commands for generating Extended Support Information (ESI) for specific devices; invokes ais-attach-file.slax

    event

    attach-srx1400.slax

    Executes commands for generating Extended Support Information (ESI) for specific devices; invokes ais-attach-file.slax

    event

    attach-srx-low.slax

    Executes commands for generating Extended Support Information (ESI) for specific devices; invokes ais-attach-file.slax

    event

    attach-srx-super-low.slax

    Executes commands for generating Extended Support Information (ESI) for specific devices; invokes ais-attach-file.slax

    event

    attach-tseries.slax

    Executes commands for generating Extended Support Information (ESI) for specific devices; invokes ais-attach-file.slax

    event

    attach-txm.slax

    Executes commands for generating Extended Support Information (ESI) for specific devices; invokes ais-attach-file.slax

    event

    jmb-attach-std.slax

    Executes commands for generating Extended Support Information (ESI) for specific platforms; invokes ais-attach-file.slax

    event

    jmb-attach-std-low.slax

    Executes commands for generating Extended Support Information (ESI) for specific devices; invokes ais-attach-file.slax

    event

    jmb-attach-std-super-low.slax

    Executes commands for generating Extended Support Information (ESI) for specific devices; invokes ais-attach-file.slax

    Core File Management

    Table 4 lists the scripts used for managing core files when an event is detected on a device.

    Table 4: Files that Manage Core Files

    Directory Location Under /var/db/scripts

    File Name

    Description

    op

    jmb_seq_cleanup.sh

    Temporary file generated by ais_jmb_chm to track the clean up of files post JMB completion

    op, commit

    ais_xfer_jmb.slax

    Executes only on a non-master Routing Engine to transfer JMBs to the master Routing Engine

    op, commit

    ais-error.slax

    Records errors as Junos OS system log messages and in the status messages file of a JMB; this file is called when an error is detected

    op, commit

    ais_signalSN.slax

    Creates a system log message signalling that the JMB is complete; this system log message triggers Service Now to copy the JMB from the device

    Utility Functions

    Table 5 lists the scripts used for performing miscellaneous functions such as checking disk usage while generating the JMB, record time of the event, obtain Junos OS version of the device on which the event occurred, and so on.

    Table 5: Files that Perform Utility Functions

    Directory Location Under /var/db/scripts

    File Name

    Description

    op, commit

    ais-rsi-chk.slax

    Checks if RSI should be added to the JMB

    event

    junos_version.slax

    Obtains Junos OS version running on the device for all types of JMBs

    event

    dualRE_check.slax

    Checks if the device has dual Routing Engines

    event

    other_re_name.slax

    On a device with multiple Routing Engines, obtains the host name of the other Routing Engine for all types of JMBs

    event

    health.slax

    Checks utilization of disk space on a device

    op

    ais_disk_check.slax

    Checks the usage of disk space while JMB is generated for all types of JMBs

    event

    stream-helper.slax

    Utility for unstructured events

    event

    event-param.slax

    Reads event parameters for all types of JMBs

    event

    event-time.slax

    Records time of the event in the JMB

    op, commit

    att_signalSN.slax

    Creates system logs indicating the progress of creating the attachments, for tracking and troubleshooting purposes

    op, commit

    ais-sleep.slax

    Introduces pause between commands while generating the ESI attachment for a JMB

    op

    restricted_shell.sh

    For future use to validate commands from a restricted user

    Modified: 2017-02-01