2 月 03
joechen未分類
改寫前:
c:\Program Files\Wireshark>tshark.exe -i 1 -t ad -c 3 -f "arp"
Capturing on 'LAN'
1 2018-02-03 01:24:57.171146 Vmware_c3:97:f8 → AsustekC_fd:12:ba ARP 60 Who has 192.168.7.73? Tell 192.168.7.79
2 2018-02-03 01:24:57.171169 AsustekC_fd:12:ba → Vmware_c3:97:f8 ARP 42 192.168.7.73 is at 00:26:18:fd:12:ba
3 2018-02-03 01:24:57.505058 AsustekC_fd:12:ba → Vmware_c3:97:f8 ARP 42 Who has 192.168.7.79? Tell 192.168.7.73
3 packets captured
改寫後:
c:\Program Files\Wireshark>tshark.exe -i 1 -t ad -c 3 -f "arp" -o "gui.column.format:\"No.\",\"%m\",\"Time\",\"%t\",\"Vendor\",\"%rhs\",\"Source\",\"%uhs\",\"Destination\",\"%uhd\",\"Protocol\",\"%p\",\"Length\",\"%L\",\"Info\",\"%i\""
Capturing on 'LAN'
1 2018-02-03 01:23:53.208062 D-LinkIn_5c:c0:fe d8:fe:e3:5c:c0:fe → ff:ff:ff:ff:ff:ff ARP 60 Who has 192.168.7.96? Tell 192.168.7.1
2 2018-02-03 01:23:59.275652 SamsungE_85:b6:a5 ac:5f:3e:85:b6:a5 → ff:ff:ff:ff:ff:ff ARP 60 Who has 192.168.7.2? Tell 192.168.7.96
3 2018-02-03 01:23:59.276012 SamsungE_85:b6:a5 ac:5f:3e:85:b6:a5 → ff:ff:ff:ff:ff:ff ARP 60 Who has 192.168.7.2? Tell 192.168.7.96
3 packets captured
可利用 tshark -G help 裡的
tshark.exe -G column-formats
來看改寫方法
2 月 01
joechen未分類
c:\Program Files\Wireshark>.\tshark.exe -G column-formats
%q 802.1Q VLAN id
%Yt Absolute date, as YYYY-MM-DD, and time
%YDOYt Absolute date, as YYYY/DOY, and time
%At Absolute time
%V Cisco VSAN
%B Cumulative Bytes
%Cus Custom
%y DCE/RPC call (cn_call_id / dg_seqnum)
%Tt Delta time
%Gt Delta time displayed
%rd Dest addr (resolved)
%ud Dest addr (unresolved)
%rD Dest port (resolved)
%uD Dest port (unresolved)
%d Destination address
%D Destination port
%a Expert Info Severity
%I FW-1 monitor if/direction
%F Frequency/Channel
%hd Hardware dest addr
%hs Hardware src addr
%rhd Hw dest addr (resolved)
%uhd Hw dest addr (unresolved)
%rhs Hw src addr (resolved)
%uhs Hw src addr (unresolved)
%e IEEE 802.11 RSSI
%x IEEE 802.11 TX rate
%f IP DSCP Value
%i Information
%rnd Net dest addr (resolved)
%und Net dest addr (unresolved)
%rns Net src addr (resolved)
%uns Net src addr (unresolved)
%nd Network dest addr
%ns Network src addr
%m Number
%L Packet length (bytes)
%p Protocol
%Rt Relative time
%s Source address
%S Source port
%rs Src addr (resolved)
%us Src addr (unresolved)
%rS Src port (resolved)
%uS Src port (unresolved)
%E TEI
%Yut UTC date, as YYYY-MM-DD, and time
%YDOYut UTC date, as YYYY/DOY, and time
%Aut UTC time
%t Time (format as specified)
For example, to print Wireshark’s default columns with tshark:
tshark.exe -o “gui.column.format:\”No.\”,\”%m\”,\”Time\”,\”%t\”,\”Source\”,\”%s\”,\”Destination\”,\”%d\”,\”Protocol\”,\”%p\”,\”Length\”,\”%L\”,\”Info\”,\”%i\””
c:\Program Files\Wireshark>
1 月 09
joechen未分類
REF: http://docs.alfresco.com/community/tasks/solr-reindex.html
This task describes how to perform a full Solr reindex.
This task assumes you are using only one Solr instance for all nodes in the Alfresco Community Edition cluster. If not, then you need to repeat process on each Solr instance used in the cluster.
- Confirm the location of the Solr core directories for archive-SpacesStore and workspace-SpacesStore cores. This can be determined from the solrcore.properties file for both the cores. By default, the solrcore.propertiesfile can be found at <ALFRESCO_HOME>/solr4/workspace-SpacesStore/conf or <ALFRESCO_HOME>/solr4/archive-SpacesStore/conf. The Solr core location is defined in the solrcore.propertiesfile as:
For Solr, the default data.dir.root path is:
data.dir.root=<ALFRESCO_HOME>/alf_data/solr4/index/
- Shut down Solr (if running on a separate application server).
- Delete the contents of the index data directories for each Solr core at ${data.dir.root}/${data.dir.store}.
- <ALFRESCO_HOME>/alf_data/solr4/index/workspace/SpacesStore
- <ALFRESCO_HOME>/alf_data/solr4/index/archive/SpacesStore
- Delete all the Alfresco Community Edition models for each Solr core at ${data.dir.root}.
<ALFRESCO_HOME>/alf_data/solr4/model
- Delete the contents of the <ALFRESCO_HOME>/alf_data/solr4/content directory.
- Start up the application server that runs Solr.
- Monitor the application server logs for Solr at <TOMCAT_HOME>/logs/solr.log. You will get the following warning messages on bootstrap:
WARNING: [alfresco] Solr index directory '<ALFRESCO_HOME>/alf_data/solr/workspace/SpacesStore/index' doesn't exist. Creating new index...
09-May-2012 09:23:42 org.apache.solr.handler.component.SpellCheckComponent inform
WARNING: No queryConverter defined, using default converter
09-May-2012 09:23:42 org.apache.solr.core.SolrCore initIndex
WARNING: [archive] Solr index directory '<ALFRESCO_HOME>/alf_data/solr/archive/SpacesStore/index' doesn't exist. Creating new index...
- Use the Solr administration console to check the health of the Solr index.
Note:The process of building the Solr indexes can take some time depending on the size of the repository. To monitor reindexing progress, use the Solr administration console and check the logs for any issues during this activity.
While the reindex is taking place, some searches may not return the full set of results.
To copy the indexes from a recently re-indexed Solr node to another Solr node, follow these steps:
- Make sure both the Solr nodes have the same version of the index server.
- Stop node1 and copy the content store, index configuration, and index data to the new machine/node.
- (Optional) Copy the models from node1 to node2 and validate that they are compatible.
- Fix any configuration issues, for example, renaming the core, updating the configuration to point to the correct data, indexes, and Alfresco Community Edition.
- Disable index tracking on node2 by setting the enable.alfresco.tracking property to false in solrcore.properties.
- Go to the Solr Admin Web interface to monitor information about each core.
- Stop node 2 and enable tracking by setting the enable.alfresco.tracking property to true in solrcore.properties.
- Restart the Solr server on node2.
The new index on node2 should start tracking and come up-to-date.
12 月 23
joechen未分類
REF: https://support.auvik.com/hc/en-us/articles/206311526-How-to-enable-SNMP-on-a-VMware-ESXi-hypervisor#topic_esx6
How to enable SNMP on ESXi 6.x
SSH or Telnet to your ESXi node using root-level credentials.
Execute the following commands. Replace YOUR_STRING with your desired community string.
esxcli system snmp set -r
esxcli system snmp set -c YOUR_STRING
esxcli system snmp set -p 161
esxcli system snmp set -L “City, State, Country”
esxcli system snmp set -C noc@example.com
esxcli system snmp set -e yes
12 月 05
joechen未分類
REF: 微軟詳解 .NET 語言戰略:C#、VB、F# 都不落
原文網址:https://read01.com/MayEdM.html
11 月 24
joechen未分類
REF: https://www.youtube.com/watch?v=-xg766aPYro
#!/bin/bash
datetime=`date +%Y-%m-%d`
rm -f HD-A1.txt ; rm -f index.html ; wget ftp://60.250.120.233:99/Android/img/ ; cat index.html | sed -e 's/<[^>]*>//g' | grep A1 > HD-A1.txt
mail -s "HD-A1 ROM is checked on $datetime" yourmail@gmail.com < HD-A1.txt
9 月 18
joechenAlfresco, 未分類
參考網頁
http://docs.alfresco.com/community/tasks/upgrade-process.html
–官網是這樣說–
為避免升級後的版本無法順利啟用, Alfresco 建議直接安裝新版本在新的路徑
並請管理者預先備分相關資料, 如:
1.設定組態檔 alfresco-global.properties 所指定的
dir.root目錄 (dir.root=/opt/alfresco-community/alf_data)
db.url目錄 (db.url=jdbc:postgresql://localhost:5432/alfresco)
2.索引設定檔 solrcore.properties 所指定的
date.dir.root目錄
(/opt/alfresco-community/solr4/archive-SpacesStore/conf/solrcore.properties)
(/opt/alfresco-community/solr4/workspace-SpacesStore/conf/solrcore.properties)
–以下是正式維運環境這樣做–
如果目錄名稱沒有要改, 資料庫名稱也沒有異動
可依以下步驟
1. service alfresco stop
2. login with root by X window
3. install Alfreso-new-version by wizard (don’t start service)
4. rsync -av alfresco-data-dir to new-alfresco-data-dir
5. edit alfresco-globle.properties
6.1 edit tomcat/bin/setenv.sh (JAVA_OPTS)
6.2 edit tomcat/scripts/ctl.sh
以下待服務啟動後再執行
7. edit tomcat/webapps/ROOT/index.jps (add script to document.location.href to /share/page)
8. use scripts to translate simp-chinese to trad-chinese by cn2tw-bat.sh
9. install AMPS (https://sourceforge.net/projects/aaar/files/v4.4/)
10. 修改 alfresco service (http://www.keensoft.es/en/our-road-from-alfresco-5-1-g-to-alfresco-201701/)
10. service alfresco start
重啟後, 可能要比較久才能重新使用
— end —
Older Entries Newer Entries