Tech

Microsoft Teams and Join Link problem

I’ve recently upgraded Microsft Teams to version 1.4.00.4855 (I run it on openSUSE Linux but I think this problem can be related to the rpm build and maybe even the deb) basically the external Join Invite by URL stopped working.

Digging around in the browser the content-type: "msteams" it’s opened by the lanucher "/usr/bin/teams" luckily it’s a simple shell script, apparently they added some switch messing up the URL variable.

Following the explanation, I’ve just downloaded the rpm and unpacked it:

https://packages.microsoft.com/yumrepos/ms-teams/teams-1.3.00.958-1.x86_64.rpm 
https://packages.microsoft.com/yumrepos/ms-teams/teams-1.4.00.4855-1.x86_64.rpm
rpm2cpio teams-xxxx.x86_64.rpm | cpio -idmv

And then do some diff:

leo@thinkleo5:~/dev/teams> diff 1.3/usr/bin/teams 1.4/usr/bin/teams
11c11
< nohup "$TEAMS_PATH" "$@" > "$TEAMS_LOGS/teams-startup.log" 2>&1 &
---
> nohup "$TEAMS_PATH" --disable-namespace-sandbox --disable-setuid-sandbox "$@" > "$TEAMS_LOGS/teams-startup.log" 2>&1 &
leo@thinkleo5:~/dev/teams>

Teams still run but the URL joins are ignored, you can fix editing the "/usr/bin/teams" the line 11 of the launcher.

From:

nohup "$TEAMS_PATH" --disable-namespace-sandbox --disable-setuid-sandbox "$@" > "$TEAMS_LOGS/teams-startup.log" 2>&1 &

To:

nohup "$TEAMS_PATH" "$@" --disable-namespace-sandbox --disable-setuid-sandbox > "$TEAMS_LOGS/teams-startup.log" 2>&1 &

Microsoft Teams and Join Link problem Read More »

JunOS Upgrade

For some reason, JunOS 12.1X46-D65.4 on SRX platform can’t validate any update it takes me several attempts before figure out to run the upgrade with the “no-validate” option.

root> request system configuration rescue save 
root> request system autorecovery state save   
root> request system storage cleanup              

List of files to delete:

         Size Date         Name
    11B Dec 29 22:35 /cf/var/jail/tmp/alarmd.ts
 142.6M Dec 29 22:38 /cf/var/jail/tmp/install/junos-srxsme-12.1X46-D82-domestic.tgz
   420B Dec 29 22:36 /cf/var/jail/tmp/jweb-users.xml
   128B Dec 29 22:40 /cf/var/log/interactive-commands.0.gz
   175B Dec 29 22:40 /cf/var/log/messages.0.gz
    27B Dec 29 22:32 /cf/var/log/wtmp.0.gz
Delete these files ? [yes,no] (no) yes 


root> 


root> request system software add /cf/var/tmp/junos-srxsme-12.3X48-D40.5-domestic.tgz             
NOTICE: Validating configuration against junos-srxsme-12.3X48-D40.5-domestic.tgz.
NOTICE: Use the 'no-validate' option to skip this if desired.
Checking compatibility with configuration
Initializing...
Verified manifest signed by PackageProductionEc_2016 method ECDSA
veriexec: cannot bless /packages/junos-12.1X46-D65.4-domestic: Authentication error
Verified junos-12.1X46-D65.4-domestic signed by PackageProductionEc_2016 method ECDSA
Using /cf/var/tmp/junos-srxsme-12.3X48-D40.5-domestic.tgz
Checking junos requirements on /
Available space: 181112 require: 211214

WARNING: The /packages filesystem is low on free disk space.
WARNING: This package requires 211214k free, but there
WARNING: is only 181112k available.

WARNING: This installation attempt will be aborted.
ERROR: validate-config: junos/+REQUIRE fails for /
WARNING: Current configuration not compatible with /cf/var/tmp/junos-srxsme-12.3X48-D40.5-domestic.tgz

root> request system storage cleanup                                                     

List of files to delete:

         Size Date         Name
   474B Dec 29 19:44 /cf/var/log/install.0.gz
   134B Dec 30 04:41 /cf/var/log/interactive-commands.0.gz
  1815B Dec 30 04:41 /cf/var/log/messages.0.gz
    27B Dec 29 22:45 /cf/var/log/wtmp.0.gz
    27B Dec 29 22:40 /cf/var/log/wtmp.1.gz
  4821B Dec 30 04:36 /cf/var/tmp/cleanup-pkgs.log
 173.7M Dec 29 22:43 /cf/var/tmp/junos-srxsme-12.3X48-D40.5-domestic.tgz
Delete these files ? [yes,no] (no) yes 


root> show version 
Model: srx110h2-va
JUNOS Software Release [12.1X46-D65.4]

root> request system software add /cf/var/tmp/junos-srxsme-12.1X46-D66.1-domestic.tgz    
NOTICE: Validating configuration against junos-srxsme-12.1X46-D66.1-domestic.tgz.
NOTICE: Use the 'no-validate' option to skip this if desired.
Checking compatibility with configuration
Initializing...
Verified manifest signed by PackageProductionEc_2016 method ECDSA
veriexec: cannot bless /packages/junos-12.1X46-D65.4-domestic: Authentication error
Verified junos-12.1X46-D65.4-domestic signed by PackageProductionEc_2016 method ECDSA
Using /cf/var/tmp/junos-srxsme-12.1X46-D66.1-domestic.tgz
ERROR: Unsupported platform srx110h2-va for 12.1X46 releases after 12.1X46-D65.
ERROR: validate-config: junos/+REQUIRE fails
WARNING: Current configuration not compatible with /cf/var/tmp/junos-srxsme-12.1X46-D66.1-domestic.tgz

root> request system software delete-backup 
Delete backup system software package [yes,no] (no) yes 


root> show chassis routing-engine              
Routing Engine status:
    Temperature                 58 degrees C / 136 degrees F
    Total memory              2048 MB Max   635 MB used ( 31 percent)
      Control plane memory    1088 MB Max   435 MB used ( 40 percent)
      Data plane memory        960 MB Max   202 MB used ( 21 percent)
    CPU utilization:
      User                       4 percent
      Background                 0 percent
      Kernel                    12 percent
      Interrupt                  0 percent
      Idle                      84 percent
    Model                          RE-SRX110H2-VA
    Start time                     2017-01-15 02:45:57 UTC
    Uptime                         9 hours, 32 minutes, 48 seconds
    Last reboot reason             0x200:normal shutdown
    Load averages:                 1 minute   5 minute  15 minute
                                       0.24       0.50       0.41

root> request system reboot 
Reboot the system ? [yes,no] (no) yes 

Shutdown NOW!
[pid 4875]

root>                                                                                
*** FINAL System shutdown message from root@ ***                             

System going down IMMEDIATELY                                                  

Password:
--- JUNOS 12.1X46-D65.4 built 2016-12-30 01:34:30 UTC

root@% cli
root> request system software add /cf/var/tmp/junos-srxsme-12.1X46-D66.1-domestic.tgz     
NOTICE: Validating configuration against junos-srxsme-12.1X46-D66.1-domestic.tgz.
NOTICE: Use the 'no-validate' option to skip this if desired.
Checking compatibility with configuration
Initializing...
Verified manifest signed by PackageProductionEc_2016 method ECDSA
veriexec: cannot bless /packages/junos-12.1X46-D65.4-domestic: Authentication error
Verified junos-12.1X46-D65.4-domestic signed by PackageProductionEc_2016 method ECDSA
Using /cf/var/tmp/junos-srxsme-12.1X46-D66.1-domestic.tgz
ERROR: Unsupported platform srx110h2-va for 12.1X46 releases after 12.1X46-D65.
ERROR: validate-config: junos/+REQUIRE fails
WARNING: Current configuration not compatible with /cf/var/tmp/junos-srxsme-12.1X46-D66.1-domestic.tgz

root> request system software add /cf/var/tmp/junos-srxsme-12.1X46-D66.1-domestic.tgz no-validate 
Formatting alternate root (/dev/ad0s2a)...
/dev/ad0s2a: 630.0MB (1290204 sectors) block size 16384, fragment size 2048
        using 4 cylinder groups of 157.50MB, 10080 blks, 20224 inodes.
