2020年3月25日 星期三

cisco switch 3750 port mirroring

https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3750/software/release/12-2_52_se/configuration/guide/3750scg/swspan.html
Switch(config)#monitor session 1 source int
Switch(config)#monitor session 1 source interface f
Switch(config)#monitor session 1 source interface fastEthernet 1/0/1
Switch(config)#mo
Switch(config)#monitor es
Switch(config)#monitor se
Switch(config)#monitor session 1 de
Switch(config)#monitor session 1 destination in
Switch(config)#monitor session 1 destination interface fa
Switch(config)#monitor session 1 destination interface fastEthernet 1/0/2 en
Switch(config)#$tination interface fastEthernet 1/0/2 encapsulation re
Switch(config)#$nterface fastEthernet 1/0/2 encapsulation replicate
Switch(config)#
Switch(config)#mon
Switch(config)#monitor se
Switch(config)#monitor session 2 sou
Switch(config)#monitor session 2 source in
Switch(config)#monitor session 2 source interface fa
Switch(config)#monitor session 2 source interface fastEthernet 1/0/3
Switch(config)#mo
Switch(config)#monitor se
Switch(config)#monitor session 2 de
Switch(config)#monitor session 2 destination int
Switch(config)#monitor session 2 destination interface fa
Switch(config)#monitor session 2 destination interface fastEthernet 1/0/4 e
Switch(config)#$tination interface fastEthernet 1/0/4 encapsulation re
Switch(config)#$nterface fastEthernet 1/0/4 encapsulation replicate
Switch(config)#exit
Switch#
00:48:50: %SYS-5-CONFIG_I: Configured from console by console
00:51:40: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0/1, changed state to down
00:51:41: %LINK-3-UPDOWN: Interface FastEthernet1/0/1, changed state to down
00:51:48: %LINK-3-UPDOWN: Interface FastEthernet1/0/1, changed state to up
00:51:49: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0/1, changed state to up
00:52:25: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0/1, changed state to down
00:52:26: %LINK-3-UPDOWN: Interface FastEthernet1/0/1, changed state to down
00:52:32: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0/3, changed state to down
00:52:32: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan191, changed state to down
00:52:33: %LINK-3-UPDOWN: Interface FastEthernet1/0/3, changed state to down
Switch#
Switch#
Switch#no
Switch#no
% Incomplete command.

Switch#
Switch#no mo
Switch#sh mo
Switch#sh monitor se
Switch#sh monitor session 1
Session 1
---------
Type              : Local Session
Source Ports      :
    Both          : Fa1/0/1
Destination Ports : Fa1/0/2
    Encapsulation : Replicate
          Ingress : Disabled


Switch#sh monitor session 2
Session 2
---------
Type              : Local Session
Source Ports      :
    Both          : Fa1/0/3
Destination Ports : Fa1/0/4
    Encapsulation : Replicate
          Ingress : Disabled


Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#not
Switch(config)#no mo
Switch(config)#no monitor se
Switch(config)#no monitor session 1
Switch(config)#no monitor session 2
Switch(config)#exit
Switch#

2020年3月16日 星期一

Godaddy and G Suite

n this case, our services scope will be like this:

1. G Suite Business - 3 user - USD6*3 users*12 months = USD216/year, ~HKD1695/year depends on actual exchange rate.

2. GoDaddy/Namecheap domain registration fee for sinotopper.cc - Around USD20/year depends on actual availability

3. One-time setup fee for Domain application, Domain MX record setup, G Suite Account application, G Suite Domain Verification - HKD2800

4. (Optional) G Suite users account creation, G Suite training materials, Email/Tel. Technical Support services, Mailbox migration consultation support - HKD19999/year (Optional)



Why not me do that ?

Failed domain verification?



https://medium.com/@kvnsanghvi/my-experience-on-smtp-with-g-suite-1-4216b79eb366

2019年12月30日 星期一

cisco 2960 ios upgrade

https://blog.downager.com/2018/11/25/%E9%9A%A8%E7%AD%86-Cisco-2960X-IOS-%E7%89%88%E6%9C%AC%E6%8C%91%E9%81%B8-%E6%9B%B4%E6%96%B0/

c2960-lanbasek9-tar.122-55.SE12.tar

archive tar /xtract tftp://191.1.1.219/c2960-lanbasek9-tar.122-55.SE12.tar flash:


c2960-lanbasek9-mz.122-50.SE4

c2960-lanbasek9-mz.122-55.SE12/c2960-lanbasek9-mz.122-55.SE12.bin

 c2960-lanbasek9-mz.122-55.SE12/c2960-lanbasek9-mz.122-55.SE12.bin



Directory of flash:/

    2  -rwx         916   Mar 1 1993 00:03:55 +00:00  vlan.dat
    3  drwx         192   Mar 1 1993 01:00:34 +00:00  c2960-lanbasek9-mz.122-55.SE12
    4  -rwx        2229   Mar 1 1993 00:00:58 +00:00  config.text
    5  -rwx        1913   Mar 1 1993 00:00:58 +00:00  private-config.text
    6  -rwx        2072   Mar 1 1993 00:00:58 +00:00  multiple-fs
    7  drwx         192   Mar 1 1993 00:07:34 +00:00  c2960-lanbasek9-mz.122-50.SE4
 1117  -rwx         108   Mar 1 1993 01:02:05 +00:00  info

