Skip to content

Sensorman

Introduction

Sensorman is an application designed with limited authorization mechanism to ensure safety and stability for the system.

This approach helps minimize risks in executing high-privilege commands or misoperations, thereby preventing unintended incidents and ensuring system integrity and safety.

User Guide

From sensor, access socmanager VM via command line:

ssh sensorman@192.168.122.10

Sensorman interface displays as follows:

2.1 Components in Sensorman:

  • Services Manager: Manage services via systemctl.
  • Supervisor Manager: Manage services running via supervisor.
  • Connection Check: Check connection (nslookup, netcat).
  • Ping: Check connectivity using ping.
  • List Interfaces: List interface.
  • Tail Log: Support log viewing in real-time.
  • Check Storage: Check storage capacity.
  • Span Port Capture: Capture span port data via interface using tcpdump.

2.2 Details of Each Component

2.2.1 Services Manager

On main menu, select Services Manager.

  1. List of systemctl supported services (press space to select).
  2. Custom service: Allows entering service to check.
  3. Status: Select action start / restart / stop.
  4. Press OK to confirm, Cancel to cancel.

Example:

  • Select service: sshd.
  • Action: status to check status.

Result will display as shown. Press ESC to return to main menu.

2.2.2 Supervisor Manager

On main menu, select Supervisor Manager.

  1. Select status.
  2. Fill in Program name, default is all.
  3. Press OK to confirm, Cancel to cancel.

Example:

  • Action: Select status.
  • Program name: Select all.

Result will display as shown. Press ESC to return to main menu.

2.2.3 Connection Check

On main menu, select Connection Check.

  1. Action: Select nslookup / netcat.
  2. Address: Select available address to check.
  3. Custom address: Enter custom address.
  4. Select port as desired (applicable for netcat).
  5. Press OK to confirm, Cancel to cancel.

Example:

  • Action: Select nslookup.
  • Address: Select google.com.

2.2.4 Ping

On main menu, select Ping.

  1. Action: Select Ping.
  2. Custom address: Enter address to ping.
  3. Press OK to confirm, Cancel to cancel.

Example:

  • Action: Select Ping.
  • Address: Select 8.8.8.8.

2.2.5 List Interfaces

On main menu, select List Interfaces.

2.2.6 Tail Log

On main menu, select Tail Log.

  • Path: Fill in path to check.
  • Press OK to confirm, Cancel to cancel.

Example:

  • Check Path: /var/syslog/flowclick.log.

2.2.7 Check Storage

On main menu, select Check Storage.

  • Action: Select df -h / lsblk / Find large files.
  • Folder: Enter folder to check.

Example:

  • Action: Select df -h.
  • Folder: Select /var to check capacity.

2.2.8 Span Port Capture

On main menu, select Span Port Capture.

  • Interface: Enter desired interface.
  • Press OK to confirm, Cancel to cancel.

Example:

  • Interface: Select eth_SPAN to check.
  • Folder: Select /var to check capacity.