ESXi ºÎÆÃÈÄ telegram ¸Þ½ÃÁö Àü¼ÛÇÏ°Ô Çϱâ

   Á¶È¸ 24964   Ãßõ 1    

ESXi 부팅후 telegram 메시지 전송하게 하기

- NVIDIA T600 GPU 패스스루후 부팅이 제대로 됐는지 알 수가 없어 적용했습니다. ㅎ


* ESXi 6.7 U3에서 테스트 했습니다.


(0) 텔레그램 채팅방ID 발급 (인터넷에서 검색하면 많이 나옵니다)

-> CHAT ID, TOKEN이 있어야 해당 텔레그램 채팅방으로 전송됩니다.

 

(1) 아래 파일 편집

vi /etc/rc.local.d/local.sh


(2) 아래 3줄 삽입후 저장 (빨간색 부분)

* { }는 빼고 입력하셔야 합니다.

-> 편집은 i 누름

-> 저장전에 ESC 누름

-> 저장&종료는 wq!

-> 저장 안하고 종료는 q!


(3) ESXi 리부팅


#!/bin/sh


# local configuration options


# Note: modify at your own risk!  If you do/use anything in this

# script that is not part of a stable API (relying on files to be in

# specific places, specific tools, specific output, etc) there is a

# possibility you will end up with a broken system after patching or

# upgrading.  Changes are not supported unless under direction of

# VMware support.


# Note: This script will not be run when UEFI secure boot is enabled.


esxcli network firewall ruleset set -e true -r httpClient


wget --post-data="chat_id={텔레그램 CHAT ID 입력}&text={원하는메세지입력-공백허용안됨-ESXi_6.7_Booted_Completed}" https://api.telegram.org/bot{텔레그램 TOKEN 입력}/sendMessage


esxcli network firewall ruleset set -e false -r httpClient


exit 0

~

~

~

~

~

~

~

- /etc/rc.local.d/local.sh 1/20 5%

ㄱ... Test
maronet 2022-03
¿À´ÃÀÇ ¾ÆÀ̵ð¾î »ó~! ¦¦~
¼ÛÁøÈ« 2022-03
À̾ß~ ÀÌ°Å ²Ï³ª À¯¿ëÇϰڴµ¥¿ä?
¼ÒÁßÇÑ Á¤º¸ °¨»çµå¸³´Ï´Ù.^^
11qkr 2022-03
Á¤º¸ °¨»çÇÕ´Ï´Ù
ÀÛ¾÷Çѹø Çغ¸°Ú½À´Ï´Ù

 vm µ¿ÀÛ ¸ð´ÏÅ͸µÀº  ÇÒ¼ö ÀÖ´ÂÁö¿ä??
ƯÁ¤ vm µ¿ÀÛ/ÀçºÎÆÃ/stop µî

¿¹) Çسî·ÎÁö ÆÄ¿öoff/onÀ» Àû¿ë °¡´ÉÇÑÁö¿ä,,,,
     
°¨ÀÚ 2022-03
VM µ¿ÀÛÀº µû·Î ¸¸µå¼Å¾ß ÇÒ µí ÇÕ´Ï´Ù.
ÀÌ°Å´Â Host os(ESXi) ºÎÆà ¾Ë¸®¹Ì ÀÔ´Ï´Ù
11qkr 2022-03
½Ã³î·ÎÁö power on
½Ã³î·ÎÁö ÆÄ¿öon½Ã  ÅÚ·¹±×·¥ ¸Þ½ÅÀú ¹Þ±â Àû¿ëÀº
´Ô²²¼­ Á¦°øÇϽŠ¼Ò¼ö¸¦ 1ÁÙ ÀÛ¾÷ ½ºÄÉÁì·¯¿¡ ³ÖÀ¸´Ï  Àû¿ë µÇ¾ú½À´Ï´Ù
wget --post-data="chat_id={ÅÚ·¹±×·¥ CHAT ID ÀÔ·Â}&text={¿øÇϴ¸޼¼ÁöÀÔ·Â-°ø¹éÇã¿ë¾ÈµÊ-ESXi_6.7_Booted_Completed}" https://api.telegram.org/bot{ÅÚ·¹±×·¥ TOKEN ÀÔ·Â}/sendMessage
-----------------
½Ã³î·ÎÁö power off À̺¥Æ® ´Â xxx
===================
esxi serve vm À̺¥Æ® sh ÆÄÀÏÀ» ã°í ÀÖ½À´Ï´Ù.,,,,°í¼ö´ÔÀÇ Á¶¾ðÀ» ±â´Þ¸®°Ú½À´Ï´Ù.
     
°¨»çÇÕ´Ï´Ù.
Çѵ¿¾È ¾È¾²´ø ÅÚ·¹±×·¥ ´Ù½Ã ±ò°í
Çì³î·ÎÁö¿¡ Àû¿ëÇØ º¾´Ï´Ù.^^
          
ÀÎÅͳݿ¡¼­ ¹æ¹ý ã¾Æ¼­ Àß Àû¿ë ¸¶ÃƽÀ´Ï´Ù.
wget --post-data="STRING DATA" ¿Í http URL »çÀÌ¿¡ °ø¹é Çϳª°¡ ÇÊ¿äÇÑ°É ¸ô¶ó¼­ 10ºÐ Çظå½À´Ï´Ù. ¤¾¤¾

º¿ äÆùæ ID ¹ß±Þ¹æ¹ý (BotFather)
https://blog.naver.com/damtaja/221347508096
               
