cisco 1720 flash rom backup

CISCO 1720
TFTP server: 10.0.0.58
Router Ethernet: 10.0.0.57
Router#sh flash
System flash directory:
File Length Name/status
1 3038760 c1700-y-mz.121-3
[3038824 bytes used, 5349784 available, 8388608 total]
8192K bytes of processor board System flash (Read/Write)
Router#copy flash tftp
Source filename []? c1700-y-mz.121-3
Address or name of remote host []? 10.0.0.58
Destination filename [c1700-y-mz.1213]?
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
3038760 bytes copied in 19.132 secs (159934 bytes/sec)

vnstat – console base network traffic monitor

Posted by: admin in Application(어플리케이션), Linux(리눅스)
설치: apt-get install vnstat
실행: /etc/init.d/vnstat start
Zero database found, exiting.
아래 커맨드로 해당 인터페이스(br0)의 데이타베이스를 생성해 주면 잘 됨.
vnstat -u -i br0
Error: Unable to read database “/var/lib/vnstat/br0″.
Info: -> A new database has been created.

리눅스 미러링(S/W raid)

구성:
sda: OS 디스크
sdb, sdc : 미러링할 디스크(빈것, 사용중인것도 가능함)
아래 커맨드로, 커널 모듈이 실행되고 있는지 확인. 없으면, insmod로 모듈 올려줌.

lsmod | grep -i linear
lsmod | grep -i raid

일단, sdb를 fdisk로 통채로 파티션 잡아줌

fdisk /dev/sdb
Command (m for help): p
Disk /dev/sdb (Sun disk label): 4 heads, 1093 sectors, 65533 cylindersUnits = cylinders of 4372 * 512 bytes
Device Flag Start End Blocks Id System/dev/sdb1 r 0 65533 143255138 fd Linux raid autodetect

sdc도 sdb와 동일하게 파티션. sfdisk를 이용해도 됨(sfdisk -l /dev/sdb | sfdisk /dev/sdc) . 파티션 타입을 fd로 설정해야한다.

mdadm –create –verbose /dev/md0 –level=1 –raid-device=2 /dev/sdb1 /dev/sdb2
mkfs.ext3 /dev/md0

아래 커맨드로 확인

mdadm –detail /dev/md0

마지막으로 마운트하여 사용하면 된다.
cat /proc/mdstat 로 미러 상태 확인가능.

참고문서 :
http://www.howtoforge.com/redundant-array-of-inexpensive-disks-raid-technical-paper
http://tldp.org/HOWTO/Software-RAID-HOWTO-5.html#ss5.6

source quench received

서버 : HP-UX B.11.23
클라이언트: 윈도우2003
클라이언트 쪽에서 서버 쪽으로 ping 했을때 아래와 같은 메시지 가 나옴
source quench recived
재미있는것은 서버에서 클라이언트 쪽으로 ping했을때는 문제가 없다는것!
MS 쪽에서는
http://technet.microsoft.com/en-us/library/cc958618.aspx
Explanation:
The flow control mechanism in IP is the Internet Control Message Protocol (ICMP) Source Quench message. In effect, when IP packets arrive too quickly for a node to handle, it can send a Source Quench message, which essentially tells the source of the packets to back off. This message should not be considered a problem.
User Action:
No user a action required.

