Conserve mode
3951B-41 (global) # d hardware sysinfo memory
total: used: free: shared: buffers: cached: shm:
Mem: 12717326336 1692008448 11025317888 0 118784 170450944 171618304
Swap: 0 0 0
MemTotal: 12419264 kB
MemFree: 10766912 kB
MemShared: 0 kB
Buffers: 116 kB
Cached: 166456 kB
SwapCached: 0 kB
Active: 113768 kB
Inactive: 52872 kB
HighTotal: 10616832 kB
HighFree: 10320888 kB
LowTotal: 1802432 kB
LowFree: 446024 kB
SwapTotal: 0 kB
SwapFree: 0 kB
1, why FOS went into conserve mode?
Once lowFree is less than 20% LowTotal, the system goes into conserve mode. When lowFree is back to more than 30% LowTotal, leave the conserve mode
When the system is in conserve mode, it will randomly delete the session, bypass av and anything became unpredictable.
The concurrent session = lowTotal * 1024 *80% / 640 (640byte/sesssion)
Tuesday, March 30, 2010
Monday, March 29, 2010
Saturday, March 20, 2010
Howto convert SCCC phone to SIP.
Re: 7905 pass to SIP
https://supportforums.cisco.com/thread/293270;jsessionid=0D1962660DB41BC58ECCDAF07B76C3D4.node0?tstart=0&viewcondensed
To convert an IP phone from Skinny (SCCP) protocol to Session Initiation Protocol (SIP) with Cisco CallManager running 5.0.x, perform this procedure:
On the Cisco CallManager Admin page, go to Bulk Administration > Phones > Migrate Phones > SCCP to SIP.
On this screen, enter a query in order to select the device(s) to upgrade.
On the next screen, select a Phone Profile. Add one if one is not already present.
To add a Phone Profile, perform these steps:
Go to Bulk Administration > Phones > Phone Templates.
When the migrate job is submitted, go to Bulk Administration > Job Scheduler.
Note: Sometimes, the job must be activated. If the job remains in Pending state, activate the Bulk Provisioning Service under Serviceability > Service Activation.
Go to System > Enterprise Parameters and change the Auto Registration Phone Protocol option to SIP.
Restart the Cisco CallManager service.
After submitting a job for migrating phones from SCCP to SIP, make sure that you reset these
phones. Reset phones using Bulk Administration > Phones > Reset/Restart Phones > Query.
For setting X-lite in CallManager 6xxx no different with Setting in CallManager 5xxx
I Give examples :
X-lite extension : 78888
Select Menu : User Management ->End User->Add New :
User ID: 78888
Password: 78888 (you can anythings)
Confirm Password: 78888 (you can anythings)
PIN: 78888 (you can anythings)
Confirm PIN: 78888 (you can anythings)
Last Name: 78888
And You Save.
Next Your Select Menu : Device -> Phone -> Add New
Select Product type : Third-party SIP Device (Basic) -> Next
MAC Address* : (your MAC PC/laptop)
Decription: SEP(your MAC PC/laptop)
Device Pool*efault
Phone Buttom Template*:Third-party SIP Device (Basic)
Common Phone Profile : Standard Common Phone Profile(default)
Location : Hub_None (Default)
PROTOCOL SPECIFIC INFORMATION :
Presence Group : Standard Presence Group (Default)
MTP Preferred Originating Codec : 711Ulaw (gray)
Device Security Profile : Third-party SIP Device Basic-Standard SIP non-Secure Profile
SIP Profile : Standard SIP Profile
Digest User : 78888
And you Save
"Click on the Reset Phone Button to have the Changes take Effect" --> Select OK
In left line : "line[1]-Add a New DN"
Directory Number* : 78888
and you Save
And Your Select Againt Menu : User Management -> End User
Click in 78888 and click in "Device Association" -> Directory Number, Begin With 78888 -> Find
and Check SEPSEP(your MAC PC/laptop) and then your click SAVE SELECTED/CHANGES
In X-Lite Setting :
Open Menu : Properties of Account
User Details : 78888
User Name : 78888
Password : 78888
Authorization User Name : 78888
Domain : ip Add CM
Domain Proxy :
Check "Register With Domain and Receive Incoming Calls"
Send Outbound Via :
Check "Domain"
Good Luck
Best Regards
Satria Indonesia
====================
Resetting to factory defaults
Read the next section before doing this!
Step 1 Press the Menu button.
Step 2 Use the Navigation button to select Settings, and then press the Select softkey.
Step 3 Use the Navigation button to select Network Configuration, and then press the Select softkey.
Step 4 Perform either of these procedures:
Procedure A:
* Press **2. The phone displays "Do you want to reset all system settings to default values?"
* Press the Yes softkey.
Thursday, March 18, 2010
Linphone Config
a, endpoint side:
linphone, register to proxy server which has the ip 172.18.9.12
b, proxy server: ser (sip express router)
daemon:
[root@localhost ser]# which ser
/usr/sbin/ser
conf: Need to change some lines in ser.cfg (for modules loaded)
[root@localhost ser]# ls
dictionary.ser ser.cfg
[root@localhost ser]# pwd
/etc/ser
"...
loadmodule "/usr/lib/ser/modules/sl.so"
loadmodule "/usr/lib/ser/modules/tm.so"
loadmodule "/usr/lib/ser/modules/rr.so"
loadmodule "/usr/lib/ser/modules/maxfwd.so"
loadmodule "/usr/lib/ser/modules/usrloc.so"
loadmodule "/usr/lib/ser/modules/registrar.so"
loadmodule "/usr/lib/ser/modules/textops.so"
..."
Tuesday, February 9, 2010
perl sample
chap 13. Internet socket
a, client_w.pl
#!/usr/bin/perl -w
use IO::Socket;
$socket = IO::Socket::INET->new
(
PeerAddr => '127.0.0.1',
PeerPort => 27777,
Proto => "tcp",
Type => SOCK_STREAM,
) or die "could not open port.\n";
print $socket "hello from the client\n";
close ($socket);
b, server_r.pl
#!/usr/bin/perl -w
use IO::Socket;
$server = IO::Socket::INET->new
(
LocalPort => 27777,
Type => SOCK_STREAM,
Reuse => 1,
Listen => 5
) or die "could not open port.\n";
while ($client = $server->accept()) {
$line = <$client>;
print $line;
}
close ($server);
=================================
Notes: PerlInNut/13.2
a, The parameters for the new socket object determine whether it is a server or a client socket. Because we're creating a server socket, LocalAddr and LocalPort provide the address and port to bind to the socket. The Listen parameter gives the queue size for the number of client requests that can wait for an accept at any one time.
When the server receives a client request, it calls the accept method on the socket object. This creates a new socket object on which the rest of the communication can take place:
$new_sock = $sock->accept();
b, Type => SOCK_STREAM | SOCK_DGRAM
Specifies the type of socket. SOCK_STREAM indicates a stream-based socket connection, and SOCK_DGRAM indicates a message-based (datagram) connection.
Q:datagram = udp?
A:With sockets, you can do both virtual circuits (as TCP streams) and datagrams (as UDP packets)
Wednesday, February 3, 2010
Perl Sample for Ticket
1, T1180
#!/usr/bin/perl -w
print "$#ARGV\n";
if ($#ARGV != 2) {
print "Usage: gen50phase.pl phase1 src dst\n";
exit;
}
print "$ARGV[0]\n";
print "$ARGV[1]\n";
print "$ARGV[2]\n";
open (PHASE2, ">50phase2.txt");
print PHASE2 "config vpn ipse phase2-interface\n";
for ($i=1; $i<51;$i++) {
print PHASE2 "edit a10.1.1.$i\n";
print PHASE2 "set keepalive enable\n";
print PHASE2 "set phase1name $ARGV[0]\n";
print PHASE2 "proposal aes128-sha1\n";
print PHASE2 "set replay disable\n";
print PHASE2 "set dst-subnet $ARGV[2].$i 255.255.255.255\n";
print PHASE2 "set src-subnet $ARGV[1].$i 255.255.255.255\n";
print PHASE2 "next\n";
}
print PHASE2 "end\n";
close (PHASE2);
Sunday, January 24, 2010
TAX TAX TAX
Tax for 2011
a, ufile first. Interview setup for the following:
shock:
T4: 2 footnotes. Box 84 and box 39( half of stock option taxable)
T5:
Other plan: Home Buyer Plan
w:
T4,
T4E,
Other Deduction: public transit
D:
medical
Child care
A:
None
=====================================================
1, how to calculate the tax in 2010?
http://lsminsurance.ca/calculators/canada/income-tax
Q&A
1, I’m just wondering if your tax calculator includes the Provincial tax or not?
Yes it does, both federal and provincial. You can prove this to yourself with this test.
In BC the Provincial personal exemption is $9,373. Any income below will show $0 tax and 0% tax rates. The federal personal exemption is $10,320. So using the calculator input the values:
$9,000 and you will see the marginal tax rate is 0%.
now try $9,500 and see the marginal tax rate is 5.06%, the lowest BC rate.
lastly input $10,350 and you will see the marginal tax rate is 20.06%, 5.06% for BC, and 15% for federal.
This calculator only takes into account your Basic Personal Amount (BPA) which we mortals know as our personal exemption. This means the results are a worst case scenario. If you have other tax credits and deductions your tax payable will be less than the number we show.
=================
The option for filing the tax.
Ufile $25 for the family head
$9 for each additional member.
Free: studioTax , free and neat
Follow the wizard and add T4, T4E, T5 and RRSP(limit from last year, Contribute and the amount for HBP)
only 3 items need to be treated in special way:
UCCT T1 Genneral/page2
child care expense: T1 Geenneral/page 3
fitness Schedual 1
public transit: schedual 1
Result: T1 page 4: refund / balance owning
==========================
Tax for 2011