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

    Related Documentation

     

    sysctl() Function (jcs and slax Namespaces)

    Namespaces

    http://xml.juniper.net/junos/commit-scripts/1.0http://xml.libslax.org/slax

    SLAX Syntax

    var $value = prefix:sysctl(sysctl-value, "(i | s)");

    XSLT Syntax

    <xsl:variable name="value" select="prefix:sysctl(sysctl-value, '(i | s)')"/>

    Release Information

    Function introduced in Junos OS Release 7.6

    Support for the slax namespace http://xml.libslax.org/slax added in Junos OS Release 12.2.

    Description

    Return the given sysctl value as a string or an integer. Use the "i" argument to specify an integer. Use the "s" argument to specify a string.

    The prefix associated with the namespace URI should be defined in the prefix-to-namespace mapping in the style sheet.

    Parameters

    sysctl-value
    —

    sysctl value to convert to a string or integer.

    Return Value

    $value
    —

    Returned string or integer value.

    Usage Examples

    var $value = jcs:sysctl("kern.hostname", "s");
     

    Related Documentation

     

    Published: 2013-03-05