# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## HP.GbE2.get_version test
## Auto-generated by manage.py debug-script at 2010-09-23 00:18:29
##----------------------------------------------------------------------
## Copyright (C) 2007-2010 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
from noc.lib.test import ScriptTestCase
class HP_GbE2_get_version_Test(ScriptTestCase):
    script="HP.GbE2.get_version"
    vendor="HP"
    platform='GbE2c'
    version='2.0.0'
    input={}
    result={'platform': 'GbE2c', 'vendor': 'HP', 'version': '2.0.0'}
    motd=' \nswitch\r\n------------------------------------------------------------\r\n[Main Menu]\nNov 11  8:36:53 NOTICE  mgmt: (admin) login from host 10.33.52.60\r\n     info     - Information Menu\r\n     stats    - Statistics Menu\r\n     cfg      - Configuration Menu\r\n     oper     - Operations Command Menu\r\n     boot     - Boot Options Menu\r\n     maint    - Maintenance Menu\r\n     diff     - Show pending config changes  [global command]\r\n     apply    - Apply pending config changes [global command]\r\n     save     - Save updated config to FLASH [global command]\r\n     revert   - Revert pending or applied changes [global command]\r\n     exit     - Exit  [global command, always available]\n'
    cli={'/': '/\r\n------------------------------------------------------------\r\n[Main Menu]\r\n     info     - Information Menu\r\n     stats    - Statistics Menu\r\n     cfg      - Configuration Menu\r\n     oper     - Operations Command Menu\r\n     boot     - Boot Options Menu\r\n     maint    - Maintenance Menu\r\n     diff     - Show pending config changes  [global command]\r\n     apply    - Apply pending config changes [global command]\r\n     save     - Save updated config to FLASH [global command]\r\n     revert   - Revert pending or applied changes [global command]\r\n     exit     - Exit  [global command, always available]\n',
 '/info/sys/general': '/info/sys/general\r\nSystem Information at  8:36:54 Sat Nov 11, 2006\r\nTime zone: America/US/Pacific\nGbE2c L2/L3 Ethernet Blade Switch for HP c-Class BladeSystem\r\nsysName:     \r\nsysLocation: \r\nRackId: Default RUID\r\nRackName: Rack74-77\r\nEnclosureSerialNumber: GB8916NA1T\r\nEnclosureName: Rack74\r\nBayNumber:  1\nSwitch has been up for 314 days, 1 hour, 37 minutes and 33 seconds.\r\nLast boot:  >>>> CLOCK NOT SET <<<<  (power cycle)\nMAC address: 00:25:03:30:9f:00    IP (If 1) address: 10.33.32.38\r\nRevision: 0A\r\nSwitch Serial No: MY393233B3\r\nHardware Part No: 438030-B21        Spare Part No: 438475-001\r\nSoftware Version 2.0.0 (FLASH image1), active configuration.\nBanner:\r\nAcckii switch\n'}
    snmp_get={}
    snmp_getnext={}
        
