2009年9月23日 星期三

CISCO PIX 復原

CISCO PIX IOS 更新失敗或不明原因造成 IOS image 損毀無法開機,可以使用以下方式復原,以下以 IOS 7.0 為例

一.架設 tftp 伺服器(192.168.1.1),並準備好 IOS image (pix701.bin) 及 ASDM image (asdm-501.bin)

二.設定 PIX
1.PIX 重新開機後按下 BREAK 或 ESC 中斷開機程序
2.interface 1 //設定 PIX 使用的網路界面
3.address 192.168.1.2 //設定 PIX interface 1 IP
4.server 192.168.1.1 //設定TFTP 伺服器 IP
5.file pix701.bin //指定 TFTP Server上 IOS 名稱
6.tftp //開始從 TFTP 伺服器傳送 IOS 影像檔,完成後 PIX 會重新開機

三、正常開機後再使用 copy tftp flash 指令,將 IOS image 複製至 flash 上即可

相關參考資料
http://www-tss.cisco.com/eservice/compass/common/activities/password_PIX.htm

2009年9月18日 星期五

LEAF使用USB Flash Disk 開機

一、解開掛載 initrd.lrp
mv initrd.lrp initrd.gz
gunzip initrd.gz
insmod loop.o (module.tgz 中 xx.xx./block/ 下)
mount initrd /initrd

二、確認 USB 相關模組已載入以下模組
相關路徑及檔案:/initrd/boot/lib/module/、/initrd/boot/etc/modules
ide-core
usbcore
usb-uhci / usb-ohci / ehci-hcd
scsi_mod
usb-storage
sd_mod
vfat

三、部份設備 USB 裝置必須比較久的偵測時間,修改 /initrd/linuxrc 中 usb_wait 的等待時間

四、若有修改重新製作 initrd
gzip -v9c initrd > initrd.gz
mv initrd.gz initrd.lrp

2009年9月11日 星期五

CISCO PIX IOS 升級更新

1.架設 TFTP Server
將 pix701.bin及asdm-501.bin放入 TFTP伺服器 目錄中
TFTP 伺服器 IP 為 10.0.0.1

2.更新IOS
pixfirewall# copy tftp flash
Address or name of remote host [0.0.0.0]? 10.0.0.1
Source file name [cdisk]? pix701.bin
copying t[url]ftp://10.0.0.1/pix701.bin[/url] to flash:image
[yes|no|again]? yes
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Received 5124096 bytes
Erasing current image
Writing 5066808 bytes of image
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
pixfirewall# reload
Proceed with reload? [confirm]

重新開機會久一點,不要任意關棧會造成更新失敗,導致無法開機
完成開機後,原有設定也會套用

3.更新 ASDM
pixfirewall# copy tftp flash
Address or name of remote host []? 10.0.0.1
Source filename []? asdm-501.bin
Destination filename [asdm-501.bin]?
Accessing t[url]ftp://10.0.0.1/asdm-501.bin[/url]...!!!!!!!!!!!!!!!!!!!!!!!!!
Writing file flash:/asdm-501.bin...
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
5919340 bytes copied in 85.610 secs (69639 bytes/sec)

pixfirewall# reload
Proceed with reload? [confirm]
重新開機後即完成更新,原有設定也會套用

Windows XP下CPL副檔名相關指令

access.cpl 協助工具選項
appwiz.cpl 新增或移除程式
desk.cpl 顯示內容
firewall.cpl Windows 防火牆
hdwwiz.cpl 新增硬體精靈
inetcpl.cpl 網際網路內容
intl.cpl 地區及語言選項
irprops.cpl 無線連結
iscsicpl.cpl iSCSI Initiator 內容
joy.cpl  遊戲控制器
jpicpl32.cpl JAVA控制面板
main.cpl  滑鼠內容
mmsys.cpl 聲音及音訊裝置內容
ncpa.cpl 網路連線
netsetup.cpl 無線網路安裝精靈
nusrmgr.cpl 使用者帳戶
odbccp32.cpl ODBC資料來源管理員
powercfg.cpl 電源選項內容
sysdm.cpl 系統內容
telephon.cpl 電話和數據機選項
timedate.cpl 日期和時間內容
wscui.cpl windows 資訊安全中心
wuaucpl.cpl 自動更新

Windows XP 下 MSC副檔名相關指令

admgmt.msc Active Directory管理 
azman.msc 授權管理員 
certmgr.msc 憑證 
certsrv.msc 憑證授權 
certtmpl.msc certtmpl憑證範本 
ciadv.msc Indexing Service 
comexp.msc 元件服務 
compmgmt.msc 電腦管理 
devmgmt.msc 裝置管理員 
dfrg.msc 磁碟重組工具 
dfsgui.msc 分散式檔案系統 
dhcpmgmt.msc DHCP 
diskmgmt.msc 磁碟管理 
dnsmgmt.msc dnsmgmt 
domain.msc Active Directory網域及信任 
dsa.msc  Active Directory使用者及電腦
dssite.msc Active Directory 站台及服務 
eventvwr.msc 事件檢視器 
fsmgmt.msc 共用資料夾 
gpedit.msc 群組原則 
iis.msc  Internet Information Services
ipaddrmgmt.msc IP位址管理 
lusrmgr.msc 本機使用者和群組 
mscorcfg.msc .NET Configuration 
ntmsmgr.msc 卸除式存放裝置 
ntmsoprq.msc 卸除式存放裝置操作員要求 
perfmon.msc 效能 
pkmgmt.msc 公開金鑰管理 
rsadmin.msc 遠端存放 
rsop.msc 原則結果組 
schmmgmt.msc schmmgmt 
secpol.msc 本機安全性設定 
services.msc 服務 
tapimgmt.msc 電話語音 
tsmmc.msc 遠端桌面 
uddi.msc UDDI服務主控站 
winsmgmt.msc WINS 
wmimgmt.msc Windows Management Infrastructure

2009年7月27日 星期一

Juniper NS-5GT-108 恢復預設密碼

使用以下方法將會遺失設定組態,但也會將裝置的預設值還原。
以 CONSOLE 方式連接(參閱 NetScreen CLI Reference Guide 和安裝程式指南)。
1. 在登入提示下,鍵入裝置的序號。

2. 在密碼提示下,再度鍵入序號。
會出現下面的訊息:
!!!! Lost Password Reset !!!! You have initiated a command to reset the device to factory defaults, clearing all
current configuration, keys and settings. Would you like to continue? y/n

3. 按 Y 鍵。
會出現下面的訊息:
!! Reconfirm Lost Password Reset !! If you continue, the entire configuration of the device will be erased. In
addition, a permanent counter will be incremented to signify that this device has been reset. This is your last
chance to cancel this command. If you proceed, the device will return to factory default configuration, which is: System IP: 192.168.1.1; username: netscreen; password: netscreen. Would you like to continue? y/n

4. 按 Y 鍵以重設裝置。
現在可以用 netscreen 作為預設使用者名稱和密碼來登入。

2009年7月14日 星期二

Windows 2K3 Telnet 服務不見

安裝 Microsoft (Windows) Server 2003 Service Pack 1 (SP1)] 或 [的 x x64 版本 」 (Windows Server 2003 之時,可能會遇到下列問題:
「 Telnet 」 服務不在 [服務] 主控台 (services.msc) 中。

修正方法:
命令列中輸入 tlntsvr /service 安裝 Telnet

詳情見 http://support.microsoft.com/kb/899260