Module Expr Str ImportFrom alias Import alias Import alias ImportFrom alias alias Import alias identifier TryExcept body Import alias identifier Assign NameStore NameLoad Assign NameStore CompareGtE Call NameLoad NameLoad Str TupleLoad TupleLoad Num Num handlers ExceptHandler type NameLoad body Assign NameStore NameLoad FunctionDef arguments args defaults body If UnaryOpNot NameLoad body Return TupleLoad NameLoad Str If CompareGtE AttributeLoad NameLoad attr TupleLoad Num Num Num body Return NameLoad Return TupleLoad NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Return IfExp NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Return IfExp NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Return IfExp NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Return IfExp NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Return IfExp NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults Num Num body Expr Str Assign NameStore ListLoad Assign NameStore Dict For NameStore Call AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr ExceptHandler type AttributeLoad NameLoad attr body Continue Assign SubscriptStore NameLoad Index NameLoad BinOpAdd NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr ExceptHandler type AttributeLoad NameLoad attr body Continue Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore BinOpSub NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad For TupleStore NameStore TupleStore NameStore NameStore Call NameLoad Call NameLoad Call NameLoad NameLoad body If BoolOpAnd NameLoad CompareGtE NameLoad NameLoad body Break If CompareEq Call NameLoad Call NameLoad NameLoad Num body Assign NameStore Call NameLoad NameLoad orelse Assign NameStore Call NameLoad NameLoad Assign NameStore Dict Str Str Str Str Str Str Str NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Dict Dict For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr body Assign SubscriptStore SubscriptLoad NameLoad Index Str Index NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr body Assign SubscriptStore SubscriptLoad NameLoad Index Str Index NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad name NameStore body Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str TryExcept body Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad Return NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Num NameLoad body Expr Str Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr body Assign NameStore IfExp NameLoad CompareIn NameLoad Call AttributeLoad Str attr Call NameLoad NameLoad CompareIn NameLoad Call NameLoad NameLoad Assign NameStore IfExp CompareIs NameLoad NameLoad NameLoad CompareEq NameLoad Call NameLoad NameLoad If BoolOpAnd NameLoad NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Pass If UnaryOpNot NameLoad body Return NameLoad orelse Return Dict Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr body Assign NameStore IfExp NameLoad CompareIn NameLoad Call AttributeLoad Str attr Call NameLoad NameLoad CompareIn NameLoad Call NameLoad NameLoad Assign NameStore IfExp CompareIs NameLoad NameLoad NameLoad CompareEq NameLoad Call NameLoad NameLoad If BoolOpAnd NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Return BoolOpOr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num NameLoad body Expr Str If NameLoad body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str If NameLoad body Assign NameStore ListComp Call NameLoad Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str If CompareLt AttributeLoad NameLoad attr TupleLoad Num Num Num body Assign NameStore Str Raise Call NameLoad NameLoad Return Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args defaults body Expr Str If CompareLt AttributeLoad NameLoad attr TupleLoad Num Num Num body Assign NameStore Str Raise Call NameLoad NameLoad Return Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Assign NameStore ListComp Call NameLoad Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str TryExcept body Return AttributeLoad Call AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str TryExcept body Return Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str TryExcept body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad TryExcept body Return Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str If UnaryOpNot NameLoad body Return Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr orelse Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad If CompareIn NameLoad NameLoad body Return Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr orelse Return NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str If UnaryOpNot NameLoad body Return Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr orelse Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad If CompareIn NameLoad NameLoad body Return Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr orelse Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Return ListComp Call NameLoad Call AttributeLoad NameLoad attr comprehension NameStore NameLoad handlers ExceptHandler type NameLoad body TryExcept body Import alias Assign NameStore ListLoad While NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareIs NameLoad NameLoad body Return NameLoad orelse If CompareEq SubscriptLoad NameLoad Index Num Num body Assign NameStore SubscriptLoad NameLoad Index Num If Call NameLoad NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num NameLoad SubscriptLoad NameLoad Index Num handlers ExceptHandler type NameLoad body Return NameLoad decorator_list
N/A N/A 
A salt interface to psutil, a system and process library.
See http://code.google.com/p/psutil.

