公告版位

目前日期文章:201512 (8)

瀏覽方式: 標題列表 簡短摘要
We will change as follows,
-------------------------------------------------------------------------
deb cdrom:[Debian GNU/Linux 8.2.0 _Jessie_ - Official amd64 DVD Binary-1 20150906-11:13]/ jessie contrib main

# deb http://security.debian.org/ jessie/updates main contrib
# deb-src http://security.debian.org/ jessie/updates main contrib

# jessie-updates, previously known as 'volatile'
# A network mirror was not selected during install. The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
# deb http://ftp.debian.org/debian/ jessie-updates main contrib
# deb-src http://ftp.debian.org/debian/ jessie-updates main contrib
-------------------------------------------------------------------------

dreamtails 發表在 痞客邦 PIXNET 留言(0) 人氣()

${subnet}#!/bin/bash
subnet="192.168.100"
`rm -rf ${subnet}_Up.log`
`rm -rf ${subnet}_Down.log`

for i in $(seq 1 254)
do
    ping -c 1 -w 1 ${subnet}.$i && result=0 || result=1
    if [ "$result" -eq 0 ]; then
        echo "${subnet}.$i is Up" >> ${subnet}_Up.log
    else
        echo "${subnet}.$i is Down" >> ${subnet}_Down.log
    fi
done

dreamtails 發表在 痞客邦 PIXNET 留言(0) 人氣()

# vim /var/lib/dhcpd/dhcpd.leases

dreamtails 發表在 痞客邦 PIXNET 留言(0) 人氣()

<HP 1920G Switch> system-view
System View: return to User View with Ctrl+Z.
[HP 1920G Switch] snmp-agent sys-info version all
[HP 1920G Switch] lldp enable

dreamtails 發表在 痞客邦 PIXNET 留言(0) 人氣()

How to get physical mac address, when other pepole rename your mac address on CentOS.

# cat /var/log/dmesg | grep eth

dreamtails 發表在 痞客邦 PIXNET 留言(0) 人氣()

******************************************************************************
* Copyright (c) 2010-2015 Hewlett-Packard Development Company, L.P. *
* Without the owner's prior written consent, *
* no decompiling or reverse-engineering shall be allowed. *
******************************************************************************

Login authentication

Username: admin
Password:

<HP 1920G Switch_cmdline-mode on
All commands can be displayed and executed. Continue? [Y/N] 
Y

 Default password is below, 
Please input password: Jinhua1920unauthorized

y wrong use, please carefully use it with our engineer's direction.

dreamtails 發表在 痞客邦 PIXNET 留言(0) 人氣()

1. Get last column
# df -h | awk '{print $NF}'

dreamtails 發表在 痞客邦 PIXNET 留言(0) 人氣()

1) Install packages
# yum install -y kvm libvirt qemu-kvm virt-manager

2)
# chkconfig libvirtd on
# service libvirtd restart

dreamtails 發表在 痞客邦 PIXNET 留言(0) 人氣()