New Laptop - Thinkpad X230

14 December 2013 @ 06:53 · leo

Hauwei dongle AT commad

AT^U2DIAG=1 Modem and CD-Rom Mode AT^U2DIAG=255 Modem+CD-Rom+Card-Reader Modem+ Factory Defaults Setting AT^U2DIAG=256 Modem+Card-Reader Mode AT^U2DIAG=257 Disable Application Port AT^U2DIAG=276 Reset to factory Defaults AT^CVOICE=? Gives Status of your modems voice.. AT^CVOICE=0 Enable Voice AT^CVOICE=1 Disable Voice ATI Gives Manufacture Information of Modem AT+CGMR Gives firmware version of Modem AT+CGSN Gives IMEI of Modem AT+CIMI Gives IMSI of Modem

18 June 2013 @ 05:09 · leo

MSSQL Enable xp_cmdshell

Execute a query with a sysadmin grant user. EXEC sp_configure 'show advanced options', 1 GO RECONFIGURE GO EXEC sp_configure 'xp_cmdshell', 1 GO RECONFIGURE GO

18 June 2013 @ 05:00 · leo

Upgrade PGSQL from 9.1 to 9.2

Retrieving http://yum.postgresql.org/9.2/redhat/rhel-6-x86_64/pgdg-centos92-9.2-6.noarch.rpm Preparing... ########################################### [100%] 1:pgdg-centos92 ########################################### [100%] [root@srv02mil1 ~]# yum install postgresql92-server postgresql92-contrib postgresql92 postgresql92-libs [root@srv02mil1 ~]# /etc/init.d/postgresql-9.1 stop Stopping postgresql-9.1 service: [ OK ] [root@srv02mil1 ~]# su - postgres [postgres@srv01mil1 ~]$ /usr/pgsql-9.2/bin/pg_upgrade -b /usr/pgsql-9.1/bin/ -B /usr/pgsql-9.2/bin/ -d /var/lib/pgsql/9.1/data/ -D /var/lib/pgsql/9.2/data/ Performing Consistency Checks ----------------------------- Checking current, bin, and data directories ok Checking cluster versions ok Checking database user is a superuser ok Checking for prepared transactions ok Checking for reg* system OID user data types ok Checking for contrib/isn with bigint-passing mismatch ok Creating catalog dump ok Checking for presence of required libraries ok Checking database user is a superuser ok Checking for prepared transactions ok If pg_upgrade fails after this point, you must re-initdb the new cluster before continuing. Performing Upgrade ------------------ Analyzing all rows in the new cluster ok Freezing all rows on the new cluster ok Deleting files from new pg_clog ok Copying old pg_clog to new server ok Setting next transaction ID for new cluster ok Resetting WAL archives ok Setting frozenxid counters in new cluster ok Creating databases in the new cluster ok Adding support functions to new cluster ok Restoring database schema to new cluster ok Removing support functions from new cluster ok Copying user relation files ok Setting next OID for new cluster ok Creating script to analyze new cluster ok Creating script to delete old cluster ok Upgrade Complete ---------------- Optimizer statistics are not transferred by pg_upgrade so, once you start the new server, consider running: analyze_new_cluster.sh Running this script will delete the old cluster's data files: delete_old_cluster.sh [postgres@srv01mil1 ~]$ [postgres@srv01mil1 ~]$ exit logout [root@srv02mil1 ~]# /etc/init.d/postgresql-9.2 start Starting postgresql-9.2 service: [ OK ]

18 June 2013 @ 04:56 · leo

Out-of-Office for sometime

6 April 2013 @ 07:26 · leo

Domino - Outbound internet address conversion

Messaging => Configurations => MIME => Conversion Options

25 March 2013 @ 23:16 · leo

PEN

Dear Leonardo Rizzi, Your application [Request-54213] has been completed and a PEN has been assigned. Your organization’s PEN is: 41129 Below is a copy of your PEN record. This record will be visible in the IANA PEN registry within an hour. The IANA PEN registry is available at the following address: http://www.iana.org/assignments/enterprise-numbers Decimal | Organization | | Contact | | | Email | | | | 41129 WideNet Leonardo Rizzi l.rizzi&wide-net.org

4 March 2013 @ 09:07 · leo

Cisco 827 as ADSL RFC 1483 Bridge

This is a configuration for use old cisco 827 router as rfc1483 bridge (a stupid pppoe modem) version 12.1 no service pad service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname Router ! ! ! ! ! ! ip subnet-zero no ip routing ! ! ! ! interface Ethernet0 no ip address no ip route-cache bridge-group 1 ! interface ATM0 no ip address no ip route-cache no atm ilmi-keepalive bundle-enable dsl operating-mode auto ! interface ATM0.1 point-to-point no ip route-cache pvc 8/35 encapsulation aal5snap ! bridge-group 1 ! ip classless no ip http server ! bridge 1 protocol ieee ! line con 0 transport input none stopbits 1 line vty 0 4 login ! scheduler max-task-time 5000 end

