Wednesday, May 12, 2010

info for shelfmanager

slot address:
13 11 9 7 5 3 1 2 4 6 8 10 12 14
9a 96 92 8e 8a 86 82 84 88 8c 90 94 98 9c

Jumper for 5003A:
Sw3, DIP4 on=standalone; off=fortimanager
DIP1 on=F8, off=slot14

Jumper for 5001A:
SW11, DIP3 on=standalone; off=fortimanager

Tuesday, March 30, 2010

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)

Monday, March 29, 2010

BreakingPoint howto create fixed number tcp connection and then loop the transaction.









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);