11qkr 2022-03
½Ã³î·ÎÁö ÀÛ¾÷½ºÄÉÁì¿¡ ÅÚ·¹±×·¥  Ãß°¡ Àû¿ë ¸Þ¼¼Áö ¹Þ±â
1) ºÎÆýà Àû¿ë
  - Ãß°¡ : Æ®¸®°ÅµÈ ÀÛ¾÷  Ãß°¡
      wget --post-data="chat_id=1412345&text=Synology_message_[Booting_µÇ¾ú½À´Ï´Ù]" https://api.telegram.org/bot5234519:AAE4XPmef6A5N8XyHyO5unhlkz213123/sendMessage

2) ¸¸µé¾î(»ç¿ëÁßÀÎ)³õÀº ÀÛ¾÷½ºÄÉÁì Ãß°¡( ÀÚ½ÅÀÇ 1°³ÀÇ Á¤»ó Ãâ·Â È®ÀÎÈÄ ¸Þ¼¼Áö¸¸ º¯°æ)
        (Á¦ÀÏ ¸¶Áö¸·¿¡.... mysql ¹é¾÷À̶ó¸é)
        wget --post-data="chat_id=1412345&text=Synology_message_[Mysql¹é¾÷ÀÌ_µÇ¾ú½À´Ï´Ù]" https://api.telegram.org/bot5234519:AAE4XPmef6A5N8XyHyO5unhlkz213123/sendMessage
-----------------------
ÀÛ¾÷½ºÄÉÁÙ¿¡ email´ë½Å ÅÚ·¹±×·¥À¸·Î Àû¿ë Çغ¸¾Ò½À´Ï´Ù.,
                    
{}ű׸¦ Áö¿ö¾ß ÇÔ¿¡µµ Çرò·Á¼­ ±×³É »ùÇ÷ΠÇѹø Á¤¸®ÇØ µå¸±±î Çß¾ú´Âµ¥, ¸¶Ä§ Àß ¿Ã·ÁÁּ̳׿ä.^^
À§¿¡ chat_id´Â ½ÇÁ¦ º»ÀÎ id°¡ ¾Æ´Ï½Ã°ÚÁÒ? ¤¾¤¾
´Ù¸¥ ½ºÄÉÁì·¯ ¿¡µµ Çѹø Àû¿ëÇØ ºÁ¾ß °Ú³×¿ä.
                         
11qkr 2022-03
¿¹
(À§¿¡ chat_id´Â ½ÇÁ¦ º»ÀÎ id°¡ ¾Æ´Ï½Ã°ÚÁÒ? ¤¾¤¾)
 id¹× ÅæÅ« ÀÇ ¹øÈ£  ¸îÀÚ º¯°æ ³»¿ëÀÔ´Ï´Ù.
....´Â ´ç±Ù ¾Æ´ÏÁÒ,,,,
³»°ÍÀÌ¶óµµ »ó°ü ¾ø¾î¿ä
¾µ»ç¶÷ ¾øÀ¸´Ï ¾²½Å´Ù Çصµ  ¸Þ¼ÇÀ» ¸ø¹ÞÁÒ...
Âü°í·Î ¼³Ä¡»ç·Ê´Â
1.docker¿¡ ÅÚ·¹±×·¥ Àû¿ëÇÏ¸é  ½Ã³î·ÎÁö ½ÃÀÛ/Á¾·á¿¡ µµÄ¿ ½ÃÀÛ/Á¾·áÀÇ ¸Þ½ÅÁ®µµ ¿À³×¿ä,
2.À¥¼­¹ö ȨÆäÀÌÁö ¿î¿µ¿¡ ±Û¾²±â/¼öÁ¤/´Ù¿î·Îµå/´ñ±Û,,,,µîµî Àû¿ëÀ¸·Î ¸Þ½ÅÁ® ¿À³×¿ä
3.esxi¼­¹ö ¿¡´Â Å×½ºÆ®°¡  ¹ø°Å·Î¿ö vmº° ½ÃÀÛ/Á¾·á  Àû¿ëÇÏ°í ½ÍÀºµ¥ ,,,°í¼ö´Ô »ç·Ê¸¦ ã°í ÀÖ½À´Ï´Ù ???
...¼ö°íÇϼ¼¿ä....
Smilesanta 2022-03
°¨»çÇÕ´Ï´Ù~~´öºÐ¿¡ esxi ¿¡ Àß Àû¿ëÇß½À´Ï´Ù.


Á¦¸ñPage 5/28
2022-06   24316   µö·¯´×¼­¹ö
2022-06   28681   µö·¯´×¼­¹ö
2022-05   29885   È­Á¤Å¥»ï
2022-05   32045   µö·¯´×¼­¹ö
2022-05   24955   ocarina
2022-05   27694   dadami
2022-05   21586   µö·¯´×¼­¹ö
2022-05   19015   NaHS
2022-05   11465   ¼ÛÁÖȯ
2022-05   12647   theÃ̳ð
2022-04   11743   µö·¯´×¼­¹ö
2022-04   31371   È­Á¤Å¥»ï
2022-04   12852   ±èȲÁß
2022-04   10735   ½ºÄµl¹ÎÇö±â
2022-04   9819   µö·¯´×¼­¹ö
2022-03   9675   ¹ÌÄ£°¨ÀÚ
2022-03   11563   µö·¯´×¼­¹ö
2022-03   7218   È­Á¤Å¥»ï
2022-03   12321   µö·¯´×¼­¹ö
2022-03   24965   ¹ÌÄ£°¨ÀÚ