zoukankan      html  css  js  c++  java
  • dhcp

    leases 文件

    /var/lib/dhclient/dhclient.leases

    RUN="yes"

    if [ "$RUN" = "yes" ]; then
            echo "$(date): entering ${1%/*}, dumping variables." 
                    >> /tmp/dhclient-script.debug

            # loop over the 4 possible prefixes: (empty), cur_, new_, old_
            for prefix in '' 'cur_' 'new_' 'old_'; do
                    # loop over the DHCP variables passed to dhclient-script
                    for basevar in reason interface medium alias_ip_address 
                                   ip_address host_name network_number subnet_mask 
                                   broadcast_address routers static_routes 
                                   rfc3442_classless_static_routes 
                                   domain_name domain_search domain_name_servers 
                                   netbios_name_servers netbios_scope 
                                   ntp_servers 
                                   ip6_address ip6_prefix ip6_prefixlen 
                                   dhcp6_domain_search dhcp6_name_servers ; do
                            var="${prefix}${basevar}"
                            eval "content=$$var"

                            # show only variables with values set
                            if [ -n "${content}" ]; then
                                    echo "$var='${content}'" >> /tmp/dhclient-script.debug
                            fi
                    done
            done

            echo '--------------------------' >> /tmp/dhclient-script.debug
    fi
  • 相关阅读:
    JAVA设计模式-设计原则
    java 8 stream特性
    使用跟踪标记查看过滤统计信息是否被使用
    找到SQL Server的序列号
    使用SSIS进行数据清洗
    找到SQL Server数据库历史增长信息
    如何查看某个查询用了多少TempDB空间
    SQL Server 2014云特性:无缝集成公有云
    SQL Server 2014新特性-原生备份加密
    强制SQL Server执行计划使用并行提升在复杂查询语句下的性能
  • 原文地址:https://www.cnblogs.com/jkklearn/p/13442362.html
Copyright © 2011-2022 走看看