To run N-Stalker from command line (no GUI interface), you must usually have the following items ready:
- A scan session policy file (this file can be created once and used for multiple scan sessions)
- A DOS prompt shell or an invocation script (program)
To learn more, follow the steps below:
- Create a scan session policy file
- Run N-Stalker Scanner from command line
- Inspect log and status files
Create a Command line scan session policy
To run N-Stalker Scanner from command line, you will need a scan session policy that will contain policies, host information and specific configurations needed to run the entire session. Follow the steps below to create a command line scan session policy:
1. Click on N-Stalker's main menu button in the upper left corner;
2. Under N-Stalker's main context menu, choose "New command-line policy";
3. Follow the steps from "Initiating Scan Wizard" to complete the wizard (until "Review Summary" step);
4. In the last step ("Review Summary"), you must click on "Generate" button
5. You will be required to choose a name and location to accommodate the new scan session policy (usual extension is .xml).
Run N-Stalker from command line
Once a scan session policy is already created (see "Create a Command line scan session policy"), we are ready to run N-Stalker from command line. Follow the steps below:
1. Open a DOS prompt;
2. Go to N-Stalker's main directory (usually under "Program Files\N-Stalker");
3. To obtain extended option's help, run:
4. If no other option is chosen, run:
- "Policy.xml" being the location and name of the policy you have saved in the previous step (create a command line scan session policy).
- Tip: If you have saved in your own desktop: NStalkerScanner "%USERPROFILE%\desktop\Policy.xml"
5. You can follow up N-Stalker session status through the scan console.
6. Once running, N-Stalker will provide a general log file (called "global-[DATE].log"). If you have chosen "--dashboard" option, N-Stalker will also generate a "status.xml" file that contain progress information about the scan session.