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.
- List of
systemctlsupported services (pressspaceto select). - Custom service: Allows entering service to check.
- Status: Select action
start/restart/stop. - Press OK to confirm, Cancel to cancel.
Example:
- Select service:
sshd. - Action:
statusto 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.
- Select status.
- Fill in Program name, default is
all. - 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.
- Action: Select
nslookup/netcat. - Address: Select available address to check.
- Custom address: Enter custom address.
- Select port as desired (applicable for
netcat). - Press OK to confirm, Cancel to cancel.
Example:
- Action: Select
nslookup. - Address: Select
google.com.
2.2.4 Ping¶
On main menu, select Ping.
- Action: Select
Ping. - Custom address: Enter address to ping.
- 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
/varto 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_SPANto check. - Folder: Select
/varto check capacity.