This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Accept
Reject

NetWitness Community

  • Home
  • Products
    • NetWitness Platform
      • Advisories
      • Documentation
        • Platform Documentation
        • Known Issues
        • Security Fixes
        • Hardware Documentation
        • Threat Content
        • Unified Data Model
        • Videos
      • Downloads
      • Integrations
      • Knowledge Base
    • NetWitness Cloud SIEM
      • Advisories
      • Documentation
      • Knowledge Base
    • NetWitness Detect AI
      • Advisories
      • Documentation
      • Knowledge Base
    • NetWitness Investigator
    • NetWitness Orchestrator
      • Advisories
      • Documentation
      • Knowledge Base
      • Legacy NetWitness Orchestrator
        • Advisories
        • Documentation
  • Community
    • Blog
    • Discussions
    • Events
    • Idea Exchange
  • Support
    • Case Portal
      • Create New Case
      • View My Cases
      • View My Team's Cases
    • Community Support
      • Getting Started
      • News & Announcements
      • Community Support Forum
      • Community Support Articles
    • Product Life Cycle
    • Support Information
    • General Security Advisories
  • Training
    • Blog
    • Certification Program
    • Course Catalog
    • New Product Readiness
    • On-Demand Subscriptions
    • Student Resources
    • Upcoming Events
  • Technology Partners
  • Trust Center
Sign InRegister Now
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Search instead for 
Did you mean: 
NetWitness Discussions
Announcement Banner

Users are unable to open Netwitness Support Cases via email. Please open support cases via portal or by phone

View Details
  • NetWitness Community
  • Discussions
  • restart decoder service through nwconsole api
  • Options
    • Subscribe to RSS Feed
    • Mark Topic as New
    • Mark Topic as Read
    • Float this Topic for Current User
    • Bookmark
    • Subscribe
    • Mute
    • Printer Friendly Page

restart decoder service through nwconsole api

MichaelPochan
MichaelPochan Beginner
Beginner
Options
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

‎2017-04-03 02:19 PM

Is there any documentation on the nwconsole API? We're attempting to script a way from our broker to restart the nwdecoder process on our packet decoders without maintaining ssh keys on each host. I've gone through the NwConsole options and don't see a way to restart any nw process, but might not be looking in the right place. Has anyone else had a similar issue or figured out a way to automate this? 

  • Community Thread
  • Discussion
  • Forum Thread
  • NetWitness
  • netwitness sdk
  • NW
  • NwConsole
  • NwDecoder
  • NWP
  • REST API
  • restart
  • RSA NetWitness
  • RSA NetWitness Platform
0 Likes
Share
Reply
  • All forum topics
  • Previous Topic
  • Next Topic
5 REPLIES 5

JohnSnider
Trusted Contributor JohnSnider Trusted Contributor
Trusted Contributor
Options
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

‎2017-04-03 03:29 PM

NwConsole has built-in "man" and "help" pages, but for your request here are the options, of course these show the default username/password (admin/netwitness), so you'll need to put in whatever acct/password you are using:

Stop/Start Capture

  • NwConsole -c login <ip of decoder>:56004:ssl admin netwitness -c /decoder stop flush=1
  • NwConsole -c login <ip of decoder>:56004:ssl admin netwitness -c /decoder start

Restart Decoder Service (this is the same as the "shutdown service" on the "System View" page

  • NwConsole -c login <ip of decoder>:56004:ssl admin netwitness -c /sys shutdown

 

if you use the non-ssl port (50004) omit the :ssl at the end of the login string.

3 Likes
Share
Reply

ChristopherAhea
ChristopherAhea Beginner
Beginner
Options
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

‎2017-04-03 03:37 PM

As long as it was configured to restart, you could pass the commands over REST or the NwConsole.

 

REST = 'http://192.168.99.51:50104/sys?msg=shutdown'

NwConsole = 'NwConsole -c login localhost:50004 admin netwitness -c /sys shutdown'

 

The -c option in NwConsole passes commands.

 

You could also issue a parser reload:

REST = 'http://192.168.99.51:50104/decoder/parsers?msg=reload'

NwConsole = 'NwConsole -c login localhost:50004 admin netwitness -c /parsers reload'

 

Stop/Start Capture

REST = 'http://192.168.99.58:50104/decoder?msg=stop'

REST = 'http://192.168.99.58:50104/decoder?msg=start'

NwConsole = 'NwConsole -c login localhost:50004 admin netwitness -c /decoder stop'

NwConsole = 'NwConsole -c login localhost:50004 admin netwitness -c /decoder start'

 

Hope this helps in getting what you need.

 

Chris

3 Likes
Share
Reply

MichaelPochan
MichaelPochan Beginner
Beginner
In response to ChristopherAhea
Options
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

‎2017-04-03 04:17 PM

Thank you! We use REST to reload parsers, so I think the following command will work. 'Shutdown' however will start the process again once it's stopped? Does this affect both the nwappliance process and nwdecoder or just the nwdecoder process?

 

REST = 'http://192.168.99.51:50104/sys?msg=shutdown'

0 Likes
Share
Reply

ChristopherAhea
ChristopherAhea Beginner
Beginner
In response to MichaelPochan
Options
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

‎2017-04-03 04:22 PM

Since that is hitting the decoder REST port (50104), it would just be the decoder service.

0 Likes
Share
Reply

JohnKisner
Trusted Contributor JohnKisner Trusted Contributor
Trusted Contributor
Options
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

‎2017-04-04 06:06 PM

Shutdown will automatically restart the service. 

0 Likes
Share
Reply
Powered by Khoros
  • Blog
  • Events
  • Discussions
  • Idea Exchange
  • Knowledge Base
  • Case Portal
  • Community Support
  • Product Life Cycle
  • Support Information
  • About the Community
  • Terms & Conditions
  • Privacy Statement
  • Acceptable Use Policy
  • Employee Login
© 2022 RSA Security LLC or its affiliates. All rights reserved.