General Utilities

scp

Use the scp command on the sensor application CLI to securely send the collected PCAP files to other hosts in the network.

scp

Examples

This example displays how to share PCAP files with a remote host.

This example displays how to check the current date on the sensor:

sh-5.0# scp /iox_data/appdata/*.pcap.gz user@10.2.3.172:/srv/pub/date

For more information, see scp.

top

Use the top command to identify the most used processes or services and their CPU and memoray usage.

top

Examples

This example displays how to display the sorted list of system processes:

root@center100:~# top
top - 16:18:32 up 17:19,  1 user,  load average: 0.52, 0.52, 0.61
Tasks: 299 total,   1 running, 298 sleeping,   0 stopped,   0 zombie
%Cpu(s):  2.0 us,  0.3 sy,  0.0 ni, 97.5 id,  0.1 wa,  0.0 hi,  0.2 si,  0.0 st
MiB Mem :  32083.2 total,    886.5 free,   5711.7 used,  25485.0 buff/cache
MiB Swap:  64166.5 total,  64159.5 free,      7.0 used.  22045.3 avail Mem 
 
    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND    
 201043 postgres  20   0 4280628 106044  94696 S   7.3   0.3   0:01.15 postgres    
   1871 root      20   0  716204  11056   3688 S   2.7   0.0  38:28.49 sysinfod    
   1037 rabbitmq  20   0 3544340 244040   6040 S   0.7   0.7  24:36.89 beam.smp    
   3058 root      20   0 2379016 342896  34996 S   0.7   1.0   5:41.36 influxd     
   1027 snmp      20   0   12112   7688   4332 S   0.3   0.0   1:17.47 snmpd      
   1651 postgres  20   0 4262732   3.9g   3.9g S   0.3  12.4   1:58.89 postgres    
   1704 redis     20   0   98652   5764   3396 S   0.3   0.0   3:56.79 redis-server  
   2145 sbs-sys+  20   0  725244  40024  10012 S   0.3   0.1   2:13.35 sysinfod-sensor  
   3148 root      20   0 9032316 985508  24232 S   0.3   3.0   8:56.12 java  
 200422 ntp       20   0  278332 141940 137392 S   0.3   0.4   0:01.06 postgres    
      1 root      20   0    9652   7912   5144 S   0.0   0.0   0:05.91 systemd    
      2 root      20   0       0      0      0 S   0.0   0.0   0:00.01 kthreadd   
      3 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rcu_gp     
      4 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 rcu_par_gp    
      5 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 slub_flushwq

For more information, see top.

vi

Use the vi command to edit files on a Cisco Cyber Vision Center or sensor application.

vi filename

Syntax Description

i

Switches to the insert mode.

Esc

Switches to the command mode. You can use the following commands in the command mode:

  • :w — Save and continue editing

  • :wq — Save and quit/exit vi

  • :q! — Quit vi and do not save changes.

Command History

Release

Modification

4.0

This command was introduced.

Examples

This example shows how to open a file using the "vi" editor:

root@center100:~# vi myfile.txt

For more information, see vi.

ps

Use the ps command to list the processes that currently run on the system.

ps

Examples

This example displays how to report a snapshot of the current processes:

root@center100:~# ps
PID TTY          TIME CMD
   1359 pts/0    00:00:00 bash
   4311 pts/0    00:00:00 ps

For more information, see ps.

openssl

Use the openssl command to check the details of the certificate installed on the Cisco Cyber Vision Center.

openssl

Command History

Release

Modification

3.0

This command was introduced.

Examples

To check the certiciate installed on the center, run this command:

root@center100:~# openssl x509 -in  /data/etc/ca/center-cert.pem -text -nooutrclone

Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number:
            a7:14:d1:0c:a4:e6:cd:26:e6:2b:62:21:05:67:28:66
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: CN = Cisco Cyber Vision Center CA VMware-420fa93e303899ac-b12eefd0c6
        Validity
            Not Before: Jun  5 15:59:09 2024 GMT
            Not After : Aug  4 15:59:09 2026 GMT
        Subject: CN = center100.sentryo.local
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                RSA Public-Key: (4096 bit)
                Modulus:
[…]
                Exponent: 65537 (0x10001)
        X509v3 extensions:
            X509v3 Basic Constraints: 
                CA:FALSE
            X509v3 Subject Key Identifier: 
                1D:3C:0D:72:5A:52:E0:2B:05:BF:9D:72:64:4D:9A:76:D8:E9:D1:DE
            X509v3 Authority Key Identifier: 
                keyid:A1:E5:28:AC:C6:2E:F4:FD:B8:47:D5:CF:8E:45:BC:EE:48:E9:90:5D
                DirName:/CN=Cisco Cyber Vision Center CA VMware-420fa93e303899ac-b12eefd0c6
                serial:00

            X509v3 Extended Key Usage: 
                TLS Web Server Authentication
            X509v3 Subject Alternative Name: 
                DNS:center100.sentryo.local
[…]