네트워커의 보안 티스토리

Prev 1 2 3 4 5 ··· 50 Next

Alteon 은 OS image 영역과

Kernel 에 해당하는 boot 영역이 있다.

 

업그레이드나 다운그레이드 할 때 둘 다 같이 맞춰준다.

 

안맞추면 어떤일이 생길지 몰라서 맞춤 ㅠ

 

아래 링크 내용을 기반으로 내가 다시 봤을 때 손쉽게 업그레이드 및 다운그레이드 하는데에 목적이 있는 글임.

 

참조 URL : https://m.cafe.daum.net/serverpro/e8LA/4?q=D_oNeYewAwh3Y0&

 

6.6 Alteon L4 OS를 업그레이드

6.6 Alteon 장비의 OS를 업그레이드 6.6.1 Image를 이용한 Upgrade – UTP나 원격에서 업그레이드 1) TFTP Server를 구축하여 놓는다. 2) 이미지 파일을 준비한다. 3) L4 Switch에 로긴한다. 현재 이미지 상태를 확

m.cafe.daum.net

 

1. TFTP 서버가 올라가 있는 노트북(어떤 유틸리티든 상관없음).

2. UTP로 L4와 노트북을 연결하고 IP 통신 할 수 있는 환경으로 만들 것(위 URL을 참조하면 알겠지만 Console Serial 케이블로는 방법이 다름)

###############################################################################################

 

/boot/gtimg 입력하면 세가지 중 하나를 선택하게끔 뜬다.

 

image1 과 image2는 OS영역이니 비어있는데나 덮어씌우려고 하는 곳 둘중 하나 선택하면 된다.

 

boot는 위에서 말했듯이 커널 영역이다.

 

 

아래는 커널 교체할 때 사용했던 Config 다.

 

빨간색 부분은 내가 직접 타이핑한 것이고

파란색 부분은 주석이다.


>> Configuration# /boot/gtimg
Enter name of switch software image to be replaced
["image1"|"image2"|"boot"]:  boot -> 커널 쪽 교체하려고 선택
Enter hostname or IP address of FTP/TFTP server: 1.1.1.1 -> Tftp server(노트북)
Enter name of file on FTP/TFTP server:
<CLOCK NOT SET> ALERT   stp: STG 1, topology change detected
25._0_1_kernel.img -> Tftp server(노트북)에 있는 파일 이름
Enter username for FTP server or hit return for TFTP server:

boot kernel currently contains Software Version 23.0.4

New download will replace boot kernel with the file "25._0_1_kernel.img"
    from TFTP server 1.1.1.1, over the data port.
Confirm download operation [y/n]: y -> 다운로드 하겠냐고 물어보는 것.
Starting download...
File appears valid.
Download in progress...........................................................................................................................................
Image download complete (3560778 bytes).

 

후 /boot/reset 해주면 된다.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

'L4' 카테고리의 다른 글

[Alteon] Config Sync peer 설정  (0) 2020.08.04
L4 스위치 Loadbalancing Metric 종류  (0) 2017.08.01

Telegram_Image_Send.ahk
0.01MB
Gdip_All.ahk
0.09MB

 

위 두개의 파일을 lib 폴더에 넣어준다.

 

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#Include %A_scriptDir%\lib\Telegram_Image_Send.ahk
#Include %A_scriptDir%\lib\Gdip_All.ahk
 
Global Telegram_chatid := "XXXXXXX" ; replace XXXXXXX with your chat_id
Global Telegram_Token := "XXXXXXX" ; replace XXXXXXX with your Token
 
 
이미지캡쳐("카카오톡")
;Sleep, 500
 
 
 
ExitApp
 
 
 
이미지캡쳐(Title)
{
pToken := Gdip_Startup()
 
pBitmap := Gdip_BitmapFromHwnd(WinExist(Title))
Gdip_SaveBitmapToFile(pBitmap, "result.png")
Gdip_DisposeImage(pBitmap)
 
Gdip_Shutdown(pToken)
 
SendPhoto(Telegram_Token, Telegram_chatid, A_ScriptDir . "\result.png")     ; send the image; use msgbox for checking the json response
FileDelete, result.png
}
cs

Pushbullet 무료버전은 메시지가 1달에 100개 제한이라 텔레그램으로 api 연동으로 다시 찾아봤다.

 

떠도는 소스가 있길래 대충 되게만 해서 쓰려고 만들었다.

 

텔래그램  봇 Chat ID, Token 만들기는 구글링으로 찾아 이미 가지고 있다는 전제하에 작성된 글이다.

 

 

 

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Global Telegram_chatid := "XXXXXXX" ; replace XXXXXXX with your chat_id
Global Telegram_Token := "XXXXXXX" ; replace XXXXXXX with your API token
    
 
msgbox, % Telegram_Send_message("텔래그램_메시지_테스트")   ; this is useful if you need to return data
 
 
Telegram_Send_message(TG_Message) { 
    
    param := "chat_id=" Telegram_chatid "&text=" TG_Message
    URL := "https://api.telegram.org/bot" . Telegram_Token . "/sendmessage?" 
    ;msgbox, % param
    ;msgbox, % URL
    WebRequest := ComObjCreate("WinHttp.WinHttpRequest.5.1")
    WebRequest.Open("POST", URL)
    WebRequest.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded")
    WebRequest.Send(param)
    res := WebRequest.ResponseText
    return res
}
 
 
 
cs