Huawei
Huawei
Huawei
Page 1
Tips
This course explains Chapter 1 and Chapter 2 in
Line Configuration File in the OptiX OSN 1500/2500/3500/7500/9500 Command Line Introduction.
Page 2
References
OptiX OSN 1500/2500/3500 Intelligent Optical
Page 3
After completing this presentation, you should be able to: > Maintain and commission the equipment by using command lines. > Develop and issue a command line batch file for NE configuration. > Run common commands.
Page 4
Chapter 1 Overview of Command Lines Chapter 2 Developing a Batch File Chapter 3 Common Commands
Page 5
Here, a command line is a man-machine command issued to Huawei OptiX equipment. Like the T2000, a command line helps greatly to deploy and maintain Huawei OptiX equipment. Features:
- Easy - Powerful
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 6
Download the Navigator at http://support.huawei.com. Location: Software > Version Software > Optical Network Product Line > Optical Network Tools > Navigator The Navigator of any version between V5.6 and V6.2 is recommended.
Page 8
lines.
Issues a batch file. Upgrades software of the SCC
Navigator window
Page 9
%cmdterm
Page 10
Page 11
Page 12
Slide 14 LU4
Lenovo User, 6/23/2008
LU5
Lenovo User, 6/23/2008
LU6
Lenovo User, 6/23/2008
LU7
Lenovo User, 6/23/2008
neid: ID of the NE to run the command command: command words para_block: parameter block. Each parameter block has one or more assignments.
Page 14
Start of command: ":" (colon) End of command: ";" (semicolon) Parameter block separator: ":" (colon) Parameter separator: "," (comma) AND: "&" To: "&&" Shielding: "//"
Page 15
Module
Operation
get: to query an object add: to add an object set: to set an object del: to delete an object reset: to reset an object
cfg: a configuration command alm: an alarm command per: a performance monitoring command sm: a security management command cm: a communication management command dbms: a database management system command sys: a system command
Example: alm-get-curdata:0,0;
All rights reserved Page 16
Page 17
Chapter 1 Overview of Command Lines Chapter 2 Developing a Batch File Chapter 3 Common Commands
Page 18
#1:login:"szhw","nesoft"; //The user name must be szhw. :per-set-endtime:15m,1990@0@0@0@0@0; :per-set-endtime:24h,1990@0@0@0@0@0; :cfg-init-all; :cfg-set-devicetype:OptiXOsn3500,standard; //case-sensitive :cfg-set-nename:64,"OSN 3500 example"; :cfg-add-board:9&10,ssn1gxcsa:1&2,ssn1pq1:16&15,ssn1sep; :cfg-add-board:17&18,ssn1nscc:8&11,ssn2sl64; :cfg-add-board:19&20,ssn1d75s:33,ssn1eu04:35,ssn1tsb4; //To add interface boards //Clock configuration :cfg-set-synclass:9,3,0x0801,0x0b01,0xf101;
5.
6.
Page 19
//Orderwire configuration :cfg-set-telnum:37,1,101; //To set an addressing call number :cfg-set-meetnum:37,999; //To set a conference call number :cfg-set-reqtime:37,5; //To set call-waiting time :cfg-set-lineused:37,8,1,used; //To set the optical interface for the order wire service :cfg-set-meetlineused:37,8,1,used; //To set the optical interface for the conference call //Service configuration :cfg-add-xc:0,15,1,1,0,8,1,1,0,vc4; :cfg-add-xc:0,8,1,1,0,15,1,1,0,vc4; :cfg-add-xc:0,2,1&&32,0,0,8,1,2,1&&32,vc12; :cfg-add-xc:0,8,1,2,1&&32,2,1&&32,0,0,vc12; :cfg-verify;
All rights reserved Page 20
8.
9.
Batch File
1. To log in to an NE #1:login:"szhw","nesoft";
NOTE
In V5.0, the command line software rejects the user and returns NSERR_SM_LOGIN_ALREADY when szhw already logs in to the NE. To forcedly log in, run the following command: #1:lognew:"szhw","nesoft";
Page 21
Batch File
2. To end performance monitoring :per-set-endtime:15m,1990@0@0@0@0@0; :per-set-endtime:24h,1990@0@0@0@0@0; Function: These commands end performance monitoring and ensure that configuration rate and data are properly sent to an NE. Parameter description: 15m: Performance monitoring at the period of 15 minutes 24h: Performance monitoring at the period of 24 hours 1990@0@0@0@0@0: End time of performance monitoring. End performance monitoring as required. To end performance monitoring immediately, set the end time to 1990@0@0@0@0@0.
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 22
Batch File
3. To initialize an NE
:cfg-init-all; Function: This command initializes an NE to clear all original data from the NE. In this way, the original data does not affect the coming configurations. Initialize the NE before you configure an NE.
Page 23
Batch File
4. To set NE parameters
:cfg-set-devicetype:OptiXOsn3500,standard; //case-senstive :cfg-set-nename:64,OSN 3500 example; //The assignment 64 indicates the length of the NE name. :cfg-set-nepositon:1109 room; //This command is optional.
Page 24
Batch File
5. To add boards
:cfg-add-board:9&10,ssn1gxcsa:1&2&3,ssn1pq1; :cfg-add-board:15&16,ssn1sep:8&11,ssn2sl64; :cfg-add-board:19&&22,ssn1d75s:33,ssn1eu04:35,ssn1tsb4; Notes: 1. Enter proper slot numbers and board names. 2. Precede a board name with ssn1 or ssn2 to indicate whether the board is in series N1 or N2. For example, ssn1gxcsa. For details, see the board number.
Page 25
Batch File
Precautions: > The following boards need to be added: - Line boards - Tributary boards - SCC - Ethernet boards - Interface boards - Optical amplifier boards > The active SCC is created by default and cannot be deleted. The standby SCC can be manually added or deleted. > An interface board can be added only when its mapping processing board is added. > A logically added board is in one of the following states: - Adding - Active - Deleting A board is successfully added or deleted only when the addition or deletion is successfully verified. > By default, the PIU, FAN, and AUX/SAP boards are automatically added rather than manually installed. > The CXL1/4/16 boards create logical functional units by logical slot.
Page 26
Batch File
6. To set clock parameters :cfg-set-synclass:Bid,SyncNum,Sync1,Sync2,;
Page 27
Batch File
For example, :cfg-set-synclass:9,4,0xf001,0x0801,0x0b01,0xf101;
There are four clock sources. Each clock source is numbered in double-byte hexadecimal.
-
The more significant byte indicates the ID of a line board (0x010x11). The less significant byte indicates the number of an optical interface. The optical interfaces are numbered from 1 on.
External clock source 1 is numbered 0xf001. External clock source 2 is numbered 0xf002. The internal clock source is numbered 0xf101.
Notes:
Ensure that each line board indicated by the more significant byte is already installed. End the clock source priority table with the internal clock source.
Page 28
Batch File
7.
To set orderwire parameters :cfg-set-telnum:37,1,101; //To set an addressing call number :cfg-set-meetnum:37,999; //To set a conference call number :cfg-set-tellen:37,3; //To set the length of a telephone number :cfg-set-reqtime:37,5; //To set call-waiting time :cfg-set-lineused:37,8,1,used; //To set the optical interface for the order wire
service
:cfg-set-meetlineused:37,8,1,used; //To set the optical interface for the conference call
Notes: 1. Ensure that each board indicated by the commands is already installed. 2. Set the optical interface for the addressing call and that for the conference call separately. 3. Keep the optical interface for the conference call from a loop.
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 29
Batch File
To add a VC4 service connection, which runs from VC4 1 on optical interface 1 of slot 15 (source) to VC4 1 on optical interface 1 of slot 8 (sink)
Batch File
9.
Function: This command enables the SCC to verify configurations and physical situations. If the verification succeeds, the SCC saves the configurations and notifies the other boards about starting by the configurations. Without the command, the SCC does not issue the configurations to the other boards.
Page 31
Batch File
10.
Function: This command checks whether configurations are successfully issued. If the NE is in the running state, the configurations are successfully issued. If the NE is in the installing state, the configurations fail to be delivered.
Page 32
Batch File
11.
To back up the NE database, that is, NE configurations manually :dbms-copy-all:drdb,fdb0; :dbms-copy-all:drdb,fdb1; Function: These commands prevent fdb0 and fdb1 from being lost due to restart.
Page 33
Question
Explain the following statements: #1:lognew:"szhw","nesoft"; :per-set-endtime:15m,1990@0@0@0@0@0; :per-set-endtime:24h,1990@0@0@0@0@0; :cfg-init-all; :cfg-set-devicetype:OptiXOsn3500,standard; :cfg-set-nename:64,"NE1"; :cfg-add-board:9&10,ssn1gxcsa:1,ssn1sep1:7,ssn1sl16:17&18,ssn1nscc; :cfg-set-synclass:9,1,0xf101; :cfg-set-telnum:37,1,101; :cfg-set-meetnum:37,999; :cfg-set-reqtime:37,5; :cfg-set-lineused:37,7,1,used; :cfg-set-meetlineused:37,7,1,used; :cfg-add-xc:0,7,1,1,0,1,1,1,0,vc4; :cfg-add-xc:0,1,1,1,0,7,1,1,0,vc4; :cfg-verify;
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 34
Chapter 1 Overview of Command Lines Chapter 2 Developing a Batch File Chapter 3 Common Commands
Page 35
Common Commands
Configuration query
The add commands adds data. The set command sets data. The get command queries data. The del command deletes data.
Example: :cfg-get-nestate; //To query the state of an NE After verification, an NE must be in the running state rather than in the installing state. :cfg-get-xc:0,0; //To query all current cross-connections :cfg-get-xc:0,5; //To query all cross-connections terminated at slot 5
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 36
Common Commands
Other queries
:cfg-get-devicetype
//To query the type of an NE :date(:set-date:2000-2-13) //To query the date of an NE :time(:set-time:13*00*11) //To query the time of an NE :cfg-get-phybd //To query the physical board information :cfg-get-bdversion:Bid //To query the version of a board :cfg-get-bdverinfo:Bid //To query the version information of a board
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 37
Common Commands
Alarm query To query a current alarm alm-get-curdata:para1,para2; Parameter description:
para1: ID of a board. To query all boards, set this parameter to 0. para2: ID of an event. To query all events, set this parameter to 0.
Example: :alm-get-curdata:0,0; //To query all current alarms reported by all boards :alm-get-curdata:11,0; //To query all current alarms reported by board 11.
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 38
Common Commands
Alarm query To query a history alarm :alm-get-hisdata:para1,para2; Parameter description:
para1: ID of a board. To query all boards, set this parameter to 0. para2: ID of an event. To query all events, set this parameter to 0.
Example: :alm-get-hisdata:0,0; //To query all history alarms reported by all boards
Page 39
Common Commands
Performance monitoring :set-date:2002-1-1; //To set the date of an NE :set-time:12*00*00; //To set the time of an NE :per-set-monevent:0,0,0,0,perall,15m,enable; //To set a performance event to monitor
Page 40
Common Commands
Performance monitoring :per-set-autorep:0,0,0,0,perall,15m(24h),disable; //To disable reporting a performance event automatically :per-set-starttime:15m,2005@1@2@3@4@5; //To set the start time of the performance monitoring at the period of 15 minutes performance :per-set-starttime:24h,2005@1@2@3@4@5; //To set the start time of the performance monitoring at the period of 24 hours
Page 41
Common Commands
User management :login:"zhang","pass_word"; //To log in to an NE as zhang :lognew:"zhang","pass_word"; //To forcedly log in to an NE as zhang :sm-add-user:"user1","my_pass","every",enable; //To add a user
Page 42
Common Commands
User management :sm-get-alluser; //To query all users :sm-get-curuser; //To query the current user :logout; //To log out of an NE
Page 43
Common Commands
ECC command
:cm-set-lanautoecc:open; //To automatically extend an ECC :cm-get-eccroute; //To query an ECC route :cm-get-chanerror; //To query an ECC error :cm-get-bdinfo; //To query ECC status on an optical interface of an optical interface board :cm-get-fiberport:bid,portnum; //To query the state of an optical interface in an optical interface board, including DCC rate
Page 44
Common Commands
Board reset
:cfg-reset-board:Bid, resetmode Parameter description: Bid: ID of a board resetmode: Mode of reset - Hard, a cold reset - Soft, a warm reset NOTE A cold reset is thorough but interrupts services. A warm reset protects services from interruption but is not thorough.
NE reset
:reset;
Questions
What does a command line configuration file consist of?
Page 46
Thanks!
www.huawei.com