home *** CD-ROM | disk | FTP | other *** search
/ chilidog.highland.cc.ks.us / chilidog.highland.cc.ks.us.zip / chilidog.highland.cc.ks.us / backup / bradford.20120521.bsc-campusMgr-master_loader-telnetMibs.tar.gz / bradford.20120521.bsc-campusMgr-master_loader-telnetMibs.tar / bsc / campusMgr / master_loader / telnetMibs / Brocade.mib < prev    next >
Text File  |  2011-03-16  |  4KB  |  181 lines

  1. //Default for Brocade rebranded..  Modified the login to change the prompt since we will have 
  2. //trouble parsing some the tables that contain a "#" as a header value.
  3. //process is as follows :
  4. // 1) when we get the login prompt, enter cli to get to the cli view.
  5. // 2) when we get the Username prompt, enter the user name
  6. // 3) when we get the password prompt, enter the password
  7. // 4) type enable
  8. // 5) when/if we get the enable password prompt, type the enable password. -- try to test later --
  9. // 6) once logged in, go to the configuration terminal
  10. // 7) change the prompt to [Bradford] for ease of parsing.
  11. // 8) exit back to the enable level 
  12. TELNET_PARAMETERS=
  13. {
  14.         WAITFOR=login:
  15.         WRITE=cli
  16.         WAITFOR=Username:
  17.         WRITE=PARAM.USER
  18.         WAITFOR=Password:
  19.         WRITE=PARAM.PASSWORD
  20.         WAITFOR=PARAM.SSH_WAITFOR_1
  21.         WRITE=PARAM.SSHUSER
  22.         WAITFOR=PARAM.SSH_WAITFOR_2
  23.         WRITE=PARAM.SSHPASSWORD
  24.         WAITFOR=>
  25.         WRITE=enable
  26.         WAITFOR=#
  27. }
  28.  
  29. // Not sure what this sequence accomplishes!  
  30. TELNET_CONTROL_WORDS=
  31. {
  32.         WAITFOR=<SPACE>
  33.         WRITE=SPACE
  34.         WAITFOR=(yes
  35.         WRITE=YES
  36.         WAITFOR=MORE
  37.         WRITE=SPACE
  38.         WAITFOR=(q)
  39.         WRITE=SPACE
  40.         WAITFOR=now?
  41.         WRITE=no
  42.         WAITFOR=(y/n)
  43.         WRITE=y
  44. }
  45.  
  46. // No sure what this is needed for!
  47. TELNET_CONTROL_CHARS_ALLOWED=
  48. {
  49.         ALLOW_CONTROL=10
  50.         ALLOW_CONTROL=13
  51.         ALLOW_CONTROL=9
  52. }
  53.  
  54. // adds the MAC address specified in argument {0} to the blacklist
  55. // {1} indicates the index to use for our blacklist entry.
  56. ATTRIBUTE_NAME=BlacklistClient
  57. {
  58.         GROUP=BlacklistClient
  59.         ATTRIBUTE=BlacklistClient
  60.         SET=config terminal
  61.         WAITFOR=#
  62.         SET=wireless
  63.         WAITFOR=#
  64.         SET=no wireless-client {0} add-to-mac-auth-local {1}
  65.         WAITFOR=#
  66.         SET=exit
  67.         WAITFOR=#
  68. }
  69.  
  70. // removes the MAC address from the blacklist
  71. // {1} is the index of the acl entry
  72. ATTRIBUTE_NAME=UnBlacklistClient
  73. {
  74.         GROUP=UnBlacklistClient
  75.         ATTRIBUTE=UnBlacklistClient
  76.         SET=config terminal
  77.         WAITFOR=#
  78.         SET=wireless
  79.         WAITFOR=#
  80.         SET=no mac-auth-local {1}
  81.         WAITFOR=#
  82.         SET=exit
  83.         WAITFOR=#
  84. }
  85.  
  86. // adds the MAC address specified in argument {0} to the blacklist
  87. ATTRIBUTE_NAME=BlacklistClient
  88. {
  89.         GROUP=BlacklistClient
  90.         ATTRIBUTE=BlacklistClient
  91.         SET=config terminal
  92.         WAITFOR=#
  93.         SET=wireless
  94.         WAITFOR=#
  95.         SET=no wireless-client {0} add-to-mac-auth-local 200
  96.         WAITFOR=#
  97.         SET=exit
  98.         WAITFOR=#
  99. }
  100.  
  101. // removes the MAC address from the blacklist
  102. ATTRIBUTE_NAME=UnBlacklistClient
  103. {
  104.         GROUP=UnBlacklistClient
  105.         ATTRIBUTE=UnBlacklistClient
  106.         SET=config terminal
  107.         WAITFOR=#
  108.         SET=wireless
  109.         WAITFOR=#
  110.         SET=no mac-auth-local 200
  111.         WAITFOR=#
  112.         SET=exit
  113.         WAITFOR=#
  114. }
  115.  
  116. // Take 2: Command sequence to drop an end station off the controller.
  117. //--- Obsolete ---
  118. ATTRIBUTE_NAME=ClearClient
  119. {
  120.         GROUP=ClearClient
  121.         ATTRIBUTE=ClearClient
  122.         SET=config terminal
  123.         WAITFOR=#
  124.         SET=wireless
  125.         WAITFOR=#
  126.         SET=no wireless-client {0} add-to-mac-auth-local 200
  127.         WAITFOR=#
  128.         SLEEP=15
  129.         SET=no mac-auth-local 200
  130.         WAITFOR=#
  131.         SET=exit
  132.         WAITFOR=#
  133. }
  134.  
  135. //Command sequence to list all APs known to controller.
  136. ATTRIBUTE_NAME=ListAPs
  137. {
  138.         GROUP=ListAPs
  139.         ATTRIBUTE=ListAPs
  140.         WRITE=configure terminal
  141.         WAITFOR=#
  142.         WRITE=show wireless ap
  143.         RETVAL=)#
  144.         WRITE=exit
  145.         WAITFOR=#
  146. }
  147.  
  148. //Command sequence to read arp cache
  149. ATTRIBUTE_NAME=ShowArp
  150. {
  151.         GROUP=ShowArp
  152.         ATTRIBUTE=ShowArp
  153.         WRITE=show ip arp
  154.         RETVAL=#
  155. }
  156.  
  157. //Command sequence to read forwarding data
  158. ATTRIBUTE_NAME=ShowWirelessMU
  159. {
  160.         GROUP=ShowWirelessMU
  161.         ATTRIBUTE=ShowWirelessMU
  162.         WRITE=show wireless wireless-client
  163.         RETVAL=#
  164. }
  165.  
  166. //Command sequence to read vlans
  167. ATTRIBUTE_NAME=ShowVlans
  168. {
  169.         GROUP=ShowVlans
  170.         ATTRIBUTE=ShowVlans
  171.         WRITE=show ip interface brief
  172.         RETVAL=#
  173. }
  174.  
  175. ATTRIBUTE_NAME=Logout
  176. {
  177.         GROUP=Logout
  178.         ATTRIBUTE=Logout
  179.         WRITE=exit
  180. }
  181.