InteroperabilityTechnology LeadershipReasonable Solutions Technical Training VON Europe.

26
Interoperabilit y Technology Leadership Reasonable Solutions Technical Training VON Europe

Transcript of InteroperabilityTechnology LeadershipReasonable Solutions Technical Training VON Europe.

Page 1: InteroperabilityTechnology LeadershipReasonable Solutions Technical Training VON Europe.

Interoperability Technology Leadership Reasonable Solutions

Technical Training VON Europe

Page 2: InteroperabilityTechnology LeadershipReasonable Solutions Technical Training VON Europe.

Interoperability Technology Leadership Reasonable Solutions

Mass Deployment

Overview

Methods for distinct phone environments

Usage in LANs w/ DHCP- Prerequisites- Setting file structure- Hints for setting files- Firmware Update requirements- Boot up process diagramm

Demonstration- Factory reset- Boot up process- Analysis: Ethereal/ Setting page

Setting Server Redirection

PnP – new ways of mass provisioning

Page 3: InteroperabilityTechnology LeadershipReasonable Solutions Technical Training VON Europe.

Interoperability Technology Leadership Reasonable Solutions

Mass Deployment: Overview

Mass Deployment is a function which permits the phone to retrieve its settings from a remote server (TFTP/ HTTP(S))

Mass Deployment is very useful for larger phone installations

Mass Deployment can not only be used to provide general settings (e.g. language, timezone, tone scheme etc.) or phone specific settings (e.g. SIP identity settings) but also initiate firmware updates/ downgrades

Page 4: InteroperabilityTechnology LeadershipReasonable Solutions Technical Training VON Europe.

Interoperability Technology Leadership Reasonable Solutions

Mass Deployment: Methods

Phone environment

Local Area Networke.g. managed

company/SOHO LAN

Randomly distributede.g. distributor or ITSP

network

•LAN using DHCP •LAN using fix IP addresses

Requirements:•TFTP or HTTP(S) server for

phone settings•HTTP(S) server for FW

update

Requirements:•DHCP Server

•TFTP or HTTP(S) server for phone settings

•HTTP(S) server for FW update

Requirements:•Redirection of default

provisioning server•Phone MAC address

