Skip navigation
All Places > Licensing and Installation > Blog > 2013 > October
2013

This week we'll explore a couple of very useful commands that you can run in the DOS prompt (cmd.exe) -

 

Tasklist

 

This command lists all of the processes that are running in memory, similar to opening 'Task Manager' and navigating to the 'Processes' tab. For example:

 

C:\>tasklist

 

Image Name                     PID Session Name        Session#    Mem Usage
========================= ======== ================ =========== ============
System Idle Process              0 Services                   0         24 K
System                           4 Services                   0      3,668 K
smss.exe                       284 Services                   0        232 K
csrss.exe                      392 Services                   0      2,248 K
wininit.exe                    452 Services                   0        520 K
csrss.exe                      464 Console                    1    128,664 K
winlogon.exe                   508 Console                    1      2,508 K
svchost.exe                    876 Services                   0     17,176 K
svchost.exe                    908 Services                   0    130,312 K
svchost.exe                    956 Services                   0     15,900 K
svchost.exe                    988 Services                   0     63,404 K

 

 

For more detailed usage information refer to http://technet.microsoft.com/en-us/library/bb491010.aspx

 

 

Findstr

 

Useful for finding content within files or filtering the output from another command (for example, from 'tasklist'!). For example, to find the string 'pcbexpedition' in any files in the current directory and all sub-directories:

 

C:\Temp>findstr /s pcbexpedition *.*

 

Site_12345.txt:INCREMENT pcbexpedition mgcld 2013.120 31-dec-2013 2 DE33165DE25AC2AD3EAC \

Site_12345.txt:#         pcbexpedition              2013.120 12/31/2013 41071002

 

 

For more detailed usage information refer to http://technet.microsoft.com/en-us/library/bb490907.aspx

Combining the two commands

 

We can combine both the 'tasklist' and 'findstr' commands as shown below. Here we're looking to see if the notepad.exe process is running, and as you can see it is! (the process ID (PID) is 16952 and memory usage is 6,204K)

 

C:\Temp>tasklist | findstr notepad.exe

notepad.exe                  16952 Console                    1      6,204 K

If you have a recent version of Enterprise Expedition flow, then you have likely encountered the iCDB Project Backup tool. In this Tip of the Week, I’ll explain the different types of backups the tool supports.

 

AutoSave

These are periodic backups done at a fixed interval, which may be configured by the user. Note that this backup will only occur if the design has changed. You may also configure how many backups you want to keep. Older copies get marked for purge. See also Application below.

 

SessionStartup

This backup gets created when a project (design) is opened. The number of backup copies is user configurable.

 

SessionShutdown

This backup is created when a project is (design) is closed. The number of backup copies is user configurable.

 

Application

This is legacy functionality that has been replaced by AutoSave (above). Interval and number of backups is user configurable. You do not need both Application and AutoSave enabled.

 

DxD Diagnostic

This is a system backup that is automatically created before repairing the design with DxDesigner Diagnostics. It is not user configurable by default.

 

CES Diagnostic

This is a system backup that is automatically created before repairing the design with CES Diagnostics. It is not user configurable by default.

 

Database Upgrade

This backup is automatically created before the design is upgraded to new software version. It is not user configurable by default.

 

User

These refer to backups that are manually launched by the user from iCDB Project Backup utility. The user may configure how many of these backups to keep before they are marked for purge.

 

There are a few other backup types, but these are the most common ones. You can see them all from the iCDB Project Backup tool when you select Backup > Settings from the pull down menu in the iCDB Project Backup utility.

 

Note that many of the backup types appear greyed out in the settings dialog. By design, only the user level backups are configurable. You can change this behavior by modifying the iCDB Project Backup tools configuration file.

 

More information about this tool is available in the Concurrent Design Administrator’s Guide.

 

That’s it for this week!

 

Ken Foster

Mentor Graphics Customer Support