super-block backups (for fsck -b #) at:
 32, 322592, 645152, 967712
Extracting /cf/var/tmp/junos-srxsme-12.1X46-D66.1-domestic.tgz ...
saving package file in /var/sw/pkg ...
Installing package '/altroot/cf/packages/install-tmp/junos-12.1X46-D66.1-domestic' ...
Verified junos-boot-srxsme-12.1X46-D66.1.tgz signed by PackageProductionEc_2017 method ECDSA
Verified junos-srxsme-12.1X46-D66.1-domestic signed by PackageProductionEc_2017 method ECDSA
Verified junos-boot-srxsme-12.1X46-D66.1.tgz signed by PackageProductionEc_2017 method ECDSA
Verified junos-srxsme-12.1X46-D66.1-domestic signed by PackageProductionEc_2017 method ECDSA
ERROR: Unsupported platform srx110h2-va for 12.1X46 releases after 12.1X46-D65.
ERROR: junos-12.1X46-D66.1-domestic fails requirements check
Installation failed for package '/altroot/cf/packages/install-tmp/junos-12.1X46-D66.1-domestic'

root> request system storage cleanup                                                                 

List of files to delete:

         Size Date         Name
    96B Dec 30 04:58 /cf/var/crash/flowd_octeon_hm.log..0
   131B Dec 30 05:13 /cf/var/log/interactive-commands.0.gz
  3726B Dec 30 05:13 /cf/var/log/messages.0.gz
   136B Dec 30 04:59 /cf/var/log/wtmp.0.gz
    27B Dec 30 04:41 /cf/var/log/wtmp.1.gz
 142.4M Dec 30 05:10 /cf/var/sw/pkg/junos-12.1X46-D66.1.tgz
  4821B Dec 30 05:04 /cf/var/tmp/cleanup-pkgs.log
     0B Dec 30 04:57 /cf/var/tmp/eedebug_bin_file
 124.0K Dec 30 04:57 /cf/var/tmp/gres-tp/env.dat
     0B Dec 30 04:57 /cf/var/tmp/gres-tp/lock
     4B Dec 30 04:58 /cf/var/tmp/idp_license_info
 142.4M Oct 26 17:00 /cf/var/tmp/junos-srxsme-12.1X46-D66.1-domestic.tgz
   155B Dec 30 04:58 /cf/var/tmp/krt_gencfg_filter.txt
    30B Dec 30 04:58 /cf/var/tmp/policy_status
     0B Dec 30 04:57 /cf/var/tmp/rtsdb/if-rtsdb
     0B Dec 30 04:56 /cf/var/tmp/spu_kmd_init
     0B Dec 30 04:58 /cf/var/tmp/vpn_tunnel_orig.id
Delete these files ? [yes,no] (no) yes 


root> request system software add /cf/var/tmp/junos-srxsme-12.3X48-D105.4-domestic.tgz no-validate                              
Formatting alternate root (/dev/ad0s2a)...
/dev/ad0s2a: 630.0MB (1290204 sectors) block size 16384, fragment size 2048
        using 4 cylinder groups of 157.50MB, 10080 blks, 20224 inodes.
super-block backups (for fsck -b #) at:
 32, 322592, 645152, 967712
Extracting /cf/var/tmp/junos-srxsme-12.3X48-D105.4-domestic.tgz ...
saving package file in /var/sw/pkg ...
Installing package '/altroot/cf/packages/install-tmp/junos-12.3X48-D105.4-domestic' ...
Verified junos-boot-srxsme-12.3X48-D105.4.tgz signed by PackageProductionECP256_2020 method ECDSA
Verified junos-srxsme-12.3X48-D105.4-domestic signed by PackageProductionECP256_2020 method ECDSA
Verified junos-boot-srxsme-12.3X48-D105.4.tgz signed by PackageProductionECP256_2020 method ECDSA
Verified junos-srxsme-12.3X48-D105.4-domestic signed by PackageProductionECP256_2020 method ECDSA
Verified junos-boot-srxsme-12.3X48-D105.4.tgz signed by PackageProductionECP256_2020 method ECDSA
Verified junos-srxsme-12.3X48-D105.4-domestic signed by PackageProductionECP256_2020 method ECDSA
JUNOS 12.3X48-D105.4 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 state for rollback ...

root> request system reboot 
Reboot the system ? [yes,no] (no) yes 

Shutdown NOW!
[pid 2578]

root>                                                                                
*** FINAL System shutdown message from root@ ***                             

System going down IMMEDIATELY                                                  

                           

JunOS Upgrade Read More »

AIX 7.1 – LDAP Auth

root@aix01:/opt/IBM/ldap/V6.2/lib#/usr/sbin/restart-secldapclntd
The secldapclntd daemon is not running.
Starting the secldapclntd daemon.
exec(): 0509-036 Cannot load program /usr/sbin/secldapclntd because of the following errors:
0509-150 Dependent module libibmldap.a could not be loaded.
0509-022 Cannot load module libibmldap.a.
0509-026 System error: A file or directory in the path name does not exist.
exec(): 0509-036 Cannot load program /usr/sbin/secldapclntd because of the following errors:
0509-150 Dependent module libibmldap.a could not be loaded.
0509-022 Cannot load module libibmldap.a.
0509-026 System error: A file or directory in the path name does not exist.
The secldapclntd daemon failed to start.

root@aix01:/opt/IBM/ldap/V6.2/lib#ln -s /opt/IBM/ldap/V6.2/lib/libibmldap.a /usr/lib/libibmldap.a
root@aix01:/opt/IBM/ldap/V6.2/lib#ln -f -s /opt/IBM/ldap/V6.2/lib/libibmldap.a /usr/lib/libibmldap.a

AIX 7.1 – LDAP Auth Read More »

XFCE – Screen lock using LightGDM

/usr/bin/xflock4

#

PATH=/bin:/usr/bin
export PATH

# Lock by xscreensaver or gnome-screensaver, if a respective daemon is running
#for lock_cmd in \
# "xscreensaver-command -lock" \
# "gnome-screensaver-command --lock"
#do
# $lock_cmd >/dev/null 2>&1 && exit
#done

for lock_cmd in \
"dm-tool lock"
do
$lock_cmd >/dev/null 2>&1 && exit
done

# else run another access locking utility, if installed
for lock_cmd in \

XFCE – Screen lock using LightGDM Read More »

XFCE – Desktop Icons

[leo@thinkleo4 ~]$ cat .gtkrc-2.0
style "xfdesktop-icon-view" {
XfdesktopIconView::label-alpha = 0
XfdesktopIconView::selected-label-alpha = 170
XfdesktopIconView::ellipsize-icon-labels = 0

XfdesktopIconView::shadow-x-offset = 0
XfdesktopIconView::shadow-y-offset = 0
XfdesktopIconView::shadow-color = "#000000"
XfdesktopIconView::selected-shadow-x-offset = 0
XfdesktopIconView::selected-shadow-y-offset = 0
XfdesktopIconView::selected-shadow-color = "#ffffff"

XfdesktopIconVIew::cell-spacing = 6
XfdesktopIconView::cell-padding = 6
XfdesktopIconView::cell-text-width-proportion = 2.5

base[NORMAL] = "#cccccc"
base[SELECTED] = "#cccccc"
base[ACTIVE] = "#cccccc"

fg[NORMAL] = "#ffffff"
fg[SELECTED] = "#000000"
fg[ACTIVE] = "#000000"
}
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"
[leo@thinkleo4 ~]$

XFCE – Desktop Icons Read More »

XFCE – Dropbox


[root@thinkleo4 ~]# yum install Thunar-devel thunarx-python

wget http://softwarebakery.com/maato/files/thunar-dropbox/thunar-dropbox-0.2.0.tar.bz2

[leo@thinkleo4 thunar-dropbox-0.2.0]$ ./waf configure --prefix=/usr
Checking for program gcc or cc : /usr/bin/gcc
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for gcc : ok
Checking for thunarx-2 : yes
Checking for gio-2.0 : yes
'configure' finished successfully (0.230s)

[leo@thinkleo4 thunar-dropbox-0.2.0]$ ./waf build
Waf: Entering directory `/home/leo/Downloads/thunar-dropbox-0.2.0/build'
[1/4] cc: src/dropbox-communication.c -> build/default/src/dropbox-communication_1.o
[2/4] cc: src/tdp-provider.c -> build/default/src/tdp-provider_1.o
[3/4] cc: src/thunar-dropbox-plugin.c -> build/default/src/thunar-dropbox-plugin_1.o
[4/4] cc_link: build/default/src/dropbox-communication_1.o build/default/src/tdp-provider_1.o build/default/src/thunar-dropbox-plugin_1.o -> build/default/libthunar-dropbox.so
Waf: Leaving directory `/home/leo/Downloads/thunar-dropbox-0.2.0/build'
'build' finished successfully (1.990s)

[leo@thinkleo4 thunar-dropbox-0.2.0]$ sudo ./waf install
Waf: Entering directory `/home/leo/Downloads/thunar-dropbox-0.2.0/build'
* installing data/icons/hicolor/16x16/apps/thunar-dropbox.png as /usr/share/icons/hicolor/16x16/apps/thunar-dropbox.png
* installing build/default/libthunar-dropbox.so as /usr/lib/thunarx-2/thunar-dropbox.so
Waf: Leaving directory `/home/leo/Downloads/thunar-dropbox-0.2.0/build'
'install' finished successfully (0.006s)

[leo@thinkleo4 thunar-dropbox-0.2.0]$ sudo mv /usr/lib/thunarx-2/thunar-dropbox.so /usr/lib64/thunarx-2/
[leo@thinkleo4 thunar-dropbox-0.2.0]$

XFCE – Dropbox Read More »

Switch to XFCE

As I wrote in some previous posts I’ve replaced my old thinkpad with a new one, the deal was to find a Linux operating system with a full support of my hardware. I just tried to migrate my trusty Redhat 6, and after some rebuild I get a “well” working system.
I love the legacy system you can always know where to find the things you need and generally they works more better than new one, but for desktop use sometimes is necessary something a little modern (kernel, lib, etc.).

So I’ve installed Fedora 19, I already used this distribution in the past till version 14 (the last release with Gnome 2), the installer is great and after reboot surprise, my notebook hardware are fully supported even HSPA/GPS card, fingerprint reader and TPM chip, awesome!!
At this point the problem begin.. and the name is Gnome 3, Shell or whatever they wanna call that crap, I even found a very disappointed twit dated 11/06/11 wrote by me about that, when I’ve tried Fedora 15 for the first time and the complaints were to Gnome 3..
By the way I decided to give it a chance, I spent 2 days, days of terrific pain, patch and random code to fix bugs (or trying to do) just for made it a little usable and finally I figured out: after more than two years still is a bunch of buggy crap.

I can only describe it as The worst user experience ever, I don’t want a stupid smartphone/tablet or clone of clone of clone of other worst user interfaces.

So I took a look of alternatives and I’ve tried Xfce: it’s light, simple and stable.

The next post will be related to the optimization and integration of Xfce.

Switch to XFCE Read More »

Data General

Found on an old text file, this is the weird output from a DataGeneral machine:
!a 000000A 000000
!
!/000000 000000
!ÿ_ÿ_ÿ_ÿ_
!
!
!
!a 000000A 000000
!0a 000000A 000000
!1a 000001A 000000
!0a 000000A 000000
000001A 000000
000002A 000000
000003A 000000
000004A 000000
000005A 000000
000006A 000000
000007A 000000
000010A 000000
!4a 000004A 000000 300
!4a 000004A 000300
!300/000300 000000 020306
?
!300/000300 020306
000301 000000 061126
000302 000000 063526
000303 000000 000302
000304 000000 064626
000305 000000 063077
000306 000000 007000
000307 000000
!300/000300 020306
!300/000300 020306
000301 061126
000302 063526
000303 000302
000304 064626
000305 063077
000306 007000
000307 000000

!./000307 000000

!4a 000004A 000300

!p
!4a 000004A 000000 300

!300/000300 000000 020306
000301 000000 061126
000302 000000 063526
000303 000000 000302
000304 000000 064626
000305 000000 063077
000306 000000 007000

!300/000300 020306
000301 061126
000302 063526
000303 000302
000304 064626
000305 063077
000306 007000
000307 000000
!4a 000004A 000300
!o
!
!4a 000004A 000000 0300
!300/000300 000000 1230000_
!300/000300 003000
!300/000300 003000 123000
!300/000300 123000

!4a 000004A 000300 /000300 123000

!0a 000000A 000000 1

!1a 000001A 000000

!1a 000001A 000000 2

!0a 000000A 000001
000001A 000002
000002A 000000

!300/000300 123000

!o
!
!300/000300 000000 123000

!0_300

!300/000300 123000
000301 000000 301
000302 000000

!300/000300 123000
000301 000301

!a 000000A 000000 6__

!6a 000006A 000000

!20h
000377
!?
!6a 000006A 031436

!a 000000A 000040 4__?
!4a 000004A 100377

!p
000377
!6a 000006A 031036

!300/000300 123000 300

!300/000300 000300

!4a 000004A 100377 100300

!p
000300
!100/000100 000000

!100/000100 000000
000101 000000
000102 000000
000103 000000
000104 000000
000105 000000
000106 000000
000107 000000
000110 000000
000111 000000
000112 000000
000113 000000
000114 000000
000115 000000
000116 000000
000117 000000
000120 000000
000121 000000
000122 000000
000123 000000
000124 000000
000125 000000
000126 000000
000127 000000
000130 000000
000131 000000
000132 000000
000133 000000
000134 000000
000135 000000
000136 000000
000137 000000
000140 000000
000141 000000
000142 000000
000143 000000
000144 000000
000145 000000
000146 000000
000147 000000
000150 000000
000151 000000
000152 000000
000153 000000
000154 000000

!300/000300 000300 123000
000301 000301 301

!300/000300 123000

!300/000300 123000
000301 000301

!4a 000004A 100300 100300

!6a 000006A 031036

!0a 000000A 000040 1
000001A 177777 2
000002A 060120

!p
000301
!0a 000000A 000003

!301/000301 000301 36077

!301/000301 036077 63077

!p
000302
!
!a 000000A 000000 6__

!6a 000006A 000000 031036

!4a 000004A 000000 300

!300/000300 000000 020306

!300/000300 020306
000301 000000 061126
000302 000000 063526
000303 000000 000302
000304 000000 064626
000305 000000 063077
000306 000000 007000

!300/000300 020306
000301 061126
000302 063526
000303 000302
000304 064626
000305 063077
000306 007000

!4a 000004A 000300 100300

!p
000306
!1a 000001A 056000

!1a 000001A 056000 00

!1a 000001A 000000

!4a 000004A 100306 1300

!4a 000004A 001300 100300

!4a 000004A 100300

!p
000306
!1a 000001A 056000

!a 000000A 007000

!1a 000001A 056000

!4a 000004A 100306 100300

!p
000306
!4a 000004A 100306 100300

!p
000306
!306/000306 007000 017000

!a 000000A 007000

!4a 000004A 100306 100300

!p
000306
!1a 000001A 016100

!306/000306 017000 006400

!4a 000004A 100306 100300

!p
0?0306
!

!1a 000001A 016000

!310/000310 000000 020322
000311 000000 061026
000312 000000 020323
000313 000000 062026
000314 000000 020324
000315 000000 063126
000316 000000 063526
000317 000000 000316
000320 000000 064626
000321 000000 063067
000322 000000
000323 000000 400
000324 000000 777400

!321/000321 063067 063077
000322 000000

!310/000310 020322
000311 061026
000312 020323
000313 062026
000314 020324
000315 063126
000316 063526
000317 000316
000320 064626
000321 063077
000322 000000
000323 000400
000324 177400

!4a 000004A 100306 100310

!306/000306 006400 006000

!4a 000004A 100310 100300

!p
000306
!1a 000001A 056000

!4a 000004A 100306 100310

!p
000322
!400/000400 000000
000401 000000
000402 000000
000403 000000
000404 000000
000405 000000
000406 000000
000407 000000
000410 000000
000411 000000
000412 000000
000413 000000
000414 000000
000415 000000
000416 000000

!1a 000001A 056010

!310/000310 020322 020323

!310/000310 020323
000311 061026 061026
000312 020323 020324
000313 062026 0602

!313/000313 000602 062026
000314 020324 020325
000315 063126
000316 063526 063526
000317 000316
000320 064626 060626
000321 063077 065626
000322 000000 063077
000323 000400 000000
000324 177400 000400
000325 000000 177600
000326 000000

!4a 000004A 100322 100310

!p
000323
!0a 000000A 056010
000001A 000400

!?
!306/000306 006000 006002

!4a 000004A 100323 100300

!p
000306
!

!1a 000001A 016000

!4a 000004A 100306 100310

!p
000323
!0a 000000A 016010

!0a 000000A 016010
000001A 000400

!323/000323 000000 000100

!4a 000004A 100323 100310

!p
000323
!0a 000000A 016010
000001A 000400

!306/000306 006002 006403

!323/000323 000100 000055

!4a 000004A 100323 100300

!p
000306
!4a 000004A 100306

!1a 000001A 016000

!4a 000004A 100306 100310

!p
000323
!0a 000000A 016010

!1a 000001A 000400


!
!
!ÿ
!

!

!26h
000377
!?
!300/000300 000000 020306
000301 000000 061126
000302 000000 063526
000303 000000 000302
000304 000000 064626
000305 000000 063077
000306 000000 006400
000307 000000

!4a 000004A 100377 100300

!300/000300 020306
000301 061126
000302 063526
000303 000302
000304 064626
000305 063077
000306 006400
000307 000000

!p
000306
!306/000306 006400 007000

!4a 000004A 100306 100300

!p
000306
!300

!306/000306 007000 6000

!4a 000004A 100306 100300

!p
000306
!330/000330 000000 020347
000331 000000 061126
000332 000000 063526
000333 000000 000332
000334 000000 060626
000335 000000 024350
000336 000000 030351
000337 000000 065226
000340 000000 063526
000341 000000 000340
000342 000000 060626
000343 000000 113414
000344 000000 063077
000345 000000 104010
000346 000000 000337
000347 000000 007000
000350 000000 006000
000351 000000 000040

!4a 000004A 100306 100330

!p
000337
!0a 000000A 056000
000001A 136142
000002A 000040

!4a 000004A 100337 100330

!o
000331
!0a 000000A 007000

!o
000332
!o
000334
!o
000335
!0a 000000A 056000

!o
000336
!o
000337
!0a 000000A 056000

!0a 000000A 056000
000001A 006000
000002A 000040

!o
000340
!o
000342
!o
000343
!0a 000000A 056000

!o
000345
!1a 000001A 006000

!o
000346
!1a 000001A 006001

!o
000337
!o
000340
!o
000342
!o
000343
!0a 000000A 056000

!o
000345
!o
000346
!o
000337
!o
000340
!o
000342
!o
000343
!o
000345
!o
000346
!o
000337
!o
000340
!o
000342
!o
000343
!o
000345
!o
000346
!o
000337
!o
000340
!o
000342
!o
000343
!o
000345
!o
000346
!o
000337
!o
000340
!o
000342
!o
000343
!o
000345
!o
000346
!o
000337
!o
000340
!o
000342
!o
000343
!o
000345
!o
000346
!?
!00337
!?
!00340
!?
!00342
!?
!00343
!?a 000000A 056000
!
!?
!6a 000006A 021076
?
!0a 000000A 056000
?
!4a 000004A 100343 100330
?
!p
000340
!1a 000001A 131427

!0a 000000A 056000
?
!

!

!

!

!300/000300 020306
000301 061126
000302 063526
000303 000302
000304 064626
000305 063077
000306 006000

!306/000306 006000 6400

!4a 000004A 100340 100300

!p
000306
!1a 000001A 016000

!4a 000004A 100306 100330

!o
000331
!o
000332
!o
000333
!o
000332
!o
000334
!o
000335
!0a 000000A 056000

!337/000337 065226 065126

!342/000342 060626 060726

!4a 000004A 100335 100330

!p
000345
!0a 000000A 056000

!1a 000001A 014007

!352/000352 177046
000353 035177
000354 003333
000355 107504
000356 021543
000357 064475
000360 072005
000361 043061
000362 005461
000363 163733
000364 113115
000365 010477
000366 010423
000367 102400
000370 110630
000371 046400
000372 016153

!352/000352 177046 113414

!353/000353 035177 063077
000354 003333 063077

!2a 000002A 000040

!0a 000000A 056000 177777

!4a 000004A 100345 352

!4a 000004A 000352 100352

!o
000353
!0a 000000A 177777 0

!4a 000004A 100353 100352

!o
000354
!0a 000000A 000000 40

!4a 000004A 100354 100352

!o
000353
!330/000330 006714 020353
000331 103166

!330/000330 020353 020352
000331 103166 061126
000332 121160 063526
000333 072137 00032
000334 173722

!333/000333 000032 332
000334 173722 060626
000335 004140 024353
000336 002413 030354
000337 117564 034355
000340 034255 055126

!340/000340 055126 065126
000341 145113 063526
000342 000027 000341
000343 147677 060726
000344 101726 113414
000345 050502 063077
000346 053340 104010
000347 156343 137415
000350 111641 06306

!350/000350 006306 063077
000351 176331 000340
000352 113414 007000
000353 063077 006000
000354 063077 77
000355 107504 777

!0a 000000A 000040

!40

!4a 000004A 100353 100330

!p
000351
!0a 000000A 016000
000001A 007000
000002A 000077

!?
!?
!310/000310 034000 20323
000311 016033 061029?
!311/000311 016033 61026
000312 012213 20324
000313 062426 62026
000314 115277 20325
000315 142572 63126
000316 103200 063526
000317 171463 000316
000320 027104 060626
000321 001733 065626
000322 117531 063077
000323 067466 0

!324/000324 174471 400
000325 041764 177400

!4a 000004A 100351 100310

!p
000323
!0a 000000A 016010

!0

!33

!4a 000004A 100323 100330

!p
000351
!330/000330 020352 20357

!351/000351 000340

!330/000330 020357 20357
000331 061126
000332 063526
000333 000332
000334 060626
000335 024353 24360
000336 030354 30361
000337 034355 34362
000340 065126
000341 063526
000342 000341
000343 060726
000344 113414 020363
000345 063077 061126
000346 104010 063526
000347 137415 000346
000350 063077 060726
000351 000340 113415
000352 007000 063077
000353 006000 104010
000354 000077 137415
000355 000777 063077
000356 021543 000340
000357 064475 7000
000360 072005 6000
000361 043061 77
000362 005461 777
000363 163733 0

!3

!4a 000004A 100351 10330

!4a 000004A 010330 100330

!p
000353
!0a 000000A 056000 1a 000001A 006000

!0a 000000A 056000
000001A 006000
000002A 000077
000003A 000777

!330a 100430 000000

!330/000330 020357

!4a 000004A 100353 100330

!o
000331
!o
000332
!o
000334
!o
000335
!0a 000000A 056000

!o
000336
!o
000337
!o
000340
!o
000341
!o
000343
!o
000344
!0a 000000A 056000

!o
000345
!0a 000000A 000000

!o
000346
!o
000350
!o
000351
!0a 000000A 056010

!o
000353
!o
000354
!1a 000001A 006001

!o
000356
!o
000340
!o
000341
!o
000343
!o
000344
!0a 000000A 016000

!o
000345
!o
000346
!o
000350
!o
000351
!0a 000000A 016010

!p
000353
!1a 000001A 006643

!0a 000000A 016000

!400/000400 155555
000401 155555
000402 155555
000403 155555
000404 155555
000405 155555
000406 155555
000407 155555
000410 155555
000411 155555
000412 155555
000413 155555
000414 155555
000415 155555
000416 155555
000417 155555
000420 155555
000421 155555
000422 155555
000423 155555
000424 155555
000425 155555
000426 155555
000427 155555
000430 155555
000431 155555
000432 155555
000433 155555
000434 155555
000435 155555
000436 155555
000437 155555
000440 155555
000441 155555
000442 155555
000443 155555
000444 155555
000445 155555
000446 155555
000447 155555
000450 155555
000451 155555
000452 155555
000453 155555
000454 155555
000455 155555
000456 155555
000457 155555
000460 155555
000461 155555
000462 155555
000463 155555
000464 155555
000465 155555
000466 155555
000467 155555
000470 155555
000471 155555
000472 155555
000473 155555
000474 155555
000475 155555
000476 155555
000477 155555
000500 155555
000501 155555
000502 155555
000503 155555
000504 155555
000505 155555
000506 155555
000507 155555
000510 155555
000511 155555
000512 155555
000513 155555
000514 155555
000515 155555
000516 155555
000517 155555
000520 155555
000521 155555
000522 155555
000523 155555
000524 155555
000525 155555
000526 155555
000527 155555
000530 155555
000531 155555
000532 155555
000533 155555
000534 155555
000535 155555
000536 155555
000537 155555
000540 155555
000541 155555
000542 155555
000543 155555
000544 155555
000545 155555
000546 155555
000547 155555
000550 155555
000551 155555
000552 155555
000553 155555
000554 155555
000555 155555
000556 155555
000557 155555
000560 155555
000561 155555
000562 155555
000563 155555
000564 155555
000565 155555
000566 155555
000567 155555
000570 155555
000571 155555
000572 155555
000573 155555
000574 155555
000575 155555
000576 155555
000577 155555
000600 155555
000601 155555
000602 155555
000603 155555

!400/000400 155555 0
?
!

!400/000400 000000 0
000401 155555 0
000402 155555 0
000403 155555 0
000404 155555 0
000405 155555 0
000406 155555 0
000407 155555 0
000410 155555 0
000411 155555 0
000412 155555 0
000413 155555 0
000414 155555

!400/000400 000000
000401 000000
000402 000000
000403 000000
000404 000000
000405 000000
000406 000000
000407 000000
000410 000000
000411 000000
000412 000000
000413 000000
000414 155555
000415 155555

!p
000356
!1a 000001A 007000

!4a 000004A 100356 100330

!p
000353
!400/000400 000000
000401 000000
000402 000000
000403 000000
000404 000000
000405 000000
000406 000000
000407 000000
000410 000000
000411 000000
000412 000000
000413 000000
000414 155555
000415 155555
000416 155555
000417 155555
000420 155555
000421 155555
000422 155555
000423 155555
000424 155555
000425 155555
000426 155555
000427 155555
000430 155555
000431 155555
000432 155555
000433 155555
000434 155555
000435 155555
000436 155555
000437 155555
000440 155555
!0a 000000A 016000
!500/000500 155555
!31
!4a 000004A 100353 100310
!p
000323
!4a 000004A 100323 100330
!p
000353
!1a 000001A 006000
!a 000000A 056000
!400/000400 155555
000401 155555
000402 155555
000403 155555
000404 155555
000405 155555
000406 155555
000407 155555
000410 155555
000411 155555
000412 155555
000413 155555
000414 155555
000415 155555
000416 155555
000417 155555
000420 155555
000421 155555
000422 155555
000423 155555
000424 155555
000425 155555
000426 155555
000427 155555
000430 155555
000431 155555
000432 155555
000433 155555
000434 155555
000435 155555
000436 155555
000437 155555
000440 155555
000441 155555
000442 155555
000443 155555
000444 155555
000445 155555
000446 155555
000447 155555
000450 155555
000451 155555
000452 155555
000453 155555
000454 155555
000455 155555
000456 155555
000457 155555
000460 155555
000461 155555
000462 155555
000463 155555
000464 155555
000465 155555
000466 155555
000467 155555
000470 155555
000471 155555
000472 155555
000473 155555
000474 155555
000475 155555
000476 155555
000477 155555
000500 155555
000501 155555
000502 155555
000503 155555
000504 155555
000505 155555
000506 155555
000507 155555
000510 155555
!0a 000000A 056000
?
!
!330/000330 020357 20363
!330/000330 020363 20363
000331 061126 61126
000332 063526 63526
000333 000332 332
000334 060626
000335 024360 24364
000336 030361 30365
000337 034362 34366
000340 065126
000341 063526
000342 000341
000343 060726
000344 020363
000345 061126 62026
000346 063526
!344/000344 020363
000345 062026 61026
000346 063526 20324
000347 000346 62026
000350 060726 20325
000351 113415 63126
000352 063077 63526
000353 104010 352
000354 137415 60726
000355 063077 113415
000356 000340 63077
000357 007000 104010
000360 006000 137415
000361 000077 63077
000362 000777 340
000363 000000 7000
000364 113115 6000
000365 010477 77
000366 010423 777
000367 102400 0
!400/000400 155555 0
000401 155555 0
000402 155555 0
000403 155555
!4a 000004A 100353 100330
!p
000357
!0a 000000A 056000
!400/000400 000000
000401 000000
000402 000000
000403 155555
000404 155555
0?0405 155555
!00406 155555
000407 155555
!00410 155555
000411 155555
!00412 155555
!0a 000000A 056000
!1a 000001A 006000
!p
000357
!400/000400 000000
!p
000357
!0a 000000A 056000
!1a 000001A 006002
!344/000344 020363 20367
?
!
!4a 000004A 100357 100330
!p
000357
!0a 000000A 016000
!1a 000001A 006643
!400/000400 155555
000401 155555
000402 155555
000403 155555
000404 155555
000405 155555
000406 155555
000407 155555
000410 155555
000411 155555
000412 155555
000413 155555
000414 155555
000415 155555
000416 155555
000417 155555
000420 155555
000421 155555
000422 155555
000423 155555
000424 155555
000425 155555
000426 155555
000427 155555
000430 155555
!p
000362
!367/000367 000000 55
!4a 000004A 100362 100330
!p
000362
!367/000367 000055 1
!4a 000004A 100362 100330
!p
000357
!0a 000000A 016000
000001A 006621
!400/000400 155555
000401 155555
000402 155555
000403 155555
000404 155555
000405 155555
000406 155555
000407 155555
000410 155555
000411 155555
000412 155555
000413 155555
000414 155555
000415 155555
000416 155555
000417 155555
000420 155555
000421 155555
000422 155555
000423 155555
000424 155555
000425 155555
000426 155555
000427 155555
000430 155555
000431 155555
000432 155555
000433 155555
!400
!400/000400 155555 0
000401 155555 0
000402 155555
!4a 000004A 100357 100330
!p
000357
!400/000400 155555 0
!367/000367 000001 2
!330
!4a 000004A 100357 100330
!p
000357
!0a 000000A 056000
000001A 006000
000002A 000077
!400/000400 155555
!p
000357
!400/000400 155555
!p
000357
!400/000400 155555
!p
000357
!400/000400 155555
!p
000357
!440
!400/000400 155555
!p
000357
!400/000400 155555
!1a 000001A 006627
!0a 000000A 016000
!p
000357
!0a 000000A 016000
000001A 006631
000002A 000077
!400/000400 155555
!p
000357
!400/000400 155555
!p
000357
!p
000357
!p
000357
!p
000357
!p
000357
!p
000357
!p
000357
!p
000357
!p
000357
!400/000400 155555
!p
000357
!400/000400 155555
!p
000357
!400/000400 155555
!p
000357
!400/000400 155555
!p
000357
!p
000357
!400
!400p
000357
!p
000357
!400/000400 155555
!p
000357
!400/000400 155555
!p
000357
!p
000357
!p
000357
!p
000357
!p
000357
!400/000400 155555
!p
000357
!400/000400 155555
!p
000357
!p
000357
!p
000357
!p
000357
!p
000362
!400/000400 155555
!467_
!367/000367 000002 3
!4a 000004A 100362 100330
!p
000357
!400/000400 155555

Data General Read More »

Hauwei dongle AT commad

AT^U2DIAG=0 Modem Mode
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

Hauwei dongle AT commad Read More »

Upgrade PGSQL from 9.1 to 9.2

[root@srv02mil1 ~]# rpm -Uhv http://yum.postgresql.org/9.2/redhat/rhel-6-x86_64/pgdg-centos92-9.2-6.noarch.rpm
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  ]

Upgrade PGSQL from 9.1 to 9.2 Read More »

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

Prefix: iso.org.dod.internet.private.enterprise (1.3.6.1.4.1)

Decimal
| Organization
| | Contact
| | | Email
| | | |

41129
WideNet
Leonardo Rizzi
l.rizzi&wide-net.org

PEN Read More »

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

Cisco 827 as ADSL RFC 1483 Bridge Read More »

JunOS – Update with low space CF

dmesg tail:

umass0: SanDisk Cruzer Micro, rev 2.00/2.00, addr 2
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.

JunOS – Update with low space CF Read More »

IBM CIM Agent for DS Open API

C:\Program Files (x86)\IBM\dsagent\bin>dscimcli.bat mkdev 10.xx.xx.xx -type ds -user admin -password password
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>

IBM CIM Agent for DS Open API Read More »

pSeries Firmware Upgrade

root@localhost:/home/root/code#rpm -Uhv --ignoreos 01SF240_418_382.rpm
user fspbld does not exist - using root
group fspbld does not exist - using root
01SF240_418_382             ##################################################
root@localhost:/home/root/code#/usr/lpp/diagnostics/bin/update_flash -f /tmp/fwupdate/01SF240_418_382
The image is valid and would update the temporary image to SF240_418.
The new firmware level for the permanent image would be SF235_214.

The current permanent system firmware image is SF235_214.
The current temporary system firmware image is SF235_214.

***** WARNING: Continuing will reboot the system! *****

Do you wish to continue?
Enter 1=Yes or 2=No
1

SHUTDOWN PROGRAM
Fri Feb  8 10:16:44 CST 2013
0513-044 The sshd Subsystem was requested to stop.
root@localhost:/home/root#/usr/lpp/diagnostics/bin/update_flash -c
The commit operation is in progress. Please stand by.

The commit operation was successful.

pSeries Firmware Upgrade Read More »

Linux – KVM Guest LVM Disk Resize


[root@pbx01.mil1.wide-net.org ~]# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
1779856   1553320    138068  92% /
/dev/vda1               101086     40798     55069  43% /boot
tmpfs                   513060         0    513060   0% /dev/shm
[root@pbx01.mil1.wide-net.org ~]# vgscan
Reading all physical volumes.  This may take a while...
Found volume group "VolGroup00" using metadata type lvm2
[root@pbx01.mil1.wide-net.org ~]# fdisk /dev/vda
vda   vda1  vda2
[root@pbx01.mil1.wide-net.org ~]# fdisk /dev/vda

Command (m for help): p

Disk /dev/vda: 4219 MB, 4219469824 bytes
255 heads, 63 sectors/track, 512 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot      Start         End      Blocks   Id  System
/dev/vda1   *           1          13      104391   83  Linux
/dev/vda2              14         382     2963992+  8e  Linux LVM

Command (m for help): d
Partition number (1-4): 2

Command (m for help): p

Disk /dev/vda: 4219 MB, 4219469824 bytes
255 heads, 63 sectors/track, 512 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot      Start         End      Blocks   Id  System
/dev/vda1   *           1          13      104391   83  Linux

Command (m for help): n
Command action
e   extended
p   primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (14-512, default 14):
Using default value 14
Last cylinder or +size or +sizeM or +sizeK (14-512, default 512):
Using default value 512

Command (m for help): p

Disk /dev/vda: 4219 MB, 4219469824 bytes
255 heads, 63 sectors/track, 512 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot      Start         End      Blocks   Id  System
/dev/vda1   *           1          13      104391   83  Linux
/dev/vda2              14         512     4008217+  83  Linux

Command (m for help): t
Partition number (1-4): 2
Hex code (type L to list codes): 8e
Changed system type of partition 2 to 8e (Linux LVM)

Command (m for help): p

Disk /dev/vda: 4219 MB, 4219469824 bytes
255 heads, 63 sectors/track, 512 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot      Start         End      Blocks   Id  System
/dev/vda1   *           1          13      104391   83  Linux
/dev/vda2              14         512     4008217+  8e  Linux LVM

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
[root@pbx01.mil1.wide-net.org ~]# reboot

Broadcast message from root (pts/0) (Sat Sep 15 23:36:59 2012):

The system is going down for reboot NOW!
[root@pbx01.mil1.wide-net.org ~]# Connection to pbx01.mil1.wide-net.org closed by remote host.
Connection to pbx01.mil1.wide-net.org closed.
[leo@thinkleo3 ~]$

 

 

[root@pbx01.mil1.wide-net.org ~]# pvdisplay
--- Physical volume ---
PV Name               /dev/vda2
VG Name               VolGroup00
PV Size               2.83 GB / not usable 14.52 MB
Allocatable           yes
PE Size (KByte)       32768
Total PE              90
Free PE               26
Allocated PE          64
PV UUID               3KFfOG-kfJZ-hNtT-0vo5-Lpzk-4iMR-rMmLzH

[root@pbx01.mil1.wide-net.org ~]# pvresize /dev/vda2
Physical volume "/dev/vda2" changed
1 physical volume(s) resized / 0 physical volume(s) not resized
[root@pbx01.mil1.wide-net.org ~]# pvdisplay
--- Physical volume ---
PV Name               /dev/vda2
VG Name               VolGroup00
PV Size               3.82 GB / not usable 10.09 MB
Allocatable           yes
PE Size (KByte)       32768
Total PE              122
Free PE               58
Allocated PE          64
PV UUID               3KFfOG-kfJZ-hNtT-0vo5-Lpzk-4iMR-rMmLzH

[root@pbx01.mil1.wide-net.org ~]# lvdisplay
--- Logical volume ---
LV Name                /dev/VolGroup00/LogVol00
VG Name                VolGroup00
LV UUID                f134eo-A1TY-mj72-g16E-oBnl-fnNM-4hULDC
LV Write Access        read/write
LV Status              available
# open                 1
LV Size                1.75 GB
Current LE             56
Segments               2
Allocation             inherit
Read ahead sectors     auto
- currently set to     256
Block device           252:0

--- Logical volume ---
LV Name                /dev/VolGroup00/LogVol01
VG Name                VolGroup00
LV UUID                1gNpNl-ypNO-bj4a-Gsyb-eGnS-UcFh-Rbocfj
LV Write Access        read/write
LV Status              available
# open                 1
LV Size                256.00 MB
Current LE             8
Segments               1
Allocation             inherit
Read ahead sectors     auto
- currently set to     256
Block device           252:1

[root@pbx01.mil1.wide-net.org ~]# lvresize /dev/VolGroup00/LogVol00 -l +1
Extending logical volume LogVol00 to 3.59 GB
Insufficient free space: 1 extents needed, but only 0 available
[root@pbx01.mil1.wide-net.org ~]# resize2fs /dev/VolGroup00/LogVol00
resize2fs 1.39 (29-May-2006)
Filesystem at /dev/VolGroup00/LogVol00 is mounted on /; on-line resizing required
Performing an on-line resize of /dev/VolGroup00/LogVol00 to 933888 (4k) blocks.
The filesystem on /dev/VolGroup00/LogVol00 is now 933888 blocks long.

[root@pbx01.mil1.wide-net.org ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
3.5G  1.5G  1.8G  46% /
/dev/vda1              99M   40M   54M  43% /boot
tmpfs                 502M     0  502M   0% /dev/shm
[root@pbx01.mil1.wide-net.org ~]# reboot

Broadcast message from root (pts/0) (Sat Sep 15 23:43:32 2012):

The system is going down for reboot NOW!
[root@pbx01.mil1.wide-net.org ~]#

Linux – KVM Guest LVM Disk Resize Read More »

TPC – Storage Resource agent error code

For really strange combination of events, I need this tables of error codes from Tivoli Productivity Center – Storage resource agent.

Return code Explanation
1 There is a problem uninstalling the Data agent or Fabric agent. For more information about what caused the uninstallation to fail, check the uninstallation logs for the Data agent or Fabric agent.
2 Command not valid.
3 Option provided is not valid.
5 Argument is not valid.
6 Missing value for argument (e.g. -installLoc <Value>, where <Value> is missing).
7 Missing localized string in message file.
8 Probe is running.
9 Failed to open file for write.
10 Failed to close file.
11 Logfile not specified.
19 Failed in tracing.
21 Cannot spawn a probe because it is busy.
30 This is an internal error in initializing tracing. Save the error message and error log and contact your service representative for assistance in resolving the error.
32 Invalid socket.
33 Start service failed.
34 Registry entry not found.
35 Deployment of the agent failed, error creating startup scripts.
36 File does not exist.
40 Missing upgrade files.
41 Failed to extract files in upgrade process.
42 Failed to stop probe in upgrade process.
43 Failed to stop Agent.
44 Failed to start Agent.
45 Agent Registration to server failed.
46 File extraction needs more space.
47 Failed to open archive file.
48 Agent did not start after upgrade.
49 Installation directory not valid at upgrade time.
50 Probe is running.
51 Data file not found.
52 Exit code not in the output file.
53 Failed to send job status.
54 Failed to copy certificate files.
55 Failed to create directory.
56 Failed to remove directory.
57 Exec command failed.
58 Conversion of wide character failed.
59 Installation directory not valid.
60 Server name not defined.
61 Error in removing entries from configuration file.
62 Failed to stop probe at uninstall time.
63 Failed to remove registry entry at uninstall time.
64 Failed to remove service entry at uninstall time.
65 Failed to stop service at uninstall time.
66 Specified server name is not valid.
67 There is an error installing the Storage Resource agent as part of the migration process. For more information about what caused the installation to fail, check the installation logs for the Storage Resource agent.
71 Failed to spawn process.
73 Failed to spawn probe process.
101 Failed to create lock at installation time.
102 Failed to stop probe at re-installation time.
103 Failed to stop agent at re-installation time.
104 Failed to create registry at installation time.
105 Failed to extract files at installation time.
106 Failed to create entries in configuration file at installation time.
107 Failed to stop service at re-installation time.
108 Service already exists.
109 Failed to create service.
110 Failed to start service.
111 Probe failed at installation time.
112 Creation of daemon failed.
113 Installation of GUID failed.
114 Commtype parameter is not valid.
115 Specified port is in use.
116 Installation/Upgrade does not have enough space.
117 Installation in progress.
118 Cannot get server name from Server.
119 Installation location is not empty.
120 Missing parameter Server Name.
121 Missing parameter Server Port.
123 Missing parameter Server IP.
124 Missing parameter Agent Port.
125 Missing parameter Installation location.
127 Deployment from Windows to Linux failed.
130 Failed to send probe results.
131 Failed to initialize Agent.
133 Missing port number for Service.
134 Get data file stat failed.
135 Get data file read failed.
137 Failed to send data to server.
138 Failed to receive data from server.
139 Full path not specified for copy file.
140 Create file failed in copy file function.
141 Write file failed in copy file function.
142 Open file failed in copy file function.
143 Read file failed in copy file function.
145 UCS conversion failed.
146 Server connection failed.
148 Failed to create zip file.
149 Failed to unzip file.
160 Failed to send scan results.
161 Failed to send TSM status results.
164 Failed to validate user.
165 Job file was not found.
166 Job was not stopped.
168 Not enough free space available while copying file from server.
169 Multipath driver not found.
170 Multipath device not found.
171 Multipath policy is not supported.
172 Only Round Robin policy is supported for Multipath DM driver.

TPC – Storage Resource agent error code Read More »

Telecom Italia – IPv6 Pilot on Cisco

To my amazement, Telecom Italia released a pilot project of IPv6 deployment on residential/dynamic ip only adsl internet access, but on theirs support site there’s configuration only for some useless systems. So, I’ve decided to write a configuration for Cisco platform.

Usually the typical Telecom Italia PPPoE or PPPoA ADSL connection with dynamic IPv4 only was authenticated with “aliceadsl” as user and password, now with bran new credential along IPv4 the endpoint router advertise a IPv6 /64 class (always dynamic).

username: adsl@alice6.it
password: IPV6@alice6

And now IOS configuration:

– ATM inteface:

interface ATM0/0/0
no ip address
atm restart timer 300
no atm ilmi-keepalive
dsl operating-mode auto
hold-queue 100 in
!
interface ATM0/0/0.1 point-to-point
pvc 8/35
vbr-nrt 380 380
oam-pvc manage
encapsulation aal5mux ppp dialer
dialer pool-member 1

– Dialer inteface:

interface Dialer0
mtu 1492
ip address negotiated
ip nbar protocol-discovery
ip flow ingress
ip virtual-reassembly
encapsulation ppp
dialer pool 1
dialer-group 1
ipv6 address autoconfig
ipv6 enable
no cdp enable
ppp authentication chap callin
ppp chap hostname adsl@alice6.it
ppp chap password 0 IPV6@alice6
ppp pap sent-username adsl@alice6.it password 0 IPV6@alice6

– Route configuration:

ip route 0.0.0.0 0.0.0.0 Dialer0
ipv6 route 2000::/3 Dialer0

You can check with following command:

route01#sh ip int brief | sec Dialer0
Dialer0                    XXX.XXX.XXX.XXX    YES IPCP   up                    up
route01#sh ipv6 int brief | sec Dialer0
Dialer0                    [up/up]
FE80::1
2A01:2003:xxxx:xxxx::1

You can discover your /64 assigned class with:

route01#sh ipv6 int di0 | sec Global
Global unicast address(es):
2A01:2003:xxxx:xxxx::1, subnet is 2A01:2003:xxxx:xxxx::/64 [PRE]
valid lifetime 2591993 preferred lifetime 604793
route01#

I’ve left out NAT and other further configuration.

Update: prefix delegation

Telecom Italia – IPv6 Pilot on Cisco Read More »

Remote Desktop Licensing service to fail to start

Remote Desktop Licensing service to fail to start, with error code %%-1073672191.

The Terminal Services Licensing service cannot start. The following error occurred: Can’t initialize Cryptographic – error code 5.

Sometime happens a problem with Remote Desktop Licensing services not starting.
The Terminal Licensing MachineKeys have permissions for Administrators and/or TermServLicensing  but the service starts using the “Network Service” account… Why??????

You can fix the problem adding Network Service account (read only privileges it’s ok), on follow directory (you can force ownership propagation for reapply the correct privilege tree):

C:\Documents and Settings\all users\Application Data\Microsoft\Crypto\RSA\MachineKeys

Then the service start, correctly.

 

For further information you can take a look at microsoft KB:

Default permissions for the MachineKeys folders:
http://support.microsoft.com/kb/278381

http://msdn.microsoft.com/en-us/library/bb909654%28v=vs.90%29.aspx

Remote Desktop Licensing service to fail to start Read More »

Recovery HFS partition table

First think, scan your damage disk with a tool like “testdisk” (http://www.cgsecurity.org/wiki/TestDisk) look for lost partitions, unfortunately HFS is not fully supported by this great tool, then you need to use pdisk or other partition software.

Disk /dev/rdisk3 – 1000 GB / 931 GiB – CHS 121601 255 63
Partition Start End Size in sectors
>P HFS 262208 1953525151 1953262944

In my case, I’ve used pdisk directly on OS X:

leobook4-w:~ root# pdisk /dev/rdisk3
pdisk: No valid block 1 on ‘/dev/rdisk3’
Edit /dev/rdisk3 –
Command (? for help): i
A physical block is 512 bytes:
A logical block is 512 bytes:
size of ‘device’ is 1953525168 blocks (512 byte blocks):
new size of ‘device’ is 1953525168 blocks (512 byte blocks)
Command (? for help): c
First block: 262208
Length in blocks: 1953262944
Name of partition: recover_leo
Command (? for help): w
Writing the map destroys what was there before. Is that okay? [n/y]: y
The partition table has been altered!

Command (? for help): q

Recovery HFS partition table Read More »

OpenSSL – client connect

Memo for testing ssl/startls connection:

StarTLS:

[leo@thinkleo2 ~]$ openssl s_client -connect mail.wide-net.org:25 -starttls smtp
CONNECTED(00000003)

[...]

Verify return code: 0 (ok)
---
220 srv01.mil1.wide-net.org ESMTP - Life is short talk fast!

SSL:

[leo@thinkleo2 ~]$ openssl s_client -connect mail.wide-net.org:465

CONNECTED(00000003)

[...]

Verify return code: 0 (ok)
---
220 srv01.mil1.wide-net.org ESMTP - Life is short talk fast!

OpenSSL – client connect Read More »

Linux RHEL – Change hostname

3 step for change hostname to RHEL Linux:

1. edit: /etc/hosts
127.0.0.1 srv03.mil1.wide-net.org localhost.localdomain localhost

2. edit: /etc/sysconfig/network
HOSTNAME=srv03.mil11.wide-net.org

3. past into kernel new hostname
echo "srv03.mil1.wide-net.org" > /proc/sys/kernel/hostname

Or

sysctl kernel.hostname=srv03.mil1.wide-net.org

Consider a restart net services /etc/init.d/network restart but is not strictly required.

Linux RHEL – Change hostname Read More »

Stupid Ubuntu – Grub recovery on RAID

I definitely hate Ubuntu, is not linux.

root@ubuntu:~# cd /mnt
root@ubuntu:/mnt# mkdir md1
root@ubuntu:/mnt# mount /dev/md1 /mnt/md1/
root@ubuntu:~# mount -o bind /sys /mnt/md1/sys
root@ubuntu:~# mount -o bind /dev /mnt/md1/dev
root@ubuntu:~# mount -o bind /proc /mnt/md1/proc
root@ubuntu:~# chroot /mnt/md1 /bin/bash

root@ubuntu:~# ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 9 2012-02-05 11:00 455c4bdc-37d5-46ef-bb8b-d5b50c9e4e9a -> ../../md1

root@ubuntu:/# vim /boot/grub/grub.cfg

root@ubuntu:/# update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-33-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-33-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-28-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-28-generic-pae
Found memtest86+ image: /boot/memtest86+.bin
done
root@ubuntu:/# grub-install /dev/sda
Installation finished. No error reported.
root@ubuntu:/# grub-install --recheck /dev/sda
Installation finished. No error reported.

root@ubuntu:/# cfdisk /dev/sda

Stupid Ubuntu – Grub recovery on RAID Read More »

AirOS – Rate Algorithm

Rate Algorithm: defines data rate algorithm convergence:

Optimistic Algorithm is aggressive enough to move to a higher rate but yet tries to conservatively capture the fluctuations of the RSSI. It starts with the highest possible rate and then decreases till the rate can be supported while periodically transmitting packets at higher rates and computing the transmission time. The optimistic rate algorithm always looks to achieve highest throughput while sacrificing noise immunity and robustness.

Rate Algorithm selection
Conservative Algorithm is less sensitive to individual packet failure as it is based on a function of number of successful and erroneous transmission/retransmission over a sampling period. It steps down to a lower rate after continuous packet failure and steps up after number of successful packets. The conservative rate algorithm provides the best case stability / robustness, but may compromise maximum throughput. It is recommended to select conservative rate algorithm when the signal strength is low due to noisy environment or link distance.

EWMA Algorithm is trying to move to a higher rate but is continuously monitoring the packet failure counters. The Exponential Weighted Moving Average (EWMA) Algorithm (also known as minstrel) is a hybrid of the Conservative and Optimistic Algorithm. It is the compromise for most of the wireless network use cases.

AirOS – Rate Algorithm Read More »

Linux – Google Earth

[leo@thinkleo2 ~]$ /opt/google/earth/free/google-earth
Google Earth appears to be running already. Please kill the
existing process, or delete /home/leo/.googleearth/instance-running-lock if this is an error.
[leo@thinkleo2 ~]$ rm /home/leo/.googleearth/instance-running-lock
[leo@thinkleo2 ~]$ /opt/google/earth/free/google-earth

Linux – Google Earth Read More »

AIX – loopmount

Finally on aix 6.1 ibm have introduced mounting of iso directly without raw copy on lv:

Check if necessary loopback device is available

# lsdev -C | grep loop

if nothing returned, run:

# mkdev -c loopback -s node -t loopback
loop0 Available

If the device is not present on system you get this error:

1320-003 loopmount: Specified loopback device is not found in ODM

Now for mount:

# loopmount -i /iso/dvd.iso -l loop0 -o "-V cdrfs -o ro" -m /mnt/dvd

And umount:

# loopumount -l loop0 -m /mnt/dvd

Attention: an image file can be associated with only one loopback device.

AIX – loopmount Read More »

VIO – iso virtual DVD

Example of PowerVM virtual dvd setup:

login: padmin
padmin's Password:
1 unsuccessful login attempt since last login.
Last unsuccessful login: Mon Jan 31 18:51:28 CST 2011 on /dev/vty0
Last login: Mon Jan 31 18:28:29 CST 2011 on /dev/vty0

$
$ mkrep -sp rootvg -size 10G
Virtual Media Repository Created
Repository created within "VMLibrary" logical volume
$ mkvopt -name 6_1_6osp.iso -dev cd0 -ro
$
$ mkvdev -vadapter vhost1 -fbo -dev vcd1
vcd0 Available
$ loadopt -vtd vcd0 -disk 6_1_6osp.iso
$ unloadopt -vtd vcd0

VIO – iso virtual DVD Read More »

Linux – IBM LinTape driver

If you need to user ibm lto tape drive inside IBM, Adic, Dell tapelibrary, with Tivoli Storage Manager is necessary to use

Download latest driver from IBM Fixcentral:
Storage Systems => Tape Systems => Tape device drivers and software => Linux

Get two two RPMs (my system is an RHEL 5 on 32bit hardware) :
lin_tape-1.61.0-1.src.rpm <== Kernel module
lin_taped-1.61.0-rhel5.i386.rpm <== Binary services

First step, rebuild the source:

# rpmbuild --rebuild lin_tape-1.61.0-1.src.rpm

Installing lin_tape-1.61.0-1.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.625
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd /usr/src/redhat/BUILD
+ rm -rf lin_tape-1.61.0
+ /bin/gzip -dc /usr/src/redhat/SOURCES/lin_tape-1.61.0.tgz
[cut]
Wrote: /usr/src/redhat/RPMS/i386/lin_tape-1.61.0-1.i386.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.18792
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd lin_tape-1.61.0
+ rm -rf /var/tmp/lin_tape-1.61.0-1-root-root
+ exit 0
Executing(--clean): /bin/sh -e /var/tmp/rpm-tmp.18792
+ umask 022
+ cd /usr/src/redhat/BUILD
+ rm -rf lin_tape-1.61.0
+ exit 0

Second step, install all:

# rpm -Uhv /usr/src/redhat/RPMS/i386/lin_tape-1.61.0-1.i386.rpm
# rpm -Uhv lin_taped-1.61.0-rhel5.i386.rpm

Last step, start service and check for the probed devices:

# /etc/init.d/lin_tape start

# cat /proc/scsi/IBM*
lin_tape version: 1.61.0
lin_tape major number: 253
Attached Changer Devices:
Number model SN HBA SCSI FO Path
lin_tape version: 1.61.0
lin_tape major number: 253
Attached Tape Devices:
Number model SN HBA SCSI FO Path
0 ULTRIUM-TD2 1110274799 Adaptec 29160B Ultra160 SCSI 2:0:1:0 NA
1 ULTRIUM-TD2 1110275058 Adaptec 29160B Ultra160 SCSI 2:0:2:0 NA

Linux – IBM LinTape driver Read More »

AIX – lpp incosistent

# lppchk –v

lppchk: The following filesets need to be installed or corrected to bring the system to a consistent state:
9a33182fe26f1beae04e59e5cb6d3cdb 0.0.0.0 (COMMITTED)

# lslpp -L

Backup the ODM using the following command:

# tar -cvf /tmp/odm.tar ./etc/objrepos ./usr/lib/objrepos
# export ODMDIR=/usr/lib/objrepos
# odmget -q name= lpp
# odmdelete -q name= -o lpp
# odmdelete -q lpp_name= -o product
# odmdelete -q lpp_id= -o history
# odmdelete -q lpp_id= -o inventory
# export ODMDIR=/etc/objrepos
# odmdelete -q name= -o lpp
# odmdelete -q lpp_name= -o product
# odmdelete -q lpp_id= -o history
# odmdelete -q lpp_id= -o inventory
# export ODMDIR=/etc/objrepos

Check lppchk -v again to see if those entries are gone from ODM

AIX – lpp incosistent Read More »

AIX – Warning, savebase failed

0516-1734 extendlv: Warning, savebase failed. Please manually run ‘savebase’ before rebooting.

If you run savebase -v and you get “non-bootable LV name given” try reconstucting your /dev/ipldevice file.

Run savebase -v again and if you get the same error, try follow procedure:

# bosboot -ad /dev/hdiskX (a disk that has hd5 on it)
# bosboot -ad /dev/hdiskY (a disk that has hd5 on it)
# ipl_varyon -i

[You’ll get a return on every physical disk on the system]

You will then get a return similar to this:

# savebase -v

saving to ‘/dev/hd5’
99 CuDv objects to be saved
240 CuAt objects to be saved
44 CuDep objects to be saved
51 CuVPD objects to be saved
407 CuDvDr objects to be saved
5 CuPath objects to be saved
0 CuPathAt objects to be saved
0 CuData objects to be saved
0 CuAtDef objects to be saved
Number of bytes of data to save = 49587
Compressing data
Compressed data size is = 12069
bi_start = 0x3600
bi_size = 0x1820000
bd_size = 0x1800000
ram FS start = 0x8d6ca0
ram FS size = 0xea34cf
sba_start = 0x1803600
sba_size = 0x20000
sbd_size = 0x2f29
Checking boot image size:
new save base byte cnt = 0x2f29
Wrote 12073 bytes
Successful completion

AIX – Warning, savebase failed Read More »

NetworkManager modifies /etc/hosts

There is an annoying bug (or feature depends on point of view) every restart/reconnect managed by NetworkManager, restore the original /etc/hosts loaded on startup. I’ve made a 3 line script inspired by visudo to manual edit the hosts file and prevent the other unexpected modifies:

File like (with +x attribute): /usr/sbin/vihosts

#!/bin/sh
sudo chattr -i /etc/hosts
sudo vim /etc/hosts
sudo chattr +i /etc/hosts

NetworkManager modifies /etc/hosts Read More »

Citrix – ICAClient issue on Linux REHL6

Another stupid Citrix ICAClient issue on Redhat linux:

[leo@thinkleo2 ~]$ /usr/lib/ICAClient/wfcmgr -icaroot /usr/lib/ICAClient
Warning: Missing charsets in String to FontSet conversion
Warning: Missing charsets in String to FontSet conversion
Warning: Unable to load any usable fontset
Error: Aborting: no fontset found

Solution 1 force language C (my favourite for any lang problems):

[leo@thinkleo2 ~]$ export LANG=C

Solution 2 remove charset cjkuni:

[leo@thinkleo2 ~]$ sudo yum remove cjkuni*
Loaded plugins: priorities, product-id, refresh-packagekit, rhnplugin, subscription-manager
Updating Red Hat repositories.
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package cjkuni-fonts-common.noarch 0:0.2.20080216.1-34.el6 will be erased
---> Package cjkuni-fonts-ghostscript.noarch 0:0.2.20080216.1-34.el6 will be erased
---> Package cjkuni-ukai-fonts.noarch 0:0.2.20080216.1-34.el6 will be erased
---> Package cjkuni-uming-fonts.noarch 0:0.2.20080216.1-34.el6 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================
Removing:
cjkuni-fonts-common noarch 0.2.20080216.1-34.el6 @anaconda-RedHatEnterpriseLinux-201105101829.i386/6.1 0.0
cjkuni-fonts-ghostscript noarch 0.2.20080216.1-34.el6 @rhel-i386-workstation-6 6.2 k
cjkuni-ukai-fonts noarch 0.2.20080216.1-34.el6 @rhel-i386-workstation-6 17 M
cjkuni-uming-fonts noarch 0.2.20080216.1-34.el6 @anaconda-RedHatEnterpriseLinux-201105101829.i386/6.1 21 M

Transaction Summary
=============================================================================================================================
Remove 4 Package(s)

Installed size: 37 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Erasing : cjkuni-fonts-ghostscript-0.2.20080216.1-34.el6.noarch 1/4
Erasing : cjkuni-ukai-fonts-0.2.20080216.1-34.el6.noarch 2/4
Erasing : cjkuni-uming-fonts-0.2.20080216.1-34.el6.noarch 3/4
Erasing : cjkuni-fonts-common-0.2.20080216.1-34.el6.noarch 4/4

duration: 336(ms)
Installed products updated.

Removed:
cjkuni-fonts-common.noarch 0:0.2.20080216.1-34.el6 cjkuni-fonts-ghostscript.noarch 0:0.2.20080216.1-34.el6
cjkuni-ukai-fonts.noarch 0:0.2.20080216.1-34.el6 cjkuni-uming-fonts.noarch 0:0.2.20080216.1-34.el6

Complete!
[leo@thinkleo2 ~]$

Citrix – ICAClient issue on Linux REHL6 Read More »

Postfix – Auth Dovecot Backend

main.cf file Postfix related parametes:

smtpd_sasl_authenticated_header = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth

dovecot.conf file Dovecot related parameters:

auth default {
mechanisms = plain login

[…removed irrelevance parameters…]


socket listen {
client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
}
}

Postfix – Auth Dovecot Backend Read More »

Linux – Multicast DVB-S router for EUMETCast

This simple script transform a linux box into a DVB-S Satellite router to receive data from Eurobird 9E used by EUMETSAT to redistribute weather satellite image.

REQUIRE:
DVB Tools
SMCroute
PCI Card supported by Linux/DVB Tools (ex. Skystar 2)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
#!/bin/bash
####################################################################
#								   #	
# Leonardo Rizzi 						   #
# Late night 24/04/2010						   #
# Revision 1.0							   #
# Tune DVB-S pci card for Eurobird 9E shifted from 13E Hotbird     #
# Tune, set net PID, Enable multicasting ecc. ecc. blah blah buuuu #
#								   #	
####################################################################
 
#Globalvar
DTUNE="/usr/bin/dvbtune"
DNET="/usr/bin/dvbnet"
MROUTE="/usr/sbin/smcroute"
IFCONFIG="/sbin/ifconfig"
 
SERVICE="eumetsat"
 
#Set dvbcard 0-3
INT="0"
 
#Set multicast forwarding interface and ip (by default TelliCast bind on 192.168.238.238)
MINT="eth1"
MIP="192.168.238.238"
 
#Set absolute frequency in Hz
FREQ=11977000
 
#Set polarization
POL=H
 
#Set symbol rate
SYR=27500
 
#Set PID one space for value separation
PID="100 300 301 302 500 509 510 511"
 
 
#Begin start!!
 
case "$1" in
  start)
  	# Pre-Start check
 
  	test -x $DTUNE || { echo "$DTUNE not installed or not configured properly";
        if [ "$1" = "stop" ]; then exit 0;
        else exit 5; fi; }
 
        test -x $DNET || { echo "$DNET not installed or not configured properly";
        if [ "$1" = "stop" ]; then exit 0;
        else exit 5; fi; }
 
        test -x $MROUTE || { echo "$MROUTE not installed or not configured properly";
        if [ "$1" = "stop" ]; then exit 0;
        else exit 5; fi; }
 
        test -x $IFCONFIG || { echo "$IFCONFIG not installed or not configured properly";
        if [ "$1" = "stop" ]; then exit 0;
        else exit 5; fi; }
 
        test -d /dev/dvb/adapter$INT || { echo "DVB$INT device not installed or not configured properly";
        if [ "$1" = "stop" ]; then exit 0;
        else exit 5; fi; }
 
 
	# Tuning the dvb frequency 
	echo ""
	echo "Tune the satellite donwlink on interface ${INT}"
	${DTUNE} -c ${INT} -f ${FREQ} -p ${POL} -s ${SYR} -m >/dev/null 2>&1 &
 
	# Set address on local forwarding interface and bring it up
	echo ""
	echo "Set multicast forwarding interface ${MINT}"
	${IFCONFIG} ${MINT} ${MIP} multicast up
 
	# Set PID on active dvb interface
	echo ""
	echo "Set net interface for listed PID:"
	for i in ${PID}
	do
	echo "Bring up PID $i"
	${DNET} -a ${INT} -p $i>/dev/null 2>&1
	done
 
	# Set address on dvbs interfaces and bring it up
	echo ""
	echo "Set net interface up:"
	for ii in {0..7}
	do
	echo "Bring up dvb net interface $ii"
	${IFCONFIG} dvb${INT}_$ii 192.168.22$ii.238 up >/dev/null 2>&1
	done
 
	# Start multicast router
	echo ""
	echo "Enable Multicast Router"
	${MROUTE} -d
 
	#PID 100 multicast forward
	echo "Set multicast for PID 100"
	${MROUTE} -a dvb0_0 192.168.1.1 224.223.222.34 ${MINT}
	${MROUTE} -a dvb0_0 192.168.1.1 224.223.222.36 ${MINT}
	${MROUTE} -a dvb0_0 192.168.1.1 224.223.222.40 ${MINT}
	${MROUTE} -a dvb0_0 192.168.1.1 224.223.222.223 ${MINT}
 
	#PID 300 multicast forward
	echo "Set multicast for PID 300"
	${MROUTE} -a dvb0_1 192.168.1.1 224.223.222.21 ${MINT}
	${MROUTE} -a dvb0_1 192.168.1.1 224.223.222.31 ${MINT}
	${MROUTE} -a dvb0_1 192.168.1.1 224.223.222.32 ${MINT}
	${MROUTE} -a dvb0_1 192.168.1.1 224.223.222.37 ${MINT}
	${MROUTE} -a dvb0_1 192.168.1.1 224.223.222.226 ${MINT}
	${MROUTE} -a dvb0_1 192.168.1.1 224.223.222.252 ${MINT}
	${MROUTE} -a dvb0_1 192.168.1.1 224.223.222.253 ${MINT}
 
	#PID 301 multicast forward
	echo "Set multicast for PID 301"
	${MROUTE} -a dvb0_2 192.168.1.1 224.223.222.23 ${MINT}
	${MROUTE} -a dvb0_2 192.168.1.1 224.223.222.33 ${MINT}
	${MROUTE} -a dvb0_2 192.168.1.1 224.223.222.38 ${MINT}
	${MROUTE} -a dvb0_2 192.168.1.1 224.223.222.39 ${MINT}
	${MROUTE} -a dvb0_2 192.168.1.1 224.223.222.35 ${MINT}
	${MROUTE} -a dvb0_2 192.168.1.1 224.223.222.227 ${MINT}
	${MROUTE} -a dvb0_2 192.168.1.1 224.223.222.251 ${MINT}
 
	#PID 302 multicast forward
	echo "Set multicast for PID 302"
	${MROUTE} -a dvb0_3 192.168.1.1 224.223.222.25 ${MINT}
 
	#PID 500 multicast forward
	echo "Set multicast for PID 500"
	${MROUTE} -a dvb0_4 192.168.1.1 224.223.222.1 ${MINT}
	${MROUTE} -a dvb0_4 192.168.1.1 224.223.222.22 ${MINT}
	${MROUTE} -a dvb0_4 192.168.1.1 224.223.222.28 ${MINT}
	${MROUTE} -a dvb0_4 192.168.1.1 224.223.222.27 ${MINT}
	${MROUTE} -a dvb0_4 192.168.1.1 224.223.222.29 ${MINT}
	${MROUTE} -a dvb0_4 192.168.1.1 224.223.222.30 ${MINT}
 
	#PID 509 multicast forward
	echo "Set multicast for PID 509"
	${MROUTE} -a dvb0_5 192.168.1.1 224.223.222.248 ${MINT}
	${MROUTE} -a dvb0_5 192.168.1.1 224.223.222.249 ${MINT}
	${MROUTE} -a dvb0_5 192.168.1.1 224.223.222.250 ${MINT}
 
	#PID 510 multicast forward
	echo "Set multicast for PID 510"
	${MROUTE} -a dvb0_6 192.168.1.1 224.223.222.231 ${MINT}
	${MROUTE} -a dvb0_6 192.168.1.1 224.223.222.232 ${MINT}
	${MROUTE} -a dvb0_6 192.168.1.1 224.223.222.233 ${MINT}
	${MROUTE} -a dvb0_6 192.168.1.1 224.223.222.234 ${MINT}
	${MROUTE} -a dvb0_6 192.168.1.1 224.223.222.235 ${MINT}
	${MROUTE} -a dvb0_6 192.168.1.1 224.223.222.236 ${MINT}
	${MROUTE} -a dvb0_6 192.168.1.1 224.223.222.237 ${MINT}
	${MROUTE} -a dvb0_6 192.168.1.1 224.223.222.239 ${MINT}
	${MROUTE} -a dvb0_6 192.168.1.1 224.223.222.240 ${MINT}
	${MROUTE} -a dvb0_6 192.168.1.1 224.223.222.242 ${MINT}
	${MROUTE} -a dvb0_6 192.168.1.1 224.223.222.243 ${MINT}
	${MROUTE} -a dvb0_6 192.168.1.1 224.223.222.244 ${MINT}
	${MROUTE} -a dvb0_6 192.168.1.1 224.223.222.245 ${MINT}
	${MROUTE} -a dvb0_6 192.168.1.1 224.223.222.246 ${MINT}
	${MROUTE} -a dvb0_6 192.168.1.1 224.223.222.247 ${MINT}
 
	sleep 5
	;;
 
  stop)
	# Stopping the dvb card
	echo ""
	echo "Stopping Satellite Downlink"
	killall dvbtune >/dev/null 2>&1
 
	echo ""
	echo "Stopping Multicast Routing"
	# Stopping Multicast Router
	${MROUTE} -k
 
	# Disable dvbs interfaces and remove active PID
	echo ""
	echo "Shutting down DVB-S interfaces"
	for iii in {0..7}
	do
	/sbin/ifconfig dvb0_$iii down >/dev/null 2>&1
	${DNET} -d $iii >/dev/null 2>&1
	done
 
	# Remove and disable multicasting forwarding interface
	echo ""
	echo "Shutting down multicasting forwarding interface"
	${IFCONFIG} ${MINT} del ${MIP} multicast
	${IFCONFIG} ${MINT} down
 
	;;
 
  restart)
 
	$0 stop
	$0 start
	;;
 
  status)
 
  	PID1='pidof dvbtune'
  	echo ""
  	echo "Tuning subsystem running at pid" $PID1
 
  	PID2='pidof smcroute'
  	echo ""
  	echo "Mulicast router running at pid" $PID2
 
	;;
 
  multicast)
 
  	echo "Multicasting Routing table:"
  	ip mroute show  
	;;
 
  *)
	echo "Usage: $0 [start|stop|restart|status|multicast]"
	;;
