Debian Admin

Debian/Ubuntu Linux System Administration Tutorials,Howtos,Tips

  • RSS Subscribe

    subscribe to the Debian Admin RSS feed
  • Sponsors



  • Categories

  • Sponsors

  • Support DebianAdmin

    Amount $:
    Website(Optional):


  • Meta

  • Archives



Howto Export Juniper NSM logs to CSV file from the NSM CLI

Posted by Admin on August 18th, 2009

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

NSM receives logs from all the devices and the logs are stored under /usr/netscreen/DevSvr/var/logs folder on NSM Device server.These logs are saved in binary format and cannot be viewed directly.

To Export logs from the NSM Server, login to the NSM Device Server using the CLI, and then use the utility devSvrcli.sh as follows:

# cd /usr/netscreen/DevSvr/utils/

# sh devSvrcli.sh --help

For example, to export the logs from Device named “Int-FW”, the following command can to used:

#sh devSvrCli.sh --log2action --filter --device global:Int-FW --action --csv --file-path /tmp/Int-FW.csv --include-header

This command will export all the logs in the Log DB for this device “Int-FW” to the file /tmp/Int-FW.csv

Other filter options can be used by following appropriate Syntax as below.

# sh devSvrCli.sh --help

  • Share/Bookmark

Random Posts

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>