ota103202 optix 2500+ command line introduction issue1.0
TRANSCRIPT
Introduction of Introduction of
command linecommand line
HUAWEI
HUAWEI
CONTENTSCONTENTS
Overview of command line
Introduction of common
used commands
Example of typical configuration
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
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:
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
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:
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:
HUAWEI
Overview of command line
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
HUAWEI
Overview of command line
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
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
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.
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
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";
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
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;
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;
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.
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>;
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
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;
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;
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;
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
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.
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.
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
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
HUAWEI
Commands of database type
Different database compare command
dbms-compare-all : fdb0, drdb;
dbms-compare-all : fdb1, drdb;
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;
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;
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;
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;
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
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
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
HUAWEIThe endThe endThank you!Thank you!