Controlling Command Execution - Patton electronics SmartNode Series Software Configuration Manual

Software for smartnode series
Hide thumbs Also See for SmartNode Series:
Table of Contents

Advertisement

8 • Basic system management
Example: Displaying system logs
The following example shows how to display event log warnings and information of your device, if you start
from the operator execution mode.
SN#show log event
2001-12-10T14:57:18 : LOGINFO
2001-12-10T14:57:39 : LOGINFO
2001-12-12T13:46:20 : LOGWARNING : Authentication failure.
2001-12-12T13:46:31 : LOGWARNING : Authentication failure.
2001-12-14T08:51:09 : LOGINFO
started.
2001-12-14T08:51:09 : LOGINFO
AC481xx created!

Controlling command execution

The SmartWare command shell includes a basic set of commands that allow you to control the execution of
other running commands. In SmartWare the commands jobs and fg are used for such purposes. The command
jobs lists all running commands, and fg allows switching back a suspended command to the foreground. More-
over using Ctrl-Z suspends an active command and lets the system prompt reappear. With Ctrl-C the cur-
rently active command can be terminated.
Mode: Administrator execution
Step
Command
1
2
node #<Ctrl-Z>
3
4
node #jobs
node #fg jobid
5
node #<Ctrl-C>
6
Example: Controlling Command Execution
The following example shows how to suspend an active command, list the running commands, switch back a
suspended command and terminate a currently active command on your device, if you start from the configu-
ration mode.
SN>ping 172.16.36.80 1000 timeout 3
Sending 1000 ICMP echo requests to 172.16.36.80, timeout is 3 seconds:
Reply from 172.16.36.80: Time <10ms
Reply from 172.16.36.80: Time <10ms
Reply from 172.16.36.80: Time <10ms
Reply from 172.16.36.80: Time <10ms
Ctrl-Z suspend active command
% Suspended
98
: Link down on interface internal.
: Warm start.
: Slot 2: Event Logging Service for ic-4brvoip -
: Slot 2: DrvPckt_Dsp_Ac48xx: DSP driver for
Execute the first command
Suspend the active command and get system prompt back
Execute the second command
Shows the currently running commands
Brings job with jobid back to foreground
Terminates the currently running command
Basic system management configuration task list
SmartWare Software Configuration Guide
Purpose

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SmartNode Series and is the answer not in the manual?

This manual is also suitable for:

Smartware release 2.20

Table of Contents