esac
 
exit;s

Linux – Multicast DVB-S router for EUMETCast Read More »

The Windows Installer Service could not be accessed.

The Windows Installer Service could not be accessed.
This can occur if you are running Windows in safe
mode, or if the Windows Installer is not correctly
installed. Contact your support personnel for assistance.

kb315353

To resolve this issue, follow these steps:

1. Log on to your computer as an administrator.
2. Click Start, and then click Run.
3. In the Open box, type cmd, and then click OK.
4. At the command prompt, typemsiexec.exe /unregister, and then press ENTER.
5. Type msiexec /regserver, and then press ENTER.
6. Verify that the SYSTEM account has full control access permissions to the
HKEY_CLASSES_ROOT
hive in the Windows registry. In some cases, you may also have to add Administrator accounts. To do so:Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 (http://support.microsoft.com/kb/322756/ ) How to back up and restore the registry in Windows
1. Click Start, click Run, type regedit in the Open box, and then click OK.
2. Click the following registry hive:
HKEY_CLASSES_ROOT
3. On the Edit menu, click Permissions.
4. If SYSTEM is not listed in the Group or user names list, click Add, make sure that the local computer name appears in the From this location box, type system in the Enter the object names to select box, click Check Names, and then click OK.
5. Click SYSTEM in the Group or user names list, and then select the Full Control check box under Allow in the Permissions for SYSTEM box.
6. Click Apply, click OK, and then quit Registry Editor.
7. Restart the computer. If the problem is not resolved, repair Windows XP. For more information about how to repair Windows XP, click the following article number to view the article in the Microsoft Knowledge Base:
315341 (http://support.microsoft.com/kb/315341/ ) How to perform an in-place upgrade (reinstallation) of Windows XP

The Windows Installer Service could not be accessed. Read More »

AIX – DLPAR connection lost to HMC

Sometime during AIX migration/alt_clone or HMC upgrade, it can happen that RMC ID get lost or duplicated, the the rsct process is unable to re stabilize the connection.

You can reset the key and restart that service as follows:

Reset RMC unique ID:

# /usr/sbin/rsct/install/bin/recfgct
# /usr/sbin/rsct/bin/rmcctrl -z
# /usr/sbin/rsct/bin/rmcctrl -A


Then you can check the rmc status:

# /usr/sbin/rsct/bin/rmcdomainstatus -s ctrmc

AIX – DLPAR connection lost to HMC Read More »

AIX – ODM Object Classes

AIX – ODM Device Configuration Object Classes

A list of the ODM Device Configuration Object Classes follows:

PdDv
Predefined Devices

PdCn
Predefined Connection

PdAt
Predefined Attribute

Config_Rules
Configuration Rules

CuDv
Customized Devices

CuDep
Customized Dependency

CuAt
Customized Attribute

CuDvDr
Customized Device Driver

CuVPD
Customized Vital Product Data

AIX – ODM Object Classes Read More »

Juniper – Netscreen upgrade via TFTP

fw01-> save software from tftp 10.255.4.210 ns50ns25.5.4.0r21.0 to flash
Load software from TFTP 10.255.4.210 (file: ns50ns25.5.4.0r21.0).
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
tftp received octets = 5994268
tftp success!

TFTP Succeeded
Save to flash. It may take a few minutes ...platform = 14, cpu = 10, version = 18
update new flash image (01e97ddc,5994268)
platform = 14, cpu = 10, version = 18
offset = 20, address = 3060000, size = 5994189
date = 4062f3e0, sw_version = 4062f3e4, cksum = f7522c46
Program flash (5994268 bytes) ...
sec_size :131072 align_support 1 , mode 96028
++++++++++++++++++++++++++++++++++++++++++++++done
Done
fw01-> reset
System reset, are you sure? y/[n] y
In reset ...

Juniper – Netscreen upgrade via TFTP Read More »

OpenVMS – SCSSYSTEMID

SCSSYSTEMID (G)
Specifies a number that identifies the computer. This parameter is not dynamic. SCSSYSTEMID is the low-order 32 bits of the 48-bit system identification number.

If the computer is in an OpenVMS Cluster, specify a value that is unique within the cluster. Do not use zero as the value.

If the computer is running DECnet for OpenVMS, calculate the value from the DECnet address using the following formula:

SCSSYSTEMID = ((DECnet area number) * 1024) + (DECnet node number)

Example: If the DECnet address is 2.211, calculate the value as follows:

SCSSYSTEMID = (2 * 1024) + 211 = 2259

OpenVMS – SCSSYSTEMID Read More »

AIX – Mounting ISO images

There is a known problem with mounting ISO images on the AIX platform. To workaround the problem, complete the following instructions:

Obtain the size of the image, then identify the nearest multiple of 128 MB that will provide enough space for the image. For example, the image of CD-ROM is approximately 650/700 MB, so use 768 MB as an image size.

Make a logical volume of this size. Ensure that there is enough space on the physical volume. For example, hdisk0.

# mklv -y cdlv -s n -L /dev/cdlv rootvg 768M hdisk0

If the command fails, increase the volume size by a multiple of 128.

Use the dd command to create a pseudo-device. Ensure that the partition has enough space for the pseudo-device. In the following example command, the pseudo-device is /dev/cdlv.

# dd if=/opt/iso/cd.iso of=/dev/cdlv

Note that this command may take a long time and will create two dd processes.

Mount the device like a CD-ROM in AIX. Ensure that the mount point exists.

# mount -v cdrfs -o ro /dev/cdlv /mnt/iso

AIX – Mounting ISO images Read More »