management via snom`s provisioning console

•Public HTTP(S) server• PHP knowledge

Mass Deployment implementation may vary depending on the phone environment:

Page 5: InteroperabilityTechnology LeadershipReasonable Solutions Technical Training VON Europe.

Interoperability Technology Leadership Reasonable Solutions

Mass Deployment: Prerequisites

1: Running TFTP/ HTTP(S) Server and setting file (HTML or script)- E.g. http://prov.company.com/settings/snom3xx.htm- E.g. http://prov.company.com/settings/snom.php- E.g. tftp://prov.company.com/settings/snom.cfg

2: Configuration of option 66/67 on DHCP server- Option 66/sname: HTTP/HTTPS/TFTP setting server, e.g.

http://prov.company.com - Option 67/file: Path to HTML/script setting file, e.g.

settings/snom3xx.htm

3: Factory resetted snomXXX- Setting Server URL should not have been changed

manually before -> Reset to factory values

Page 6: InteroperabilityTechnology LeadershipReasonable Solutions Technical Training VON Europe.

Interoperability Technology Leadership Reasonable Solutions

Mass Deployment: Setting Files

Setting file structure:- ASCII-based files

- lines may end with newline or carriage return/newline pairs- Comments start with a # or a < character- The < and > characters allow easy integration of html tags- Names may consist of the characters a-z, A-Z, 0-9 and _.

- Basically all available settings available on the Web Interfaces setting page may be used

Page 7: InteroperabilityTechnology LeadershipReasonable Solutions Technical Training VON Europe.

Interoperability Technology Leadership Reasonable Solutions

Mass Deployment: Setting Files

Use ONLY as little settings as necessary:- General settings e.g:

- language$, timezone$, - Account specific settings:

- user_pname1$, user_name1$, user_realname1$, user_host1, user_srtp1$ etc.

- Firmware Update related settings- firmware_status, update_policy, firmware_interval

Use ONLY „$“ flags at the beginning- ! = Setting may not be overwritten when it was

changed by the user before- & or no flag will definitely overwrite existing setting

and mark it „read-only“

Page 8: InteroperabilityTechnology LeadershipReasonable Solutions Technical Training VON Europe.

Interoperability Technology Leadership Reasonable Solutions

Mass Deployment: Setting Files

Do NOT use:- Network settings:

- dhcp, gateway, dns_server1 etc.

- Setting server URL:- unless you want to redirect the phone to a different

setting server

- Firmware setting:- firmware/ bootloader- use ONLY "firmware_status" instead

- Other internal settings:- update_server, update_filename, update_host_b,

update_host_f, sip_port, reset_settings, reboot_after_nr, watch_arp_cache etc.

Page 9: InteroperabilityTechnology LeadershipReasonable Solutions Technical Training VON Europe.

Interoperability Technology Leadership Reasonable Solutions

Mass Deployment: Firmware Update

A firmware configuration file must be located on the TFTP/ HTTP(s) server- E.g. http://prov.mycompany.com/settings/firmware.htm- ASCII-based file- must ONLY use „firmware“ setting w/o flags:

- firmware: http://.../snom3xx-X.X.bin

The setting file „snom3xx.htm“ links to „firmware.htm“ via firmware_status:- firmware_status:

http://prov.company.com/settings/firmware.htm

Page 10: InteroperabilityTechnology LeadershipReasonable Solutions Technical Training VON Europe.

Interoperability Technology Leadership Reasonable Solutions

Mass Deployment: Boot- up- process

1) Loading settings from the flash memory• if DHCP is enabled it will send an DHCP discover

2) DHCP offer:• phone receives its network settings (IP address, net mask, gateway, DNS server, NTP server etc.)

• setting server URL [-> update_server]/ setting file path [-> update_filename]

3) No MAC parameter specified & HTMLe.g. http://.../snom3xx.htm

4) Request of general settings file• Receiving of settings

• Writing settings to flash memory

3) MAC parameter specified & Scripte.g. http://.../snom.php?mac= {mac}

5) Request of the setting file appended by the phone´s MAC address

e.g. http://.../ snom-000413XXXXX.htm• Receiving of phone specific settings

• Writing settings to flash memory

4) Request of the resulting setting file• Receiving of both general and phone specific

settings at once • Writing settings to flash memory

6) Activating new settings 5) Activating new settings

Part1: Setting provisioning :

Page 11: InteroperabilityTechnology LeadershipReasonable Solutions Technical Training VON Europe.

Interoperability Technology Leadership Reasonable Solutions

Mass Deployment: Boot- up- process

6) Firmware Update Check• phone checks the setting „firmware_status“

7) firmware_status: URLe.g. http://.../snom3xx-firmware.htm

8) Request of the firmware configuration file• Receiving of the setting „firmware“

• Comparision of the FW image URL and the last one stored on the phone

7) firmware_status: <empty>

9) FW image URL`s different

• FW update will be performed

