Documente Academic
Documente Profesional
Documente Cultură
Like the T2000, a command line helps greatly to deploy and maintain Huawei OptiX equipment.
Features:
- Easy
- Powerful
Navigator
Navigator functions
Inputs and outputs command
lines.
Issues a batch file.
%cmdterm
Cmdclient
Useful operations
To query the format of a command, add /? next to the command words.
5. :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
6. //Clock configuration
:cfg-set-synclass:9,3,0x0801,0x0b01,0xf101;
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";
: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.
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.
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.
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.
Parameter Description
NOTE
1. Add bidirectional service connections in pairs.
2. Precede each command with comments.
3. In the case of a service terminated at the local site — “//local site
– peer site”
4. In the case of a pass-through service — “//source site – sink site
pass through”
:cfg-verify;
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.
:cfg-get-nestate;
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.
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.
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
: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
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
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
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
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
User management
:sm-get-alluser;
//To query all users
:sm-get-curuser;
//To query the current user
:logout;
//To log out of an NE
: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
: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;