Home > HIRSCHMANN > HIRSCHMANN NB2810 NetModule Router User Manual

HIRSCHMANN NB2810 NetModule Router User Manual

Let’s now pay some attention to the very powerful API function nb_status. It can be used to query the  
router’s status values in the same manner as they can be shown with the CLI. It returns a structure of  
variables for a specific section (a list of available sections can be obtained by running cli status -h).  
By using the dump function you can figure out the content of the returned structure:  
/* dump current location */  
dump(nb_status("location"));  
The script will then generate lines like maybe these:  
struct(8): {  
.LOCATION_STREET  
.LOCATION_CITY  
= string[11]: "Bahnhofquai"  
= string[10]: "Zurich"  
.LOCATION_COUNTRY_CODE = string[2]: "ch"  
.LOCATION_COUNTRY  
.LOCATION_POSTCODE  
.LOCATION_STATE  
= string[11]: "Switzerland"  
= string[4]: "8001"  
= string[6]: "Zurich"  
= string[9]: "47.3778058"  
= string[8]: "8.5412757"  
.LOCATION_LATITUDE  
.LOCATION_LONGITUDE  
}
In combination with the nb_config_set function, it is possible to start a re-configuration of any parts  
of the system upon status changes. You may query possible sections and parameters again with the  
CLI:  
~ $ cli get -c wanlink.0  
cli get -c wanlink.0  
Showing configuration entities (matching ’wanlink.0’):  
wanlink.0.mode  
wanlink.0.multipath  
wanlink.0.passthru  
wanlink.0.switchback  
wanlink.0.name  
wanlink.0.prio  
wanlink.0.weight  
wanlink.0.options  
wanlink.0.suspend  
Running the CLI in interactive mode, you will be also able to step through possible configuration pa-  
rameters by the help of the TAB key.  
NB2810  
140  
User Manual for NRSW version 4.8.0.102  
GeneralDetails
NameHIRSCHMANN NB2810 NetModule Router User Manual
MakeHIRSCHMANN
LanguageEnglish
FiletypePDF (Download)
File size MB
Download PDF
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading...

If you have any questions regarding HIRSCHMANN NB2810 NetModule Router User Manual, please ask here and describe the problem in detail.

Leave a Reply

Your email address will not be published. Required fields are marked *

four × 2 =

HIRSCHMANN NB1810 NetModule Router User Manual
HIRSCHMANN NB1810 NetModule Router User Manual
HIRSCHMANN NB1800 NetModule Router User Manual
HIRSCHMANN NB1800 NetModule Router User Manual

HIRSCHMANN NB2810 NetModule Router User Manual