9) FW image URL`s equal

• FW update will NOT be performed

Provisioning finishedProvisioning finishedProvisioning & FW

Update finished

Part2: FW update

Page 12: InteroperabilityTechnology LeadershipReasonable Solutions Technical Training VON Europe.

Interoperability Technology Leadership Reasonable Solutions

Mass Deployment: Example using HTTP & DHCP

Web (HTTP) Server installed on 10.0.0.2:

Page 13: InteroperabilityTechnology LeadershipReasonable Solutions Technical Training VON Europe.

Interoperability Technology Leadership Reasonable Solutions

Mass Deployment : Example using HTTP & DHCP

Web (HTTP) Server provides:- General settings file http://10.0.0.2/snom360.htm- Specific setting file

http://10.0.0.2/snom360-0004132314A4.htm- Firmware configuration file

http://10.0.0.2/snom360-firmware.htm- Firmware image file http://10.0.0.2/snom360-6.5.1-SIP-j.bin

Page 14: InteroperabilityTechnology LeadershipReasonable Solutions Technical Training VON Europe.

Interoperability Technology Leadership Reasonable Solutions

Mass Deployment: Example using HTTP & DHCP

Content of setting files:- snom360.htm- snom360-0004132314A4 .htm

Page 15: InteroperabilityTechnology LeadershipReasonable Solutions Technical Training VON Europe.

Interoperability Technology Leadership Reasonable Solutions

Mass Deployment: Example using HTTP & DHCP

Content of firmware configuration files:- snom360-firmware.htm

Page 16: InteroperabilityTechnology LeadershipReasonable Solutions Technical Training VON Europe.

Interoperability Technology Leadership Reasonable Solutions

Mass Deployment: Example using HTTP & DHCP

DHCP Server on 10.0.0.2:- Option 66: http://10.0.0.2- Option 67: snom360.htm

Page 17: InteroperabilityTechnology LeadershipReasonable Solutions Technical Training VON Europe.

Interoperability Technology Leadership Reasonable Solutions

Mass Deployment: Example using HTTP & DHCP

Snom360:- Out of the box (factory values)/ Factory value reset- Power up/ Reboot via SIP NOTIFY- Boot Up Process

Page 18: InteroperabilityTechnology LeadershipReasonable Solutions Technical Training VON Europe.

Interoperability Technology Leadership Reasonable Solutions

Mass Deployment: Example using HTTP & DHCP

Ethereal analysis- DHCP Discover/ Offer

Page 19: InteroperabilityTechnology LeadershipReasonable Solutions Technical Training VON Europe.

Interoperability Technology Leadership Reasonable Solutions

Mass Deployment: Example using HTTP & DHCP

Ethereal analysis: Plug And Play (PnP) default delay

Page 20: InteroperabilityTechnology LeadershipReasonable Solutions Technical Training VON Europe.

Interoperability Technology Leadership Reasonable Solutions

Mass Deployment: Example using HTTP & DHCP

Ethereal analysis: HTTP Setting File request

Page 21: InteroperabilityTechnology LeadershipReasonable Solutions Technical Training VON Europe.

Interoperability Technology Leadership Reasonable Solutions

Mass Deployment: Example using HTTP & DHCP

Snom360: Settings page check

Snom360.htmSnom360.htm

Snom360-firmware.htm

DHCP: 67

Snom360.htm

Factory Value

DHCP: 66

Factory Value

Page 22: InteroperabilityTechnology LeadershipReasonable Solutions Technical Training VON Europe.

Interoperability Technology Leadership Reasonable Solutions

Mass Deployment: Example using HTTP & DHCP

Snom360: Settings page check

Snom360-0004132414A4.htm

Snom360-0004132414A4.htm

Snom360-0004132414A4.htm

Page 23: InteroperabilityTechnology LeadershipReasonable Solutions Technical Training VON Europe.

Interoperability Technology Leadership Reasonable Solutions

Mass Deployment: Setting Server Redirection

Snom phones contact snom provisioning server first(hardcoded in FW):- http://provisioning.snom.com/snom3x0/snom3x0.php?

mac={mac}- Settings script doesn´t deliver any settings back to the

phone

Distributors may ask for redirection ssh accounts to redirect the setting server URL to their own (public) HTTP setting servers

Redirection is based on MAC address registration

Registered MAC addresses will be redirected

Page 24: InteroperabilityTechnology LeadershipReasonable Solutions Technical Training VON Europe.

Interoperability Technology Leadership Reasonable Solutions

Mass Deployment: Setting Server Redirection

Snom provisioning

snom.com

FirewallNAT solved

PhonePhonePhoneRegisteredPhoneMACxx1Domain1 configDomain 1 FW

ATA

FAX Cordless

LAN

ProvDBDomain1Domain2Domain3

Domain1MACxx1MACxx2MACxx3

Welcome, arcor190! Type help for help.==> helpWelcome to the snom configuration tool.You may use the following commands:

SHOW <mac> : Show the status of a phone.REGISTER <mac> : Register a phone.REG <mac> : Same as REGISTER.DEREGISTER <mac>: Deregister a phone.LIST : List all phones assigned.BYE : Leave this tool.

A MAC address may be entered as 3 to 6 digit hexadecimal number, case does not matter (e.g. 2e4 --> 0004132202E4)

==> list000413101214 00041310123C

LAN

LAN

Customer ssh account

Page 25: InteroperabilityTechnology LeadershipReasonable Solutions Technical Training VON Europe.

Interoperability Technology Leadership Reasonable Solutions

Mass Deployment: PnP configuration

PnP Config:- "ON" (by default) the phone sends a SUBSCRIBE message to

a multicast address (224.0.1.75)- All setting servers which have membership to the group can

respond to the SUBSCRIBE and send NOTIFY messages with the setting server HTTP URL in the body.

- The phone then retrieves its settings from the link specified. - This is particularly useful for out of the box setup of devices

and mass deployment.

Page 26: InteroperabilityTechnology LeadershipReasonable Solutions Technical Training VON Europe.

Interoperability Technology Leadership Reasonable Solutions

© 2006 snom technology AG

The author has made his best effort to prepare this document. The content is based upon latest information, whenever possible. The author makes no representation or warranties of any kind with regard to the completeness or accuracy of the contents herein and accepts no liability of any kind, including, but not limited to, performance, merchantability, fitness for any particular purpose, or any losses or damages of any kind caused or alleged to be caused directly or indirectly by this document.

For more information, mail [email protected]. 46, 12347 Berlin, Germany.