잉, 할게 없어????
다행히 이런 문제를 미리 겪은 분들이 있었는지라…
(참고: http://blog.naver.com/verdy93/20003282157)
서버쪽에서 ,
ndd -set /dev/ip source_quench_recieved 0
커맨드로 해결.
위쪽 참고문서를 보면, 방법이 몇 가지 더 있지만, 재부팅을 요하는 방법이라 재부팅 필요없는 방법을 사용.

hp rp3440 경고등 끄기

HP 9000 rp3440 시스템에 경고등이 들오와있다.
어떤것은 주황색, 또 어떤것은 빨강색, 또 어떤것은 초록색…
초록은 정상. 주황은 위험수위가 낮은 이벤트, 빨강은 위험 수위가 높은 이벤트가 발생한것.
문제는, 내가 보기 시작한것은 최근이고, 그 이전의 상황은 알 수가 없다는것.
일단, /var/adm/syslog/syslog.log 상에는 최근 error나 warning이 없고, 아주 옛날에
temperature 가 한계치 까지 치솟았던 상황이나, cpu 캐쉬쪽 문제가 보였다.
일단, 최근 에러 상황이 없었고, 경고등이 들어오면서 재부팅된적이 없기때문에, 일시적 장애로 보고,
경고등을 정상인 초록으로 만들어야 했다. 그냥은 안되고, MP (Maintenance Processor) 상에서
vfp 메뉴로 들어갔더니, 정상으로 바뀌었다.
MP 진입은 serial console접속한후 ctrl+B로 진입한다고한다. 오늘 시스템은 시리얼 콘솔로 접속하니
바로 MP 로그인 화면이 나왔다. 디폴트는 Admin/Admin 이다.
이 시스템은 일단 system LED가 amber(주황)인 상황이었고, VFP들어갔더니 그냥 green으로 바뀌었다.

MP MAIN MENU:
CO: Console
VFP: Virtual Front Panel
CM: Command Menu
CL: Console Log
SL: Show Event Logs
CSP: Connect to Service Processor
SE: Enter OS Session
HE: Main Help Menu
X: Exit Connection
[mp001b78e5d56d] MP> vfp
Welcome to the Virtual Front Panel (VFP).
Use Ctrl-B to exit.
System state Activity # of logs since boot
————— ——– ——————–
HPUX init process start 570
E indicates error since last boot
LEDs | LOCATOR | SYSTEM | POWER
—————————————————————————–
| OFF | ON GREEN | ON GREEN
—————————————————————————–
Status | System running normally.
—————————————————————————–
[mp001b78e5d56d] MP:VFP(Use ‘?’ to display VFP terminal info or Ctrl-B to Quit)>

RED인 시스템은 다음 기회에 … ;^^

IBM AIX서버 경고등 끄기

errpt 를 봐도 별다른 에러 사항이 없는데, 경고등이 켜져 있다.
이것 저것 찾아보다보니, 의외로 비슷한 경우가 종종 있는것 같네?

IBM AIX서버 경고등 끄기.
http://heeya12.tistory.com/entry/AIX-%EC%84%9C%EB%B2%84-LED-%EA%B2%BD%EA%B3%A0%EB%93%B1-%EB%81%84%EA%B8%B0

 

/usr/lpp/diagonostics/bin/usysfault -s normal

hp-ux 클러스터와 오라클

오늘 어찌어찌하여 도움을 받아서 처리하긴 했는데,
검색해보니, 아래와같은 글이 나온다.
hp-ux 클러스터와 오라클
http://dbsecurity.egloos.com/6407920

ora-01081

shutdown 했는데, 정상적인 셧다운이 안되서 강제로 오라클 프로세스들 kill
시스템 재부팅! 요거 클러스터에 오라클 HA구성이란걸 몰라서 한시간 헤맸다.
암튼, 도움을 받아 겨우겨우 부팅해서 오라클 실행(startup)시키니
ora-01081 에러
shutdown abort; 한후 다시 startup
일단 된다… ㅠㅠ

AIX clone (링크)

찾는 HP-UX는 안나오고…

http://publib.boulder.ibm.com/infocenter/aix/v6r1/index.jsp?topic=%2Fcom.ibm.aix.install%2Fdoc%2Finsgdrf%2FHT_insgdrf_altdiskinstall_clone.htm

원래 제목은
Cloning a rootvg using alternate disk installation

없어질지도 모르니(IBM)에서 운영하니 그럴리야 없겠지만..

 

Using this scenario, you can clone AIX® running on rootvg to an alternate disk on the same system, install a user-defined software bundle, and run a user-defined script to customize the AIX image on the alternate disk.

Things to Consider 

The information in this how-to scenario was tested using specific versions of AIX. The results you obtain might vary significantly depending on your version and level of AIX.

Because the alternate disk installation process involves cloning an existing rootvg to a target alternate disk, the target alternate disk must not be already assigned to a volume group.

In this scenario you will do the following: 

  • Prepare for the alternate disk installation
  • Perform the alternate disk installation and customization
  • Boot off the alternate disk
  • Verify the operation

For information about alternate disk installation, see Installing to an alternate disk. Also, refer to thealt_disk_copy man page.

Step 1. Prepare for the alternate disk installation

  1. Check the status of physical disks on your system. Type:
    # lspv

    Output similar to the following displays:

    hdisk0         0009710fa9c79877    rootvg   	active
    hdisk1         0009710f0b90db93    None

    We can use hdisk1 as our alternate disk because no volume group is assigned to this physical disk.

  2. Check to see if the alt_disk_copy fileset has been installed by running the following:
    # lslpp -L bos.alt_disk_copy.rte

    Output similar to the following displays if the alt_disk_copy fileset is not installed:

    lslpp: 0504-132  Fileset bos.alt_disk_copy.rte not installed.
  3. Using volume 1 of the AIX installation media, install the alt_disk_copy fileset by running the following:
    # geninstall -d/dev/cd0 bos.alt_disk_copy.rte

    Output similar to the following displays:

    +-----------------------------------------------------------------------------+
                                    Summaries:
    +-----------------------------------------------------------------------------+
    
    Installation Summary
    --------------------
    Name                        Level           Part        Event       Result
    -------------------------------------------------------------------------------
    bos.alt_disk_copy.rte    5.3.0.0         USR         APPLY       SUCCESS
  4. Create a user-defined bundle called /usr/sys/inst.data/user_bundles/MyBundle.bnd that contains the following filesets:
    I:bos.content_list
    I:bos.games

    For more information on how to create a user-defined software bundle, refer to Creating and installing a software bundle.

  5. Create the /home/scripts directory:
    mkdir /home/scripts
  6. Create a user-defined customization script called AddUsers.sh in the /home/scripts directory:
    touch /home/scripts/AddUsers.sh
    chmod 755 /home/scripts/AddUsers.sh
  7. Edit /home/scripts/AddUsers.sh to contain the following lines:
    mkuser johndoe
    touch /home/johndoe/abc.txt
    touch /home/johndoe/xyz.txt

Step 2. Perform the alternate disk installation and customization

  1. To clone the rootvg to an alternate disk, type the following at the command line to open the SMIT menu :
    # smit alt_clone
  2. Select hdisk1 in the Target Disk to Install field.
  3. Select the MyBundle bundle in the Bundle to Install field.
  4. Insert volume one of the installation media.
  5. Type /dev/cd0 in the Directory or Device with images field.
  6. Type /home/scripts/AddUsers.sh in the Customization script field.
  7. Press Enter to start the alternate disk installation.
  8. Check that the alternate disk was created, by running the following:
    # lspv
    Output similar to the following displays: 

    hdisk0         0009710fa9c79877    rootvg
    hdisk1         0009710f0b90db93    altinst_rootvg

Step 3. Boot from the alternate disk

  1. By default, the alternate-disk-installation process changes the boot list to the alternate disk. To check this run the following:
    # bootlist -m normal -o

    Output similar to the following displays:

    hdisk1
  2. Reboot the system. Type:
    # shutdown -r

    The system boots from the boot image on the alternate disk (hdisk1).

Step 4. Verify the operation

  1. When the system reboots, it will be running off the alternate disk. To check this, type the following:
    # lspv

    Output similar to the following displays:

    hdisk0         0009710fa9c79877    old_rootvg
    hdisk1         0009710f0b90db93    rootvg
  2. Verify that the customization script ran correctly, by typing the following:
    # find /home/johndoe -print

    Output similar to the following displays:

    /home/johndoe
    /home/johndoe/.profile
    /home/johndoe/abc.txt
    /home/johndoe/xyz.txt
  3. Verify that the contents of your software bundle was installed, by typing the following:
    # lslpp -Lb MyBundle

    Output similar to the following displays:

      Fileset                      Level  State  Description
      ----------------------------------------------------------------------------
      bos.content_list           5.3.0.0    C    AIX Release Content List
      bos.games                  5.3.0.0    C    Games

 

DNS 점검 사이트

http://202.30.50.200/information/inspection_2.0.jsp
위에서 점검하면 수정 가이드라인이 나옴.
별게 다 있어.. ;^^