Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Documentation Search

    scio var

    Syntax

    scio var {-s subscriber | -v virtual router} [-f file][varname]

    Description

    Displays variables related to a subscriber or a virtual router.

    Options

    Table 1 describes options and arguments to the scio var command and provides examples of command syntax.

    Table 1: Command Reference: scio var

    Options

    Usage and Example

    -s subscriber [variable]

    Lists variables related to subscribers. To display a summary list of all variables, do not specify a variable name.


    [root@defaulthost admin]# scio var -s s0
    Kernel variables for 'subscriber' 's0'
    
      sc_icmp_session_table: Timed hash table
      sc_fragment_table: Timed hash table
      sc_gate_table: Timed hash table
      sc_tcp_session_table: Timed hash table
      sc_bypass_flow_table: Timed hash table
      sc_udp_session_table: Timed hash table
      sc_rpc_program_table: Timed hash table
      sc_icmp_flow_table: Timed hash table
      sc_session_table: Timed hash table
      sc_ip_session_table: Timed hash table
      sc_ipaction_table: Timed hash table
      sc_ids_cache: Hash table
      sc_bypass_counts: variable
      sc_rpc_xid_table: Timed hash table
      sc_attack_table: Hash table
      sc_ape_flow_table: Timed hash table
      sc_tcp_flow_table: Timed hash table
      sc_ip_flow_table: Timed hash table
      sc_udp_flow_table: Timed hash table
    

    To display details of a particular variable, specify the variable name as an argument. The following example shows the UDP flow table:


    [root@defaulthost ~]# scio var -s s0 sc_udp_flow_table
    sc_udp_flow_table:
    |   Source IP   |  Port | Destination IP |  Port |  Application  |FSt| Dir |Xtra info| VLAN | Timeout |
    [8.0.0.1          62091] [8.0.0.101           53]  DNS             R   CTS      -     0      59/60
    [8.0.0.101           53] [8.0.0.1          62091]  DNS             A   STC      -     0      59/60
    [8.0.0.1          58007] [8.0.0.101           69]  TFTP            R   CTS      -     0      59/60
    [8.0.0.101           69] [8.0.0.1          58007]  TFTP            A   STC      -     0      59/60
    [8.0.0.1           3812] [8.0.0.101          111]  PORTMAPPER      R   CTS      -     0      59/60
    [8.0.0.101          111] [8.0.0.1           3812]  PORTMAPPER      A   STC      -     0      59/60
    [88.143.88.25     59092] [8.0.0.101            0]  RTP             R   CTS      -     0      59/60
    [8.0.0.101            0] [88.143.88.25     59092]  RTP             A   STC      -     0      59/60
    ---------------+-------+----------------+-------+---------------+---+-----+---------+------+---------|
    

    -v virtual-router [variable]

    Lists variables related to virtual routers. To display a summary list of all variables, do not specify a variable name.


    [root@defaulthost admin]# scio var -v vr1
    Kernel variables for 'virtual router' 'vr1'
      sc_arp_table: Timed hash table
      sc_mac_table: Timed hash table
    

    To display details of a particular variable, specify the variable name as an argument.


    [root@defaulthost admin]# scio var -v vr1 sc_arp_table
    sc_arp_table:
    IP Address       MAC Address         Interface         (On Behalf Of)   Timeout
    

    [-f file]

    Writes the output to the specified filename.


    [root@defaulthost admin]# scio var -s s0 -f /tmp/udp_flow_table.txt sc_udp_flow_table
    [root@defaulthost admin]# 

    [root@defaulthost admin]# more /tmp/udp_flow_table.txt
    sc_udp_flow_table:
    |   Source IP   |  Port | Destination IP |  Port |  Application  |FSt| Dir |Xtra info| VLAN | Timeout |
    [8.0.0.1          62091] [8.0.0.101           53]  DNS             R   CTS      -     0      59/60
    [8.0.0.101           53] [8.0.0.1          62091]  DNS             A   STC      -     0      59/60
    [8.0.0.1          58007] [8.0.0.101           69]  TFTP            R   CTS      -     0      59/60
    [8.0.0.101           69] [8.0.0.1          58007]  TFTP            A   STC      -     0      59/60
    [8.0.0.1           3812] [8.0.0.101          111]  PORTMAPPER      R   CTS      -     0      59/60
    [8.0.0.101          111] [8.0.0.1           3812]  PORTMAPPER      A   STC      -     0      59/60
    [88.143.88.25     59092] [8.0.0.101            0]  RTP             R   CTS      -     0      59/60
    [8.0.0.101            0] [88.143.88.25     59092]  RTP             A   STC      -     0      59/60
    ---------------+-------+----------------+-------+---------------+---+-----+---------+------+---------|
    

    Published: 2011-02-08