Skip to main content

Posts

Showing posts from July, 2015

VMWARE: VMWAREのMACの手動設定

VMWAREのMACアドレスを自動生成ではなく、MACの手動設定する方法。 Link ----------------------------------------- http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1010675 http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2035707 http://kb.vmware.com/selfservice/search.do?cmd=displayKC&docType=kc&docTypeID=DT_KB_1_1&externalId=2052143 以下、2つのVM実行ファイルの追加例。 ----------------------------------------- ethernetN.checkMACAddress = "false" ethernetN.addressType = "static" ethernetN.Address = "XX:XX:XX:XX:XX:XX" 00:0c:29:5a:31:b7 00:0c:29:5a:31:c1 ethernet0.checkMACAddress = "false" ethernet0.addressType = "static" ethernet0.Address = "00:0c:29:5a:31:b7" ethernet1.checkMACAddress = "false" ethernet1.addressType = "static" ethernet1.Address = "00:0c:29:5a:31:c1" -------------------------------------

Command: find

xargsは前のコマンドの引数をすべて渡すコマンド。 Link http://qiita.com/amasok23/items/5773cc3460c31163052f http://kawatama.net/web/1141 https://hydrocul.github.io/wiki/commands/xargs.html [root@cent2 ~]# find ./hoge* -type f -print | xargs grep 'filter' ./hoge10.txt: <Criteria fieldName="name" filterString="an@123.com" match="equals"/> ./hoge11.txt: <Criteria fieldName="status" filterString="Known" match="equals"/> ./hoge13.txt: <Criteria fieldName="status" filterString="Known" match="equals"/> ./hoge3-3.txt: <Criteria fieldName="name" filterString="mike" match="equals"/> [root@cent2 ~]# find ./hoge* -type f -print | xargs grep 'Filter' ./hoge10.txt:<Filter entity="GuestUser"> ./hoge10.txt:</Filter> ./hoge11.txt:<Filter entity="Endpoint"> ./hoge11.txt:</Filter> ./hoge13.txt:<Filter en

NTP and timezone setting

ntpdate ntp.nict.jp more /usr/share/zoneinfo/Asia/Tokyo  strings /etc/localtime date strings - ファイル中の表示可能な文字列を表示する  ------------------------------------- referring pages http://qiita.com/azusanakano/items/b39bd22504313884a7c3 ------------------------------------- [root@ale ~]#  ntpdate ntp.nict.jp 30 Mar 06:22:31 ntpdate[24908]: adjust time server 133.243.238.244 offset 0.001409 sec [root@ale ~]# date Mon Mar 30 06:22:34 UTC 2015 [root@ale ~]#  strings /etc/localtime TZif2 TZif2 UTC0 [root@ale ~]#  more /usr/share/zoneinfo/Asia/Tokyo  ヒロロォレ€ワ ン蕎€(65%) JST-9      [root@ale ~]#  cp /etc/localtime /etc/localtime.org cp: overwrite `/etc/localtime'? yes [root@ale ~]#  strings /etc/localtime TZif2 TZif2 JST-9 [root@ale ~]#  date Mon Mar 30 15:26:27 JST 2015 [root@ale ~]#

ncftp FTP client

参考リンク ncftpのコマンド試した履歴 ------------------------------------------------- ncFTP http://www.ncftp.com/ncftp/ http://peryaudo.hatenablog.com/entry/20100601/1275402835 http://lovepeers.org/2012/09/21/ftp-upload-recursively/ http://linux.math.tifr.res.in/manuals/man/ncftp.html http://www.ncftp.com/ncftp/doc/ncftp.html BusyBox http://www.busybox.net/downloads/BusyBox.html ------------------------------------------------- Option: connect-timeout Previous versions of the program used a single timeout value for everything. You can now have different values for different operations. However, you probably do not need to change these from the defaults unless you have special requirements.   The  connect-timeout  variable controls how long to wait, in seconds, for a connection establishment to complete before considering it hopeless. You can choose to not use a timeout at all by setting this to -1. control-timeout This is the timer used when  ncftp  sends an FTP command over the