« 10.1. X25 » : différence entre les versions
Aucun résumé des modifications |
(Aucune différence)
|
Dernière version du 2 mars 2012 à 15:00
Rapelle des commande X25:
#lsx25
Power Desktop X.25 system configuration Machine: pyaidj
ADAPTER DRIVER PORT COMIO TCPIP NUA LOGICAL LOGICAL PHYSICAL BOARD PORT PORT dpmpa0 hdlc1 sx25a0 0 1 1 dpmpa1 hdlc3 sx25a1 1 9 1
{op}@pyaidj # x25status
******************************************************************** X.25 LINK STATUS for pyaidj ******************************************************************** ACTIVE ACTIVE ACTIVE PORT PACKET STATE SVCs PVCs LISTENS sx25a0 Connected 0 0 2 sx25a1 Connected 0 0 2
******************************************************************** X.25 LISTEN STATUS for pyaidj ********************************************************************
PORT CALLING-ADDRESS CALLED-ADDRESS CUD sx25a0 * * sx25a0 * * 01000000* sx25a1 * * sx25a1 * * 01000000*
{op}@pyaidj # hdlcstat hdlc1 ------------------------------------------------------------- HDLC STATISTICS (hdlc1) : Device Type: IBM 2-Port Multiprotocol Adapter (331121b9) Hardware Address: 00 Elapsed Time: 247 days 11 hours 38 minutes 13 seconds
Transmit Statistics: Receive Statistics: -------------------- ------------------- Packets: 1172395 Packets: 1458126 Bytes: 111686075 Bytes: 48216753 Interrupts: 1163541 Interrupts: 1484335 Transmit Errors: 0 Receive Errors: 0 Packets Dropped: 0 Packets Dropped: 26209 Bad Packets: 0 Max Packets on S/W Transmit Queue: 16 S/W Transmit Queue Overflow: 0 Current S/W+H/W Transmit Queue Length: 0
Current SW Transmit Queue Length: 0 Current HW Transmit Queue Length: 30
General Statistics: ------------------- TX Timeouts: 0 RX Timeouts: 0 Transmit Underruns: 0 Receive Overruns: 0 No mbuf Errors: 0 Receiver starts: 26213 TX deferred: 0 Short frames: 0 Error recovery: 0 Long frames: 0 Carrier detect Lost: 0 CRC errors: 26209 Clear To Send signal lost: 0 Receive aborts: 0 Clear To Send timeouts: 0 Clear To Send on: 0 Data Set Ready timeouts: 0 Data Set Ready on: 0 Data Set Ready dropped: 0 Cable Type: X.21 Modem Speed (RX Clock): Driver Flags: Up Running Simplex 64BitSupport
{op}@pyaidj # x25mon -pfct -n sx25a0 X.25 Monitor sx25a0 12:07:05 sx25a0 FR 0x0001 INFO a:3 p:0 ns:7 nr:1 l:19 10010BC0349204818920040101030001000000 12:07:05 sx25a0 PR 0x0001 CALL dN la:6 lf:4 ld:4 C0349204818920040101030001000000 12:07:05 sx25a0 PS 0x0001 CF CALL dN 12:07:05 sx25a0 FS 0x0001 INFO a:1 p:0 ns:1 nr:0 l:3 10010F 12:07:05 sx25a0 FR 0x0001 RR a:1 p:0 nr:2 12:07:06 sx25a0 FR 0x0001 INFO a:3 p:0 ns:0 nr:2 l:83 100100C1404040F0F2F4F040404040C2F5F0F2F3F64040D7C5D9E8D9D3C340404040404040404040.. 12:07:06 sx25a0 PR 0x0001 DATA pr:0 ps:0 dN mN qN l:80 C1404040F0F2F4F040404040C2F5F0F2F3F64040D7C5D9E8D9D3C340404040404040404040404040..
{op}@pyaidj # ps -ef | grep x29d root 5948 1 0 22 mar - 0:00 /usr/lib/drivers/pse/x29d root 37268 51082 1 12:10:57 pts/0 0:00 grep x29d
1) Migration du port sx25a0 de hdlc0 vers hdlc1 :
Il faut :
-Sauvegarder l'ensemble des paramètres du port x25 : par exemple : lsattr
-El sx25a0 > /tmp/oldsx25a0param.txt
-Supprimer le port sx25a0 :rmdev -dl sx25a0
-Recréer le port sx25a0 via smitty sur hdlc1
-Récupérer ses paramètres actuels : lsattr -El sx25a0 >
/tmp/newsx25a0param.txt et comparer les deux fichiers .txt
-Pour chaque différence , corriger le paramètre pour le nouveau port via la
commande chdev :
chdev -l sx25a0 -a NOM_DU_PARAMETRE=VALEUR_DU_PARAMETRE
2) Inversion des cables au niveau du serveur . Il n'y a pas de commandes particulières mais je conseille d'intervertir les cables à froid (donc machine éteinte) puis de simplement redémarrer le serveur .
3) Inversion des cables au niveau des modems . Dans ce cas , je pense qu'il faut : Un arrêt de l'application , rmdev -l des ports concernés , rmdev -l des hdlc concernés puis mkdev -l des hdlc , mkdev -l des ports .
NB : Comme vous utilisez du X.21 (V11) , merci de vérifier que vos hdlc ont le paramètres x21_idle_char égal à 0x7e . Par exemple :
lsattr -El hdlc0 et si besoin chdev -l hdlc0 -a x21_idle_char=0x7e
ADAPTER Specifies the adapter over which the X.25 port is configured. DRIVER Specifies the driver over which the X.25 port is configured. PORT Specifies the port name. COMIO Specifies the COMIO port name, if a COMIO emulation port is configured to this X.25 port. TCPIP Specifies the TCP/IP name, if a TCP/IP interface is configured to this X.25 port. NUA Specifies the port's network user address. LOGICAL BOARD Specifies the logical board number for the adapter. There is NOT a direct correlation between this number and the associated device driver number. LOGICAL PORT Specifies a logical port number associated with each X.25 port. With the varying number of ports available on the different supported adapters, a constant, logical number must be assumed to allow adapters to be moved physically in the system. Each adapter has a block of eight ports associated with it, though the number of port available to be configured may be less than that. PHYSICAL PORT Specifies the port being used on the adapter.