32514048 bytes total (7432704 bytes free)
Switch#
Switch#delete /f
Switch#delete /re
Switch#delete /recursive /for
Switch#delete /re
Switch#delete /recursive for
Switch#delete /recursive force
Switch#delete /recursive /force
Switch#delete /recursive /force c2960-lanbasek9-mz.122-50.SE4
Switch#dir
Directory of flash:/

    2  -rwx         916   Mar 1 1993 00:03:55 +00:00  vlan.dat
    3  drwx         192   Mar 1 1993 01:00:34 +00:00  c2960-lanbasek9-mz.122-55.SE12
    4  -rwx        2229   Mar 1 1993 00:00:58 +00:00  config.text
    5  -rwx        1913   Mar 1 1993 00:00:58 +00:00  private-config.text
    6  -rwx        2072   Mar 1 1993 00:00:58 +00:00  multiple-fs
 1117  -rwx         108   Mar 1 1993 01:02:05 +00:00  info

32514048 bytes total (18982912 bytes free)
Switch#show boot
BOOT path-list      : flash:/c2960-lanbasek9-mz.122-50.SE4/c2960-lanbasek9-mz.122-50.SE4.bin
Config file         : flash:/config.text
Private Config file : flash:/private-config.text
Enable Break        : no
Manual Boot         : no
HELPER path-list    :
Auto upgrade        : yes
Auto upgrade path   :
NVRAM/Config file
      buffer size:   65536
Timeout for Config
          Download:    0 seconds
Config Download
       via DHCP:       disabled (next boot: disabled)
Switch#dir
Directory of flash:/

    2  -rwx         916   Mar 1 1993 00:03:55 +00:00  vlan.dat
    3  drwx         192   Mar 1 1993 01:00:34 +00:00  c2960-lanbasek9-mz.122-55.SE12
    4  -rwx        2229   Mar 1 1993 00:00:58 +00:00  config.text
    5  -rwx        1913   Mar 1 1993 00:00:58 +00:00  private-config.text
    6  -rwx        2072   Mar 1 1993 00:00:58 +00:00  multiple-fs
 1117  -rwx         108   Mar 1 1993 01:02:05 +00:00  info

32514048 bytes total (18982912 bytes free)
Switch#cd c2960-lanbasek9-mz.122-55.SE12
Switch#dir
Directory of flash:/c2960-lanbasek9-mz.122-55.SE12/

  562  -rwx         539   Mar 1 1993 00:56:30 +00:00  info
  563  -rwx     9827106   Mar 1 1993 01:00:34 +00:00  c2960-lanbasek9-mz.122-55.SE12.bin
  564  drwx        4928   Mar 1 1993 01:02:05 +00:00  html

32514048 bytes total (18982912 bytes free)
Switch#
Switch#
Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#$sek9-mz.122-55.SE12/c2960-lanbasek9-mz.122-55.SE12.bin
boot system flash:/ c2960-lanbasek9-mz.122-55.SE12/c2960-lanbasek9-mz.122-55.SE1                    ^2.bin

% Invalid input detected at '^' marker.

Switch(config)#boot system flash:/c2960-lanbasek9-mz.122-55.SE12/c2960-lanbase$
Switch(config)#exit
Switch#sho w
*Mar  1 01:17:01.183: %SYS-5-CONFIG_I: Configured from console by conso
% Type "show ?" for a list of subcommands
Switch#show boot
BOOT path-list      : flash:/c2960-lanbasek9-mz.122-55.SE12/c2960-lanbasek9-mz.122-55.SE12.bin
Config file         : flash:/config.text
Private Config file : flash:/private-config.text
Enable Break        : no
Manual Boot         : no
HELPER path-list    :
Auto upgrade        : yes
Auto upgrade path   :
NVRAM/Config file
      buffer size:   65536
Timeout for Config
          Download:    0 seconds
Config Download
       via DHCP:       disabled (next boot: disabled)

2019年11月8日 星期五

mirth connect decision

cause using itext5.5.1 will also read the chinese charater , so i change to xpdfreader's pdftotext.exe

here is the parameter i use:

C:\xpdf-tools-win-4.02\bin64>pdftotext.exe -raw -eol unix XXEAM_WORK_ORDER_EMAIL
_FAX_R_177058651_1.PDF

will return file with no empty space row and end with "LF" Character set.

2019年11月5日 星期二

How to keep Ghost from automatically resizing partitions C500

How to keep Ghost from automatically resizing partitions



When Ghost performs a disk clone, or restores a disk image, it resizes all partitions based on their data space requirements in relation to the free space on the destination drive. Because of the resizing, an image created from a hard drive and then restored to the same hard drive, may have different sized partitions than the original source.

To prevent Ghost from automatically resizing the partition, use the SZE switch as follows:

When the source and destination drives are the same size
If you have two drives of the same size, use the following switch to keep the partitions from being resized:

Use the SZEE switch in the -CLONE statement. For example:

GHOST64.EXE -CLONE,MODE=LOAD,SRC=G:\2PRTDISK.GHO,DST=2,SZEE

mirth connect basic self learn how to add code template

on thread https://www.mirthcorp.com/community/forums/showthread.php?p=47649#post47649

can download the xml Attached FilesFile Type: xml executeRuntimeCommand.xml (1.2 KB, 158 views)
, but could not import.

when notepad++ edit it . I try to reference Youtube and add code template .