OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0
Transcript of OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0
![Page 1: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/1.jpg)
Introduction of Introduction of
command linecommand line
HUAWEI
![Page 2: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/2.jpg)
HUAWEI
CONTENTSCONTENTS
Overview of command line
Introduction of common
used commands
Example of typical configuration
![Page 3: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/3.jpg)
HUAWEI
Overview of command line
What is "SBS command line"?
"SBS command line" is a set of commands developed for the configuration and maintenance of Huawei SBS series product
It is more efficient than SBSMN-NES or SBSMN-RMS
It is a powerful tool and very convenient for maintenance engineers
![Page 4: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/4.jpg)
HUAWEI
Overview of command line
Very small ,about 1M ,and needs not to be installed ,it can be used directly when only copied .
Concision and rapidity, it can get the detail and exactmessage of equipment.especially, the batch function
is very useful when doing configuration and commission.
It can do more work than that of SBSMN can do. Suchas,read and write every board register directly. It ispowerful for troubleshooting.
Advantages:
![Page 5: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/5.jpg)
HUAWEI
Overview of command line
V4.01SBS155H SBS155/622H SBS155/622 SBSW32
V4.05SBS2500+
Classification of SBS command line program:
V3.0 SBS155/622 SBS155H
![Page 6: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/6.jpg)
HUAWEI
Overview of command line
NAVIGATOR programIt is developed and works on PC platform
SBSTERM programIt is developed and works on SUN workstation platform
Types of command line program:
![Page 7: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/7.jpg)
HUAWEI
Overview of command line
In Windows 9x system , find the navigator program and double click the icon.You will see the following window:
⑴ 、 Receive the input commands and send them to the NE via network interface . ⑵ 、 Download the main control software ⑶ 、 Upgrade boards software online
Usage of NAVIGATOR:
Functions of NAVIGATOR:
![Page 8: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/8.jpg)
HUAWEI
Overview of command line
![Page 9: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/9.jpg)
HUAWEI
Overview of command line
Usage of sbsterm:
It has the same function as NAVIGATOR.
You should login the UNIX system as a rms user in SUNSolaris operation system,then open a terminal window,and input the file name sbsterm at the prompt '%',youwill start the sbsterm program.
The following graph is the working interface of the sbsterm
![Page 10: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/10.jpg)
HUAWEI
Overview of command line
![Page 11: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/11.jpg)
HUAWEI
Overview of command line
Difference between Navigator and Sbsterm
Sbsterm only provides the command line function, and have no function of software downloading.
To login NE and switch between NEs, the command line input in Sbsterm must be as follows:#1::login:1,"nesoft";The command line #1:login:1,"nesoft"; is illegal
![Page 12: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/12.jpg)
HUAWEI
Introduction of common
used commands
Main types of command :
1 、 comand line format2 、 configration command 3 、 alarm command4 、 performance command5 、 user management command6 、 ECC command7 、 dbms command8 、 other type of command
![Page 13: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/13.jpg)
HUAWEI
Introduction of common
used commands
Format of command line
[#neid]:command[:[<aid>]:[para_block:] ... [:para_block]];
Note: The contents in [ ] can be omitted
neid: The ID of the NE executing the command.
command : Command.
aid: Command access point identifier, which is now limited to the configuration
of the logic system needed by configuration commands. This item can be omittedfor the commands which do not need the logic system number, but the colon should be there.
para_block: Parameter block, including one or more parameter assignments.
![Page 14: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/14.jpg)
HUAWEI
Introduction of common
used commands
Useful information about SBS command line:
1 、 Logining NE is necessary before we operate on it. #1:login:1,"nesoft";
2 、 Getting help from the system. help :help :alm-get-curdata/?
3 、 Recording information of input and output windows log /o:filename.txt /i:i; logoff
4 、 Commands prefixed with // will not be sent to NE
![Page 15: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/15.jpg)
HUAWEI
Commands of configuration type
Configuration commands:
Command format: cfg-operation-object: para_blocks;
A typical NE configuration file is shown as follows
//initialize the NE configuration data:cfg-init<sysall>;
//shut down the performance data auto-report fuction.:per-set-endtime:15m&24h,1990-0-0,0*0;
//login a NE#1:login:1,"nesoft";
![Page 16: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/16.jpg)
HUAWEI
Commands of configuration type
//set NE parameters:cfg-set-nepara:nename="NE1":device=sbs622:gne=true: bp_type=type3;
//configurate the order-wire telephones:cfg-set-ohppara:tel1=131:tel2=132:tel3=133;:cfg-set-ohppara:meet=999:reqt=5:dial=dtmf;:cfg-set-ohppara:rax=sys1;
//configurate the circuit boards of NE:cfg-create-board:1&&3,pd1:9,gtc:11&12,sl4:15,stg:18,ohp2;
//definition of the logical subsystems:cfg-create-lgcsys:sys1
![Page 17: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/17.jpg)
HUAWEI
Commands of configuration type
//map the physical tributary boards :cfg-set-gutumap<sys1>:t1,1,pd1,0;:cfg-set-gutumap<sys1>:t2,2,pd1,0;:cfg-set-gutumap<sys1>:t3,3,pd1,0;
//map the physical group boards :cfg-set-gutumap<sys1>:gw1&&gw4,11,sl4,0; :cfg-set-gutumap<sys1>:ge1&&ge4,12,sl4,0;
//configure the clock parameters:cfg-set-stgpara:sync=w1s8k:syncclass=w1s8k&intr;
![Page 18: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/18.jpg)
HUAWEI
Commands of configuration type
//set tributary boards parameters:cfg-set-tupara:tu1,1&&32,np&75o&nolb;:cfg-set-tupara:tu2,1&&31,np&75o&nolb;:cfg-set-tupara:tu3,1&&32,np&75o&nolb;
//map the cross-connect board:cfg-set-xcmap<sys1>:xlwork,9,gtc;//set the attribute of cross-connect board:cfg-set-gtcpara:work_mode=work;
//configure the attribute of logic subsystem:cfg-set-attrib<sys1>:622:2f:bi:nopr:adm:line;
![Page 19: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/19.jpg)
HUAWEI
Commands of configuration type
//configure vc-12 level serves:cfg-create-vc12:sys1,gw1,1&&32,sys1,t1,1&&32; :cfg-create-vc12:sys1,t1,1&&32,sys1,gw1,1&&32;
//check out the configuration data:cfg-checkout;
//query the NE state :cfg-get-nestate; ★ If NE is working normally,the return value is Running,or else, it is Installing.
![Page 20: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/20.jpg)
HUAWEI
Commands of configuration type
//query the board information of the NE:cfg-get-bdstate;
//query the information of logic subsystems of the NE:cfg-get-lgcsys;
//query the attribute of logic subsystems:cfg-get-attrib<sys1>;:cfg-get-attrib<sys2>;
//query the serves information of logic subsystem:cfg-get-slot<sys1>;
![Page 21: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/21.jpg)
HUAWEI
Commands of alarm type
//query the curent alarm of specified board:alm-get-curdata:2,0
//board number, 0 refers to query all boards
//alarm ID, 0 refers to query all alarm
//query the history alarm of specified board:alm-get-hisdata:2,0
//set/shield the function of monitoring the alarm events:alm-set-monevent:2,0,3,true:alm-cancel-monevent:2,0,3,true //send the command to the single board
//path number
![Page 22: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/22.jpg)
HUAWEI
Commands of alarm type
//set/cancel the function of alarm auto-report
:alm-set-autorep:2,0;:alm-cancel-autorep:2,0;
//change the alarm level
:alm-set-severity:2,4,2; alarm level,1 refers to critical alarmalarm ID
board number
//set/cancel the function of mailbox alarm auto-report
:alm-set-mailrep:2;:alm-cancel-mailrep:0;
![Page 23: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/23.jpg)
HUAWEI
Commands of performance type
Commands of performance type:
//set the date and the time of the NE:date:1997-12-23;:time:23*59;
//initialize all the performance parameters:per-init;
//set the monitored performance events:per-set-monevent:0,0,perall;
//set the performance events auto-report:per-set-autorep:0,0,perall,15m&24h;
![Page 24: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/24.jpg)
HUAWEI
Commands of performance type
//set the start time of monitoring performance events:per-set-starttime:15m,1998-1-1,0*0;:per-set-starttime:24h,1998-1-1,0*0;
//query the data of performance events:per-get-allcurdata:15m&24h;:per-get-allhisdata:15m&24h;
//clear the data of performance events:per-clr-allcurdata:15m&24h;:per-clr-allhisdata:15m&24h;
![Page 25: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/25.jpg)
HUAWEI
user management commands:
Commands of user management type
//browse all the user of NE
:um-get-alluser;
//browse the user who is logining the NE
:um-get-loginuser;
//browse the user who is logining the NE
:um-get-loginuser;
//add a new user to the NE
:um-add-user:"new-user",3,"sdh",63 authority level
login password
user ID
![Page 26: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/26.jpg)
HUAWEI
Commands of ECC type
ECC commands:
//query the ECC router:ecc-get-route;
//query the ECC information of the main control board:ecc-get-sccinfo;
//reset the ECC ports:ecc-reset-dcc:2; ECC port number
★ We can reset the coresponding ECC port to deal withthe fault,if an ECC path is broken.
![Page 27: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/27.jpg)
HUAWEI
Commands of database type
There are three databases in SCC board:
mdb: the dynamic database,it is saved in dynamic RAM, the data will be lose when the power is off.
drdb: the static database,it is saved in static RAM,the data will not be lose when the power is off.
fdb0,fdb1: the permanent database,it is saved in FLASH RAM,the data will never be lose.
![Page 28: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/28.jpg)
HUAWEI
Commands of database type
the configuration data Backup is very important ,it can recover the original data after the power failure and the sytem restarts.
The whole recover procedure is as follows:
Is there originalconfiguration
data in drdb ?
powerfailure
the configuration
data in mdb lossed
power recoverand system restart
recover the configuration
data from drdb
recover the configuration
data from fdb0、 fdb1
yes
no
![Page 29: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/29.jpg)
HUAWEI
Commands of database type
Data base backup commands: :dbms-backup-all:fdb0; :dbms-backup-all:fdb1;
Data base delete commands::dbms-clear-flag:fdb0 ;:dbms-clear-flag:fdb1 ;reset
![Page 30: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/30.jpg)
HUAWEI
Commands of database type
Different database compare command
dbms-compare-all : fdb0, drdb;
dbms-compare-all : fdb1, drdb;
![Page 31: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/31.jpg)
HUAWEI
Commands of switch type
Setting apsc protocol parameters: ------apsc: auto protection switch control
:apsc-set-para:sys1,local station ID,maxium ID,recover time;
Queying apsc protocol parameters::apsc-get-para:sys1;
Starting apsc protocol::apsc-start:sys1;
Queying apsc protocol state::apsc-get-state:sys1;
![Page 32: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/32.jpg)
HUAWEI
Commands of switch type
Querying the apsc events :apsc-get-event:sys1;
Deleting the apsc events :apsc-init-event:sys1;
Stopping apsc protocol :apsc-stop:sys1;
![Page 33: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/33.jpg)
HUAWEI
Commands of switch type
Forcing the protection switch taking place:
:apsc-set-forcesw:sys1,east //forced switch direction
//forced switch system
Clearing the forcing switch setting:
:apsc-clr-forcesw:sys1,east;
![Page 34: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/34.jpg)
HUAWEI
Example of typical configuration
For a 622 、 ADM 、 MSP ring system,the typicalconfiguration file is as follows:
#34://login the NE:login:1,"nesoft";:per-set-endtime:15m&24h,1990-0-0,0*0;//configure NE attribute and install the physical board:cfg-init<sysall>;:cfg-set-nepara:nename="ne-name":device=sbs622:gne=true:bp_type=type3;:cfg-create-board:1&&6,pd1:9&10,gtc:11&12,sl4:15,stg:17,ohp2;//configure logic attribe and logical system map:cfg-create-lgcsys:sys1;:cfg-set-attrib<sys1>:2f:bi:msp:adm:ring:622;
![Page 35: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/35.jpg)
HUAWEI
:cfg-set-gutumap<sys1>:gw1&&gw4,11,sl4,0;:cfg-set-gutumap<sys1>:ge1&&ge4,12,sl4,0;
:cfg-set-gutumap<sys1>:t1,1,pd1,0;:cfg-set-gutumap<sys1>:t2,2,pd1,0;:cfg-set-gutumap<sys1>:t3,3,pd1,0;:cfg-set-gutumap<sys1>:t4,4,pd1,0;
:cfg-set-tupara:tu1,1&&32,np&75o&nolb:cfg-set-tupara:tu2,1&&31,np&75o&nolb:cfg-set-tupara:tu3,1&&32,np&75o&nolb:cfg-set-tupara:tu4,1&&31,np&75o&nolb
Example of typical configuration
![Page 36: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/36.jpg)
HUAWEI
:cfg-set-xcmap<sys1>:xlwork,9,gtc;:cfg-set-xcmap<sys1>:xlbak,10,gtc;:cfg-set-gtcpara:work_mode=work;
//set MSP parameters:apsc-set-para:sys1,2,4,300
// VC12 level service:cfg-create-vc12:sys1,t1,1&&32,sys1,gw1,1&&32; :cfg-create-vc12:sys1,gw1,1&&32,sys1,t1,1&&32;
:cfg-create-vc12:sys1,t2,1&&31,sys1,gw1,33&&63; :cfg-create-vc12:sys1,gw1,33&&63,sys1,t2,1&&31;
Example of typical configuration
![Page 37: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/37.jpg)
HUAWEI
:cfg-create-vc12:sys1,t3,1&&32,sys1,ge1,1&&32; :cfg-create-vc12:sys1,ge1,1&&32,sys1,t3,1&&32;
:cfg-create-vc12:sys1,t4,1&&31,sys1,ge1,33&&63; :cfg-create-vc12:sys1,ge1,33&&63,sys1,t4,1&&31;
//check out the configuration:cfg-checkout;
Example of typical configuration
![Page 38: OTA103202 OptiX 2500+ Command Line Introduction ISSUE1.0](https://reader036.fdocuments.us/reader036/viewer/2022081715/552412a14a795953498b45bf/html5/thumbnails/38.jpg)
HUAWEIThe endThe endThank you!Thank you!