:depends:   - psutil Python module, version 0.3.0 or later
            - python-utmp package (optional)
 __future__ absolute_import N/A time N/A datetime salt.exceptions SaltInvocationError CommandExecutionError N/A salt.ext.six six N/A N/A N/A salt.utils.psutil_compat psutil N/A HAS_PSUTIL True N/A PSUTIL2 N/A N/A getattr psutil version_info N/A N/A 2 0 N/A N/A N/A ImportError N/A N/A HAS_PSUTIL False __virtual__ N/A N/A N/A N/A N/A N/A HAS_PSUTIL N/A N/A N/A False The ps module cannot be loaded: python module psutil not installed. N/A N/A N/A psutil version_info N/A 0 3 0 N/A N/A True N/A N/A False N/A N/A The ps execution module cannot be loaded: the psutil python module version {0} is less than 0.3.0 format N/A psutil version_info N/A _get_proc_cmdline N/A N/A proc N/A N/A N/A 
    Returns the cmdline of a Process instance.

    It's backward compatible with < 2.0 versions of psutil.
     N/A N/A N/A N/A PSUTIL2 N/A N/A proc cmdline N/A proc cmdline N/A N/A N/A N/A N/A psutil NoSuchProcess N/A psutil AccessDenied N/A N/A N/A _get_proc_create_time N/A N/A proc N/A N/A N/A 
    Returns the create_time of a Process instance.

    It's backward compatible with < 2.0 versions of psutil.
     N/A N/A N/A N/A PSUTIL2 N/A N/A proc create_time N/A proc create_time N/A N/A N/A N/A N/A psutil NoSuchProcess N/A psutil AccessDenied N/A N/A None N/A _get_proc_name N/A N/A proc N/A N/A N/A 
    Returns the name of a Process instance.

    It's backward compatible with < 2.0 versions of psutil.
     N/A N/A N/A N/A PSUTIL2 N/A N/A proc name N/A proc name N/A N/A N/A N/A N/A psutil NoSuchProcess N/A psutil AccessDenied N/A N/A N/A N/A _get_proc_status N/A N/A proc N/A N/A N/A 
    Returns the status of a Process instance.

    It's backward compatible with < 2.0 versions of psutil.
     N/A N/A N/A N/A PSUTIL2 N/A N/A proc status N/A proc status N/A N/A N/A N/A N/A psutil NoSuchProcess N/A psutil AccessDenied N/A N/A None N/A _get_proc_username N/A N/A proc N/A N/A N/A 
    Returns the username of a Process instance.

    It's backward compatible with < 2.0 versions of psutil.
     N/A N/A N/A N/A PSUTIL2 N/A N/A proc username N/A proc username N/A N/A N/A N/A N/A psutil NoSuchProcess N/A psutil AccessDenied KeyError N/A N/A None N/A _get_proc_pid N/A N/A proc N/A N/A N/A 
    Returns the pid of a Process instance.

    It's backward compatible with < 2.0 versions of psutil.
     N/A N/A proc pid N/A top N/A N/A num_processes interval N/A 5 3 N/A N/A 
    Return a list of top CPU consuming processes during the interval.
    num_processes = return the top N CPU consuming processes
    interval = the number of seconds to sample CPU usage over

    CLI Examples:

    .. code-block:: bash

        salt '*' ps.top

        salt '*' ps.top 5 10
     N/A result N/A N/A start_usage N/A N/A pid N/A N/A psutil pids N/A N/A N/A N/A process N/A N/A psutil Process pid N/A N/A user system N/A N/A process cpu_times N/A N/A N/A ValueError N/A N/A N/A user system _ _ N/A N/A process cpu_times N/A N/A N/A psutil NoSuchProcess N/A N/A N/A N/A start_usage N/A process N/A user system N/A N/A N/A time sleep interval N/A usage N/A set N/A N/A process start N/A N/A six iteritems start_usage N/A N/A N/A N/A N/A user system N/A N/A process cpu_times N/A N/A N/A ValueError N/A N/A N/A user system _ _ N/A N/A process cpu_times N/A N/A N/A psutil NoSuchProcess N/A N/A N/A now N/A user system N/A diff N/A now start N/A N/A N/A usage add N/A diff process N/A N/A idx N/A diff process N/A enumerate N/A reversed N/A sorted usage N/A N/A N/A num_processes N/A idx num_processes N/A N/A N/A N/A N/A len N/A _get_proc_cmdline process 0 N/A N/A cmdline N/A _get_proc_name process N/A N/A cmdline N/A _get_proc_cmdline process N/A info N/A cmd user status pid create_time cpu mem cmdline N/A _get_proc_username process N/A _get_proc_status process N/A _get_proc_pid process N/A _get_proc_create_time process N/A N/A N/A N/A key value N/A N/A six iteritems N/A N/A N/A N/A process cpu_times _asdict N/A N/A N/A N/A info N/A cpu N/A key value N/A N/A key value N/A N/A six iteritems N/A N/A N/A N/A process memory_info _asdict N/A N/A N/A N/A info N/A mem N/A key value N/A N/A N/A result append info N/A result N/A get_pid_list N/A N/A N/A N/A N/A 
    Return a list of process ids (PIDs) for all running processes.

    CLI Example:

    .. code-block:: bash

        salt '*' ps.get_pid_list
     N/A N/A N/A psutil pids N/A proc_info N/A N/A pid attrs N/A None N/A N/A 
    Return a dictionary of information for a process id (PID).

    CLI Example:

    .. code-block:: bash

        salt '*' ps.proc_info 2322
        salt '*' ps.proc_info 2322 attrs='["pid", "name"]'

    pid
        PID of process to query.

    attrs
        Optional list of desired process attributes.  The list of possible
        attributes can be found here:
        http://pythonhosted.org/psutil/#psutil.Process
     N/A N/A N/A proc N/A N/A psutil Process pid N/A N/A N/A proc as_dict attrs N/A N/A N/A N/A N/A psutil NoSuchProcess N/A psutil AccessDenied AttributeError N/A exc N/A N/A N/A CommandExecutionError exc N/A kill_pid N/A N/A pid signal N/A 15 N/A N/A 
    Kill a process by PID.

    .. code-block:: bash

        salt 'minion' ps.kill_pid pid [signal=signal_number]

    pid
        PID of process to kill.

    signal
        Signal to send to the process. See manpage entry for kill
        for possible values. Default: 15 (SIGTERM).

    **Example:**

    Send SIGKILL to process with PID 2000:

    .. code-block:: bash

        salt 'minion' ps.kill_pid 2000 signal=9
     N/A N/A N/A N/A N/A N/A N/A psutil Process pid send_signal signal N/A True N/A N/A N/A N/A psutil NoSuchProcess N/A N/A False N/A pkill N/A N/A pattern user signal full N/A None 15 False N/A N/A 
    Kill processes matching a pattern.

    .. code-block:: bash

        salt '*' ps.pkill pattern [user=username] [signal=signal_number] \
                [full=(true|false)]

    pattern
        Pattern to search for in the process list.

    user
        Limit matches to the given username. Default: All users.

    signal
        Signal to send to the process(es). See manpage entry for kill
        for possible values. Default: 15 (SIGTERM).

    full
        A boolean value indicating whether only the name of the command or
        the full command line should be matched against the pattern.

    **Examples:**

    Send SIGHUP to all httpd processes on all 'www' minions:

    .. code-block:: bash

        salt 'www.*' ps.pkill httpd signal=1

    Send SIGKILL to all bash processes owned by user 'tom':

    .. code-block:: bash

        salt '*' ps.pkill bash signal=9 user=tom
     N/A killed N/A N/A proc N/A N/A psutil process_iter N/A N/A name_match N/A full N/A pattern N/A N/A join N/A _get_proc_cmdline proc N/A pattern N/A _get_proc_name proc N/A user_match N/A N/A user None True N/A user N/A _get_proc_username proc N/A N/A name_match user_match N/A N/A N/A N/A N/A N/A proc send_signal signal N/A N/A N/A killed append N/A _get_proc_pid proc N/A N/A N/A N/A psutil NoSuchProcess N/A N/A N/A N/A killed N/A N/A None N/A N/A N/A killed killed N/A pgrep N/A N/A pattern user full N/A None False N/A N/A 
    Return the pids for processes matching a pattern.

    If full is true, the full command line is searched for a match,
    otherwise only the name of the command is searched.

    .. code-block:: bash

        salt '*' ps.pgrep pattern [user=username] [full=(true|false)]

    pattern
        Pattern to search for in the process list.

    user
        Limit matches to the given username. Default: All users.

    full
        A boolean value indicating whether only the name of the command or
        the full command line should be matched against the pattern.

    **Examples:**

    Find all httpd processes on all 'www' minions:

    .. code-block:: bash

        salt 'www.*' ps.pgrep httpd

    Find all bash processes owned by user 'tom':

    .. code-block:: bash

        salt '*' ps.pgrep bash user=tom
     N/A procs N/A N/A proc N/A N/A psutil process_iter N/A N/A name_match N/A full N/A pattern N/A N/A join N/A _get_proc_cmdline proc N/A pattern N/A _get_proc_name proc N/A user_match N/A N/A user None True N/A user N/A _get_proc_username proc N/A N/A name_match user_match N/A N/A N/A N/A procs append N/A _get_proc_pid proc N/A N/A procs None N/A cpu_percent N/A N/A interval per_cpu N/A 0.1 False N/A N/A 
    Return the percent of time the CPU is busy.

    interval
        the number of seconds to sample CPU usage over
    per_cpu
        if True return an array of CPU percent busy for each CPU, otherwise
        aggregate all percents into one number

    CLI Example:

    .. code-block:: bash

        salt '*' ps.cpu_percent
     N/A per_cpu N/A N/A result N/A list N/A N/A psutil cpu_percent interval True N/A N/A result N/A N/A psutil cpu_percent interval N/A result N/A cpu_times N/A N/A per_cpu N/A False N/A N/A 
    Return the percent of time the CPU spends in each state,
    e.g. user, system, idle, nice, iowait, irq, softirq.

    per_cpu
        if True return an array of percents for each CPU, otherwise aggregate
        all percents into one number

    CLI Example:

    .. code-block:: bash

        salt '*' ps.cpu_times
     N/A per_cpu N/A N/A result N/A N/A dict N/A N/A times _asdict N/A times N/A N/A psutil cpu_times True N/A N/A result N/A dict N/A N/A N/A N/A psutil cpu_times per_cpu _asdict N/A result N/A virtual_memory N/A N/A N/A N/A N/A 
    .. versionadded:: 2014.7.0

    Return a dict that describes statistics about system memory usage.

    .. note::

        This function is only available in psutil version 0.6.0 and above.

    CLI Example:

    .. code-block:: bash

        salt '*' ps.virtual_memory
     N/A N/A N/A psutil version_info N/A 0 6 0 N/A N/A msg virtual_memory is only available in psutil 0.6.0 or greater N/A N/A CommandExecutionError msg N/A N/A dict N/A N/A N/A N/A psutil virtual_memory _asdict N/A swap_memory N/A N/A N/A N/A N/A 
    .. versionadded:: 2014.7.0

    Return a dict that describes swap memory statistics.

    .. note::

        This function is only available in psutil version 0.6.0 and above.

    CLI Example:

    .. code-block:: bash

        salt '*' ps.swap_memory
     N/A N/A N/A psutil version_info N/A 0 6 0 N/A N/A msg swap_memory is only available in psutil 0.6.0 or greater N/A N/A CommandExecutionError msg N/A N/A dict N/A N/A N/A N/A psutil swap_memory _asdict N/A disk_partitions N/A N/A all N/A False N/A N/A 
    Return a list of disk partitions and their device, mount point, and
    filesystem type.

    all
        if set to False, only return local, physical partitions (hard disk,
        USB, CD/DVD partitions).  If True, return all filesystems.

    CLI Example:

    .. code-block:: bash

        salt '*' ps.disk_partitions
     N/A result N/A N/A dict N/A N/A partition _asdict N/A partition N/A N/A psutil disk_partitions all N/A result N/A disk_usage N/A N/A path N/A N/A N/A 
    Given a path, return a dict listing the total available space as well as
    the free space, and used space.

    CLI Example:

    .. code-block:: bash

        salt '*' ps.disk_usage /home
     N/A N/A dict N/A N/A N/A N/A psutil disk_usage path _asdict N/A disk_partition_usage N/A N/A all N/A False N/A N/A 
    Return a list of disk partitions plus the mount point, filesystem and usage
    statistics.

    CLI Example:

    .. code-block:: bash

        salt '*' ps.disk_partition_usage
     N/A result N/A disk_partitions all N/A partition result N/A N/A N/A N/A partition update N/A disk_usage N/A partition N/A mountpoint N/A result N/A total_physical_memory N/A N/A N/A N/A N/A 
    Return the total number of bytes of physical memory.

    CLI Example:

    .. code-block:: bash

        salt '*' ps.total_physical_memory
     N/A N/A N/A N/A N/A N/A psutil virtual_memory total N/A N/A N/A AttributeError N/A N/A N/A psutil TOTAL_PHYMEM N/A num_cpus N/A N/A N/A N/A N/A 
    Return the number of CPUs.

    CLI Example:

    .. code-block:: bash

        salt '*' ps.num_cpus
     N/A N/A N/A N/A N/A psutil cpu_count N/A N/A N/A AttributeError N/A N/A N/A psutil NUM_CPUS N/A boot_time N/A N/A time_format N/A None N/A N/A 
    Return the boot time in number of seconds since the epoch began.

    CLI Example:

    time_format
        Optionally specify a `strftime`_ format string. Use
        ``time_format='%c'`` to get a nicely-formatted locale specific date and
        time (i.e. ``Fri May  2 19:08:32 2014``).

        .. _strftime: https://docs.python.org/2/library/datetime.html#strftime-strptime-behavior

        .. versionadded:: 2014.1.4

    .. code-block:: bash

        salt '*' ps.boot_time
     N/A N/A N/A b_time N/A int N/A N/A psutil boot_time N/A N/A N/A AttributeError N/A N/A b_time N/A int N/A N/A psutil boot_time N/A time_format N/A N/A b_time N/A N/A N/A datetime datetime fromtimestamp b_time N/A N/A N/A N/A N/A b_time strftime time_format N/A N/A N/A TypeError N/A exc N/A N/A N/A SaltInvocationError N/A N/A Invalid format string: {0} format exc N/A b_time N/A network_io_counters N/A N/A interface N/A None N/A N/A 
    Return network I/O statistics.

    CLI Example:

    .. code-block:: bash

        salt '*' ps.network_io_counters

        salt '*' ps.network_io_counters interface=eth0
     N/A N/A interface N/A N/A N/A dict N/A N/A N/A N/A psutil net_io_counters _asdict N/A N/A stats N/A N/A psutil net_io_counters pernic True N/A N/A interface stats N/A N/A N/A dict N/A N/A N/A stats N/A interface _asdict N/A N/A False N/A disk_io_counters N/A N/A device N/A None N/A N/A 
    Return disk I/O statistics.

    CLI Example:

    .. code-block:: bash

        salt '*' ps.disk_io_counters

        salt '*' ps.disk_io_counters device=sda1
     N/A N/A device N/A N/A N/A dict N/A N/A N/A N/A psutil disk_io_counters _asdict N/A N/A stats N/A N/A psutil disk_io_counters perdisk True N/A N/A device stats N/A N/A N/A dict N/A N/A N/A stats N/A device _asdict N/A N/A False N/A get_users N/A N/A N/A N/A N/A 
    Return logged-in users.

    CLI Example:

    .. code-block:: bash

        salt '*' ps.get_users
     N/A N/A N/A recs N/A N/A psutil users N/A N/A N/A dict N/A N/A x _asdict N/A x recs N/A N/A N/A AttributeError N/A N/A N/A N/A utmp N/A result N/A N/A True N/A N/A rec N/A N/A N/A utmp utmpaccess getutent N/A N/A rec None N/A N/A result N/A N/A N/A N/A rec N/A 0 7 N/A N/A started N/A rec N/A 8 N/A N/A isinstance started tuple N/A N/A started N/A started N/A 0 N/A N/A N/A result append N/A name terminal started host N/A rec N/A 4 N/A rec N/A 2 started N/A rec N/A 5 N/A N/A N/A ImportError N/A N/A False N/A