1 March 2013 @ 01:09 · leo

JunOS - Update with low space CF

dmesg tail: da0 at umass-sim0 bus 0 target 0 lun 0 da0: <SanDisk Cruzer Micro 6.51> Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: 988MB (2025471 512 byte sectors: 64H 32S/T 988C) root@amnesyac% dd if=/dev/zero of=/dev/da0 bs=128k 2435+0 records in 2434+0 records out 319029248 bytes transferred in 352.314078 secs (905525 bytes/sec) root@amnesyac% disklabel -R -w da0 auto root@amnesyac% newfs -U /dev/da0 /dev/da0: 989.0MB (2025468 sectors) block size 16384, fragment size 2048 using 6 cylinder groups of 183.69MB, 11756 blks, 23552 inodes. with soft updates super-block backups (for fsck -b #) at: 32, 376224, 752416, 1128608, 1504800, 1880992 root@amnesyac% mkdir /var/tmp/usb root@amnesyac% mount /dev/da0 /var/tmp/usb root@amnesyac% mv junos-jsr-12.1R5.5-export.tgz /cf/var/tmp/usb/ root@amnesyac% cli root@amnesyac> file list detail /var/tmp/usb /var/tmp/usb: total 406474 drwxrwxr-x 2 root operator 512 Feb 28 04:52 .snap/ -rw-r--r-- 1 root wheel 208012563 Feb 27 19:33 junos-jsr-12.1R5.5-export.tgz root@amnesyac> request system software add junos-jsr-12.1R5.5-export.tgz ERROR: Missing package: /cf/root/junos-jsr-12.1R5.5-export.tgz root@amnesyac> request system software add /var/tmp/usb/junos-jsr-12.1R5.5-export.tgz NOTICE: Validating configuration against junos-jsr-12.1R5.5-export.tgz. NOTICE: Use the 'no-validate' option to skip this if desired. Checking compatibility with configuration Initializing... Verified manifest signed by PackageProduction_9_6_0 Using /var/tmp/usb/junos-jsr-12.1R5.5-export.tgz Checking junos requirements on / Available space: 80793 require: 4688 Saving boot file package in /var/sw/pkg/junos-boot-jsr-12.1R5.5.tgz Verified manifest signed by PackageProduction_12_1_0 Hardware Database regeneration succeeded Validating against /config/juniper.conf.gz cp: /cf/var/validate/chroot/var/etc/resolv.conf and /etc/resolv.conf are identical (not copied). cp: /cf/var/validate/chroot/var/etc/hosts and /etc/hosts are identical (not copied). [edit system services ssh] 'ssh' warning: daemon binary /usr/sbin/sshd not found mgd: commit complete Validation succeeded Installing package '/var/tmp/usb/junos-jsr-12.1R5.5-export.tgz' ... Verified junos-boot-jsr-12.1R5.5.tgz signed by PackageProduction_12_1_0 Verified junos-jsr-12.1R5.5-export signed by PackageProduction_12_1_0 Available space: 81388 require: 4688 WARNING: JUNOS edition export != domestic, need to regenerate ssh host keys Saving boot file package in /var/sw/pkg/junos-boot-jsr-12.1R5.5.tgz JUNOS 12.1R5.5 will become active at next reboot WARNING: A reboot is required to load this software correctly WARNING: Use the 'request system reboot' command WARNING: when software installation is complete Saving package file in /var/sw/pkg/junos-12.1R5.5.tgz ... cp: /var/sw/pkg/junos-12.1R5.5.tgz: No space left on device Saving state for rollback ... root@amnesyac> request system reboot Reboot the system ? [yes,no] (no) yes Shutdown NOW! [pid 1988] root@amnesyac> *** FINAL System shutdown message from root@amnesyac *** System going down IMMEDIATELY Timeout, server not responding.

28 February 2013 @ 01:59 · leo

IBM CIM Agent for DS Open API

Device successfully added. C:\Program Files (x86)\IBM\dsagent\bin>dscimcli.bat lsdev -l Type IP IP2 Username Storage Image Status C ode Level Min Codelevel ===== ======================================= ======================================= ========= ================ ========== = ============= ============== DS 10.XX.XX.XX - admin IBM.1750-68XXXXX successful 5 .2.2.533 5.0.6.235 DS 10.XX.XX.XX - admin IBM.1750-68XXXXX successful 5 .2.2.565 5.0.6.235 C:\Program Files (x86)\IBM\dsagent\bin>

17 February 2013 @ 14:06 · leo